diff --git a/.github/release-note-generation/generate_module_notes.py b/.github/release-note-generation/generate_module_notes.py new file mode 100644 index 000000000000..c65045472f7b --- /dev/null +++ b/.github/release-note-generation/generate_module_notes.py @@ -0,0 +1,335 @@ +import argparse +import re +import subprocess +import sys + + +def run_cmd(cmd, cwd=None): + """Runs a shell command and returns the output.""" + result = subprocess.run( + cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, cwd=cwd + ) + if result.returncode != 0: + print(f"Error running command: {' '.join(cmd)}", file=sys.stderr) + print(result.stderr, file=sys.stderr) + sys.exit(result.returncode) + return result.stdout + + +def find_version_boundaries(file_path, pattern, target_version, module=None): + """Scans history of a file to find release boundaries moving forward.""" + log_cmd = [ + "git", + "log", + "--oneline", + "--all", + "--", + file_path, + ] + try: + log_output = run_cmd(log_cmd) + commits = [line.split()[0] for line in log_output.splitlines() if line] + commits.reverse() # Move forward in time! + + first_prev_commit = None + target_release_commit = None + prev_version = None + + for commit in commits: + # Check if file exists at that commit to avoid noisy errors + check_cmd = ["git", "cat-file", "-e", f"{commit}:{file_path}"] + check_result = subprocess.run(check_cmd, stderr=subprocess.PIPE) + if check_result.returncode != 0: + continue + + show_cmd = ["git", "show", f"{commit}:{file_path}"] + try: + content = run_cmd(show_cmd) + except SystemExit: + continue + + found_ver = None + match = pattern.search(content) + if match: + found_ver = match.group(1) + + if found_ver: + if found_ver == target_version: + target_release_commit = commit + break # Stop as soon as we find the target release! + + # Track the first occurrence of the latest stable version before target + if found_ver != target_version and "-SNAPSHOT" not in found_ver and (not prev_version or found_ver != prev_version): + prev_version = found_ver + first_prev_commit = commit + + return first_prev_commit, target_release_commit, prev_version + except SystemExit: + return None, None, None + + +def verify_commit(commit_hash, directory, module, allowed_versions): + """Verifies if a commit belongs to the release based on file state.""" + if directory == ".": + pom_path = "gapic-libraries-bom/pom.xml" + else: + pom_path = f"{directory}/pom.xml" + + # Check if file exists at that commit to avoid noisy errors + check_cmd = ["git", "cat-file", "-e", f"{commit_hash}:{pom_path}"] + check_result = subprocess.run(check_cmd, stderr=subprocess.PIPE) + if check_result.returncode != 0: + return False + + try: + content = run_cmd(["git", "show", f"{commit_hash}:{pom_path}"]) + # Allow optional tag in between artifactId and version + pattern = re.compile(rf"{re.escape(module)}\s*(?:[^<]+\s*)?([^<]+)", re.DOTALL) + + match = pattern.search(content) + if match and match.group(1) in allowed_versions: + return True + except SystemExit: + pass + + return False + + +def parse_commit_overrides(commit_data, short_name, prefix_regex, commit_hash, categorize_callback): + """Parses commit overrides and calls callback for each item.""" + match = re.search(r"BEGIN_COMMIT_OVERRIDE(.*?)END_COMMIT_OVERRIDE", commit_data, re.DOTALL) + if not match: + return False + + override_content = match.group(1) + current_item = [] + in_module_item = False + + for line in override_content.splitlines(): + line_stripped = line.strip() + if not line_stripped: + continue + + is_new_item = prefix_regex.match(line_stripped) + + if is_new_item: + if in_module_item and current_item: + categorize_callback(commit_hash, " ".join(current_item)) + current_item = [] + in_module_item = False + + should_include = False + if short_name: + if f"[{short_name}]" in line_stripped or f"({short_name})" in line_stripped: + should_include = True + else: + should_include = True + + if should_include: + in_module_item = True + current_item.append(line_stripped) + elif in_module_item: + if line_stripped.startswith(("PiperOrigin-RevId:", "Source Link:")): + continue + if line_stripped in ("END_NESTED_COMMIT", "BEGIN_NESTED_COMMIT"): + continue + current_item.append(line_stripped) + + if in_module_item and current_item: + categorize_callback(commit_hash, " ".join(current_item)) + + return True + + +def get_tag_or_commit(commit_hash, target_version): + """Returns the tag pointing at the commit if there is exactly one, else the commit hash.""" + if not commit_hash: + return None + try: + # Remove ~1 if present to find the actual tag pointing at the commit + clean_hash = commit_hash.split("~")[0] + tags_output = run_cmd(["git", "tag", "--points-at", clean_hash]) + tags = [line.strip() for line in tags_output.splitlines() if line.strip()] + if len(tags) == 1: + return tags[0] + elif len(tags) > 1: + for tag in tags: + if target_version in tag: + return tag + except SystemExit: + pass + return commit_hash + + +def main(): + parser = argparse.ArgumentParser( + description="Generate release notes based on commit history for a specific module." + ) + parser.add_argument( + "--module", required=True, help="Module name as specified in versions.txt" + ) + parser.add_argument( + "--directory", required=True, help="Path in the monorepo where the module has code" + ) + parser.add_argument("--version", required=True, help="Target version") + parser.add_argument( + "--short-name", help="Module short-name used in commit overrides (e.g., aiplatform). Omit for repo-wide generation." + ) + args = parser.parse_args() + + module = args.module + directory = args.directory + target_version = args.version + + # 1. Scan history of pom.xml + if directory == ".": + pom_path = "gapic-libraries-bom/pom.xml" + else: + pom_path = f"{directory}/pom.xml" + pom_pattern = re.compile(r"([^<]+)") + + prev_commit, target_release_commit, prev_version = find_version_boundaries(pom_path, pom_pattern, target_version) + + target_commit = None + if target_release_commit: + target_commit = target_release_commit + print(f"Found target release commit at {target_release_commit}. Using inclusive upper boundary {target_commit}", file=sys.stderr) + + if not target_commit: + print(f"Target version {target_version} not found in history of {pom_path}.", file=sys.stderr) + sys.exit(1) + + range_desc = f"between {prev_commit} and {target_commit}" if prev_commit else f"up to {target_commit}" + print( + f"Generating notes {range_desc} for directory {directory}", file=sys.stderr + ) + + # 2. Generate commit history in that range affecting that directory + # Use format that includes hash, subject, and body + notes_cmd = [ + "git", + "log", + "--format=%H %s%n%b%n--END_OF_COMMIT--", + f"{prev_commit}~1..{target_commit}" if prev_commit else target_commit, + ] + if directory != ".": + notes_cmd.extend(["--", directory]) + notes_output = run_cmd(notes_cmd) + + + + # Filter commit titles based on allowed prefixes and categorize them + # Supports scopes in parentheses, e.g., feat(spanner): + prefix_regex = re.compile(r"^(feat|fix|deps|docs|chore\(deps\)|build\(deps\))(\([^)]+\))?(!)?:") + + breaking_changes = [] + features = [] + bug_fixes = [] + dependency_upgrades = [] + documentation = [] + + def categorize_and_append(commit_hash, text): + match = prefix_regex.match(text) + if not match: + return + + prefix = match.group(1) + is_breaking = match.group(3) == "!" + + commit_link = f"([{commit_hash[:7]}](https://github.com/googleapis/google-cloud-java/commit/{commit_hash}))" + full_item = f"{text} {commit_link}" + + if is_breaking: + breaking_changes.append(full_item) + elif prefix == "feat": + features.append(full_item) + elif prefix == "fix": + bug_fixes.append(full_item) + elif prefix == "deps" or prefix in ("chore(deps)", "build(deps)"): + dependency_upgrades.append(full_item) + elif prefix == "docs": + documentation.append(full_item) + + commits_data = notes_output.split("--END_OF_COMMIT--") + + for commit_data in commits_data: + commit_data = commit_data.strip() + if not commit_data: + continue + + lines = commit_data.splitlines() + if not lines: + continue + + header_parts = lines[0].split(" ", 1) + commit_hash = header_parts[0] + subject = header_parts[1] if len(header_parts) > 1 else "" + + body = "\n".join(lines[1:]) + + # Verify if commit belongs to this release based on file state + target_snapshot = f"{target_version}-SNAPSHOT" + allowed_versions = (prev_version, target_snapshot) if prev_version else (target_snapshot,) + + target_module = "gapic-libraries-bom" if directory == "." else module + if not verify_commit(commit_hash, directory, target_module, allowed_versions): + continue + + # Check for override in the entire message + if "BEGIN_COMMIT_OVERRIDE" in body or "BEGIN_COMMIT_OVERRIDE" in subject: + if parse_commit_overrides(commit_data, args.short_name, prefix_regex, commit_hash, categorize_and_append): + continue + + # Fallback to title check if no override + if prefix_regex.match(subject): + categorize_and_append(commit_hash, subject) + + # Get dates and build header + target_date = run_cmd(["git", "log", "-1", "--format=%cI", target_commit]).strip() + date_str = target_date.split("T")[0] # Get YYYY-MM-DD + + prev_ref = get_tag_or_commit(prev_commit, prev_version) if prev_version else prev_commit + target_ref = get_tag_or_commit(target_commit, target_version) + + compare_url = f"https://github.com/googleapis/google-cloud-java/compare/{prev_ref}...{target_ref}" if prev_ref else f"https://github.com/googleapis/google-cloud-java/commit/{target_ref}" + + print(f"## [{target_version}]({compare_url}) ({date_str})") + print() + + if not any([breaking_changes, features, bug_fixes, dependency_upgrades, documentation]): + print("* No change") + else: + if breaking_changes: + print("### ⚠ BREAKING CHANGES\n") + for item in breaking_changes: + print(f"* {item}") + print() + + if features: + print("### Features\n") + for item in features: + print(f"* {item}") + print() + + if bug_fixes: + print("### Bug Fixes\n") + for item in bug_fixes: + print(f"* {item}") + print() + + if documentation: + print("### Documentation\n") + for item in documentation: + print(f"* {item}") + print() + + if dependency_upgrades: + print("### Dependencies\n") + for item in dependency_upgrades: + print(f"* {item}") + print() + + + +if __name__ == "__main__": + main() diff --git a/.github/release-note-generation/split_release_note.py b/.github/release-note-generation/split_release_note.py index c304aae89d2f..3870af2130cb 100644 --- a/.github/release-note-generation/split_release_note.py +++ b/.github/release-note-generation/split_release_note.py @@ -69,6 +69,7 @@ def detect_modules(root_directory: Path): tree = ET.parse(module_pom_xml) root = tree.getroot() version = root.find('mvn:version', POM_NAMESPACES).text + api_name = None if owlbot_yaml_path.exists(): # If OwlBot configuration file exists (most cases), it's the better # source to get the OwlBot-generated pull request title prefix than @@ -78,21 +79,21 @@ def detect_modules(root_directory: Path): match = re.search(r'api-name: (.+)', owlbot_yaml_content) if match: api_name = match.group(1) - modules.append(LibraryModule(module_path, api_name, - version, - changelog)) + + if not api_name: + # Fallback to repo-metadata.json (e.g. for vertexai or Spanner transitional state) + if repo_metadata_path.exists(): + with open(repo_metadata_path, 'r') as file: + repo_metadata = json.load(file) + api_name = repo_metadata.get('api_shortname') + + if api_name: + modules.append(LibraryModule(module_path, api_name, + version, + changelog)) else: - # vertexai (handwritten) does not have OwlBot yaml file - with open(repo_metadata_path, 'r') as file: - repo_metadata = json.load(file) - api_name = repo_metadata['api_shortname'] - if api_name: - modules.append(LibraryModule(repo_metadata_path.parent, api_name, - version, - changelog)) - else: - raise Exception(f'repo_metadata_path {repo_metadata_path} does' - f' not have api_shortname field') + raise Exception(f'Could not determine api-name for {repo_metadata_path}') + return modules @@ -133,7 +134,7 @@ def group_changes_by_api(main_changes: [str]): elif section == BUG_FIXES_SECTION: api_to_changelog[api_name].bug_fixes.append(note) elif section == DEPENDENCIES_SECTION: - api_to_changelog[api_name].dependencies.append(note) + api_to_changelog[api_name].dependency_upgrades.append(note) return api_to_changelog diff --git a/.github/release-note-generation/test_generate_module_notes.py b/.github/release-note-generation/test_generate_module_notes.py new file mode 100644 index 000000000000..ff8e48dccd1c --- /dev/null +++ b/.github/release-note-generation/test_generate_module_notes.py @@ -0,0 +1,82 @@ +import subprocess +import sys +import unittest +from pathlib import Path + + +class TestGenerateModuleNotes(unittest.TestCase): + + def setUp(self): + self.script_path = Path( + ".github/release-note-generation/generate_module_notes.py" + ) + self.testdata_dir = Path(".github/release-note-generation/testdata") + + def test_java_run_generation(self): + golden_file = self.testdata_dir / "golden_java-run_0.71.0.txt" + with open(golden_file, "r") as f: + expected_output = f.read() + + cmd = [ + sys.executable, + str(self.script_path), + "--module", + "google-cloud-run", + "--directory", + "java-run", + "--version", + "0.71.0", + "--short-name", + "run", + ] + result = subprocess.run( + cmd, capture_output=True, text=True, check=True + ) + + self.assertEqual(result.stdout, expected_output) + + def test_root_generation(self): + golden_file = self.testdata_dir / "golden_root_1.85.0.txt" + with open(golden_file, "r") as f: + expected_output = f.read() + + cmd = [ + sys.executable, + str(self.script_path), + "--module", + "google-cloud-java", + "--directory", + ".", + "--version", + "1.85.0", + ] + result = subprocess.run( + cmd, capture_output=True, text=True, check=True + ) + + self.assertEqual(result.stdout, expected_output) + + + def test_java_dataplex_generation(self): + """Test generating release notes for Dataplex module version 1.86.0.""" + args = [ + "--module", "google-cloud-dataplex", + "--directory", "java-dataplex", + "--version", "1.86.0", + "--short-name", "dataplex" + ] + + cmd = [sys.executable, str(self.script_path)] + args + result = subprocess.run( + cmd, capture_output=True, text=True, check=True + ) + + golden_path = self.testdata_dir / "golden_java-dataplex_1.86.0.txt" + with open(golden_path, "r") as f: + expected_output = f.read() + + self.assertEqual(result.stdout, expected_output) + + +if __name__ == "__main__": + unittest.main() diff --git a/.github/release-note-generation/testdata/golden_java-dataplex_1.86.0.txt b/.github/release-note-generation/testdata/golden_java-dataplex_1.86.0.txt new file mode 100644 index 000000000000..e18315a6c7ee --- /dev/null +++ b/.github/release-note-generation/testdata/golden_java-dataplex_1.86.0.txt @@ -0,0 +1,22 @@ +## [1.86.0](https://github.com/googleapis/google-cloud-java/compare/601ea6a901e...v1.82.0) (2026-03-20) + +### ⚠ BREAKING CHANGES + +* fix(dataplex)!: remove deprecated Explore-related methods and messages from public client libraries Breaking Changes: - Removed ContentService and all associated methods (CreateContent, UpdateContent, DeleteContent, GetContent, ListContent, etc.) and request/response messages. - Removed Environment and Session management methods from DataplexService (CreateEnvironment, UpdateEnvironment, DeleteEnvironment, ListEnvironments, GetEnvironment, ListSessions) and their associated messages. [googleapis/googleapis@69ca7ae](https://github.com/googleapis/googleapis/commit/69ca7ae2e66cd5623cafecc00971ef5397a4b258) ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) + +### Features + +* feat(dataplex): add DataProductService to manage data products and underlying data assets ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) +* feat(dataplex): add MetadataFeed to CatalogService for tracking metadata changes ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) +* feat(dataplex): add LookupContext to CatalogService for LLM-generated resource context ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) +* feat(dataplex): add support for attaching aspects to EntryLinks ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) +* feat(dataplex): add UpdateEntryLink and LookupEntryLinks methods to CatalogService ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) +* feat(dataplex): support OneTime triggers for DataScan operations ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) +* feat(dataplex): add debug query support to Data Quality rules ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) +* feat(dataplex): allow selective generation scope for Data Documentation scans ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) +* feat(dataplex): add SKIPPED state to DataScan catalog publishing status ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) + +### Documentation + +* docs(dataplex): remove deprecated metadata change warnings in Dataplex Catalog The DataProductService provides APIs to curate and manage collections of data assets as data products, enabling more organized sharing and usage for specific business cases. MetadataFeeds allow users to monitor metadata changes (CREATE, UPDATE, DELETE) within a specified scope (organization, project, or entry group) and publish them to Pub/Sub. CatalogService now includes a LookupContext API to provide LLM-generated context for resources, and enhanced EntryLink management, including the ability to attach aspects. DataScan operations now support a OneTime trigger for single-run scans, and Data Quality rules support DebugQueries to help investigate rule failures by returning diagnostic values. ([e29dd99](https://github.com/googleapis/google-cloud-java/commit/e29dd99559b04de62d2f91792a6352b5ce980438)) + diff --git a/.github/release-note-generation/testdata/golden_java-run_0.71.0.txt b/.github/release-note-generation/testdata/golden_java-run_0.71.0.txt new file mode 100644 index 000000000000..6b60c2402348 --- /dev/null +++ b/.github/release-note-generation/testdata/golden_java-run_0.71.0.txt @@ -0,0 +1,12 @@ +## [0.71.0](https://github.com/googleapis/google-cloud-java/compare/v1.64.0...v1.65.0) (2025-08-08) + +### ⚠ BREAKING CHANGES + +* fix!: [run] An existing resource_definition `cloudbuild.googleapis.com/WorkerPool` is removed ([9f28cd5](https://github.com/googleapis/google-cloud-java/commit/9f28cd5bcd951333fb2a3847edba015840b5029b)) +* fix!: [run] A type of an existing resource_reference option of the field `worker_pool` in message `.google.cloud.run.v2.SubmitBuildRequest` is changed from `cloudbuild.googleapis.com/WorkerPool` to `cloudbuild.googleapis.com/BuildWorkerPool` ([9f28cd5](https://github.com/googleapis/google-cloud-java/commit/9f28cd5bcd951333fb2a3847edba015840b5029b)) +* fix!: [run] A type of an existing resource_reference option of the field `worker_pool` in message `.google.cloud.run.v2.BuildConfig` is changed from `cloudbuild.googleapis.com/WorkerPool` to `cloudbuild.googleapis.com/BuildWorkerPool` ([9f28cd5](https://github.com/googleapis/google-cloud-java/commit/9f28cd5bcd951333fb2a3847edba015840b5029b)) + +### Features + +* feat: [run] Adding new resource tpye run.googleapis.com/WorkerPool. [googleapis/googleapis@0998e04](https://github.com/googleapis/googleapis/commit/0998e045cf83a1307ceb158e3da304bdaff5bb3a) ([9f28cd5](https://github.com/googleapis/google-cloud-java/commit/9f28cd5bcd951333fb2a3847edba015840b5029b)) + diff --git a/.github/release-note-generation/testdata/golden_root_1.85.0.txt b/.github/release-note-generation/testdata/golden_root_1.85.0.txt new file mode 100644 index 000000000000..b149d928ddfa --- /dev/null +++ b/.github/release-note-generation/testdata/golden_root_1.85.0.txt @@ -0,0 +1,46 @@ +## [1.85.0](https://github.com/googleapis/google-cloud-java/compare/6bef068b4d8...v1.85.0) (2026-04-13) + +### Features + +* feat: [chronicle] Add DataTableService to Chronicle v1 Client Libraries [googleapis/googleapis@e182cf5](https://github.com/googleapis/googleapis/commit/e182cf5152967047b763fd88f03094cfc836d194) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [vectorsearch] Added CMEK support ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [vectorsearch] Added UpdateIndex support ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [discoveryengine] add AUTO condition to SearchAsYouTypeSpec in v1alpha and v1beta [googleapis/googleapis@f01ba6b](https://github.com/googleapis/googleapis/commit/f01ba6bda9ef3a45069a699767ee7dc46f30028a) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [kms] support external-μ in the Digest [googleapis/googleapis@7fbf256](https://github.com/googleapis/googleapis/commit/7fbf256c9ee4e580bc2ffa825d8d41263d9462d3) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [kms] add a variable to SingleTenantHsmInstanceCreate to control whether future key portability features will be usable on the instance [googleapis/googleapis@bc600b8](https://github.com/googleapis/googleapis/commit/bc600b8b72913d10eaf1793a0845643fda94e4eb) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [databasecenter] Add support for BigQuery datasets and reservations ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [databasecenter] Introduce resource affiliation and lineage tracking ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [databasecenter] Enhance maintenance information with state, upcoming maintenance, and failure reasons [googleapis/googleapis@7f9e9ff](https://github.com/googleapis/googleapis/commit/7f9e9ff15720fac72c4ba3212343ba6e6102c920) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [shopping-merchant-inventories] a new field `base64_encoded_name` is added to the `LocalInventory` message ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [shopping-merchant-inventories] new field `base64_encoded_name` is added to the `RegionalInventory` message [googleapis/googleapis@6db5d2e](https://github.com/googleapis/googleapis/commit/6db5d2e6bc3a762fccebbcbcfb8681a6ebaf008e) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [dataplex] Allow Data Documentation DataScans to support BigQuery Dataset resources in addition to BigQuery table resources ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [dataproc] Add `Engine` field to support LightningEngine in clusters and add support for stop ttl [googleapis/googleapis@2da8658](https://github.com/googleapis/googleapis/commit/2da86587126416eb48d561cd800bb03afa2f501a) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [shopping-merchant-products] a new field `base64_encoded_name` is added to the `Product` message ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [shopping-merchant-products] new fields - `base64_encoded_name` and `base64_encoded_product` added to the `ProductInput` message ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [infra-manager] adding DeploymentGroups, you can now manage deployment of multiple module root dependencies in a single DAG [googleapis/googleapis@f5cb7af](https://github.com/googleapis/googleapis/commit/f5cb7afc40b63d52f43bc306cb9b64a87b681aea) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* feat: [appoptimize] new module for appoptimize (#12768) ([050187d](https://github.com/googleapis/google-cloud-java/commit/050187d934fc78139ec2790c04dd4c1e256591d4)) + +### Bug Fixes + +* fix: update appoptimize version to 0.0.1 to match released repo (#12782) ([80dfac6](https://github.com/googleapis/google-cloud-java/commit/80dfac6773bfe7e41e1d3f659fa5c9953a4fd83b)) +* fix(deps): update the Java code generator (gapic-generator-java) to 2.69.0 ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* fix(bqjdbc): lazily instantiate Statement in BigQueryDatabaseMetaData (#12752) ([72e5508](https://github.com/googleapis/google-cloud-java/commit/72e5508669ea48cde28f02adfeedfb05cd73fc57)) +* fix(gdch): support EC private keys (#1896) ([bf926fb](https://github.com/googleapis/google-cloud-java/commit/bf926fb23a0ee32b5563af7671af3776ca670126)) +* fix(auth): Address ClientSideCredentialAccessBoundary RefreshTask race condition (#12681) ([30088d2](https://github.com/googleapis/google-cloud-java/commit/30088d2140184b64e841b9864a2b9518f797a686)) + +### Documentation + +* docs: [vectorsearch] Updated documentation for listing locations ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* docs: [vectorsearch] Updated documentation for Collection.data_schema [googleapis/googleapis@8d0f6d8](https://github.com/googleapis/googleapis/commit/8d0f6d8615c72d1907aeec8984d68df50fb6b697) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* docs: [shopping-merchant-inventories] A comment for field `name` in message `.google.shopping.merchant.products.v1.LocalInventory` is changed ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* docs: [shopping-merchant-inventories] A comment for field `name` in message `.google.shopping.merchant.products.v1.RegionalInventory` is changed ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* docs: [dataplex] A comment for message `DataDocumentationResult` is changed ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* docs: [dataplex] A comment for field `table_result` in message `.google.cloud.dataplex.v1.DataDocumentationResult` is changed [googleapis/googleapis@1991351](https://github.com/googleapis/googleapis/commit/19913519dae24b82f58b8f1b43822c2c020a123c) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* docs: [network-management] Update comment for the `region` field in `RouteInfo` [googleapis/googleapis@66fcc02](https://github.com/googleapis/googleapis/commit/66fcc021fec9e5249e69da17068bea999f113622) chore: [dialogflow-cx] Add ruby_package to missing proto files in google-cloud-dialogflow-cx-v3 [googleapis/googleapis@b6669d7](https://github.com/googleapis/googleapis/commit/b6669d761c84c04682270ae5610106eb81ce1706) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* docs: [shopping-merchant-products] A comment for field `name` in message `.google.shopping.merchant.products.v1.ProductInput` is changed ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) +* docs: [shopping-merchant-products] A comment for field `name` in message `.google.shopping.merchant.products.v1.Product` is changed [googleapis/googleapis@2aba484](https://github.com/googleapis/googleapis/commit/2aba48492ae471bfb717f5e9c5a190b7cc1c6636) ([fc62b1e](https://github.com/googleapis/google-cloud-java/commit/fc62b1e80fa239ba8eec34ce1853e6c32126d9f4)) + +### Dependencies + +* build(deps): upgrade grpc-gcp to 1.10.0 (#12772) ([bb60a6e](https://github.com/googleapis/google-cloud-java/commit/bb60a6ea1a3481bd582e5c45503d2e578740e61c)) + diff --git a/.github/release-note-generation/unit_test.py b/.github/release-note-generation/unit_test.py index 9cb83b6253ab..852459333947 100644 --- a/.github/release-note-generation/unit_test.py +++ b/.github/release-note-generation/unit_test.py @@ -1,9 +1,11 @@ import unittest +import tempfile +import json +from pathlib import Path # Unit tests for split_release_note.py -from split_release_note import LibraryModule, create_changelog_entry, group_changes_by_api, ChangesOnApi -from pathlib import Path +from split_release_note import LibraryModule, create_changelog_entry, group_changes_by_api, ChangesOnApi, detect_modules dummy_module = LibraryModule( Path('release-note-generation/test/java-analyics-admin'), @@ -81,6 +83,31 @@ def test_group_changes_by_api(self): ['No change']), ['No change']) + def test_detect_modules_fallback(self): + with tempfile.TemporaryDirectory() as tmpdirname: + tmp_path = Path(tmpdirname) + module_path = tmp_path / "java-spanner" + module_path.mkdir() + + # Create minimal pom.xml + pom_path = module_path / "pom.xml" + with open(pom_path, "w") as f: + f.write('1.0.0') + + # Create .repo-metadata.json with api_shortname + metadata_path = module_path / ".repo-metadata.json" + with open(metadata_path, "w") as f: + json.dump({"api_shortname": "spanner"}, f) + + # Create CHANGELOG.md + changelog_path = module_path / "CHANGELOG.md" + changelog_path.touch() + + modules = detect_modules(tmp_path) + self.assertEqual(len(modules), 1) + self.assertEqual(modules[0].api_name, "spanner") + self.assertEqual(modules[0].version, "1.0.0") + if __name__ == "__main__": unittest.main() diff --git a/.github/release-please.yml b/.github/release-please.yml index b78b60cf07ac..ade9a12e0bae 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -46,3 +46,8 @@ branches: onDemand: true local: true localCloneDepth: 200 + - branch: datastore-2.x + releaseType: java-backport + onDemand: true + local: true + localCloneDepth: 200 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 4567dc3c1690..1d5d663d5df3 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -133,6 +133,23 @@ branchProtectionRules: - header-check - library_generation - unmanaged_dependency_check + - pattern: datastore-2.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - split-units (java-datastore, 8) + - split-units (java-datastore, 11) + - split-units (java-datastore, 17) + - split-units (java-datastore, 21) + - split-units (java-datastore, 25) + - split-clirr (java-datastore) + - cla/google + - lint + - 'Kokoro - Test: Integration' + - 'Kokoro - Test: Datastore Integration' + - 'Kokoro - Test: Datastore GraalVM Native Image' permissionRules: - team: yoshi-admins permission: admin diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e12a0dcf9b37..08784a7158ed 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,15 +31,14 @@ jobs: ci: ${{ steps.filter.outputs.ci }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: - # we want to run tests if source code is changed or the scripts - # used to run the unit tests filters: | src: - - '**/*.java' - - '**/pom.xml' + - '!(java-bigquery|java-bigquerystorage|java-datastore|java-logging-logback|java-logging|java-spanner|java-storage|google-auth-library-java)/**/*.java' + - '!(java-bigquery|java-bigquerystorage|java-datastore|java-logging-logback|java-logging|java-spanner|java-storage|google-auth-library-java)/**/pom.xml' + - 'pom.xml' ci: - '.github/workflows/ci.yaml' - '.kokoro/**' @@ -113,17 +112,65 @@ jobs: outputs: packages: ${{ steps.filter.outputs.changes }} steps: - - uses: dorny/paths-filter@v4 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: + # For each library, run CI in split repos where there are changes in: + # 1. Changes inside the split repo's module + # 2. Java code changes in upstream modules: Auth Library and Sdk-Platform-Java + # 3. Upstream dependency version changes: Shared-Deps and Gapic-Generator-Pom-Parent filters: | - java-bigquery: java-bigquery/** - java-bigquerystorage: java-bigquerystorage/** - java-datastore: java-datastore/** - java-logging-logback: java-logging-logback/** - java-logging: java-logging/** - java-spanner: java-spanner/** - java-storage: java-storage/** + google-auth-library-java: + - 'google-auth-library-java/**' + java-bigquery: + - 'java-bigquery/**' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' + java-bigquerystorage: + - 'java-bigquerystorage/**' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' + java-datastore: + - 'java-datastore/**' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' + java-logging-logback: + - 'java-logging-logback/**' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' + java-logging: + - 'java-logging/**' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' + java-spanner: + - 'java-spanner/**' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' + java-storage: + - 'java-storage/**' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' split-units: runs-on: ubuntu-latest needs: changes @@ -197,6 +244,49 @@ jobs: JOB_TYPE: test JOB_NAME: units-8-runtime-${{matrix.java}} working-directory: ${{matrix.package}} + split-clirr: + runs-on: ubuntu-latest + needs: changes + strategy: + matrix: + package: ${{ fromJSON(needs.changes.outputs.packages) }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + - run: .kokoro/build.sh + env: + BUILD_SUBDIR: ${{matrix.package}} + JOB_TYPE: clirr + JOB_NAME: clirr-${{matrix.package}} + split-dependencies: + runs-on: ubuntu-latest + needs: changes + strategy: + matrix: + package: ${{ fromJSON(needs.changes.outputs.packages) }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - run: .kokoro/dependencies.sh + env: + BUILD_SUBDIR: ${{matrix.package}} + required: + needs: [ changes, split-units, split-clirr, split-dependencies ] + name: conditional-required-check + if: ${{ always() }} # Always run even if any "needs" jobs fail + runs-on: ubuntu-22.04 + steps: + - name: Fail if any previous failure + if: ${{ needs.changes.outputs.packages != '[]' && contains(needs.*.result, 'failure') }} + run: exit 1 + - name: Success otherwise + run: echo "Success!" windows: runs-on: windows-latest steps: @@ -272,41 +362,14 @@ jobs: - name: validate generation configuration shell: bash run: | - docker run \ - --rm \ + bash generation/run_generator_docker.sh "${library_generation_image_tag}" "${{ github.base_ref || 'main' }}" \ + -e GENERATOR_VERSION="${library_generation_image_tag}" \ --quiet \ -u "$(id -u):$(id -g)" \ -v "$(pwd):${workspace_name}" \ --entrypoint python \ - gcr.io/cloud-devrel-public-resources/java-library-generation:"${library_generation_image_tag}" \ + -- \ /src/library_generation/cli/entry_point.py validate-generation-config env: library_generation_image_tag: 2.68.0 workspace_name: /workspace - -# TODO: Uncomment the needed Github Actions -# dependencies: -# runs-on: ubuntu-latest -# strategy: -# matrix: -# java: [8, 11, 17] -# steps: -# - uses: actions/checkout@v3 -# - uses: actions/setup-java@v3 -# with: -# distribution: zulu -# java-version: ${{matrix.java}} -# - run: java -version -# - run: .kokoro/dependencies.sh -# clirr: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v3 -# - uses: actions/setup-java@v3 -# with: -# distribution: zulu -# java-version: 8 -# - run: java -version -# - run: .kokoro/build.sh -# env: -# JOB_TYPE: clirr diff --git a/.github/workflows/create_additional_release_tag.yaml b/.github/workflows/create_additional_release_tag.yaml new file mode 100644 index 000000000000..b0a776681c34 --- /dev/null +++ b/.github/workflows/create_additional_release_tag.yaml @@ -0,0 +1,38 @@ +name: Create additional tags for each release + +on: + release: + types: [published] + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + permissions: + # Permission to create tag + # https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-contents + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - name: Set up Git + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + - name: Fetch all tags + run: git fetch --tags + - name: Create additional tags + shell: bash + run: | + ARTIFACT_IDS=('google-cloud-shared-dependencies' 'api-common' 'gax') + for ARTIFACT_ID in "${ARTIFACT_IDS[@]}"; do + VERSION=$(grep "^${ARTIFACT_ID}:" versions.txt | cut -d':' -f2 | tr -d '[:space:]') + TAG_NAME="${ARTIFACT_ID}/v$VERSION" + if git show-ref --tags | grep -q "refs/tags/$TAG_NAME"; then + echo "Tag $TAG_NAME already exists. Skipping." + continue + fi + git tag $TAG_NAME + git push origin $TAG_NAME + done diff --git a/.github/workflows/generated_files_sync.yaml b/.github/workflows/generated_files_sync.yaml index 3143a317c9e3..625a1d97106e 100644 --- a/.github/workflows/generated_files_sync.yaml +++ b/.github/workflows/generated_files_sync.yaml @@ -17,7 +17,7 @@ on: pull_request: name: generation diff env: - library_generation_image_tag: 2.71.0 # {x-version-update:gapic-generator-java:current} + library_generation_image_tag: 2.72.0 # {x-version-update:gapic-generator-java:current} jobs: root-pom: # root pom.xml does not have diff from generated one @@ -27,13 +27,12 @@ jobs: - name: Generate root pom.xml file shell: bash run: | - docker run \ - --rm \ + bash generation/run_generator_docker.sh "${library_generation_image_tag}" "${{ github.base_ref }}" \ --quiet \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/workspace" \ --entrypoint python \ - gcr.io/cloud-devrel-public-resources/java-library-generation:"${library_generation_image_tag}" \ + -- \ /src/library_generation/cli/generate_monorepo_root_pom.py \ generate \ --repository-path=/workspace @@ -48,13 +47,12 @@ jobs: - name: Generate gapic-libraries-bom/pom.xml shell: bash run: | - docker run \ - --rm \ + bash generation/run_generator_docker.sh "${library_generation_image_tag}" "${{ github.base_ref }}" \ --quiet \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/workspace" \ --entrypoint python \ - gcr.io/cloud-devrel-public-resources/java-library-generation:"${library_generation_image_tag}" \ + -- \ /src/library_generation/cli/generate_monorepo_gapic_bom.py \ generate \ --repository-path=/workspace \ @@ -177,6 +175,7 @@ jobs: |grep --invert-match samples \ |grep --invert-match benchmark \ |grep --invert-match grafeas \ + |grep --invert-match '/tools/' \ |grep --invert-match 'cloud-build.*v2' \ |grep --invert-match 'google/monitoring/v3/DroppedLabelsOuterClass.java' \ |grep --invert-match 'google/cloud/policytroubleshooter/v1/Explanations.java') diff --git a/.github/workflows/google-auth-library-java-ci.yaml b/.github/workflows/google-auth-library-java-ci.yaml index 80fc12a45aed..21373cd62925 100644 --- a/.github/workflows/google-auth-library-java-ci.yaml +++ b/.github/workflows/google-auth-library-java-ci.yaml @@ -28,12 +28,13 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | library: - 'google-auth-library-java/**' + - '.github/workflows/google-auth-library-java-ci.yaml' units-logging: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} @@ -54,3 +55,41 @@ jobs: BUILD_SUBDIR: google-auth-library-java JOB_TYPE: test SUREFIRE_JVM_OPT: "-P '!slf4j2x,slf4j2x-test'" + clirr: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: clirr + BUILD_SUBDIR: google-auth-library-java + dependencies: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - run: .kokoro/dependencies.sh + + required: + needs: [ units-logging, clirr, dependencies ] + name: conditional-required-check + if: ${{ always() }} # Always run even if any "needs" jobs fail + runs-on: ubuntu-22.04 + steps: + - name: Fail if any previous failure + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 + - name: Success otherwise + run: echo "Success!" \ No newline at end of file diff --git a/.github/workflows/hermetic-build-scripts-ci.yaml b/.github/workflows/hermetic-build-scripts-ci.yaml new file mode 100644 index 000000000000..19c4434980c6 --- /dev/null +++ b/.github/workflows/hermetic-build-scripts-ci.yaml @@ -0,0 +1,110 @@ +on: + pull_request: + +name: hermetic build scripts +jobs: + filter: + runs-on: ubuntu-latest + outputs: + library: ${{ steps.filter.outputs.library }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 + id: filter + with: + filters: | + library: + - 'sdk-platform-java/hermetic_build/**' + - 'sdk-platform-java/.cloudbuild/library_generation/**' + - '.github/workflows/hermetic-build-scripts-ci.yaml' + library-generation-unit-tests: + needs: filter + if: needs.filter.outputs.library == 'true' + runs-on: ubuntu-22.04 + name: hermetic build units (python) + defaults: + run: + working-directory: sdk-platform-java + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: install python modules and dependencies + shell: bash + run: | + set -ex + pip install --upgrade pip + pip install --require-hashes -r hermetic_build/common/requirements.txt + pip install hermetic_build/common + pip install --require-hashes -r hermetic_build/library_generation/requirements.txt + pip install hermetic_build/library_generation + pip install --require-hashes -r hermetic_build/release_note_generation/requirements.txt + pip install hermetic_build/release_note_generation + - name: Run shell unit tests + run: | + set -x + hermetic_build/library_generation/tests/generate_library_unit_tests.sh + - name: Run python unit tests + run: | + set -x + python -m unittest discover -s hermetic_build -p "*unit_tests.py" + library-generation-lint-shell: + needs: filter + if: needs.filter.outputs.library == 'true' + runs-on: ubuntu-22.04 + name: hermetic build lint (shell) + defaults: + run: + working-directory: sdk-platform-java + steps: + - uses: actions/checkout@v4 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@2.0.0 + with: + scandir: 'sdk-platform-java/hermetic_build' + format: tty + severity: error + ignore_paths: + .kokoro + library-generation-lint-python: + needs: filter + if: needs.filter.outputs.library == 'true' + runs-on: ubuntu-22.04 + name: hermetic build lint (python) + defaults: + run: + working-directory: sdk-platform-java + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: install python dependencies + shell: bash + run: | + set -ex + pip install --upgrade pip + pip install --require-hashes -r hermetic_build/common/requirements.txt + pip install hermetic_build/common + pip install --require-hashes -r hermetic_build/library_generation/requirements.txt + pip install hermetic_build/library_generation + pip install --require-hashes -r hermetic_build/release_note_generation/requirements.txt + pip install hermetic_build/release_note_generation + - name: Lint + shell: bash + run: | + # exclude generated golden files + # exclude owlbot until further refaction + black --check hermetic_build --exclude "(library_generation/tests/resources/goldens)" + required: + needs: [ library-generation-unit-tests, library-generation-lint-shell, library-generation-lint-python ] + name: conditional-required-check + if: ${{ always() }} # Always run even if any "needs" jobs fail + runs-on: ubuntu-22.04 + steps: + - name: Fail if any previous failure + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 + - name: Success otherwise + run: echo "Success!" \ No newline at end of file diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 74fec93e13d8..74b6488c28c3 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -20,6 +20,9 @@ on: env: REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} GITHUB_REPOSITORY: ${{ github.repository }} + # {x-version-update-start:gapic-generator-java:current} + GENERATOR_VERSION: 2.72.0 + # {x-version-update-end} jobs: library_generation: runs-on: ubuntu-latest @@ -44,4 +47,5 @@ jobs: head_ref: ${{ github.head_ref }} token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }} force_regenerate_all: ${{ github.event.pull_request.head.ref == 'generate-libraries-main' }} - image_tag: 2.71.0 # {x-version-update:gapic-generator-java:current} + showcase_mode: true + image_tag: ${{ env.GENERATOR_VERSION }} diff --git a/.github/workflows/java-bigquery-scorecard.yml b/.github/workflows/java-bigquery-scorecard.yml index 12b3ccc56bfa..d2063b876cce 100644 --- a/.github/workflows/java-bigquery-scorecard.yml +++ b/.github/workflows/java-bigquery-scorecard.yml @@ -26,7 +26,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/java-spanner-integration-tests-against-emulator.yaml b/.github/workflows/java-spanner-integration-tests-against-emulator.yaml index f43cc1c5bf21..36f2f467f6b5 100644 --- a/.github/workflows/java-spanner-integration-tests-against-emulator.yaml +++ b/.github/workflows/java-spanner-integration-tests-against-emulator.yaml @@ -11,7 +11,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/java-spanner-jdbc-ci.yaml b/.github/workflows/java-spanner-jdbc-ci.yaml index 03e2c8a8f4a1..5d114841a7d2 100644 --- a/.github/workflows/java-spanner-jdbc-ci.yaml +++ b/.github/workflows/java-spanner-jdbc-ci.yaml @@ -28,12 +28,18 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | library: - 'java-spanner-jdbc/**' + - '.github/workflows/java-spanner-jdbc-ci.yaml' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' units: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} @@ -98,16 +104,12 @@ jobs: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} runs-on: ubuntu-latest - strategy: - matrix: - java: [17] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: distribution: temurin - java-version: ${{matrix.java}} - - run: java -version + java-version: 17 - run: .kokoro/dependencies.sh javadoc: needs: filter @@ -141,3 +143,14 @@ jobs: JOB_TYPE: lint HEAD_SHA: ${{ github.event.pull_request.head.sha }} BASE_SHA: ${{ github.event.pull_request.base.sha }} + required: + needs: [ units, units-java8, windows, dependencies, javadoc, lint ] + name: conditional-required-check + if: ${{ always() }} # Always run even if any "needs" jobs fail + runs-on: ubuntu-22.04 + steps: + - name: Fail if any previous failure + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 + - name: Success otherwise + run: echo "Success!" diff --git a/.github/workflows/java-spanner-jdbc-integration-tests-against-emulator.yaml b/.github/workflows/java-spanner-jdbc-integration-tests-against-emulator.yaml index cddffc081038..896957eeaddb 100644 --- a/.github/workflows/java-spanner-jdbc-integration-tests-against-emulator.yaml +++ b/.github/workflows/java-spanner-jdbc-integration-tests-against-emulator.yaml @@ -13,7 +13,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/java-spanner-jdbc-quickperf.yaml b/.github/workflows/java-spanner-jdbc-quickperf.yaml index df72be92aa90..e1759fb32dd6 100644 --- a/.github/workflows/java-spanner-jdbc-quickperf.yaml +++ b/.github/workflows/java-spanner-jdbc-quickperf.yaml @@ -25,7 +25,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/java-spanner-jdbc-sample-tests.yml b/.github/workflows/java-spanner-jdbc-sample-tests.yml index b3f74ed088b8..a465a243630f 100644 --- a/.github/workflows/java-spanner-jdbc-sample-tests.yml +++ b/.github/workflows/java-spanner-jdbc-sample-tests.yml @@ -25,7 +25,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/java-spanner-jdbc-spring-data-jdbc-sample.yaml b/.github/workflows/java-spanner-jdbc-spring-data-jdbc-sample.yaml index 78e014263f6c..385e5b2659a9 100644 --- a/.github/workflows/java-spanner-jdbc-spring-data-jdbc-sample.yaml +++ b/.github/workflows/java-spanner-jdbc-spring-data-jdbc-sample.yaml @@ -25,7 +25,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/java-spanner-jdbc-spring-data-mybatis-sample.yaml b/.github/workflows/java-spanner-jdbc-spring-data-mybatis-sample.yaml index 3673de7259cc..e91ac04b47a1 100644 --- a/.github/workflows/java-spanner-jdbc-spring-data-mybatis-sample.yaml +++ b/.github/workflows/java-spanner-jdbc-spring-data-mybatis-sample.yaml @@ -25,7 +25,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/java-storage-nio-ci.yaml b/.github/workflows/java-storage-nio-ci.yaml index ca1c4fecf691..e53a05764dcb 100644 --- a/.github/workflows/java-storage-nio-ci.yaml +++ b/.github/workflows/java-storage-nio-ci.yaml @@ -28,12 +28,18 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | library: - 'java-storage-nio/**' + - '.github/workflows/java-storage-nio-ci.yaml' + - 'google-auth-library-java/**/*.java' + - 'google-auth-library-java/**/pom.xml' + - 'sdk-platform-java/**/*.java' + - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' + - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' units: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} @@ -98,16 +104,12 @@ jobs: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} runs-on: ubuntu-latest - strategy: - matrix: - java: [17] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: distribution: temurin - java-version: ${{matrix.java}} - - run: java -version + java-version: 17 - run: .kokoro/dependencies.sh javadoc: needs: filter @@ -141,3 +143,14 @@ jobs: JOB_TYPE: lint HEAD_SHA: ${{ github.event.pull_request.head.sha }} BASE_SHA: ${{ github.event.pull_request.base.sha }} + required: + needs: [ units, units-java8, windows, dependencies, javadoc, lint ] + name: conditional-required-check + if: ${{ always() }} # Always run even if any "needs" jobs fail + runs-on: ubuntu-22.04 + steps: + - name: Fail if any previous failure + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 + - name: Success otherwise + run: echo "Success!" diff --git a/.github/workflows/sdk-platform-java-analyze_dependency.yaml b/.github/workflows/sdk-platform-java-analyze_dependency.yaml index 89e67a44fbae..6e4b8a45d53b 100644 --- a/.github/workflows/sdk-platform-java-analyze_dependency.yaml +++ b/.github/workflows/sdk-platform-java-analyze_dependency.yaml @@ -26,7 +26,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/sdk-platform-java-ci.yaml b/.github/workflows/sdk-platform-java-ci.yaml index d2d4e61038cc..2ec5c3b86c9c 100644 --- a/.github/workflows/sdk-platform-java-ci.yaml +++ b/.github/workflows/sdk-platform-java-ci.yaml @@ -3,7 +3,7 @@ on: branches: - main pull_request: -name: sdk-platform-java-ci +name: sdk-platform-java jobs: filter: runs-on: ubuntu-latest @@ -11,20 +11,22 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | library: - 'sdk-platform-java/**' - 'google-auth-library-java/**' - build: + - '.github/workflows/sdk-platform-java-ci.yaml' + units: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} runs-on: ubuntu-22.04 + name: sdk-platform-java units strategy: matrix: - java: [ 11, 17 ] + java: [ 11, 17, 21, 25 ] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -50,121 +52,41 @@ jobs: GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS: true GOOGLE_SDK_JAVA_LOGGING: true working-directory: sdk-platform-java - - run: bazelisk version - - name: Install all modules using Java 11 - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: install - - name: Integration Tests - run: | - bazelisk --batch test //sdk-platform-java/test/integration/... - - name: Gradle Build Generated Storage Client Library - run: | - echo "Building Storage lib from generated source..." - mkdir /tmp/java-storage - bazelisk --batch build @com_google_googleapis//google/storage/v2:google-cloud-storage-v2-java - tar zxvf bazel-bin/external/com_google_googleapis/google/storage/v2/google-cloud-storage-v2-java.tar.gz -C /tmp/java-storage - pushd /tmp/java-storage/google-cloud-storage-v2-java - ./gradlew clean build publishToMavenLocal sourcesJar allJars - popd - - name: Gradle Build Generated Compute Client Library - run: | - echo "Building Compute lib from generated source..." - mkdir /tmp/java-compute - bazelisk --batch build @com_google_googleapis//google/cloud/compute/v1small:google-cloud-compute-small-v1-java - tar zxvf bazel-bin/external/com_google_googleapis/google/cloud/compute/v1small/google-cloud-compute-small-v1-java.tar.gz -C /tmp/java-compute - pushd /tmp/java-compute/google-cloud-compute-small-v1-java - ./gradlew clean build publishToMavenLocal sourcesJar allJars - popd - build-java-21: + + clirr: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} - name: "build(21) except self-service clients" - # Support for Java 21 is available for all use cases except self-service clients. runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: 21 - distribution: temurin - cache: maven - - run: java -version - - name: Unit Tests - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: test - # The `envVarTest` profile runs tests that require an environment variable - - name: Env Var Tests - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: test - SUREFIRE_JVM_OPT: '-PenvVarTest' - GOOGLE_CLOUD_UNIVERSE_DOMAIN: random.com - GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS: true - GOOGLE_SDK_JAVA_LOGGING: true - - run: bazelisk version - - name: Install all modules using Java 11 - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: install - - name: Integration Tests - run: | - bazelisk --batch test //sdk-platform-java/test/integration/... - build-java-25: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: clirr + BUILD_SUBDIR: sdk-platform-java + + dependencies: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} - name: "build(25) except self-service clients" - # Support for Java 25 is available for all use cases except self-service clients. - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: 25 - distribution: temurin - cache: maven - - run: java -version - - name: Unit Tests - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: test - # The `envVarTest` profile runs tests that require an environment variable - - name: Env Var Tests - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: test - SUREFIRE_JVM_OPT: '-PenvVarTest' - GOOGLE_CLOUD_UNIVERSE_DOMAIN: random.com - GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS: true - GOOGLE_SDK_JAVA_LOGGING: true - - run: bazelisk version - - name: Install all modules using Java 11 - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: install - - name: Integration Tests - # note need to set shouldInstallTestSecurityManager=false due to https://github.com/bazelbuild/bazel/issues/24354 - run: | - bazelisk --batch test //sdk-platform-java/test/integration/... --jvmopt=-Dcom.google.testing.junit.runner.shouldInstallTestSecurityManager=false - build-java8-except-gapic-generator-java: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - run: .kokoro/dependencies.sh + env: + BUILD_SUBDIR: sdk-platform-java + + sdk-platform-java-8: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} - name: "build(8) except for gapic-generator-java" + name: "sdk-platform-java units (8)" runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -179,7 +101,13 @@ jobs: with: java-version: 17 distribution: temurin - - name: Compile with Java 17 and run tests with Java 8 + - name: Install all modules using Java 17 + shell: bash + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install + - name: Run tests with Java 8 shell: bash run: | set -x @@ -191,7 +119,7 @@ jobs: -Djvm="${JAVA8_HOME}/bin/java" working-directory: sdk-platform-java # The `envVarTest` profile runs tests that require an environment variable - - name: Compile with Java 17 and run tests with Java 8 (Env Var Tests) + - name: Run tests with Java 8 (Env Var Tests) shell: bash run: | set -x @@ -210,38 +138,77 @@ jobs: GOOGLE_SDK_JAVA_LOGGING: true working-directory: sdk-platform-java - build-java8-gapic-generator-java: + bazel: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} - name: "build(8) for gapic-generator-java" runs-on: ubuntu-22.04 + name: sdk-platform-java integration + strategy: + matrix: + java: [ 11, 17, 21 ] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: - java-version: 11 + java-version: ${{ matrix.java }} distribution: temurin cache: maven - - name: Install all modules using Java 11 + - run: bazelisk version + - name: Install all modules shell: bash run: .kokoro/build.sh env: BUILD_SUBDIR: sdk-platform-java JOB_TYPE: install - - uses: actions/setup-java@v3 + - name: Integration Tests + run: | + bazelisk --batch test //sdk-platform-java/test/integration/... --test_output=errors + + bazel-25: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-22.04 + name: sdk-platform-java integration (25) + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - java-version: 8 + java-version: 25 distribution: temurin - - run: java -version - - name: Run tests in Java 8 with the source compiled in Java 11 for gapic-generator-java - shell: bash - run: | - mvn -V -B -ntp surefire:test --projects 'gapic-generator-java' - working-directory: sdk-platform-java + cache: maven - run: bazelisk version + - name: Install all modules + shell: bash + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install - name: Integration Tests run: | - bazelisk --batch test //sdk-platform-java/test/integration/... + bazelisk --batch test //sdk-platform-java/test/integration/... --jvmopt=-Dcom.google.testing.junit.runner.shouldInstallTestSecurityManager=false + + self-service: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-22.04 + name: sdk-platform-java self-service clients + strategy: + matrix: + java: [ 11, 17 ] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: temurin + cache: maven + - run: bazelisk version + - name: Install all modules using Java 11 + shell: bash + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install - name: Gradle Build Generated Storage Client Library run: | echo "Building Storage lib from generated source..." @@ -261,10 +228,11 @@ jobs: ./gradlew clean build publishToMavenLocal sourcesJar allJars popd - build-java8-showcase: + + gapic-generator-java: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} - name: "build(8) for showcase" + name: "gapic-generator-java (8)" runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -284,178 +252,67 @@ jobs: java-version: 8 distribution: temurin - run: java -version - - name: Parse showcase version - working-directory: sdk-platform-java/java-showcase/gapic-showcase - run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" - - name: Install showcase server - run: | - sudo mkdir -p /usr/src/showcase - sudo chown -R ${USER} /usr/src/ - curl --location https://github.com/googleapis/gapic-showcase/releases/download/v${{env.SHOWCASE_VERSION}}/gapic-showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz --output /usr/src/showcase/showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz - cd /usr/src/showcase/ - tar -xf showcase-* - ./gapic-showcase run & - cd - - - name: Showcase integration tests - working-directory: sdk-platform-java/java-showcase - run: | - mvn verify \ - -P enable-integration-tests \ - --batch-mode \ - --no-transfer-progress - # The `slf4j1_logback` profile brings logging dependency and compiles logging tests, require env var to be set - - name: Showcase integration tests - Logging SLF4J 1.x - working-directory: sdk-platform-java/java-showcase - run: | - mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j1_logback' \ - --batch-mode \ - --no-transfer-progress - # Set the Env Var for this step only - env: - GOOGLE_SDK_JAVA_LOGGING: true - # The `disabledLogging` profile tests logging disabled when logging dependency present, - # do not set env var for this step - - name: Showcase integration tests - Logging disabed - working-directory: sdk-platform-java/java-showcase - run: | - mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,disabledLogging' \ - --batch-mode \ - --no-transfer-progress - - name: Showcase integration tests - Protobuf gen code 3.25.8 - working-directory: sdk-platform-java/java-showcase-3.25.8 - run: | - mvn verify \ - -P enable-integration-tests \ - --batch-mode \ - --no-transfer-progress - - name: Showcase integration tests - Protobuf gen code 3.21.0 - working-directory: sdk-platform-java/java-showcase-3.21.0 - run: | - mvn verify \ - -P enable-integration-tests \ - --batch-mode \ - --no-transfer-progress - showcase: - needs: filter - if: ${{ needs.filter.outputs.library == 'true' }} - runs-on: ubuntu-22.04 - strategy: - matrix: - java: [ 11, 17, 21, 25 ] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: ${{ matrix.java }} - distribution: temurin - - run: mvn -version - - name: Install Maven modules + - name: Run tests in Java 8 with the source compiled in Java 11 for gapic-generator-java shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: test - - name: Showcase golden tests - working-directory: sdk-platform-java/java-showcase run: | - mvn test \ - -P enable-golden-tests \ - --batch-mode \ - --no-transfer-progress - - name: Parse showcase version - working-directory: sdk-platform-java/java-showcase/gapic-showcase - run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" - - name: Install showcase server - run: | - sudo mkdir -p /usr/src/showcase - sudo chown -R ${USER} /usr/src/ - curl --location https://github.com/googleapis/gapic-showcase/releases/download/v${{env.SHOWCASE_VERSION}}/gapic-showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz --output /usr/src/showcase/showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz - cd /usr/src/showcase/ - tar -xf showcase-* - ./gapic-showcase run & - cd - - - name: Showcase integration tests - working-directory: sdk-platform-java/java-showcase - run: | - mvn verify \ - -P enable-integration-tests \ - --batch-mode \ - --no-transfer-progress - # The `slf4j2_logback` profile brings logging dependency and compiles logging tests, require env var to be set - - name: Showcase integration tests - Logging SLF4J 2.x - working-directory: sdk-platform-java/java-showcase - run: | - mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j2_logback' \ - --batch-mode \ - --no-transfer-progress - # Set the Env Var for this step only - env: - GOOGLE_SDK_JAVA_LOGGING: true - # The `slf4j1_logback` profile brings logging dependency and compiles logging tests, require env var to be set - - name: Showcase integration tests - Logging SLF4J 1.x - working-directory: sdk-platform-java/java-showcase + mvn -V -B -ntp surefire:test --projects 'gapic-generator-java' + working-directory: sdk-platform-java + - run: bazelisk version + - name: Integration Tests run: | - mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j1_logback' \ - --batch-mode \ - --no-transfer-progress - # Set the Env Var for this step only - env: - GOOGLE_SDK_JAVA_LOGGING: true - # The `disabledLogging` profile tests logging disabled when logging dependency present, - # do not set env var for this step - - name: Showcase integration tests - Logging disabed - working-directory: sdk-platform-java/java-showcase + bazelisk --batch test //sdk-platform-java/test/integration/... + - name: Gradle Build Generated Storage Client Library run: | - mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,disabledLogging' \ - --batch-mode \ - --no-transfer-progress - - name: Showcase integration tests - Protobuf 3 compatibility with third party library Tensorflow - working-directory: sdk-platform-java/java-showcase + echo "Building Storage lib from generated source..." + mkdir /tmp/java-storage + bazelisk --batch build @com_google_googleapis//google/storage/v2:google-cloud-storage-v2-java + tar zxvf bazel-bin/external/com_google_googleapis/google/storage/v2/google-cloud-storage-v2-java.tar.gz -C /tmp/java-storage + pushd /tmp/java-storage/google-cloud-storage-v2-java + ./gradlew clean build publishToMavenLocal sourcesJar allJars + popd + - name: Gradle Build Generated Compute Client Library run: | - mvn clean verify -P 'enable-integration-tests,protobuf3,showcase' \ - --batch-mode \ - --no-transfer-progress - - showcase-clirr: + echo "Building Compute lib from generated source..." + mkdir /tmp/java-compute + bazelisk --batch build @com_google_googleapis//google/cloud/compute/v1small:google-cloud-compute-small-v1-java + tar zxvf bazel-bin/external/com_google_googleapis/google/cloud/compute/v1small/google-cloud-compute-small-v1-java.tar.gz -C /tmp/java-compute + pushd /tmp/java-compute/google-cloud-compute-small-v1-java + ./gradlew clean build publishToMavenLocal sourcesJar allJars + popd + + java8-compatibility: needs: filter - if: ${{ (needs.filter.outputs.library == 'true') && github.base_ref != '' }} # Only execute on pull_request trigger event - runs-on: ubuntu-22.04 + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest steps: - - name: Checkout @ target branch - uses: actions/checkout@v4 - with: - ref: ${{ github.base_ref }} - - uses: actions/setup-java@v4 - with: - java-version: 17 - distribution: temurin - cache: maven - - name: Install Maven modules - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: install - - name: Install showcase to local maven repository - run: | - mvn install -B -ntp -T 1C -DskipTests - SHOWCASE_CLIENT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) - echo "SHOWCASE_CLIENT_VERSION=$SHOWCASE_CLIENT_VERSION" >> "$GITHUB_ENV" - working-directory: sdk-platform-java/java-showcase - - name: Checkout sdk-platform-java @ PR merge commit - uses: actions/checkout@v3 - - name: Install sdk-platform-java @ PR merge commit - shell: bash - run: .kokoro/build.sh - env: - JOB_TYPE: install - BUILD_SUBDIR: sdk-platform-java - # Showcase golden test ensures that src changes are already reflected in the PR. - - name: Clirr check - working-directory: sdk-platform-java/java-showcase - run: | - mvn versions:set -B -ntp -DnewVersion=local - mvn clirr:check -B -ntp -DcomparisonVersion=$SHOWCASE_CLIENT_VERSION + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: temurin + cache: maven + - name: Install sdk-platform-modules to local Maven repository + shell: bash + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install + - name: Check Java 8 compatibility for class files + shell: bash + run: | + find . -type f -name "*.class" -path "*/classes/*" \ + -not -path "*/grpc-*/*" \ + -not -path "*/proto-*/*" \ + -not -path "*/gapic-generator-java/*" -print |\ + while IFS= read -r class_file; do + version=$(javap -v "${class_file}" | grep "major version" | cut -d ' ' -f 5) + if [[ "${version}" != "52" ]]; then + echo "${class_file} is not compatible with Java 8." + exit 1 + fi + done + echo "All class files are compatible with Java 8." + working-directory: sdk-platform-java gapic-generator-java-bom: needs: filter diff --git a/.github/workflows/sdk-platform-java-create_additional_release_tag.yaml b/.github/workflows/sdk-platform-java-create_additional_release_tag.yaml deleted file mode 100644 index bc8d533d6524..000000000000 --- a/.github/workflows/sdk-platform-java-create_additional_release_tag.yaml +++ /dev/null @@ -1,55 +0,0 @@ -name: sdk-platform-java Create additional tags for each release - -on: - release: - types: [published] - workflow_dispatch: - -env: - BUILD_SUBDIR: sdk-platform-java -jobs: - filter: - runs-on: ubuntu-latest - outputs: - library: ${{ steps.filter.outputs.library }} - steps: - - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 - id: filter - with: - filters: | - library: - - 'sdk-platform-java/**' - build: - needs: filter - if: ${{ needs.filter.outputs.library == 'true' }} - runs-on: ubuntu-latest - permissions: - # Permission to create tag - # https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-contents - contents: write - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: Set up Git - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - - name: Fetch all tags - run: git fetch --tags - - name: Create additional tags - shell: bash - run: | - ARTIFACT_IDS=('google-cloud-shared-dependencies' 'api-common' 'gax') - for ARTIFACT_ID in "${ARTIFACT_IDS[@]}"; do - VERSION=$(grep "^${ARTIFACT_ID}:" versions.txt | cut -d':' -f2 | tr -d '[:space:]') - TAG_NAME="${ARTIFACT_ID}/v$VERSION" - if git show-ref --tags | grep -q "refs/tags/$TAG_NAME"; then - echo "Tag $TAG_NAME already exists. Skipping." - continue - fi - git tag $TAG_NAME - git push origin $TAG_NAME - done diff --git a/.github/workflows/sdk-platform-java-dependency_compatibility_test.yaml b/.github/workflows/sdk-platform-java-dependency_compatibility_test.yaml index 31e1dece4a04..ea21d5ab901e 100644 --- a/.github/workflows/sdk-platform-java-dependency_compatibility_test.yaml +++ b/.github/workflows/sdk-platform-java-dependency_compatibility_test.yaml @@ -23,12 +23,14 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | library: - 'sdk-platform-java/**' + - 'google-auth-library-java/**' + - '.github/workflows/sdk-platform-java-dependency-compatibility-test.yaml' dependency-compatibility-test: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} @@ -70,7 +72,7 @@ jobs: # Set up local showcase server to run the showcase ITs - name: Parse showcase version - working-directory: sdk-platform-java/java-showcase/gapic-showcase + working-directory: java-showcase/gapic-showcase run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" - name: Install showcase server run: | @@ -89,8 +91,8 @@ jobs: # Need to cd out of the directory to get the scripts as this step is run inside the java-showcase directory run: | if [[ -n "${{ env.DEPENDENCIES_LIST }}" ]]; then - ../.github/scripts/test_dependency_compatibility.sh -l ${{ env.DEPENDENCIES_LIST }} + ../sdk-platform-java/.github/scripts/test_dependency_compatibility.sh -l ${{ env.DEPENDENCIES_LIST }} else - ../.github/scripts/test_dependency_compatibility.sh -f ../dependencies.txt + ../sdk-platform-java/.github/scripts/test_dependency_compatibility.sh -f ../sdk-platform-java/dependencies.txt fi - working-directory: sdk-platform-java/java-showcase + working-directory: java-showcase diff --git a/.github/workflows/sdk-platform-java-downstream.yaml b/.github/workflows/sdk-platform-java-downstream.yaml index 9a4b4ced3669..1180a801ce25 100644 --- a/.github/workflows/sdk-platform-java-downstream.yaml +++ b/.github/workflows/sdk-platform-java-downstream.yaml @@ -17,12 +17,15 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | library: - 'sdk-platform-java/**' + - 'google-auth-library-java/**' + - .kokoro/downstream-compatibility.sh + - .github/workflows/sdk-platform-java-downstream.yaml downstream-compatibility: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} @@ -53,6 +56,7 @@ jobs: downstream-compatibility-spring-generator: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} + name: "downstream-compatibility (spring-cloud-gcp)" runs-on: ubuntu-22.04 strategy: fail-fast: false @@ -69,3 +73,14 @@ jobs: sudo apt-get -y install libxml2-utils - name: Perform downstream compatibility testing run: .kokoro/downstream-compatibility-spring.sh + required: + needs: [ downstream-compatibility, downstream-compatibility-spring-generator ] + name: conditional-required-check + if: ${{ always() }} # Always run even if any "needs" jobs fail + runs-on: ubuntu-22.04 + steps: + - name: Fail if any previous failure + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 + - name: Success otherwise + run: echo "Success!" diff --git a/.github/workflows/sdk-platform-java-downstream_unmanaged_dependency_check.yaml b/.github/workflows/sdk-platform-java-downstream_unmanaged_dependency_check.yaml index 8fcc672ecc1d..9be00dc15b8f 100644 --- a/.github/workflows/sdk-platform-java-downstream_unmanaged_dependency_check.yaml +++ b/.github/workflows/sdk-platform-java-downstream_unmanaged_dependency_check.yaml @@ -3,9 +3,6 @@ on: branches: - main pull_request: - paths: - - .github/workflows/sdk-platform-java-downstream_unmanaged_dependency_check.yaml - - sdk-platform-java/java-shared-dependencies/** name: sdk-platform-java Downstream Unmanaged Dependency Check env: @@ -17,12 +14,13 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | library: - - 'sdk-platform-java/**' + - 'sdk-platform-java/java-shared-dependencies/**' + - '.github/workflows/sdk-platform-java-downstream_unmanaged_dependency_check.yaml' validate: needs: filter if: ${{ needs.filter.outputs.library == 'true' }} @@ -57,19 +55,17 @@ jobs: cache: maven - name: Install the modules of sdk-platform-java shell: bash - working-directory: google-cloud-java/sdk-platform-java - run: | - set -euo pipefail - # gapic-generator-java is irrelevant - mvn -q -B -ntp install \ - -Dcheckstyle.skip -Dfmt.skip -DskipTests -T 1C + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install + working-directory: google-cloud-java - name: Build unmanaged dependency check shell: bash working-directory: google-cloud-java/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check run: | set -euo pipefail pwd - pwd echo "Install Unmanaged Dependency Check in $(pwd)" mvn clean install -V --batch-mode --no-transfer-progress -DskipTests - name: Install the modules of the downstream repository @@ -96,3 +92,14 @@ jobs: exit 1 fi echo "Unmanaged dependency check passed" + required: + needs: [ validate ] + name: conditional-required-check + if: ${{ always() }} # Always run even if any "needs" jobs fail + runs-on: ubuntu-22.04 + steps: + - name: Fail if any previous failure + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 + - name: Success otherwise + run: echo "Success!" diff --git a/.github/workflows/sdk-platform-java-java_compatibility_check.yaml b/.github/workflows/sdk-platform-java-java_compatibility_check.yaml deleted file mode 100644 index 9684dbd134e6..000000000000 --- a/.github/workflows/sdk-platform-java-java_compatibility_check.yaml +++ /dev/null @@ -1,66 +0,0 @@ -# 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. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: sdk-platform-java Java 8 compatibility check -env: - BUILD_SUBDIR: sdk-platform-java -jobs: - filter: - runs-on: ubuntu-latest - outputs: - library: ${{ steps.filter.outputs.library }} - steps: - - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 - id: filter - with: - filters: | - library: - - 'sdk-platform-java/**' - java8-compatibility-check: - needs: filter - if: ${{ needs.filter.outputs.library == 'true' }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: 17 - distribution: temurin - cache: maven - - name: Install sdk-platform-modules to local Maven repository - shell: bash - run: .kokoro/build.sh - env: - BUILD_SUBDIR: sdk-platform-java - JOB_TYPE: install - - name: Check Java 8 compatibility for class files - shell: bash - run: | - find . -type f -name "*.class" -path "*/classes/*" \ - -not -path "*/grpc-*/*" \ - -not -path "*/proto-*/*" \ - -not -path "*/gapic-generator-java/*" -print |\ - while IFS= read -r class_file; do - version=$(javap -v "${class_file}" | grep "major version" | cut -d ' ' -f 5) - if [[ "${version}" != "52" ]]; then - echo "${class_file} is not compatible with Java 8." - exit 1 - fi - done - echo "All class files are compatible with Java 8." - working-directory: sdk-platform-java diff --git a/.github/workflows/sdk-platform-java-shared_dependencies.yaml b/.github/workflows/sdk-platform-java-shared_dependencies.yaml index 19e0fe320921..4b5ebba871ce 100644 --- a/.github/workflows/sdk-platform-java-shared_dependencies.yaml +++ b/.github/workflows/sdk-platform-java-shared_dependencies.yaml @@ -17,7 +17,7 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | diff --git a/.github/workflows/sdk-platform-java-sonar.yaml b/.github/workflows/sdk-platform-java-sonar.yaml index 24133d69110d..5cb7d5a9e47e 100644 --- a/.github/workflows/sdk-platform-java-sonar.yaml +++ b/.github/workflows/sdk-platform-java-sonar.yaml @@ -14,12 +14,13 @@ jobs: library: ${{ steps.filter.outputs.library }} steps: - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: filter with: filters: | library: - 'sdk-platform-java/**' + - '.github/workflows/sdk-platform-java-sonar.yaml' build: needs: filter if: needs.filter.outputs.library == 'true' && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request') @@ -46,11 +47,16 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Install modules to local maven - run: | - mvn install -T 1C -DskipTests -ntp -B - cd java-showcase - mvn install -T 1C -DskipTests -ntp -B + - name: Install sdk-platform-modules + shell: bash + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install + - name: Install java-showcase + shell: bash + run: mvn install -T 1C -DskipTests -ntp -B + working-directory: java-showcase - name: Parse showcase version working-directory: java-showcase/gapic-showcase run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" @@ -68,28 +74,29 @@ jobs: # step for a few tests (env var tests) may be overkill and should be better covered # when we can upgrade to JUnit 5 (https://github.com/googleapis/sdk-platform-java/issues/1611#issuecomment-1970079325) - name: Build and analyze for full test coverage + working-directory: sdk-platform-java env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FOR_GENERATOR }} run: | mvn -B verify -Pquick-build \ -DenableFullTestCoverage \ -Penable-integration-tests \ org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ - -Dsonar.projectKey=googleapis_gapic-generator-java \ + -Dsonar.projectKey=googleapis_google-cloud-java_generator \ -Dsonar.organization=googleapis \ -Dsonar.host.url=https://sonarcloud.io - name: Build and analyze Showcase Integration Tests Coverage + working-directory: sdk-platform-java env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FOR_SHOWCASE }} run: | mvn -B clean verify -Pquick-build \ -DskipUnitTests \ -Penable-integration-tests \ -DenableShowcaseTestCoverage \ org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ - -Dsonar.projectKey=googleapis_gapic-generator-java_integration_tests \ + -Dsonar.projectKey=googleapis_google-cloud-java_showcase \ -Dsonar.organization=googleapis \ - -Dsonar.host.url=https://sonarcloud.io \ - -Dsonar.projectName=java_showcase_integration_tests + -Dsonar.host.url=https://sonarcloud.io diff --git a/.github/workflows/sdk-platform-java-verify_library_generation.yaml b/.github/workflows/sdk-platform-java-verify_library_generation.yaml deleted file mode 100644 index 46b0b6092b1e..000000000000 --- a/.github/workflows/sdk-platform-java-verify_library_generation.yaml +++ /dev/null @@ -1,133 +0,0 @@ -on: - pull_request: - -name: sdk-platform-java verify_library_generation -env: - BUILD_SUBDIR: sdk-platform-java -jobs: - filter: - runs-on: ubuntu-latest - outputs: - library: ${{ steps.filter.outputs.library }} - steps: - - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 - id: filter - with: - filters: | - library: - - 'sdk-platform-java/**' - should-run-library-generation-tests: - needs: filter - if: ${{ needs.filter.outputs.library == 'true' }} - runs-on: ubuntu-22.04 - outputs: - should_run: ${{ steps.get_changed_directories.outputs.should_run }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: get changed directories in the pull request - id: get_changed_directories - shell: bash - run: | - set -ex - # PRs that come from a fork need to be handled differently - if [[ ${head_repo_name} == ${base_repo} ]]; then - git checkout ${base_ref} - git checkout ${head_ref} - changed_directories="$(git diff --name-only ${base_ref} ${head_ref})" - else - git remote add fork ${head_repo_url} - git fetch fork # create a mapping of the fork - git checkout -b "${head_ref}" fork/${head_ref} - changed_directories="$(git diff --name-only "fork/${head_ref}" "origin/${base_ref}")" - fi - if [[ ${changed_directories} =~ "sdk-platform-java/hermetic_build/" ]] || [[ ${changed_directories} =~ "sdk-platform-java/.cloudbuild/library_generation/" ]]; then - echo "should_run=true" >> $GITHUB_OUTPUT - else - echo "should_run=false" >> $GITHUB_OUTPUT - fi - env: - base_ref: ${{ github.event.pull_request.base.ref }} - head_ref: ${{ github.event.pull_request.head.ref }} - head_repo_url: ${{ github.event.pull_request.head.repo.html_url }} - head_repo_name: ${{ github.event.pull_request.head.repo.full_name }} - base_repo: ${{ github.repository }} - library-generation-unit-tests: - needs: [filter, should-run-library-generation-tests] - if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true' - runs-on: ubuntu-22.04 - defaults: - run: - working-directory: sdk-platform-java - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - name: install python modules and dependencies - shell: bash - run: | - set -ex - pip install --upgrade pip - pip install --require-hashes -r hermetic_build/common/requirements.txt - pip install hermetic_build/common - pip install --require-hashes -r hermetic_build/library_generation/requirements.txt - pip install hermetic_build/library_generation - pip install --require-hashes -r hermetic_build/release_note_generation/requirements.txt - pip install hermetic_build/release_note_generation - - name: Run shell unit tests - run: | - set -x - hermetic_build/library_generation/tests/generate_library_unit_tests.sh - - name: Run python unit tests - run: | - set -x - python -m unittest discover -s hermetic_build -p "*unit_tests.py" - library-generation-lint-shell: - needs: [filter, should-run-library-generation-tests] - if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true' - runs-on: ubuntu-22.04 - defaults: - run: - working-directory: sdk-platform-java - steps: - - uses: actions/checkout@v4 - - name: Run ShellCheck - uses: ludeeus/action-shellcheck@2.0.0 - with: - scandir: 'sdk-platform-java/hermetic_build' - format: tty - severity: error - ignore_paths: - .kokoro - library-generation-lint-python: - needs: [filter, should-run-library-generation-tests] - if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true' - runs-on: ubuntu-22.04 - defaults: - run: - working-directory: sdk-platform-java - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - name: install python dependencies - shell: bash - run: | - set -ex - pip install --upgrade pip - pip install --require-hashes -r hermetic_build/common/requirements.txt - pip install hermetic_build/common - pip install --require-hashes -r hermetic_build/library_generation/requirements.txt - pip install hermetic_build/library_generation - pip install --require-hashes -r hermetic_build/release_note_generation/requirements.txt - pip install hermetic_build/release_note_generation - - name: Lint - shell: bash - run: | - # exclude generated golden files - # exclude owlbot until further refaction - black --check hermetic_build --exclude "(library_generation/tests/resources/goldens)" diff --git a/.github/workflows/showcase.yaml b/.github/workflows/showcase.yaml new file mode 100644 index 000000000000..6548576f0ca3 --- /dev/null +++ b/.github/workflows/showcase.yaml @@ -0,0 +1,230 @@ +on: + push: + branches: + - main + pull_request: +name: showcase +jobs: + filter: + runs-on: ubuntu-latest + outputs: + library: ${{ steps.filter.outputs.library }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 + id: filter + with: + filters: | + library: + - 'sdk-platform-java/**' + - 'google-auth-library-java/**' + - 'java-showcase/**' + - '.github/workflows/showcase.yaml' + + showcase-java8: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + name: "showcase (8)" + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: temurin + cache: maven + - name: Install all modules using Java 11 + shell: bash + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install + - uses: actions/setup-java@v3 + with: + java-version: 8 + distribution: temurin + - run: java -version + - name: Parse showcase version + working-directory: java-showcase/gapic-showcase + run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" + - name: Install showcase server + run: | + sudo mkdir -p /usr/src/showcase + sudo chown -R ${USER} /usr/src/ + curl --location https://github.com/googleapis/gapic-showcase/releases/download/v${{env.SHOWCASE_VERSION}}/gapic-showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz --output /usr/src/showcase/showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz + cd /usr/src/showcase/ + tar -xf showcase-* + ./gapic-showcase run & + cd - + - name: Showcase integration tests + working-directory: java-showcase + run: | + mvn verify \ + -P enable-integration-tests \ + --batch-mode \ + --no-transfer-progress + # The `slf4j1_logback` profile brings logging dependency and compiles logging tests, require env var to be set + - name: Showcase integration tests - Logging SLF4J 1.x + working-directory: java-showcase + run: | + mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j1_logback' \ + --batch-mode \ + --no-transfer-progress + # Set the Env Var for this step only + env: + GOOGLE_SDK_JAVA_LOGGING: true + # The `disabledLogging` profile tests logging disabled when logging dependency present, + # do not set env var for this step + - name: Showcase integration tests - Logging disabed + working-directory: java-showcase + run: | + mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,disabledLogging' \ + --batch-mode \ + --no-transfer-progress + - name: Showcase integration tests - Protobuf gen code 3.25.8 + working-directory: sdk-platform-java/java-showcase-3.25.8 + run: | + mvn verify \ + -P enable-integration-tests \ + --batch-mode \ + --no-transfer-progress + - name: Showcase integration tests - Protobuf gen code 3.21.0 + working-directory: sdk-platform-java/java-showcase-3.21.0 + run: | + mvn verify \ + -P enable-integration-tests \ + --batch-mode \ + --no-transfer-progress + showcase: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-22.04 + strategy: + matrix: + java: [ 11, 17, 21, 25 ] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: temurin + - run: mvn -version + - name: Install Maven modules + shell: bash + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install + - name: Showcase golden tests + working-directory: java-showcase + run: | + mvn test \ + -P enable-golden-tests \ + --batch-mode \ + --no-transfer-progress + - name: Parse showcase version + working-directory: java-showcase/gapic-showcase + run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" + - name: Install showcase server + run: | + sudo mkdir -p /usr/src/showcase + sudo chown -R ${USER} /usr/src/ + curl --location https://github.com/googleapis/gapic-showcase/releases/download/v${{env.SHOWCASE_VERSION}}/gapic-showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz --output /usr/src/showcase/showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz + cd /usr/src/showcase/ + tar -xf showcase-* + ./gapic-showcase run & + cd - + - name: Showcase integration tests + working-directory: java-showcase + run: | + mvn verify \ + -P enable-integration-tests \ + --batch-mode \ + --no-transfer-progress + # The `slf4j2_logback` profile brings logging dependency and compiles logging tests, require env var to be set + - name: Showcase integration tests - Logging SLF4J 2.x + working-directory: java-showcase + run: | + mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j2_logback' \ + --batch-mode \ + --no-transfer-progress + # Set the Env Var for this step only + env: + GOOGLE_SDK_JAVA_LOGGING: true + # The `slf4j1_logback` profile brings logging dependency and compiles logging tests, require env var to be set + - name: Showcase integration tests - Logging SLF4J 1.x + working-directory: java-showcase + run: | + mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j1_logback' \ + --batch-mode \ + --no-transfer-progress + # Set the Env Var for this step only + env: + GOOGLE_SDK_JAVA_LOGGING: true + # The `disabledLogging` profile tests logging disabled when logging dependency present, + # do not set env var for this step + - name: Showcase integration tests - Logging disabed + working-directory: java-showcase + run: | + mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,disabledLogging' \ + --batch-mode \ + --no-transfer-progress + - name: Showcase integration tests - Protobuf 3 compatibility with third party library Tensorflow + working-directory: java-showcase + run: | + mvn clean verify -P 'enable-integration-tests,protobuf3,showcase' \ + --batch-mode \ + --no-transfer-progress + + showcase-clirr: + needs: filter + if: ${{ (needs.filter.outputs.library == 'true') && github.base_ref != '' }} # Only execute on pull_request trigger event + runs-on: ubuntu-22.04 + steps: + - name: Checkout @ target branch + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: temurin + cache: maven + - name: Install Maven modules + shell: bash + run: .kokoro/build.sh + env: + BUILD_SUBDIR: sdk-platform-java + JOB_TYPE: install + - name: Install showcase to local maven repository + run: | + mvn install -B -ntp -T 1C -DskipTests + SHOWCASE_CLIENT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) + echo "SHOWCASE_CLIENT_VERSION=$SHOWCASE_CLIENT_VERSION" >> "$GITHUB_ENV" + working-directory: java-showcase + - name: Checkout sdk-platform-java @ PR merge commit + uses: actions/checkout@v3 + - name: Install sdk-platform-java @ PR merge commit + shell: bash + run: .kokoro/build.sh + env: + JOB_TYPE: install + BUILD_SUBDIR: sdk-platform-java + # Showcase golden test ensures that src changes are already reflected in the PR. + - name: Clirr check + working-directory: java-showcase + run: | + mvn versions:set -B -ntp -DnewVersion=local + mvn clirr:check -B -ntp -DcomparisonVersion=$SHOWCASE_CLIENT_VERSION + + required: + needs: [ showcase, showcase-java8 ] + name: conditional-required-check + if: ${{ always() }} # Always run even if any "needs" jobs fail + runs-on: ubuntu-22.04 + steps: + - name: Fail if any previous failure + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 + - name: Success otherwise + run: echo "Success!" diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 1f3913856282..34e6a4f72ea1 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -10,9 +10,11 @@ jobs: with: distribution: temurin java-version: 11 - - name: Install modules + - name: Install all modules first shell: bash - run: mvn install -B -ntp -T 1C -DskipTests -Pquick-build + run: .kokoro/build.sh + env: + JOB_TYPE: install - name: Unmanaged dependency check uses: ./sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check with: diff --git a/.gitignore b/.gitignore index 241e3aa3b52c..b1e73de644f0 100644 --- a/.gitignore +++ b/.gitignore @@ -58,6 +58,7 @@ nosetests.xml .settings .DS_Store .classpath +.vscode # API key file containing value of GOOGLE_API_KEY for integration tests api_key @@ -79,4 +80,4 @@ monorepo *.tfstate.*.backup *.tfstate.lock.info -.jqwik-database \ No newline at end of file +.jqwik-database diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 305c16edf5b0..3691dd9a0a3f 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -305,6 +305,29 @@ case ${JOB_TYPE} in popd fi ;; + clirr) + if [[ -n "${BUILD_SUBDIR}" ]] + then + echo "Compiling and building all modules for ${BUILD_SUBDIR}" + install_modules "${BUILD_SUBDIR}" + echo "Running in subdir: ${BUILD_SUBDIR}" + pushd "${BUILD_SUBDIR}" + EXTRA_PROFILE_OPTS=() + else + install_modules "sdk-platform-java" + fi + mvn -B -ntp \ + -Dfmt.skip=true \ + -Denforcer.skip=true \ + -Dcheckstyle.skip=true \ + clirr:check + RETURN_CODE=$? + if [[ -n "${BUILD_SUBDIR}" ]] + then + echo "restoring directory" + popd + fi + ;; *) ;; esac diff --git a/.kokoro/common.sh b/.kokoro/common.sh index bfcef516e43e..7926a7786b46 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -27,7 +27,7 @@ excluded_modules=( 'sdk-platform-java' 'sdk-platform-java/java-shared-dependencies/dependency-analyzer' 'sdk-platform-java/java-shared-dependencies/dependency-convergence-check' - 'sdk-platform-java/java-showcase' + 'java-showcase' 'sdk-platform-java/java-showcase-3.21.0' 'sdk-platform-java/java-showcase-3.25.8' 'java-spanner' @@ -408,22 +408,25 @@ function install_modules() { always_install_deps_list=( 'google-auth-library-java/appengine' 'google-auth-library-java/bom' + 'google-auth-library-java/cab-token-generator' 'google-auth-library-java/credentials' 'google-auth-library-java/oauth2_http' + 'java-common-protos/grpc-google-common-protos' + 'java-common-protos/proto-google-common-protos' + 'java-iam/grpc-google-iam-v1' + 'java-iam/grpc-google-iam-v2' + 'java-iam/grpc-google-iam-v2beta' + 'java-iam/grpc-google-iam-v3' + 'java-iam/grpc-google-iam-v3beta' + 'java-iam/proto-google-iam-v1' + 'java-iam/proto-google-iam-v2' + 'java-iam/proto-google-iam-v2beta' + 'java-iam/proto-google-iam-v3' + 'java-iam/proto-google-iam-v3beta' 'sdk-platform-java/java-shared-dependencies' 'sdk-platform-java/java-shared-dependencies/first-party-dependencies' 'sdk-platform-java/java-shared-dependencies/third-party-dependencies' 'sdk-platform-java/gapic-generator-java-bom' - 'sdk-platform-java/java-iam/grpc-google-iam-v1' - 'sdk-platform-java/java-iam/grpc-google-iam-v2' - 'sdk-platform-java/java-iam/grpc-google-iam-v2beta' - 'sdk-platform-java/java-iam/grpc-google-iam-v3' - 'sdk-platform-java/java-iam/grpc-google-iam-v3beta' - 'sdk-platform-java/java-iam/proto-google-iam-v1' - 'sdk-platform-java/java-iam/proto-google-iam-v2' - 'sdk-platform-java/java-iam/proto-google-iam-v2beta' - 'sdk-platform-java/java-iam/proto-google-iam-v3' - 'sdk-platform-java/java-iam/proto-google-iam-v3beta' 'sdk-platform-java/java-core/google-cloud-core-bom' 'sdk-platform-java/java-core/google-cloud-core' 'sdk-platform-java/java-core/google-cloud-core-grpc' diff --git a/.kokoro/common_test.sh b/.kokoro/common_test.sh index 3572b659fcaa..e78e4d36131b 100755 --- a/.kokoro/common_test.sh +++ b/.kokoro/common_test.sh @@ -22,7 +22,7 @@ cd target function test_find_all_poms_with_versioned_dependency { mkdir -p test_find_all_poms_with_dependency pushd test_find_all_poms_with_dependency - cp ../../sdk-platform-java/java-showcase/gapic-showcase/pom.xml pom.xml + cp ../../java-showcase/gapic-showcase/pom.xml pom.xml find_all_poms_with_versioned_dependency 'truth' if [ "${#POMS[@]}" != 1 ]; then @@ -45,7 +45,7 @@ function test_find_all_poms_with_versioned_dependency { function test_update_pom_dependency { mkdir -p test_update_pom_dependency pushd test_update_pom_dependency - cp ../../sdk-platform-java/java-showcase/gapic-showcase/pom.xml pom.xml + cp ../../java-showcase/gapic-showcase/pom.xml pom.xml update_pom_dependency . truth "99.88.77" @@ -66,7 +66,7 @@ EOF function test_parse_pom_version { mkdir -p test_parse_pom_version pushd test_parse_pom_version - cp ../../sdk-platform-java/java-showcase/gapic-showcase/pom.xml pom.xml + cp ../../java-showcase/gapic-showcase/pom.xml pom.xml VERSION=$(parse_pom_version .) if [ "$VERSION" != "0.0.1-SNAPSHOT" ]; then diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 008b72d8134b..552492c5cf22 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -58,9 +58,8 @@ then fi # this should run maven enforcer -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -Pquick-build -DskipTests=true -Dmaven.javadoc.skip=true -Denforcer.skip=false +mvn install -B -V -ntp \ + -Pquick-build -DskipTests=true -Dmaven.javadoc.skip=true -Denforcer.skip=false mvn -B dependency:analyze -Pquick-build -DfailOnWarning=true -Dmdep.analyze.skip=false diff --git a/.kokoro/downstream-compatibility.sh b/.kokoro/downstream-compatibility.sh index 6f9dcfb016f3..15a43f236666 100755 --- a/.kokoro/downstream-compatibility.sh +++ b/.kokoro/downstream-compatibility.sh @@ -27,8 +27,6 @@ scriptDir=$(realpath "$(dirname "${BASH_SOURCE[0]}")") cd "${scriptDir}/.." # cd to the root of this repo source "$scriptDir/common.sh" -setup_maven_mirror - install_modules "sdk-platform-java" cd sdk-platform-java @@ -42,6 +40,9 @@ for repo in ${REPOS_UNDER_TEST//,/ }; do # Split on comma git clone "https://github.com/googleapis/$repo.git" --depth=1 --branch "v$last_release" update_all_poms_dependency "$repo" google-cloud-shared-dependencies "$SHARED_DEPS_VERSION" pushd "$repo" + echo "Diff to run the test with modified dependencies:" + git --no-pager diff + echo "---------------" JOB_TYPE="test" ./.kokoro/build.sh popd done diff --git a/.kokoro/presubmit/google-auth-library-java-graalvm-native-presubmit.cfg b/.kokoro/presubmit/google-auth-library-java-graalvm-native-presubmit.cfg index 15cf4809e57e..0cef3c4ff61b 100644 --- a/.kokoro/presubmit/google-auth-library-java-graalvm-native-presubmit.cfg +++ b/.kokoro/presubmit/google-auth-library-java-graalvm-native-presubmit.cfg @@ -50,3 +50,9 @@ env_vars: { key: "BUILD_SUBDIR" value: "google-auth-library-java" } + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "-Pslf4j2x" +} + diff --git a/.kokoro/presubmit/java-pubsub-graalvm-native-presubmit.cfg b/.kokoro/presubmit/java-pubsub-graalvm-native-presubmit.cfg new file mode 100644 index 000000000000..72f44d66b20e --- /dev/null +++ b/.kokoro/presubmit/java-pubsub-graalvm-native-presubmit.cfg @@ -0,0 +1,42 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.61.0" # {x-version-update:google-cloud-shared-dependencies:current} +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm-single" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} + +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" +} +env_vars: { + key: "BUILD_SUBDIR" + value: "java-pubsub" +} diff --git a/.kokoro/presubmit/java-pubsub-integration.cfg b/.kokoro/presubmit/java-pubsub-integration.cfg new file mode 100644 index 000000000000..be3f86be735e --- /dev/null +++ b/.kokoro/presubmit/java-pubsub-integration.cfg @@ -0,0 +1,39 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration-single" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} + + +env_vars: { + key: "BUILD_SUBDIR" + value: "java-pubsub" +} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index edea32dd22b1..e4190a8ddb9f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.85.0" + ".": "1.86.0" } diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 000000000000..a3b8b988d09f --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,61 @@ +# Agents Guide for google-cloud-java + +## 1. Overview +This repository, `google-cloud-java`, contains the Java client libraries for Google Cloud Platform services, as well as core components in `sdk-platform-java`. + +## 2. Project Structure +The repository is a monorepo containing both generated and handwritten libraries, as well as core platform components and parent POMs. + +### Core Modules +- **`sdk-platform-java/`**: Contains foundational components for building client libraries. + - **Note**: This directory has its own `GEMINI.md` file with detailed instructions specific to core development (GAPIC generator, GAX). + - Includes `gapic-generator-java` (the generator) and `gax-java` (Google API Extensions). +- **`google-auth-library-java/`**: The Google Auth Library for Java. This is a **handwritten** library used for authentication and credential management across all Google Cloud clients. It is a critical dependency for all client libraries. + +### Parent Modules and BOMs +- **`google-cloud-pom-parent/`**: The top-level parent POM for all modules in the repository. It manages plugin versions and common configuration. +- **`google-cloud-jar-parent/`**: The parent POM for all client library JAR modules in the repository. It inherits from `google-cloud-pom-parent` and manages shared dependencies. +- **`gapic-libraries-bom/`**: The Bill of Materials (BOM) that manages versions of all client libraries to ensure compatibility when used together. +- **`java-shared-dependencies/`** (inside `sdk-platform-java`): Manages shared Maven dependencies for all Google Cloud Java client libraries to ensure consistency and avoid conflicts. + +### Client Libraries (`java-/`) +Directories starting with `java-` are client libraries for specific Google Cloud services. +- **Generated Clients**: The majority of these are automatically generated from service definitions (protos) using the GAPIC generator in `sdk-platform-java`. +- **Handwritten & Split Repositories**: Some major libraries are either entirely handwritten or are maintained as "split repos" (they have their own standalone repositories in the `googleapis` GitHub organization but are also managed here). When working on these, be aware that changes may need to be synchronized with their respective split repos. Key examples include: + - **BigQuery**: [java-bigquery](java-bigquery) + - **BigQuery Storage**: [java-bigquerystorage](java-bigquerystorage) + - **Spanner**: [java-spanner](java-spanner) + - **Spanner JDBC**: [java-spanner-jdbc](java-spanner-jdbc) + - **Storage**: [java-storage](java-storage) + - **Storage NIO**: [java-storage-nio](java-storage-nio) + - **Datastore**: [java-datastore](java-datastore) + - **Logging**: [java-logging](java-logging) + - **Logging Logback**: [java-logging-logback](java-logging-logback) + +## 3. Getting Started +This is a standard Maven project. +- **Build all**: `mvn install -T 1C -P quick-build` from root (recommended). +- **Scoped build**: Run `mvn` commands within specific module directories. +- **Prerequisites**: Java 11+, Maven 3.0+, Bazelisk (for core integration tests). + +## 4. Style Guide +1. Minimize visibility scopes. Default to most restrictive access level. +2. Use short names over fully qualified names. +3. Avoid calling `@ObsoleteApi` or `@Deprecated` methods and classes. +4. Avoid unnecessary formatting changes to keep diffs clean. +5. Use `mvn` for everything other than the `test/integration` folder. + +## 5. Dependency Management +- Do not bump external dependency versions unless for CVE or critical bug fix. +- Avoid introducing new external dependencies if possible. Prefer Java standard library, then opt for existing dependencies. + +## 6. Contribution Guidelines +- **Commits**: Conventional Commits `(): `. +- **Pull Requests**: Submitted via PR, require review. Pull latest from main and resolve conflicts. +- **Testing**: All new logic should be accompanied by tests. + +## 7. Specialized Development Guides +For development on core components, refer to the following guides in `sdk-platform-java`: +- **GAPIC Generator**: [sdk-platform-java/gapic-generator-java/DEVELOPMENT.md](sdk-platform-java/gapic-generator-java/DEVELOPMENT.md) +- **GAX**: [sdk-platform-java/gax-java/DEVELOPMENT.md](sdk-platform-java/gax-java/DEVELOPMENT.md) +- **Hermetic Build**: [sdk-platform-java/hermetic_build/DEVELOPMENT.md](sdk-platform-java/hermetic_build/DEVELOPMENT.md) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddcf3ffbc581..9aeacd490d92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,99 @@ # Changelog +## [1.86.0](https://github.com/googleapis/google-cloud-java/compare/v1.85.0...v1.86.0) (2026-05-05) + + +### Features + +* [aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1 ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [aiplatform] add OnlineEvaluator API and update Evaluation API ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [aiplatform] Model Registry CopyModel BYOSA ([531942b](https://github.com/googleapis/google-cloud-java/commit/531942bb9e9ce55b86508f60b34936b3c467a28d)) +* [aiplatform] new field CopyModelRequest.custome_service_account ([531942b](https://github.com/googleapis/google-cloud-java/commit/531942bb9e9ce55b86508f60b34936b3c467a28d)) +* [aiplatform] Support VeoLoraTuningSpec in the tuning jobs ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [analytics-admin] add UserProvidedDataSettings resource and ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [bigqueryreservation] add principal field to BigQuery Reservation ([531942b](https://github.com/googleapis/google-cloud-java/commit/531942bb9e9ce55b86508f60b34936b3c467a28d)) +* [ces] Add ability to specify mocked tool responses in ExecuteTool ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [chat] Addition of ChatService.FindGroupChats ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [compute] Update Compute Engine v1 API to revision 20260331 ([d3b76d9](https://github.com/googleapis/google-cloud-java/commit/d3b76d9c26b5838b79e08b13082ebffc9766044f)) +* [health] new module for health ([#12993](https://github.com/googleapis/google-cloud-java/issues/12993)) ([d568a8c](https://github.com/googleapis/google-cloud-java/commit/d568a8c326d40da4edb2315a5ca4c8b0eaa60ebe)) +* [iam] new iam v3beta client for AccessPolicies, this is step 4&5 ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [mapmanagement] new module for mapmanagement ([#12874](https://github.com/googleapis/google-cloud-java/issues/12874)) ([0720279](https://github.com/googleapis/google-cloud-java/commit/0720279588c08d41875cba7af206882113ac33b5)) +* [modelarmor] add streaming methods StreamSanitizeUserPrompt and ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [netapp] add ScaleType for Storage Pools and LargeCapacityConfig ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [redis-cluster] [Memorystore for Redis Cluster] Updating new node ([d3b76d9](https://github.com/googleapis/google-cloud-java/commit/d3b76d9c26b5838b79e08b13082ebffc9766044f)) +* [redis-cluster][Memorystore for Redis Cluster] Updating new node ([d3b76d9](https://github.com/googleapis/google-cloud-java/commit/d3b76d9c26b5838b79e08b13082ebffc9766044f)) +* [shopping-merchant-products] a new optional field `video_links` is ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [shopping-merchant-reports] add `store_type` to ([d3b76d9](https://github.com/googleapis/google-cloud-java/commit/d3b76d9c26b5838b79e08b13082ebffc9766044f)) +* [valkey] [Memorystore for Valkey] Updating new node types added ([d3b76d9](https://github.com/googleapis/google-cloud-java/commit/d3b76d9c26b5838b79e08b13082ebffc9766044f)) +* [valkey] [Memorystore for Valkey] Updating new node types added ([d3b76d9](https://github.com/googleapis/google-cloud-java/commit/d3b76d9c26b5838b79e08b13082ebffc9766044f)) +* [vectorsearch] Added CMEK support ([531942b](https://github.com/googleapis/google-cloud-java/commit/531942bb9e9ce55b86508f60b34936b3c467a28d)) +* **bqjdbc:** Bypass dry-run job for read-only tokens. ([#12961](https://github.com/googleapis/google-cloud-java/issues/12961)) ([cd57169](https://github.com/googleapis/google-cloud-java/commit/cd571691f5aadbd3bfa7ee2dfad5414cef6127c2)) +* **bqjdbc:** Integrate the PerConnectionFileHandler with BigQueryJdbcRootLogger ([#12933](https://github.com/googleapis/google-cloud-java/issues/12933)) ([2e56184](https://github.com/googleapis/google-cloud-java/commit/2e56184849a0888256a48ace191a870287ce1fef)) +* **bqjdbc:** Per connection logs - Add BigQueryJdbcMdc ([#12833](https://github.com/googleapis/google-cloud-java/issues/12833)) ([f562667](https://github.com/googleapis/google-cloud-java/commit/f562667366260fd488ab149ec3e8b67b0bb350f3)) +* **bqjdbc:** Per connection logs - Add PerConnectionFileHandler ([#12899](https://github.com/googleapis/google-cloud-java/issues/12899)) ([5846197](https://github.com/googleapis/google-cloud-java/commit/5846197cc28a700964914d32cfbf90bfee3b37a8)) +* **datastore:** Bump to v3 major version ([#12989](https://github.com/googleapis/google-cloud-java/issues/12989)) ([df20994](https://github.com/googleapis/google-cloud-java/commit/df2099407854fdd0b225b748977b77e97db07d75)) +* **datastore:** Enable Otel metrics for custom Otel ([#12969](https://github.com/googleapis/google-cloud-java/issues/12969)) ([1721e7c](https://github.com/googleapis/google-cloud-java/commit/1721e7c539b85b4377caf7b00215a019afb0eec1)) +* **Datastore:** Introduce Client Side Metrics ([#12718](https://github.com/googleapis/google-cloud-java/issues/12718)) ([552a34d](https://github.com/googleapis/google-cloud-java/commit/552a34dd358bc20e284e670ac1493afb9ec86d52)) +* **datastore:** Remove deprecated classes and methods and bump ObsoleteApi to Deprecated ([#12971](https://github.com/googleapis/google-cloud-java/issues/12971)) ([0bca75c](https://github.com/googleapis/google-cloud-java/commit/0bca75c3236aa8533cb10ea7c7faac56e5ae8fed)) +* **Datastore:** Swap the default transport from HttpJson to gRPC ([#12977](https://github.com/googleapis/google-cloud-java/issues/12977)) ([24fb234](https://github.com/googleapis/google-cloud-java/commit/24fb234d8e2763cad40e0ef811f23ed54263a196)) +* **datastore:** Update default channel pool configs to handle initial bursts and scalability ([#12883](https://github.com/googleapis/google-cloud-java/issues/12883)) ([26fe0f9](https://github.com/googleapis/google-cloud-java/commit/26fe0f902dc41a6b8bf5586df35a7cad7cc941d4)) +* **gax-grpc:** add configurable resize delta and warning for repeated resizing ([#12838](https://github.com/googleapis/google-cloud-java/issues/12838)) ([2caf026](https://github.com/googleapis/google-cloud-java/commit/2caf026cadd1dfe9ec3f65a2847573116a33a828)) +* **spanner:** add connection properties for min/max RPCs for DCP ([#12951](https://github.com/googleapis/google-cloud-java/issues/12951)) ([dc1216e](https://github.com/googleapis/google-cloud-java/commit/dc1216ed25da0ec05f955343d45f7889fb9c7276)) +* **spanner:** add connection property for enabling/disabling grpc-gcp ([#12898](https://github.com/googleapis/google-cloud-java/issues/12898)) ([1e633d7](https://github.com/googleapis/google-cloud-java/commit/1e633d785f8bae4ef3f4eee4c15d3993a0560508)) +* **spanner:** add shared endpoint cooldowns for location-aware rerouting ([#12845](https://github.com/googleapis/google-cloud-java/issues/12845)) ([f5f273b](https://github.com/googleapis/google-cloud-java/commit/f5f273ba0bd6b7ca9a8be7d1b5a89211ef5ff9fc)) +* **spanner:** Cleanup GcpFallbackChannel creation and enable by default ([#12707](https://github.com/googleapis/google-cloud-java/issues/12707)) ([5251219](https://github.com/googleapis/google-cloud-java/commit/5251219a7780189b65dbb639d8d88899377c038c)) +* **storage:** Implement deleteSourceObjects for Compose Operation ([#12873](https://github.com/googleapis/google-cloud-java/issues/12873)) ([2cecd0c](https://github.com/googleapis/google-cloud-java/commit/2cecd0caf4f15da2d894a70077ccb0d0fd69d296)) + + +### Bug Fixes + +* **bq:** do not call 'getQueryResults' for stateful queries via 'query' api ([#12999](https://github.com/googleapis/google-cloud-java/issues/12999)) ([44e9789](https://github.com/googleapis/google-cloud-java/commit/44e978915093d79d17412a2a1bc3bd891d366435)) +* **bqjdbc:** add default OAuth client id/secret ([#12946](https://github.com/googleapis/google-cloud-java/issues/12946)) ([9b5c4fa](https://github.com/googleapis/google-cloud-java/commit/9b5c4fa3bff718170b63c1cc404e4dd4cacfbbdc)) +* **bqjdbc:** add Google Driver scope to all credential types ([#12847](https://github.com/googleapis/google-cloud-java/issues/12847)) ([5c890f8](https://github.com/googleapis/google-cloud-java/commit/5c890f80f7f7ffef1d099104f605298486fe636d)) +* **bqjdbc:** enhance logging with caller inference and explicit exception tracking ([#12903](https://github.com/googleapis/google-cloud-java/issues/12903)) ([ce4969b](https://github.com/googleapis/google-cloud-java/commit/ce4969b81e18a165d2c6cb245a8073923ab92567)) +* **bqjdbc:** Log exception messages - part 2 ([#12907](https://github.com/googleapis/google-cloud-java/issues/12907)) ([5215b11](https://github.com/googleapis/google-cloud-java/commit/5215b119726f124ff9228dcfe86ebca54f7915ae)) +* **bqjdbc:** Log exception messages - part 3 ([#12920](https://github.com/googleapis/google-cloud-java/issues/12920)) ([45b572f](https://github.com/googleapis/google-cloud-java/commit/45b572fae59d9448d9d8c5561be3735496142154)) +* **bqjdbc:** metadata methods & getSqlTypeName for struct ([#12947](https://github.com/googleapis/google-cloud-java/issues/12947)) ([37555fb](https://github.com/googleapis/google-cloud-java/commit/37555fb09f209bbeb8f32f1661d83a7548175411)) +* **bqjdbc:** optimize formatter in BigQueryJdbcRootLogger ([#12877](https://github.com/googleapis/google-cloud-java/issues/12877)) ([4233faf](https://github.com/googleapis/google-cloud-java/commit/4233fafb2118ad28f89c996899a52b37d48c79eb)) +* **bqjdbc:** Revert DatabaseMetaData field to be non-static in BigQueryConnection ([#12778](https://github.com/googleapis/google-cloud-java/issues/12778)) ([ac69c8d](https://github.com/googleapis/google-cloud-java/commit/ac69c8d9041121b7bdd1f7cb7b6b0d2f182ba138)) +* **bqjdbc:** support Service Account Impersonation in ADC ([#12967](https://github.com/googleapis/google-cloud-java/issues/12967)) ([8ce183c](https://github.com/googleapis/google-cloud-java/commit/8ce183cf802f1abadb809bfe733d904570980968)) +* bump vectorsearch to 0.13.0 for partial release ([#12805](https://github.com/googleapis/google-cloud-java/issues/12805)) ([5208fc9](https://github.com/googleapis/google-cloud-java/commit/5208fc94f69790dbe2ba65ab2685ad9674314b6c)) +* **ci:** update java-showcase path in excluded_modules ([#12984](https://github.com/googleapis/google-cloud-java/issues/12984)) ([3456ee9](https://github.com/googleapis/google-cloud-java/commit/3456ee961dfe04774d0e5e00d2e1d264e47aba50)) +* correct build directory paths in graalvm cloudbuild.yaml ([#12794](https://github.com/googleapis/google-cloud-java/issues/12794)) ([8e6ba36](https://github.com/googleapis/google-cloud-java/commit/8e6ba3662d31693e21879f31ed52d9c301a026fd)) +* **datastore:** Create a plaintext gRPC transport channel when using the Emulator ([#12721](https://github.com/googleapis/google-cloud-java/issues/12721)) ([4bed8fd](https://github.com/googleapis/google-cloud-java/commit/4bed8fd118a723c1d82ae3f29e0550d461db695a)) +* **datastore:** Update initial ChannelPool configs according to Datastore best practice guide ([#12919](https://github.com/googleapis/google-cloud-java/issues/12919)) ([851fb89](https://github.com/googleapis/google-cloud-java/commit/851fb890845f04c4a4cb9cc4f79262b2d0ba3105)) +* **deps:** update the Java code generator (gapic-generator-java) to ([531942b](https://github.com/googleapis/google-cloud-java/commit/531942bb9e9ce55b86508f60b34936b3c467a28d)) +* do not generate Version.java files by default ([#12955](https://github.com/googleapis/google-cloud-java/issues/12955)) ([43a888a](https://github.com/googleapis/google-cloud-java/commit/43a888a6e0c882374868b0748d69921b320746ed)) +* **gax:** record fractional latency metrics ([#12979](https://github.com/googleapis/google-cloud-java/issues/12979)) ([d690333](https://github.com/googleapis/google-cloud-java/commit/d690333e4ffe8dda982d61723387ecda971d7d21)) +* **gax:** Remove strict validation that resize delta must be less than max channel count ([#12863](https://github.com/googleapis/google-cloud-java/issues/12863)) ([26b06f9](https://github.com/googleapis/google-cloud-java/commit/26b06f94afaa9fbdede5a8bdde96ab494c384d5d)) +* **generator:** use json_name when available ([#12940](https://github.com/googleapis/google-cloud-java/issues/12940)) ([622955b](https://github.com/googleapis/google-cloud-java/commit/622955b63f2d1df53857aed767fd057c2dff455a)) +* manual preservation of Version.java files ([#12862](https://github.com/googleapis/google-cloud-java/issues/12862)) ([3d65c78](https://github.com/googleapis/google-cloud-java/commit/3d65c78473a4d94b5997c5c091e530f328339569)) +* remove google/rpc exclusion to generate HttpResponse ([#12992](https://github.com/googleapis/google-cloud-java/issues/12992)) ([24b1719](https://github.com/googleapis/google-cloud-java/commit/24b171972a7aae4d8ebfa5935bdcbf9bbb8988a7)) +* **spanner:** fix flakiness and race conditions in multiplexed session tests ([#12949](https://github.com/googleapis/google-cloud-java/issues/12949)) ([3e02f18](https://github.com/googleapis/google-cloud-java/commit/3e02f1846e030be04cc4035299c7581348574e00)) +* **spanner:** fix flakiness in testCreateSessionDeadlineExceeded ([#12944](https://github.com/googleapis/google-cloud-java/issues/12944)) ([93f21ed](https://github.com/googleapis/google-cloud-java/commit/93f21ed3812240f042cf06e869ff3f62ddd5bf35)) +* Update renovate config check template to use npx ([#12865](https://github.com/googleapis/google-cloud-java/issues/12865)) ([b974740](https://github.com/googleapis/google-cloud-java/commit/b9747401648621103ef02d2c0f62a27177251bf8)) +* use org.junit.jupiter.api.Assertions.assertThrow ([#12882](https://github.com/googleapis/google-cloud-java/issues/12882)) ([bf243a6](https://github.com/googleapis/google-cloud-java/commit/bf243a6300811f26e2a7bfcda05df1d1d52b6886)) + + +### Performance Improvements + +* **spanner:** use StringBuilder for generating RequestId ([#12809](https://github.com/googleapis/google-cloud-java/issues/12809)) ([5c821a3](https://github.com/googleapis/google-cloud-java/commit/5c821a3bbadeabe745b652b0d0f40c76c452b1aa)) + + +### Dependencies + +* upgrade opentelemetry ([#12953](https://github.com/googleapis/google-cloud-java/issues/12953)) ([522e05b](https://github.com/googleapis/google-cloud-java/commit/522e05b9112ea0160098152fee8b400fe4d0aa7d)) + + +### Documentation + +* [cloudsecuritycompliance] Updated docs for the APIs ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [kms] Update the comment for duration value ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* [saasservicemgmt] rebrand from "SaaS Runtime" to "App Lifecycle ([a1ab487](https://github.com/googleapis/google-cloud-java/commit/a1ab487b6c03c719f518a68ed77557e5ade19d05)) +* Add a guide on configuring ChannelPools for gRPC ([#12905](https://github.com/googleapis/google-cloud-java/issues/12905)) ([ea081fe](https://github.com/googleapis/google-cloud-java/commit/ea081feb97ba31734ade697fea5b2616bdba7f41)) +* update bazel targets in DEVELOPMENT.md to point to sdk-platform-java ([#12844](https://github.com/googleapis/google-cloud-java/issues/12844)) ([4568284](https://github.com/googleapis/google-cloud-java/commit/4568284b546fbf3a65361b3c31738b885cf7af54)) + ## [1.85.0](https://github.com/googleapis/google-cloud-java/compare/v1.84.0...v1.85.0) (2026-04-14) diff --git a/WORKSPACE b/WORKSPACE index 91d2cb646fa0..5fdfed8fa042 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -67,7 +67,7 @@ load("@rules_jvm_external//:defs.bzl", "maven_install") load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS") load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS") -_gapic_generator_java_version = "2.71.0" # {x-version-update:gapic-generator-java:current} +_gapic_generator_java_version = "2.72.0" # {x-version-update:gapic-generator-java:current} maven_install( artifacts = [ diff --git a/changelog.json b/changelog.json index 99a236e88ba9..1020f3b11f7b 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,27500 @@ { "repository": "googleapis/google-cloud-java", "entries": [ + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-reviews", + "id": "5ad2e35e-d8b9-44fb-b00f-6263555040ac", + "createTime": "2026-05-05T20:21:13.354Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-quota", + "id": "988fe075-9ad4-42b1-8bdc-c2a7419bd724", + "createTime": "2026-05-05T20:21:13.228Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-promotions", + "id": "fd8e7afc-6fbe-4620-b3b3-846ae8c768eb", + "createTime": "2026-05-05T20:21:13.074Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-productstudio", + "id": "67d5ec51-e8a9-4e63-a966-1aca81e62fbf", + "createTime": "2026-05-05T20:21:12.947Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-notifications", + "id": "2a908e2c-b8ac-471b-86af-0f8bb6a107ca", + "createTime": "2026-05-05T20:21:12.792Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-lfp", + "id": "b7f3fe6b-7674-4297-9151-9642b5751ed7", + "createTime": "2026-05-05T20:21:12.674Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-inventories", + "id": "adf747fb-f3ad-4fb2-a507-2c27e2a3724d", + "createTime": "2026-05-05T20:21:12.528Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-datasources", + "id": "282de523-3874-4280-9d4a-e48f8be1ebe9", + "createTime": "2026-05-05T20:21:12.392Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-conversions", + "id": "6a314619-cd59-40fd-9868-0cc835e723d4", + "createTime": "2026-05-05T20:21:12.261Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-accounts", + "id": "fc22d1db-1c0c-4e4d-b361-0e79b5775b10", + "createTime": "2026-05-05T20:21:12.144Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-css", + "id": "b302da0f-a29f-4c6e-87c9-07683053d3a9", + "createTime": "2026-05-05T20:21:11.945Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.ads-marketingplatform:admin", + "id": "947875f9-284b-42b5-84eb-24a85fd1647f", + "createTime": "2026-05-05T20:21:11.764Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-solar", + "id": "af27b95b-effc-48a9-861b-f77737bfb805", + "createTime": "2026-05-05T20:21:11.602Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-routing", + "id": "d3a41eda-5b8c-4fa4-a227-4136ff1bdb06", + "createTime": "2026-05-05T20:21:11.476Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-routeoptimization", + "id": "8a17e4c1-9629-4d48-a1f3-34f0339228b9", + "createTime": "2026-05-05T20:21:11.342Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-places", + "id": "83a509ca-da41-4b10-a80a-3e8f430b2980", + "createTime": "2026-05-05T20:21:11.221Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-mapsplatformdatasets", + "id": "ea017b6e-9c22-46ae-99da-f45baf23ff71", + "createTime": "2026-05-05T20:21:11.083Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-geocode", + "id": "a311e6e6-6821-42c6-b415-5099f9e387dc", + "createTime": "2026-05-05T20:21:10.963Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-fleetengine", + "id": "c7d493e3-c7bb-43e3-a0e3-46b2b5b800d1", + "createTime": "2026-05-05T20:21:10.827Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-fleetengine-delivery", + "id": "97c661c7-9a41-4b95-a1d8-f04d8956f278", + "createTime": "2026-05-05T20:21:10.704Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-area-insights", + "id": "89fae769-2a0c-4bc0-9f2a-ef9756c14d2a", + "createTime": "2026-05-05T20:21:10.534Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-addressvalidation", + "id": "067a7483-84e8-457a-b97e-fad3a0bec67a", + "createTime": "2026-05-05T20:21:10.424Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-order-tracking", + "id": "9eed5b9e-8da5-42d2-9481-4e4bfb972451", + "createTime": "2026-05-05T20:21:10.292Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-issue-resolution", + "id": "94620828-4a5a-4527-9415-aeb34fcdf8e1", + "createTime": "2026-05-05T20:21:10.177Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "io.grafeas:grafeas", + "id": "1a31fac0-c31b-48df-9525-3ec7ac857dbc", + "createTime": "2026-05-05T20:21:10.048Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.api-ads:data-manager", + "id": "79557054-09c8-47cf-9c94-65830166bcb4", + "createTime": "2026-05-05T20:21:09.928Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.api-ads:ad-manager", + "id": "aa98931c-dade-4bbb-9f58-7b428c010649", + "createTime": "2026-05-05T20:21:09.809Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workstations", + "id": "6b611145-88e4-4b46-99e8-b02879394f1c", + "createTime": "2026-05-05T20:21:09.606Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workspaceevents", + "id": "7d88ae9c-ad5b-4d5c-8f25-3f1b74732b69", + "createTime": "2026-05-05T20:21:09.485Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workloadmanager", + "id": "d3eec7d6-f1a3-4d9d-a1ab-c615109f7511", + "createTime": "2026-05-05T20:21:09.336Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workflows", + "id": "34e71bf9-4389-4403-b580-3cd7954d722b", + "createTime": "2026-05-05T20:21:09.218Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workflow-executions", + "id": "c324f5cf-2952-45d4-a063-49778dfc9f37", + "createTime": "2026-05-05T20:21:09.088Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-websecurityscanner", + "id": "ab01752a-b479-473e-8e00-63965591b6f4", + "createTime": "2026-05-05T20:21:08.975Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-webrisk", + "id": "1875e7f6-d175-4233-98d5-38023c4b1e34", + "createTime": "2026-05-05T20:21:08.852Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vpcaccess", + "id": "46d47d96-52a9-4e24-8f90-36fc4c3070b4", + "createTime": "2026-05-05T20:21:08.739Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vmwareengine", + "id": "cf4fe5e1-868d-4cc8-b121-9a7c6ef74273", + "createTime": "2026-05-05T20:21:08.606Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vmmigration", + "id": "6ca45253-1bd5-457f-843d-5265513fe341", + "createTime": "2026-05-05T20:21:08.491Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-visionai", + "id": "f88becb8-1460-49df-a4e3-3993e6c5ee09", + "createTime": "2026-05-05T20:21:08.358Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vision", + "id": "e1d8e801-2026-4460-b9d0-6b8a24991ffb", + "createTime": "2026-05-05T20:21:08.244Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-transcoder", + "id": "9050b057-5a18-4937-a352-aad934516127", + "createTime": "2026-05-05T20:21:08.118Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-stitcher", + "id": "2646f1ac-380d-47ad-b412-0094f50d06b3", + "createTime": "2026-05-05T20:21:07.992Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-live-stream", + "id": "d5cb18ea-3be0-48e3-9f08-33f779a17bd2", + "createTime": "2026-05-05T20:21:07.861Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-intelligence", + "id": "c4216a66-23a4-4d74-906c-b6fe3b475039", + "createTime": "2026-05-05T20:21:07.743Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "5208fc94f69790dbe2ba65ab2685ad9674314b6c", + "message": "bump vectorsearch to 0.13.0 for partial release", + "issues": [ + "12805" + ] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vectorsearch", + "id": "b39b8b3f-0ef8-4398-b0f4-2265f158ad64", + "createTime": "2026-05-05T20:21:07.628Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-translate", + "id": "c62adc8f-0d1a-46da-83f5-13f58320e45d", + "createTime": "2026-05-05T20:21:07.415Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-trace", + "id": "16e348c3-cd83-4e0d-8ebe-6f4047b924a1", + "createTime": "2026-05-05T20:21:07.294Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-tpu", + "id": "7917c84a-1e32-4f42-8219-1a84c623d58e", + "createTime": "2026-05-05T20:21:07.156Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-texttospeech", + "id": "287e1c8b-a68f-4c7a-aa1d-bc4d2fe24f8b", + "createTime": "2026-05-05T20:21:07.035Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-telcoautomation", + "id": "3c2c9125-35c3-4534-8c96-8a6a30b3be38", + "createTime": "2026-05-05T20:21:06.898Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-tasks", + "id": "f5884402-e245-4654-843f-0ee62a2ca007", + "createTime": "2026-05-05T20:21:06.789Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-talent", + "id": "e4436769-8828-45d6-a910-4a6ea802c9a9", + "createTime": "2026-05-05T20:21:06.658Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storageinsights", + "id": "605d2348-40bb-45f1-8de2-e488c58cd5f7", + "createTime": "2026-05-05T20:21:06.534Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storagebatchoperations", + "id": "29fdb49a-d939-4a8d-b937-45558ba5c71c", + "createTime": "2026-05-05T20:21:06.411Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storage-transfer", + "id": "b0349fbe-0f28-4165-b10b-4f096d7c63d9", + "createTime": "2026-05-05T20:21:06.297Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-speech", + "id": "61e43801-9597-46e3-aaf5-59298146746e", + "createTime": "2026-05-05T20:21:06.155Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-spanneradapter", + "id": "d84b6fc9-e857-440d-806c-3d7c502896be", + "createTime": "2026-05-05T20:21:06.042Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-products", + "id": "d0048d9d-21d2-400b-8c33-a4766eb90694", + "createTime": "2026-05-05T20:21:05.924Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-shell", + "id": "8057a5d8-ab97-43ef-836e-a20291457a5d", + "createTime": "2026-05-05T20:21:05.819Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-servicehealth", + "id": "75b127c9-a249-4d01-b636-f31bbac310de", + "createTime": "2026-05-05T20:21:05.687Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-servicedirectory", + "id": "28c77b35-0379-477c-aca6-3f8b8010cfe9", + "createTime": "2026-05-05T20:21:05.583Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-usage", + "id": "623154fd-ef6f-441e-92b2-cf26518d939d", + "createTime": "2026-05-05T20:21:05.412Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-management", + "id": "948e3d96-d123-482a-a675-d464df908a0f", + "createTime": "2026-05-05T20:21:05.283Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-control", + "id": "1fdeb736-fe89-4e36-97b3-1bd37f7cccea", + "createTime": "2026-05-05T20:21:05.158Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securityposture", + "id": "346ac43d-ed9a-48be-90ef-0a77b15fa4c5", + "createTime": "2026-05-05T20:21:05.038Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycentermanagement", + "id": "a0214066-bae3-456b-b7ae-11f64e0cce19", + "createTime": "2026-05-05T20:21:04.916Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycenter", + "id": "6ddb97de-50ed-4147-b7d3-d0b0c6f65410", + "createTime": "2026-05-05T20:21:04.781Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycenter-settings", + "id": "16e453cd-a10a-49d5-9560-95005c25b8da", + "createTime": "2026-05-05T20:21:04.655Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-security-private-ca", + "id": "7a5c3301-5222-4395-aed6-c7dbb471dd29", + "createTime": "2026-05-05T20:21:04.533Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securesourcemanager", + "id": "ef603479-fdcd-4023-85e6-354c1fd7a052", + "createTime": "2026-05-05T20:21:04.411Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-secretmanager", + "id": "f3bc7a71-3b5c-4d04-841a-fa7407ade083", + "createTime": "2026-05-05T20:21:04.302Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-scheduler", + "id": "a1a6a1b5-65ef-4ffd-a817-53235676ccb5", + "createTime": "2026-05-05T20:21:04.162Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-saasservicemgmt", + "id": "7d0eb69a-4e5d-489a-9da4-273f97da379c", + "createTime": "2026-05-05T20:21:04.050Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-run", + "id": "bed0a854-9b7d-4b33-b6b8-6f70b916de36", + "createTime": "2026-05-05T20:21:03.929Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-retail", + "id": "1dcc0536-d76b-4591-b62f-3ea2eaaa2a09", + "createTime": "2026-05-05T20:21:03.820Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-resourcemanager", + "id": "c0287474-f373-4a35-adff-531cec1e84a4", + "createTime": "2026-05-05T20:21:03.701Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-redis", + "id": "1b74914f-a1d2-4eda-ab58-a0b71c8ac309", + "createTime": "2026-05-05T20:21:03.587Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recommender", + "id": "12fdda09-9f01-4300-a591-db77e0a3c4bf", + "createTime": "2026-05-05T20:21:03.480Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recommendations-ai", + "id": "7a9acf46-4056-4e38-a35a-4bd196d1191e", + "createTime": "2026-05-05T20:21:03.280Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recaptchaenterprise", + "id": "7addcb7e-38a7-4739-8c14-c4695610fac6", + "createTime": "2026-05-05T20:21:03.149Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-rapidmigrationassessment", + "id": "0eff11c3-3fbc-4032-a3df-846c7ef9218f", + "createTime": "2026-05-05T20:21:03.017Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-publicca", + "id": "87145e25-8fac-41f7-aeaa-e2c9e6c238f4", + "createTime": "2026-05-05T20:21:02.908Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-profiler", + "id": "79667754-cfe9-472e-9f4f-7ccda3af0365", + "createTime": "2026-05-05T20:21:02.782Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-privilegedaccessmanager", + "id": "52fde64b-97ef-4f75-af73-b522c82695e4", + "createTime": "2026-05-05T20:21:02.672Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-private-catalog", + "id": "67812812-1b93-429d-a27a-ed7237007d6e", + "createTime": "2026-05-05T20:21:02.556Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-policysimulator", + "id": "07fdb648-a48a-4cfb-894d-7c0bee6bd3bb", + "createTime": "2026-05-05T20:21:02.454Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-policy-troubleshooter", + "id": "22ff9fab-544b-49a5-b78f-215255a12a79", + "createTime": "2026-05-05T20:21:02.330Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-phishingprotection", + "id": "eca56081-90bb-412e-aeb8-aa743e43b056", + "createTime": "2026-05-05T20:21:02.213Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-parametermanager", + "id": "bbfee65b-1397-45a2-a53d-1ef8676cab80", + "createTime": "2026-05-05T20:21:02.095Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-parallelstore", + "id": "e5ecf844-ec45-413f-8185-c03afe1bdf08", + "createTime": "2026-05-05T20:21:01.963Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-os-login", + "id": "89f9cb3c-1054-44e8-97c1-33064d5f4637", + "createTime": "2026-05-05T20:21:01.844Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-os-config", + "id": "e28c994e-353f-474c-b2d6-d23705929462", + "createTime": "2026-05-05T20:21:01.728Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-orgpolicy", + "id": "853a655c-6e5f-49dd-87a6-2593a827b190", + "createTime": "2026-05-05T20:21:01.609Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-orchestration-airflow", + "id": "a065cd71-32e0-49b4-8c1e-96e0f3b1e1d8", + "createTime": "2026-05-05T20:21:01.509Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-oracledatabase", + "id": "6c696d06-2a97-477d-998a-73d795290eb5", + "createTime": "2026-05-05T20:21:01.365Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-optimization", + "id": "ce1d1582-e45c-4eee-b9c4-d02120c3bb55", + "createTime": "2026-05-05T20:21:01.216Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-notebooks", + "id": "f92e555c-25da-42a8-9e37-0662b6b421ee", + "createTime": "2026-05-05T20:21:01.103Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-networkservices", + "id": "28ee716f-19d9-42b0-a137-1bc48d4ff0e3", + "createTime": "2026-05-05T20:21:00.982Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-networkconnectivity", + "id": "e06f79a1-fdac-48f0-ae32-56d48306b820", + "createTime": "2026-05-05T20:21:00.867Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-network-security", + "id": "d94ef40d-9f61-447d-b245-216cadfc3538", + "createTime": "2026-05-05T20:21:00.751Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-network-management", + "id": "af71bb1e-5aba-4ab2-8de1-38a056f09615", + "createTime": "2026-05-05T20:21:00.626Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-netapp", + "id": "4ef18e96-5509-4126-9ca7-ad25c75b0b43", + "createTime": "2026-05-05T20:21:00.525Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring", + "id": "9c087479-3bad-4753-b055-bdbbb5eae834", + "createTime": "2026-05-05T20:21:00.409Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring-metricsscope", + "id": "ffb102c1-7d2c-4797-a859-0a57d83333c5", + "createTime": "2026-05-05T20:21:00.280Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring-dashboard", + "id": "5539c23b-aa49-469b-8143-b8adb78f47d1", + "createTime": "2026-05-05T20:21:00.173Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-modelarmor", + "id": "30dbb76c-378e-4317-908c-95ae0709a06c", + "createTime": "2026-05-05T20:21:00.068Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-migrationcenter", + "id": "cd505b66-2fe1-4104-a6d5-ec065ef8f716", + "createTime": "2026-05-05T20:20:59.956Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-memcache", + "id": "7437fa0d-6419-4021-95d3-0a1a0d96bba6", + "createTime": "2026-05-05T20:20:59.857Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-meet", + "id": "37b65d82-e6a1-444d-af4e-7bee5986a288", + "createTime": "2026-05-05T20:20:59.753Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-mediatranslation", + "id": "9db654b5-2b83-47b3-b247-ad7faa8a9171", + "createTime": "2026-05-05T20:20:59.639Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-managedkafka", + "id": "0e12e099-ae13-4542-9574-4a34cf2388c3", + "createTime": "2026-05-05T20:20:59.535Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-managed-identities", + "id": "af11d62a-9c4c-435b-b651-35473dc07d68", + "createTime": "2026-05-05T20:20:59.389Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-maintenance", + "id": "69bc3dea-e67e-4935-8c06-8f0bd759a9b8", + "createTime": "2026-05-05T20:20:59.236Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-lustre", + "id": "ae554566-1134-4cd3-9811-43985a3219f4", + "createTime": "2026-05-05T20:20:59.125Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-logging", + "id": "f39d29fb-e7ba-4645-bf87-d3af1fba9165", + "createTime": "2026-05-05T20:20:58.993Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-locationfinder", + "id": "fe7db85e-095b-4a7a-a989-c37b9c309813", + "createTime": "2026-05-05T20:20:58.888Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-life-sciences", + "id": "9ca0ff1c-c2bc-4ab2-bbaa-e78ae9e882ae", + "createTime": "2026-05-05T20:20:58.780Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-licensemanager", + "id": "127caf1f-b7f0-4833-82de-52b432b378bf", + "createTime": "2026-05-05T20:20:58.667Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-language", + "id": "0ed1423e-9175-4afd-943a-9e8d41e68abf", + "createTime": "2026-05-05T20:20:58.565Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kmsinventory", + "id": "2dd559c6-4528-449d-9ea2-78f57ca46cfe", + "createTime": "2026-05-05T20:20:58.457Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kms", + "id": "f646c68c-973e-432e-b83b-9d051dff1481", + "createTime": "2026-05-05T20:20:58.336Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iot", + "id": "c15898f3-2035-4b74-8041-21dbb04c6fd4", + "createTime": "2026-05-05T20:20:58.229Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-infra-manager", + "id": "1b3bc846-98b4-44e0-94d4-b2bf1cd909dc", + "createTime": "2026-05-05T20:20:58.116Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-ids", + "id": "d0c0268b-9fd5-498f-84f5-2698d8624729", + "createTime": "2026-05-05T20:20:57.991Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iap", + "id": "7a2cd389-6bf4-4592-83b2-622676464d85", + "createTime": "2026-05-05T20:20:57.879Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iamcredentials", + "id": "b375b70e-e9fc-4b98-9c7c-74626eea9721", + "createTime": "2026-05-05T20:20:57.762Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.api.grpc:proto-google-iam-v1", + "id": "0c026446-4bb3-4f73-8625-ca66074a851a", + "createTime": "2026-05-05T20:20:57.644Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "docs", + "sha": "4568284b546fbf3a65361b3c31738b885cf7af54", + "message": "update bazel targets in DEVELOPMENT.md to point to sdk-platform-java", + "issues": [ + "12844" + ] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-iam-policy", + "id": "e86540cc-acf8-4370-9353-89b2e5999ac8", + "createTime": "2026-05-05T20:20:57.538Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-iam-admin", + "id": "142a248f-9e0c-4542-b529-36594706dc6e", + "createTime": "2026-05-05T20:20:57.371Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-hypercomputecluster", + "id": "bfb389fc-8ee9-4d24-b791-d22c9cf48942", + "createTime": "2026-05-05T20:20:57.232Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gsuite-addons", + "id": "a68b8e2e-8663-4daf-906e-453f8f37bc25", + "createTime": "2026-05-05T20:20:57.116Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gkerecommender", + "id": "f225dcdd-e25b-471c-81b8-cf5596cc5c17", + "createTime": "2026-05-05T20:20:56.994Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gkehub", + "id": "8224ca5d-160f-463a-8a80-fea903239572", + "createTime": "2026-05-05T20:20:56.878Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-multi-cloud", + "id": "13eb82c7-3846-45dc-9a12-7d3f878ab3ac", + "createTime": "2026-05-05T20:20:56.753Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-connect-gateway", + "id": "fb9c9875-9b8f-4a15-9173-3f385ba23fcb", + "createTime": "2026-05-05T20:20:56.628Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-backup", + "id": "1d85ffcf-2f11-4a33-8338-bb2747022654", + "createTime": "2026-05-05T20:20:56.509Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-geminidataanalytics", + "id": "c71f4894-0fef-4096-bdce-23ad2a06d6a7", + "createTime": "2026-05-05T20:20:56.394Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gdchardwaremanagement", + "id": "6055db8e-56e4-41c9-9adf-c01794d6abe3", + "createTime": "2026-05-05T20:20:56.263Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-functions", + "id": "d3c9c7e2-c458-4005-8977-4bb2226b6c76", + "createTime": "2026-05-05T20:20:56.160Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-financialservices", + "id": "3b44137c-7208-485c-98e3-85d5f58610dc", + "createTime": "2026-05-05T20:20:56.023Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-filestore", + "id": "853e9551-a76e-4046-b9ed-299e6bbdc77a", + "createTime": "2026-05-05T20:20:55.904Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-eventarc", + "id": "8578d547-745d-421f-bcdb-818fb551b703", + "createTime": "2026-05-05T20:20:55.800Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-eventarc-publishing", + "id": "1e0582b7-fe65-4fef-8c6d-a84b770ebdb5", + "createTime": "2026-05-05T20:20:55.683Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-essential-contacts", + "id": "2bc6fd23-1262-4448-a7c5-91ec77c98af7", + "createTime": "2026-05-05T20:20:55.562Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-errorreporting", + "id": "06ded93e-4218-4747-ab11-9a799c6a8476", + "createTime": "2026-05-05T20:20:55.462Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-enterpriseknowledgegraph", + "id": "22dbff5c-0f25-48ca-986f-7dceddfd1a80", + "createTime": "2026-05-05T20:20:55.314Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-edgenetwork", + "id": "a0beb976-fc91-40fc-86d2-671a5b5a9c7c", + "createTime": "2026-05-05T20:20:55.167Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-domains", + "id": "e93f57fc-f129-44e3-9ea6-15eeff8ed057", + "createTime": "2026-05-05T20:20:55.055Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-document-ai", + "id": "5f02fed5-678c-4d1a-aaf9-55bc04f8cdff", + "createTime": "2026-05-05T20:20:54.929Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dms", + "id": "1e800870-f00e-4569-a7cb-714923a063f2", + "createTime": "2026-05-05T20:20:54.825Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dlp", + "id": "34ead306-4d7b-44ff-ac26-6de73d801f8f", + "createTime": "2026-05-05T20:20:54.709Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-distributedcloudedge", + "id": "0331721b-3a54-45c8-bc21-5035b497a6bf", + "createTime": "2026-05-05T20:20:54.593Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-discoveryengine", + "id": "d6c3f600-7400-4943-b09a-ccb2bbd3aaa6", + "createTime": "2026-05-05T20:20:54.489Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dialogflow", + "id": "a1720ca0-0190-4ac7-96c4-34e8e9574da9", + "createTime": "2026-05-05T20:20:54.362Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dialogflow-cx", + "id": "1ee7cb23-217e-409e-8f03-5a708e158bca", + "createTime": "2026-05-05T20:20:54.245Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-devicestreaming", + "id": "77e71956-523e-4946-8e0c-ca9c3db7ba1d", + "createTime": "2026-05-05T20:20:54.130Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-developerconnect", + "id": "970ebc5f-fa74-4edd-871e-1b467cef45a5", + "createTime": "2026-05-05T20:20:54.016Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-deploy", + "id": "05ecd9c1-a089-4fb6-b1cc-2833afa55ac8", + "createTime": "2026-05-05T20:20:53.900Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datastream", + "id": "cd597d9b-b9ae-44c3-af26-e11b1a5f4a92", + "createTime": "2026-05-05T20:20:53.797Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataproc", + "id": "c6ad6257-6205-4182-b622-4b8cbd972f0c", + "createTime": "2026-05-05T20:20:53.686Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataproc-metastore", + "id": "f6f93546-0648-4333-915b-40f27f81ec74", + "createTime": "2026-05-05T20:20:53.571Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataplex", + "id": "9acf3aef-4c82-47cf-80b3-89b883fa8641", + "createTime": "2026-05-05T20:20:53.462Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datalineage", + "id": "ca157ba6-6898-4174-b92a-d9b6386633c7", + "createTime": "2026-05-05T20:20:53.327Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datalabeling", + "id": "2c527a11-a7ea-49cd-a85b-948753f4c315", + "createTime": "2026-05-05T20:20:53.193Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataform", + "id": "b10f69db-3a52-4673-84ff-fddc7eb243c5", + "createTime": "2026-05-05T20:20:53.082Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataflow", + "id": "5d937027-bd22-4c1f-9c87-cf2a4678e6db", + "createTime": "2026-05-05T20:20:52.955Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datacatalog", + "id": "53e7272b-8054-4991-8e48-0e58baddff8d", + "createTime": "2026-05-05T20:20:52.848Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-databasecenter", + "id": "4c9185c8-3b2e-4469-822e-c2a5b181b11f", + "createTime": "2026-05-05T20:20:52.735Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-data-fusion", + "id": "e4acc719-08b2-4cc9-8188-b3ce6284d2a4", + "createTime": "2026-05-05T20:20:52.617Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-contentwarehouse", + "id": "83c4cdd7-7ad2-4c2b-b974-c670d2773baf", + "createTime": "2026-05-05T20:20:52.514Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-containeranalysis", + "id": "dc0af88d-1f19-4222-985f-b175c02810a1", + "createTime": "2026-05-05T20:20:52.392Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-container", + "id": "8793b6b9-9973-456c-93ff-25ff2cb14310", + "createTime": "2026-05-05T20:20:52.275Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-contact-center-insights", + "id": "406be741-7a19-4f5f-98f5-8aacbdc207e8", + "createTime": "2026-05-05T20:20:52.163Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-connectgateway", + "id": "b340b98b-fcef-400d-a4ad-b6690e040d5b", + "createTime": "2026-05-05T20:20:52.052Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-configdelivery", + "id": "4a3f5730-3a26-4354-989d-5f009cd95500", + "createTime": "2026-05-05T20:20:51.925Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-confidentialcomputing", + "id": "f24797f9-5919-4666-8ec5-995cb435c5af", + "createTime": "2026-05-05T20:20:51.817Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudsupport", + "id": "192cac24-6804-4264-8f04-99da84adb517", + "createTime": "2026-05-05T20:20:51.711Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudsecuritycompliance", + "id": "34d9ce31-882c-48fb-a331-70b44f7ec064", + "createTime": "2026-05-05T20:20:51.593Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudquotas", + "id": "2d97024c-8c0c-4749-a88b-7de799cca76f", + "createTime": "2026-05-05T20:20:51.492Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudcontrolspartner", + "id": "f64cff4f-6fc7-4ae8-a504-1d388d668e6a", + "createTime": "2026-05-05T20:20:51.345Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudcommerceconsumerprocurement", + "id": "fa0ac6b0-089b-46ea-873a-fdadde54447a", + "createTime": "2026-05-05T20:20:51.207Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-build", + "id": "bc52d973-0ea8-437b-915f-8af0043c25e7", + "createTime": "2026-05-05T20:20:51.092Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudapiregistry", + "id": "1bfc896d-6c66-42d5-8647-b5531c8938c9", + "createTime": "2026-05-05T20:20:50.972Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-chronicle", + "id": "a3f70f96-7d35-49cc-92d0-ac33bdcfd44d", + "createTime": "2026-05-05T20:20:50.867Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-chat", + "id": "9b9388ef-99d3-4122-bb27-f75c3918c00b", + "createTime": "2026-05-05T20:20:50.754Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-channel", + "id": "8a607c98-02b4-4d16-b49a-27fd128ab50b", + "createTime": "2026-05-05T20:20:50.634Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-ces", + "id": "b4ecee5f-4ea7-40eb-b87c-4f708e9a3fce", + "createTime": "2026-05-05T20:20:50.533Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-certificate-manager", + "id": "22e29b6d-10d9-4fbf-84ed-7be833123bd0", + "createTime": "2026-05-05T20:20:50.421Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-capacityplanner", + "id": "6db70aa3-15d6-4a19-a12b-4d15dc91c537", + "createTime": "2026-05-05T20:20:50.296Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-binary-authorization", + "id": "92111e83-aad8-4b7e-b838-af93ace314cb", + "createTime": "2026-05-05T20:20:50.178Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-billingbudgets", + "id": "67f26bb3-a967-4b6d-858a-56bc13d5ef18", + "createTime": "2026-05-05T20:20:50.065Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-billing", + "id": "79b0296b-ada5-46dc-aa9a-7e0d93d7cea5", + "createTime": "2026-05-05T20:20:49.944Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerystorage", + "id": "ca588f9a-075f-484f-b8c4-b886bf3fe83f", + "createTime": "2026-05-05T20:20:49.834Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigqueryreservation", + "id": "bee61441-666e-4914-9575-a26724e994ee", + "createTime": "2026-05-05T20:20:49.722Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerymigration", + "id": "15ac68eb-10a3-4cc6-82da-5611493a9071", + "createTime": "2026-05-05T20:20:49.610Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerydatatransfer", + "id": "9453bef7-39e4-48cc-8453-36d9bb8ed138", + "createTime": "2026-05-05T20:20:49.499Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerydatapolicy", + "id": "388b08ad-143c-435d-ba4a-f8e9b653450d", + "createTime": "2026-05-05T20:20:49.361Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigqueryconnection", + "id": "06f29255-ebba-4484-8573-91871f35edcd", + "createTime": "2026-05-05T20:20:49.211Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquery-data-exchange", + "id": "982c0525-6caa-4305-9af8-c9a99850f655", + "createTime": "2026-05-05T20:20:49.095Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-biglake", + "id": "0f3a9c9e-a5b3-43ce-acb2-1b0440388a9a", + "createTime": "2026-05-05T20:20:48.977Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-clientgateways", + "id": "95d4c809-aec1-42d4-9556-b1dbebdc5bcf", + "createTime": "2026-05-05T20:20:48.863Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-clientconnectorservices", + "id": "a50c48e8-1b9a-4fa5-9a4d-c1123732400b", + "createTime": "2026-05-05T20:20:48.752Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appgateways", + "id": "f406935b-738a-4a07-8fbc-654a9eb7b196", + "createTime": "2026-05-05T20:20:48.645Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appconnectors", + "id": "5d9a04af-7439-4ffc-a12f-0ac81dc761f6", + "createTime": "2026-05-05T20:20:48.525Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appconnections", + "id": "1b051b81-c023-4d14-b74a-cb083e508da6", + "createTime": "2026-05-05T20:20:48.399Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-batch", + "id": "2103ba94-efa2-4d4e-b1df-7c6b1725b146", + "createTime": "2026-05-05T20:20:48.283Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bare-metal-solution", + "id": "421ed354-72b0-4a9a-af28-a14dd01e202b", + "createTime": "2026-05-05T20:20:48.172Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-backupdr", + "id": "921ff07f-4ad8-4f5f-9db9-8ceb9f0a2e92", + "createTime": "2026-05-05T20:20:48.054Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-automl", + "id": "42c0877e-4dc0-428a-83bf-f3efef6d6aa6", + "createTime": "2026-05-05T20:20:47.942Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-auditmanager", + "id": "faa62f57-83b2-4ef9-bbd2-8577f0ef0e8b", + "createTime": "2026-05-05T20:20:47.836Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-assured-workloads", + "id": "ce159fe3-e28e-4d4e-bc0b-986d3fb30fe6", + "createTime": "2026-05-05T20:20:47.713Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-asset", + "id": "f7549179-e422-4722-a1da-be28507a6d48", + "createTime": "2026-05-05T20:20:47.591Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-artifact-registry", + "id": "74de14ab-90bd-45ee-b2d3-d6c50abb28cd", + "createTime": "2026-05-05T20:20:47.478Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.area120:google-area120-tables", + "id": "31a075d5-32df-4f24-bd54-873ef247e9f9", + "createTime": "2026-05-05T20:20:47.365Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-appoptimize", + "id": "a50f13e4-5460-428e-8913-c83caef7da86", + "createTime": "2026-05-05T20:20:47.266Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apphub", + "id": "23535ee1-7e0c-49a5-b118-dc046664dee9", + "createTime": "2026-05-05T20:20:47.125Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-appengine-admin", + "id": "7a19d038-1e08-4f38-b0d1-ce48b4264747", + "createTime": "2026-05-05T20:20:46.969Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apikeys", + "id": "de34aefb-043a-41e6-a396-4a66669635fb", + "createTime": "2026-05-05T20:20:46.849Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apihub", + "id": "0434dfd9-5889-48a2-9ddd-34212cd53659", + "createTime": "2026-05-05T20:20:46.736Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apigee-registry", + "id": "439e336d-cc1e-4106-8cef-cf645432d31e", + "createTime": "2026-05-05T20:20:46.617Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apigee-connect", + "id": "d91bd363-5ac4-48b8-8080-c839f9efe7e7", + "createTime": "2026-05-05T20:20:46.503Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-api-gateway", + "id": "e3d24557-02e6-4af2-a967-bdc9ae5393ca", + "createTime": "2026-05-05T20:20:46.402Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-analyticshub", + "id": "d511adf9-9629-4e35-9bef-350f895a6fe3", + "createTime": "2026-05-05T20:20:46.281Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.analytics:google-analytics-data", + "id": "47e7f3b4-4b32-452e-acc4-d202b3f1dd38", + "createTime": "2026-05-05T20:20:46.160Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.analytics:google-analytics-admin", + "id": "fd80fb52-652c-459e-bc42-cf205f809261", + "createTime": "2026-05-05T20:20:46.036Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-alloydb", + "id": "b07bb563-f7f8-4ad9-b112-f103943faac9", + "createTime": "2026-05-05T20:20:45.934Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-alloydb-connectors", + "id": "8aacaf84-d431-40ce-a611-f11f4575bd03", + "createTime": "2026-05-05T20:20:45.823Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-aiplatform", + "id": "3d4cb17c-b2f0-4bc2-afb3-d960848fd211", + "createTime": "2026-05-05T20:20:45.708Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-advisorynotifications", + "id": "3322c0cd-f112-4879-8883-af01f0731947", + "createTime": "2026-05-05T20:20:45.592Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-identity-accesscontextmanager", + "id": "38589bb5-e27d-4f16-8bcf-828175ed93e3", + "createTime": "2026-05-05T20:20:45.476Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-accessapproval", + "id": "d40417d7-f7ce-4b59-a6ce-07ce604a0c02", + "createTime": "2026-05-05T20:20:45.366Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[shopping-merchant-reports] add `store_type` to", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[compute] Update Compute Engine v1 API to revision 20260331", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[redis-cluster][Memorystore for Redis Cluster] Updating new node", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[valkey] [Memorystore for Valkey] Updating new node types added", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Updating new node", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[valkey] [Memorystore for Valkey] Updating new node types added", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-valkey", + "id": "d6eca251-4a85-4888-b95c-1c86a2b96dd5", + "createTime": "2026-05-05T20:20:45.251Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[shopping-merchant-reports] add `store_type` to", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[compute] Update Compute Engine v1 API to revision 20260331", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[redis-cluster][Memorystore for Redis Cluster] Updating new node", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[valkey] [Memorystore for Valkey] Updating new node types added", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Updating new node", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[valkey] [Memorystore for Valkey] Updating new node types added", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-reports", + "id": "a3f6736d-fdd1-4ac9-b399-5debefef0dc1", + "createTime": "2026-05-05T20:20:45.120Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[shopping-merchant-reports] add `store_type` to", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[compute] Update Compute Engine v1 API to revision 20260331", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[redis-cluster][Memorystore for Redis Cluster] Updating new node", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[valkey] [Memorystore for Valkey] Updating new node types added", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Updating new node", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[valkey] [Memorystore for Valkey] Updating new node types added", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-redis-cluster", + "id": "a6c2ba6c-35d2-4c74-b9b4-f511335dbcfa", + "createTime": "2026-05-05T20:20:44.987Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[shopping-merchant-reports] add `store_type` to", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[compute] Update Compute Engine v1 API to revision 20260331", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[redis-cluster][Memorystore for Redis Cluster] Updating new node", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[valkey] [Memorystore for Valkey] Updating new node types added", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Updating new node", + "issues": [] + }, + { + "type": "feat", + "sha": "d3b76d9c26b5838b79e08b13082ebffc9766044f", + "message": "[valkey] [Memorystore for Valkey] Updating new node types added", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-compute", + "id": "3e2c9a01-e5fe-4951-a6d5-fabdb2968291", + "createTime": "2026-05-05T20:20:44.876Z" + }, + { + "changes": [ + { + "type": "deps", + "sha": "522e05b9112ea0160098152fee8b400fe4d0aa7d", + "message": "upgrade opentelemetry", + "issues": [ + "12953" + ] + }, + { + "type": "feat", + "sha": "0720279588c08d41875cba7af206882113ac33b5", + "message": "[mapmanagement] new module for mapmanagement", + "issues": [ + "12874" + ] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-mapmanagement", + "id": "8d2e4e1d-c529-4110-b956-d1ff07b1d394", + "createTime": "2026-05-05T20:20:44.773Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "2cecd0caf4f15da2d894a70077ccb0d0fd69d296", + "message": "Implement deleteSourceObjects for Compose Operation", + "issues": [ + "12873" + ], + "scope": "storage" + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storage", + "id": "d3a51ad5-91a9-420f-a594-f0b7f8c1fbdc", + "createTime": "2026-05-05T20:20:44.670Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "df2099407854fdd0b225b748977b77e97db07d75", + "message": "Bump to v3 major version", + "issues": [ + "12989" + ], + "scope": "datastore" + }, + { + "type": "feat", + "sha": "24fb234d8e2763cad40e0ef811f23ed54263a196", + "message": "Swap the default transport from HttpJson to gRPC", + "issues": [ + "12977" + ], + "scope": "Datastore" + }, + { + "type": "feat", + "sha": "0bca75c3236aa8533cb10ea7c7faac56e5ae8fed", + "message": "Remove deprecated classes and methods and bump ObsoleteApi to Deprecated", + "issues": [ + "12971" + ], + "scope": "datastore" + }, + { + "type": "feat", + "sha": "1721e7c539b85b4377caf7b00215a019afb0eec1", + "message": "Enable Otel metrics for custom Otel", + "issues": [ + "12969" + ], + "scope": "datastore" + }, + { + "type": "feat", + "sha": "552a34dd358bc20e284e670ac1493afb9ec86d52", + "message": "Introduce Client Side Metrics", + "issues": [ + "12718" + ], + "scope": "Datastore" + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "fix", + "sha": "851fb890845f04c4a4cb9cc4f79262b2d0ba3105", + "message": "Update initial ChannelPool configs according to Datastore best practice guide", + "issues": [ + "12919" + ], + "scope": "datastore" + }, + { + "type": "feat", + "sha": "26fe0f902dc41a6b8bf5586df35a7cad7cc941d4", + "message": "Update default channel pool configs to handle initial bursts and scalability", + "issues": [ + "12883" + ], + "scope": "datastore" + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + }, + { + "type": "fix", + "sha": "4bed8fd118a723c1d82ae3f29e0550d461db695a", + "message": "Create a plaintext gRPC transport channel when using the Emulator", + "issues": [ + "12721" + ], + "scope": "datastore" + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datastore", + "id": "bee6a637-129f-4637-9b29-70491891ae0f", + "createTime": "2026-05-05T20:20:44.557Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "5251219a7780189b65dbb639d8d88899377c038c", + "message": "Cleanup GcpFallbackChannel creation and enable by default", + "issues": [ + "12707" + ], + "scope": "spanner" + }, + { + "type": "fix", + "sha": "3e02f1846e030be04cc4035299c7581348574e00", + "message": "fix flakiness and race conditions in multiplexed session tests", + "issues": [ + "12949" + ], + "scope": "spanner" + }, + { + "type": "feat", + "sha": "dc1216ed25da0ec05f955343d45f7889fb9c7276", + "message": "add connection properties for min/max RPCs for DCP", + "issues": [ + "12951" + ], + "scope": "spanner" + }, + { + "type": "fix", + "sha": "93f21ed3812240f042cf06e869ff3f62ddd5bf35", + "message": "fix flakiness in testCreateSessionDeadlineExceeded", + "issues": [ + "12944" + ], + "scope": "spanner" + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] add OnlineEvaluator API and update Evaluation API", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[cloudsecuritycompliance] Updated docs for the APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Support VeoLoraTuningSpec in the tuning jobs", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[netapp] add ScaleType for Storage Pools and LargeCapacityConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[shopping-merchant-products] a new optional field `video_links` is", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[modelarmor] add streaming methods StreamSanitizeUserPrompt and", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[iam] new iam v3beta client for AccessPolicies, this is step 4&5", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[aiplatform] Add asyncQueryReasoningEngine to aiplatform v1 API", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[chat] Addition of ChatService.FindGroupChats", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[kms] Update the comment for duration value", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[ces] Add ability to specify mocked tool responses in ExecuteTool", + "issues": [] + }, + { + "type": "feat", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[analytics-admin] add UserProvidedDataSettings resource and", + "issues": [] + }, + { + "type": "docs", + "sha": "a1ab487b6c03c719f518a68ed77557e5ade19d05", + "message": "[saasservicemgmt] rebrand from \"SaaS Runtime\" to \"App Lifecycle", + "issues": [] + }, + { + "type": "feat", + "sha": "1e633d785f8bae4ef3f4eee4c15d3993a0560508", + "message": "add connection property for enabling/disabling grpc-gcp", + "issues": [ + "12898" + ], + "scope": "spanner" + }, + { + "type": "feat", + "sha": "f5f273ba0bd6b7ca9a8be7d1b5a89211ef5ff9fc", + "message": "add shared endpoint cooldowns for location-aware rerouting", + "issues": [ + "12845" + ], + "scope": "spanner" + }, + { + "type": "perf", + "sha": "5c821a3bbadeabe745b652b0d0f40c76c452b1aa", + "message": "use StringBuilder for generating RequestId", + "issues": [ + "12809" + ], + "scope": "spanner" + }, + { + "type": "fix", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "update the Java code generator (gapic-generator-java) to", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] Model Registry CopyModel BYOSA", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[aiplatform] new field CopyModelRequest.custome_service_account", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[bigqueryreservation] add principal field to BigQuery Reservation", + "issues": [] + }, + { + "type": "feat", + "sha": "531942bb9e9ce55b86508f60b34936b3c467a28d", + "message": "[vectorsearch] Added CMEK support", + "issues": [] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-spanner", + "id": "030a4025-67b6-4622-90fc-e01f40bac4d3", + "createTime": "2026-05-05T20:20:44.446Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "44e978915093d79d17412a2a1bc3bd891d366435", + "message": "do not call 'getQueryResults' for stateful queries via 'query' api", + "issues": [ + "12999" + ], + "scope": "bq" + }, + { + "type": "fix", + "sha": "9b5c4fa3bff718170b63c1cc404e4dd4cacfbbdc", + "message": "add default OAuth client id/secret", + "issues": [ + "12946" + ], + "scope": "bqjdbc" + }, + { + "type": "fix", + "sha": "37555fb09f209bbeb8f32f1661d83a7548175411", + "message": "metadata methods & getSqlTypeName for struct", + "issues": [ + "12947" + ], + "scope": "bqjdbc" + }, + { + "type": "feat", + "sha": "cd571691f5aadbd3bfa7ee2dfad5414cef6127c2", + "message": "Bypass dry-run job for read-only tokens.", + "issues": [ + "12961" + ], + "scope": "bqjdbc" + }, + { + "type": "fix", + "sha": "8ce183cf802f1abadb809bfe733d904570980968", + "message": "support Service Account Impersonation in ADC", + "issues": [ + "12967" + ], + "scope": "bqjdbc" + }, + { + "type": "deps", + "sha": "522e05b9112ea0160098152fee8b400fe4d0aa7d", + "message": "upgrade opentelemetry", + "issues": [ + "12953" + ] + }, + { + "type": "fix", + "sha": "45b572fae59d9448d9d8c5561be3735496142154", + "message": "Log exception messages - part 3", + "issues": [ + "12920" + ], + "scope": "bqjdbc" + }, + { + "type": "feat", + "sha": "2e56184849a0888256a48ace191a870287ce1fef", + "message": "Integrate the PerConnectionFileHandler with BigQueryJdbcRootLogger", + "issues": [ + "12933" + ], + "scope": "bqjdbc" + }, + { + "type": "feat", + "sha": "5846197cc28a700964914d32cfbf90bfee3b37a8", + "message": "Per connection logs - Add PerConnectionFileHandler", + "issues": [ + "12899" + ], + "scope": "bqjdbc" + }, + { + "type": "fix", + "sha": "5215b119726f124ff9228dcfe86ebca54f7915ae", + "message": "Log exception messages - part 2", + "issues": [ + "12907" + ], + "scope": "bqjdbc" + }, + { + "type": "fix", + "sha": "ce4969b81e18a165d2c6cb245a8073923ab92567", + "message": "enhance logging with caller inference and explicit exception tracking", + "issues": [ + "12903" + ], + "scope": "bqjdbc" + }, + { + "type": "fix", + "sha": "4233fafb2118ad28f89c996899a52b37d48c79eb", + "message": "optimize formatter in BigQueryJdbcRootLogger", + "issues": [ + "12877" + ], + "scope": "bqjdbc" + }, + { + "type": "feat", + "sha": "f562667366260fd488ab149ec3e8b67b0bb350f3", + "message": "Per connection logs - Add BigQueryJdbcMdc", + "issues": [ + "12833" + ], + "scope": "bqjdbc" + }, + { + "type": "fix", + "sha": "5c890f80f7f7ffef1d099104f605298486fe636d", + "message": "add Google Driver scope to all credential types", + "issues": [ + "12847" + ], + "scope": "bqjdbc" + }, + { + "type": "fix", + "sha": "ac69c8d9041121b7bdd1f7cb7b6b0d2f182ba138", + "message": "Revert DatabaseMetaData field to be non-static in BigQueryConnection", + "issues": [ + "12778" + ], + "scope": "bqjdbc" + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquery", + "id": "4058ec8c-d2c5-449e-918e-9121298f4bad", + "createTime": "2026-05-05T20:20:44.328Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "d568a8c326d40da4edb2315a5ca4c8b0eaa60ebe", + "message": "[health] new module for health", + "issues": [ + "12993" + ] + } + ], + "version": "1.86.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-health", + "id": "15033778-78d1-4040-a0e2-5abb8898ec85", + "createTime": "2026-05-05T20:20:44.226Z" + }, { "changes": [ { @@ -291730,5 +319224,5 @@ "createTime": "2026-02-25T17:30:12.355Z" } ], - "updateTime": "2026-04-14T00:07:26.724Z" + "updateTime": "2026-05-05T20:21:13.354Z" } \ No newline at end of file diff --git a/docs/grpc_channel_pool_guide.md b/docs/grpc_channel_pool_guide.md new file mode 100644 index 000000000000..9bd221e7af29 --- /dev/null +++ b/docs/grpc_channel_pool_guide.md @@ -0,0 +1,238 @@ +# Configuring gRPC Channel Pools in Java Client Libraries + +## Overview + +This guide provides general best practices for configuring and tuning gRPC channel pools in Google Cloud Java client libraries. By understanding how the Java SDK manages gRPC connections, you can optimize your application for throughput and latency, and prevent common pitfalls like client-side request queuing, cold-start connection delays, and resource thrashing. + +> [!NOTE] +> The default channel pool configuration is designed to work well for the majority of workloads. You do not need to change these settings unless you are experiencing performance issues or have specific throughput requirements. If you do run into issues, this guide will help you tune the channel pool for your workload. + +> [!CAUTION] +> ChannelPool and ChannelPoolSettings are marked with @BetaApi and may be subject to change while the API stabilizes. While the API may seem stable, we do not promise any compatibility guarantees. + +--- + +## Background + +For applications with high throughput or concurrency demands, a single gRPC connection can potentially become a performance bottleneck due to limits on concurrent streams. Users may experience a spike in latency as requests queue on the gRPC connection when the limit is reached. Google middleware enforces a limit of 100 streams per connection. To overcome this, the Google Cloud Java client libraries use **Channel Pooling** via the Gax-Java (Google API Extensions for Java) library. + +GAX is the internal transport layer shared by all Google Cloud Java client libraries. It handles connection management, retries, and configuration, including channel pools. + +Channel pooling spreads the outbound RPC load across multiple identical gRPC connections, which can help achieve higher throughput and better resilience for demanding workloads. + +--- + +## How Channel Pools Work Under the Hood + +Understanding the internals helps you choose the right settings before diving into configuration. + +1. **Multiplexing with Round-Robin**: GAX distributes RPC traffic across pooled channels using a round-robin strategy. Each incoming request is assigned to the next channel in sequence. + - **The Hotspot Gotcha**: Strict round-robin does not differentiate between light and heavy payloads. If one channel is assigned multiple heavy operations in succession, you might encounter queuing delays on that channel while other channels remain idle. + +2. **Dynamic Sizing**: GAX can dynamically scale the number of open connections based on the number of concurrent in-flight requests (outstanding RPCs). It evaluates load every **1 minute** and scales in controlled increments limited by `maxResizeDelta` (default 2). + + > [!IMPORTANT] + > **Dynamic sizing is opt-in.** With the default settings (`minRpcsPerChannel=0`, `maxRpcsPerChannel=Integer.MAX_VALUE`), the pool is treated as **statically sized** and will never resize automatically. To enable dynamic sizing, you must configure meaningful threshold values for `minRpcsPerChannel` and/or `maxRpcsPerChannel`. See [Configuration](#configuration) below. + +3. **Preemptive Refresh** *(disabled by default)*: When enabled, connections are asynchronously replaced every **50 minutes** to prevent forceful termination by Google Front End (GFE), the Google infrastructure layer that manages external connections and forcibly closes long-lived ones after roughly an hour. Enable preemptive refresh explicitly with `.setPreemptiveRefreshEnabled(true)`. + +4. **Idle Connection Pruning**: If a connection remains completely idle, the GFE layer gracefully drops it to save server resources. This is why oversizing the pool can cause tail latency: idle channels get dropped, and re-establishing them takes time when traffic resumes. (Source: [Bigtable Documentation](https://docs.cloud.google.com/bigtable/docs/connection-pools)) + +5. **Dampening**: The `maxResizeDelta` setting rate-limits how many channels can be added or removed per resize cycle, protecting both client and server against aggressive connection thrashing. + +--- + +## Configuration + +Settings are configured via `setChannelPoolSettings()` on the `InstantiatingGrpcChannelProvider.Builder` within your service client builder. + +All settings described below are properties of the [`ChannelPoolSettings`](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.ChannelPoolSettings) class. + +### Quick Start Example + +```java +// Step 1: Get the default gRPC transport provider builder for your service. +// Replace YourServiceSettings with the actual settings class, e.g. DatastoreSettings. +InstantiatingGrpcChannelProvider.Builder transportChannelProviderBuilder = + YourServiceSettings.defaultGrpcTransportProviderBuilder(); + +// Step 2: Configure the channel pool settings. +// These are example values. Tune based on your workload using the Sizing section below. +transportChannelProviderBuilder.setChannelPoolSettings( + ChannelPoolSettings.builder() + .setInitialChannelCount(2) + .setMinChannelCount(2) + .setMaxChannelCount(10) + .setMinRpcsPerChannel(1) // shrink if concurrent load drops below 1 RPC/channel + .setMaxRpcsPerChannel(50) // grow if concurrent load exceeds 50 RPCs/channel + .setPreemptiveRefreshEnabled(true) // replace channels every 50 min before GFE drops them + .build() +); + +// Step 3: Build the service settings with the custom transport provider. +YourServiceSettings settings = YourServiceSettings.newBuilder() + .setTransportChannelProvider(transportChannelProviderBuilder.build()) + .build(); + +// Step 4: Create the client using the configured settings. +YourServiceClient client = YourServiceClient.create(settings); +``` + +### Key Pool Configuration Parameters + +| Configuration Property | Default | Description | Recommended Use | +| :--- | :--- | :--- | :--- | +| [`initialChannelCount`](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.ChannelPoolSettings#getInitialChannelCount()) | 1 | Number of channels created upon client instantiation. | Set higher if your app experiences high throughput bursts at startup. | +| [`minChannelCount`](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.ChannelPoolSettings#getMinChannelCount()) | 1 | The absolute floor for active channels in the pool. The pool will never shrink below this number, even during idle periods. | Prevents all connections from being dropped during quiet periods, which protects against latency spikes when traffic resumes. | +| [`maxChannelCount`](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.ChannelPoolSettings#getMaxChannelCount()) | 200 | The absolute ceiling for active channels in the pool. | Set high enough to handle peak throughput. | +| `maxResizeDelta` | 2 | Maximum channels added or removed per resize cycle. Acts as a rate limiter to prevent sudden resource surges. | Keep at or below 25. Higher values allow faster scaling but risk cold-start latency penalties from establishing many connections at once. | +| [`minRpcsPerChannel`](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.ChannelPoolSettings#getMinRpcsPerChannel()) | 0 | The pool shrinks when in-flight request load implies fewer channels are needed. **Setting to 0 (default) disables shrinking and dynamic sizing entirely.** | Set to `1` or higher to enable dynamic shrinking. Match to your target floor utilization per channel (see Sizing section). | +| [`maxRpcsPerChannel`](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.ChannelPoolSettings#getMaxRpcsPerChannel()) | `Integer.MAX_VALUE` | The pool grows when in-flight request load implies more channels are needed. **Setting to `Integer.MAX_VALUE` (default) disables growing and dynamic sizing entirely.** | Set to `50` or lower to enable dynamic growth. Match to your target ceiling utilization per channel (see Sizing section). | +| [`preemptiveRefreshEnabled`](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.ChannelPoolSettings#isPreemptiveRefreshEnabled()) | `false` | When `true`, all channels are replaced on a 50-minute cycle before GFE forcibly disconnects them. | Enable for long-running clients to reduce tail latency from forced reconnects. | + +> [!IMPORTANT] +> **The pool is statically sized by default.** Dynamic resizing only activates when at least one of `minRpcsPerChannel` or `maxRpcsPerChannel` is set to a non-default value. If both remain at their defaults (0 and `Integer.MAX_VALUE`), the pool holds `initialChannelCount` channels for the lifetime of the client and never resizes. + +--- + +## Sizing Your Channel Pool + +If a pool has **too few** connections for its workload, in-flight requests might queue on the client side, which can show up as high latency. Conversely, having **too many** connections may lead to idle connections being dropped by GFE, potentially inducing tail latency spikes as connections need to be re-established when traffic returns. + +### Why Do We Account for Concurrency? + +gRPC sends multiple requests over the same connection simultaneously using HTTP/2 streams. Each request holds its stream open for as long as the request takes to complete (its latency). This means: + +- **Serial throughput of one stream**: If each request takes 20ms, a single stream can complete 1,000ms / 20ms = **50 requests per second**. +- **Concurrent streams needed**: If your application must serve 5,000 requests per second, one stream handling 50 req/s is not enough. You need enough simultaneous streams to collectively handle 5,000 req/s. That requires 5,000 / 50 = **100 streams open at the same time**. + +If the pool is sized without considering these concurrency factors, it may lead to **client-side queuing** (if sized too small) or **idle connection dropouts** (if sized too large). + +### Calculating Optimal Channel Pool Bounds + +A single gRPC channel supports up to 100 concurrent streams. To leave safe headroom and prevent queuing, the [Datastore Java client documentation](https://docs.cloud.google.com/datastore/docs/java-client-grpc#connection_pool_configuration) recommends keeping each channel between **10 and 50 concurrent streams**. + +These thresholds map directly to `minRpcsPerChannel` and `maxRpcsPerChannel`: +- Set `maxRpcsPerChannel` to the **ceiling** (e.g. 50): the pool grows when any channel would exceed this. +- Set `minRpcsPerChannel` to the **floor** (e.g. 10): the pool shrinks when channels drop below this. + +Use the following formulas to find how many channels you need for a given workload: + +- **Minimum channels needed** = Concurrent streams required / `maxRpcsPerChannel` +- **Maximum channels needed** = Concurrent streams required / `minRpcsPerChannel` + +> [!NOTE] +> These utilization bounds are recommended starting points. Evaluate your actual production traffic and latency profiles when tuning these thresholds. If your calculated minimum channel count is less than 2, use at least **2 channels** to maintain redundancy. + +> [!TIP] +> **Worked example**: An application handles 5,000 peak QPS with an average latency of 20ms. +> +> 1. Serial throughput per stream: 1,000ms / 20ms = **50 requests/sec per stream** +> 2. Concurrent streams required: 5,000 QPS / 50 req/s = **100 concurrent streams** +> 3. Minimum channels: 100 / 50 = **2 channels** (each channel at peak: 50 RPCs/channel) +> 4. Maximum channels: 100 / 10 = **10 channels** (each channel at minimum: 10 RPCs/channel) +> +> Configure your pool with `setMinChannelCount(2)`, `setMaxChannelCount(10)`, `setMaxRpcsPerChannel(50)`, and `setMinRpcsPerChannel(10)`. + +--- + +## Troubleshooting + +### Enabling Resize Logging + +By default, resize events are logged at `FINE` level and are **not visible** in standard application output. To observe pool resizing behavior, enable detailed logging for the channel pool logger (`com.google.api.gax.grpc.ChannelPool`): + +```java +// Add this during application startup, before creating any clients. +import java.util.logging.Level; +import java.util.logging.Logger; + +Logger.getLogger("com.google.api.gax.grpc.ChannelPool").setLevel(Level.FINEST); +``` + +Or configure it via a `logging.properties` file: + +```properties +com.google.api.gax.grpc.ChannelPool.level=FINEST +``` + +Once enabled, you will see log entries like: + +``` +Detected throughput peak of 87, expanding channel pool size: 4 -> 6. +Detected throughput drop to 3, shrinking channel pool size: 6 -> 4. +``` + +See the [Google Cloud Java troubleshooting guide](https://docs.cloud.google.com/java/docs/troubleshooting) for more details on enabling logging. + +**At default log levels, the only visible resize signal** is a `WARNING` emitted after 5 consecutive resize cycles: + +``` +Channel pool is repeatedly resizing. Consider adjusting `initialChannelCount` or +`maxResizeDelta` to a more reasonable value. +``` + +If you see this warning in production without having enabled detailed logging, your pool is continuously scaling up or down, which is a sign that it is not sized for your actual baseline traffic. + +--- + +### Common Latency Scenarios and Fixes + +#### 1. Gradual Startup Latency Peaks +- **Symptom**: After enabling detailed logging, you see the pool expand in successive 1-minute cycles (e.g., `4 -> 6`, then `6 -> 8`, then `8 -> 10`). Alternatively, the consecutive-resize warning appears in your logs. +- **Probable Cause**: The pool is under-provisioned at startup. Each scale-up step requires new connections to complete TCP/TLS handshakes before serving traffic, adding latency. +- **Possible Fixes**: + - Increase `initialChannelCount` to match the stable pool size you observe in logs after ramp-up completes. + - Increase `maxResizeDelta` to handle spikes in requests + +#### 2. Performance Ceiling at High Scale +- **Symptom**: Resize logs stop appearing (pool has stabilized at its ceiling) while latency continues to spike. +- **Probable Cause**: The pool has reached its `maxChannelCount` ceiling, and new requests are queuing behind the existing channels. +- **Possible Fixes**: + - Increase `maxChannelCount` using the sizing formulas above + - Re-evaluate your `maxRpcsPerChannel` threshold + +#### 3. Network Dropouts and Intermittent Failures +- **Log Event**: `Entering TRANSIENT_FAILURE state` +- **Probable Cause**: Unstable network connectivity, firewalls, or misconfigured HTTP/2 keep-alive settings. A single isolated occurrence is likely a transient network blip and nothing to worry about. Repeated occurrences warrant investigation. +- **Possible Fixes**: + - Evaluate network connectivity between your hosts and the service endpoint + +--- + +## Advanced Information + +### Standard gRPC Channel Lifecycle States + +Logged by `io.grpc.ChannelLogger`, these states define connection phases: +- **CONNECTING**: Negotiating TCP/TLS handshakes. +- **READY**: Connection is alive and processing RPCs. +- **IDLE**: Connection is inactive and may be dropped to save resources. +- **TRANSIENT_FAILURE**: Connection broke unexpectedly; automatic reconnection with back-off is in progress. +- **SHUTDOWN**: Explicitly terminated by the client application. + +### Warning: Deprecated CPU-Based Scaling Heuristics + +> [!CAUTION] +> Historically, the Java SDK used host CPU processor counts as a scaling heuristic via `InstantiatingGrpcChannelProvider.Builder.setChannelsPerCpu()`. +> - **Status**: CPU-based heuristics are obsolete and **highly discouraged**. +> - **Risk**: In virtualized container environments (Kubernetes, Docker), the heuristic frequently misreads virtualized CPU counts, often defaulting to a static pool of just 1 channel and severely throttling throughput. +> +> **How to Migrate Off `setChannelsPerCpu`:** +> Note that you may need to update your client library or `gax-java` dependency versions to use `ChannelPoolSettings`. +> +> ```java +> // Do NOT use the deprecated method: +> // transportChannelProviderBuilder.setChannelsPerCpu(2.0, 100); +> +> // Instead, configure ChannelPoolSettings directly (tune values to your workload): +> transportChannelProviderBuilder.setChannelPoolSettings( +> ChannelPoolSettings.builder() +> .setInitialChannelCount(2) +> .setMinChannelCount(2) +> .setMaxChannelCount(10) +> .setMinRpcsPerChannel(1) +> .setMaxRpcsPerChannel(50) +> .build() +> ); +> ``` diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 5b72992b5e39..122a2d31a79c 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud gapic-libraries-bom pom - 1.85.0 + 1.86.0 Google Cloud Java BOM BOM for the libraries in google-cloud-java repository. Users should not @@ -15,7 +15,7 @@ google-cloud-pom-parent com.google.cloud - 1.85.0 + 1.86.0 ../google-cloud-pom-parent/pom.xml @@ -24,1480 +24,1487 @@ com.google.analytics google-analytics-admin-bom - 0.101.0 + 0.102.0 pom import com.google.analytics google-analytics-data-bom - 0.102.0 + 0.103.0 pom import com.google.area120 google-area120-tables-bom - 0.95.0 + 0.96.0 pom import com.google.cloud google-cloud-accessapproval-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-advisorynotifications-bom - 0.80.0 + 0.81.0 pom import com.google.cloud google-cloud-aiplatform-bom - 3.92.0 + 3.93.0 pom import com.google.cloud google-cloud-alloydb-bom - 0.80.0 + 0.81.0 pom import com.google.cloud google-cloud-alloydb-connectors-bom - 0.69.0 + 0.70.0 pom import com.google.cloud google-cloud-analyticshub-bom - 0.88.0 + 0.89.0 pom import com.google.cloud google-cloud-api-gateway-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-apigee-connect-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-apigee-registry-bom - 0.91.0 + 0.92.0 pom import com.google.cloud google-cloud-apihub-bom - 0.44.0 + 0.45.0 pom import com.google.cloud google-cloud-apikeys-bom - 0.89.0 + 0.90.0 pom import com.google.cloud google-cloud-appengine-admin-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-apphub-bom - 0.55.0 + 0.56.0 pom import com.google.cloud google-cloud-appoptimize-bom - 0.1.0 + 0.2.0 pom import com.google.cloud google-cloud-artifact-registry-bom - 1.90.0 + 1.91.0 pom import com.google.cloud google-cloud-asset-bom - 3.95.0 + 3.96.0 pom import com.google.cloud google-cloud-assured-workloads-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-auditmanager-bom - 0.9.0 + 0.10.0 pom import com.google.cloud google-cloud-automl-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-backupdr-bom - 0.50.0 + 0.51.0 pom import com.google.cloud google-cloud-bare-metal-solution-bom - 0.91.0 + 0.92.0 pom import com.google.cloud google-cloud-batch-bom - 0.91.0 + 0.92.0 pom import com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.89.0 + 0.90.0 pom import com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.89.0 + 0.90.0 pom import com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.89.0 + 0.90.0 pom import com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.89.0 + 0.90.0 pom import com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.89.0 + 0.90.0 pom import com.google.cloud google-cloud-biglake-bom - 0.79.0 + 0.80.0 pom import com.google.cloud google-cloud-bigquery-bom - 2.65.0 + 2.66.0 pom import com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.86.0 + 2.87.0 pom import com.google.cloud google-cloud-bigqueryconnection-bom - 2.93.0 + 2.94.0 pom import com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.88.0 + 0.89.0 pom import com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-bigquerymigration-bom - 0.94.0 + 0.95.0 pom import com.google.cloud google-cloud-bigqueryreservation-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-bigquerystorage-bom - 3.27.0 + 3.28.0 pom import com.google.cloud google-cloud-billing-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-billingbudgets-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-binary-authorization-bom - 1.90.0 + 1.91.0 pom import com.google.cloud google-cloud-build-bom - 3.93.0 + 3.94.0 pom import com.google.cloud google-cloud-capacityplanner-bom - 0.14.0 + 0.15.0 pom import com.google.cloud google-cloud-certificate-manager-bom - 0.94.0 + 0.95.0 pom import com.google.cloud google-cloud-ces-bom - 0.7.0 + 0.8.0 pom import com.google.cloud google-cloud-channel-bom - 3.95.0 + 3.96.0 pom import com.google.cloud google-cloud-chat-bom - 0.55.0 + 0.56.0 pom import com.google.cloud google-cloud-chronicle-bom - 0.29.0 + 0.30.0 pom import com.google.cloud google-cloud-cloudapiregistry-bom - 0.10.0 + 0.11.0 pom import com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.89.0 + 0.90.0 pom import com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.55.0 + 0.56.0 pom import com.google.cloud google-cloud-cloudquotas-bom - 0.59.0 + 0.60.0 pom import com.google.cloud google-cloud-cloudsecuritycompliance-bom - 0.18.0 + 0.19.0 pom import com.google.cloud google-cloud-cloudsupport-bom - 0.75.0 + 0.76.0 pom import com.google.cloud google-cloud-compute-bom - 1.101.0 + 1.102.0 pom import com.google.cloud google-cloud-confidentialcomputing-bom - 0.77.0 + 0.78.0 pom import com.google.cloud google-cloud-configdelivery-bom - 0.25.0 + 0.26.0 pom import com.google.cloud google-cloud-connectgateway-bom - 0.43.0 + 0.44.0 pom import com.google.cloud google-cloud-contact-center-insights-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-container-bom - 2.94.0 + 2.95.0 pom import com.google.cloud google-cloud-containeranalysis-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-contentwarehouse-bom - 0.87.0 + 0.88.0 pom import com.google.cloud google-cloud-data-fusion-bom - 1.91.0 + 1.92.0 pom import com.google.cloud google-cloud-databasecenter-bom - 0.12.0 + 0.13.0 pom import com.google.cloud google-cloud-datacatalog-bom - 1.97.0 + 1.98.0 pom import com.google.cloud google-cloud-dataflow-bom - 0.95.0 + 0.96.0 pom import com.google.cloud google-cloud-dataform-bom - 0.90.0 + 0.91.0 pom import com.google.cloud google-cloud-datalabeling-bom - 0.211.0 + 0.212.0 pom import com.google.cloud google-cloud-datalineage-bom - 0.83.0 + 0.84.0 pom import com.google.cloud google-cloud-dataplex-bom - 1.89.0 + 1.90.0 pom import com.google.cloud google-cloud-dataproc-bom - 4.88.0 + 4.89.0 pom import com.google.cloud google-cloud-dataproc-metastore-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-datastore-bom - 2.40.0 + 2.41.0 pom import com.google.cloud google-cloud-datastream-bom - 1.90.0 + 1.91.0 pom import com.google.cloud google-cloud-deploy-bom - 1.89.0 + 1.90.0 pom import com.google.cloud google-cloud-developerconnect-bom - 0.48.0 + 0.49.0 pom import com.google.cloud google-cloud-devicestreaming-bom - 0.31.0 + 0.32.0 pom import com.google.cloud google-cloud-dialogflow-bom - 4.97.0 + 4.98.0 pom import com.google.cloud google-cloud-dialogflow-cx-bom - 0.102.0 + 0.103.0 pom import com.google.cloud google-cloud-discoveryengine-bom - 0.87.0 + 0.88.0 pom import com.google.cloud google-cloud-distributedcloudedge-bom - 0.88.0 + 0.89.0 pom import com.google.cloud google-cloud-dlp-bom - 3.95.0 + 3.96.0 pom import com.google.cloud google-cloud-dms-bom - 2.90.0 + 2.91.0 pom import com.google.cloud google-cloud-dns - 2.89.0 + 2.90.0 com.google.cloud google-cloud-document-ai-bom - 2.95.0 + 2.96.0 pom import com.google.cloud google-cloud-domains-bom - 1.88.0 + 1.89.0 pom import com.google.cloud google-cloud-edgenetwork-bom - 0.59.0 + 0.60.0 pom import com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.87.0 + 0.88.0 pom import com.google.cloud google-cloud-errorreporting-bom - 0.212.0-beta + 0.213.0-beta pom import com.google.cloud google-cloud-essential-contacts-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-eventarc-bom - 1.91.0 + 1.92.0 pom import com.google.cloud google-cloud-eventarc-publishing-bom - 0.91.0 + 0.92.0 pom import com.google.cloud google-cloud-filestore-bom - 1.92.0 + 1.93.0 pom import com.google.cloud google-cloud-financialservices-bom - 0.32.0 + 0.33.0 pom import com.google.cloud google-cloud-functions-bom - 2.93.0 + 2.94.0 pom import com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.46.0 + 0.47.0 pom import com.google.cloud google-cloud-geminidataanalytics-bom - 0.19.0 + 0.20.0 pom import com.google.cloud google-cloud-gke-backup-bom - 0.90.0 + 0.91.0 pom import com.google.cloud google-cloud-gke-connect-gateway-bom - 0.92.0 + 0.93.0 pom import com.google.cloud google-cloud-gke-multi-cloud-bom - 0.90.0 + 0.91.0 pom import com.google.cloud google-cloud-gkehub-bom - 1.91.0 + 1.92.0 pom import com.google.cloud google-cloud-gkerecommender-bom - 0.11.0 + 0.12.0 pom import com.google.cloud google-cloud-gsuite-addons-bom - 2.91.0 + 2.92.0 + pom + import + + + com.google.cloud + google-cloud-health-bom + 0.1.0 pom import com.google.cloud google-cloud-hypercomputecluster-bom - 0.11.0 + 0.12.0 pom import com.google.cloud google-cloud-iamcredentials-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-iap-bom - 0.47.0 + 0.48.0 pom import com.google.cloud google-cloud-ids-bom - 1.90.0 + 1.91.0 pom import com.google.cloud google-cloud-infra-manager-bom - 0.68.0 + 0.69.0 pom import com.google.cloud google-cloud-iot-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-kms-bom - 2.94.0 + 2.95.0 pom import com.google.cloud google-cloud-kmsinventory-bom - 0.80.0 + 0.81.0 pom import com.google.cloud google-cloud-language-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-licensemanager-bom - 0.24.0 + 0.25.0 pom import com.google.cloud google-cloud-life-sciences-bom - 0.93.0 + 0.94.0 pom import com.google.cloud google-cloud-live-stream-bom - 0.93.0 + 0.94.0 pom import com.google.cloud google-cloud-locationfinder-bom - 0.16.0 + 0.17.0 pom import com.google.cloud google-cloud-logging-bom - 3.32.0 + 3.33.0 pom import com.google.cloud google-cloud-lustre-bom - 0.31.0 + 0.32.0 pom import com.google.cloud google-cloud-maintenance-bom - 0.25.0 + 0.26.0 pom import com.google.cloud google-cloud-managed-identities-bom - 1.89.0 + 1.90.0 pom import com.google.cloud google-cloud-managedkafka-bom - 0.47.0 + 0.48.0 pom import com.google.cloud google-cloud-mediatranslation-bom - 0.97.0 + 0.98.0 pom import com.google.cloud google-cloud-meet-bom - 0.58.0 + 0.59.0 pom import com.google.cloud google-cloud-memcache-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-migrationcenter-bom - 0.73.0 + 0.74.0 pom import com.google.cloud google-cloud-modelarmor-bom - 0.32.0 + 0.33.0 pom import com.google.cloud google-cloud-monitoring-bom - 3.92.0 + 3.93.0 pom import com.google.cloud google-cloud-monitoring-dashboard-bom - 2.93.0 + 2.94.0 pom import com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.85.0 + 0.86.0 pom import com.google.cloud google-cloud-netapp-bom - 0.70.0 + 0.71.0 pom import com.google.cloud google-cloud-network-management-bom - 1.92.0 + 1.93.0 pom import com.google.cloud google-cloud-network-security-bom - 0.94.0 + 0.95.0 pom import com.google.cloud google-cloud-networkconnectivity-bom - 1.90.0 + 1.91.0 pom import com.google.cloud google-cloud-networkservices-bom - 0.47.0 + 0.48.0 pom import com.google.cloud google-cloud-nio-bom - 0.131.0 + 0.132.0 pom import com.google.cloud google-cloud-notebooks-bom - 1.89.0 + 1.90.0 pom import com.google.cloud google-cloud-notification - 0.209.0-beta + 0.210.0-beta com.google.cloud google-cloud-optimization-bom - 1.89.0 + 1.90.0 pom import com.google.cloud google-cloud-oracledatabase-bom - 0.40.0 + 0.41.0 pom import com.google.cloud google-cloud-orchestration-airflow-bom - 1.91.0 + 1.92.0 pom import com.google.cloud google-cloud-orgpolicy-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-os-config-bom - 2.93.0 + 2.94.0 pom import com.google.cloud google-cloud-os-login-bom - 2.90.0 + 2.91.0 pom import com.google.cloud google-cloud-parallelstore-bom - 0.54.0 + 0.55.0 pom import com.google.cloud google-cloud-parametermanager-bom - 0.35.0 + 0.36.0 pom import com.google.cloud google-cloud-phishingprotection-bom - 0.122.0 + 0.123.0 pom import com.google.cloud google-cloud-policy-troubleshooter-bom - 1.90.0 + 1.91.0 pom import com.google.cloud google-cloud-policysimulator-bom - 0.70.0 + 0.71.0 pom import com.google.cloud google-cloud-private-catalog-bom - 0.93.0 + 0.94.0 pom import com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.45.0 + 0.46.0 pom import com.google.cloud google-cloud-profiler-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-publicca-bom - 0.88.0 + 0.89.0 pom import com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.74.0 + 0.75.0 pom import com.google.cloud google-cloud-recaptchaenterprise-bom - 3.88.0 + 3.89.0 pom import com.google.cloud google-cloud-recommendations-ai-bom - 0.98.0 + 0.99.0 pom import com.google.cloud google-cloud-recommender-bom - 2.93.0 + 2.94.0 pom import com.google.cloud google-cloud-redis-bom - 2.94.0 + 2.95.0 pom import com.google.cloud google-cloud-redis-cluster-bom - 0.63.0 + 0.64.0 pom import com.google.cloud google-cloud-resourcemanager-bom - 1.93.0 + 1.94.0 pom import com.google.cloud google-cloud-retail-bom - 2.93.0 + 2.94.0 pom import com.google.cloud google-cloud-run-bom - 0.91.0 + 0.92.0 pom import com.google.cloud google-cloud-saasservicemgmt-bom - 0.21.0 + 0.22.0 pom import com.google.cloud google-cloud-scheduler-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-secretmanager-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-securesourcemanager-bom - 0.61.0 + 0.62.0 pom import com.google.cloud google-cloud-security-private-ca-bom - 2.93.0 + 2.94.0 pom import com.google.cloud google-cloud-securitycenter-bom - 2.99.0 + 2.100.0 pom import com.google.cloud google-cloud-securitycenter-settings-bom - 0.94.0 + 0.95.0 pom import com.google.cloud google-cloud-securitycentermanagement-bom - 0.59.0 + 0.60.0 pom import com.google.cloud google-cloud-securityposture-bom - 0.56.0 + 0.57.0 pom import com.google.cloud google-cloud-service-control-bom - 1.91.0 + 1.92.0 pom import com.google.cloud google-cloud-service-management-bom - 3.89.0 + 3.90.0 pom import com.google.cloud google-cloud-service-usage-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-servicedirectory-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-servicehealth-bom - 0.58.0 + 0.59.0 pom import com.google.cloud google-cloud-shell-bom - 2.90.0 + 2.91.0 pom import com.google.cloud google-cloud-spanner-bom - 6.116.0 + 6.117.0 pom import com.google.cloud google-cloud-spanneradapter-bom - 0.27.0 + 0.28.0 pom import com.google.cloud google-cloud-speech-bom - 4.86.0 + 4.87.0 pom import com.google.cloud google-cloud-storage-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-storage-transfer-bom - 1.91.0 + 1.92.0 pom import com.google.cloud google-cloud-storagebatchoperations-bom - 0.31.0 + 0.32.0 pom import com.google.cloud google-cloud-storageinsights-bom - 0.76.0 + 0.77.0 pom import com.google.cloud google-cloud-talent-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-tasks-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-telcoautomation-bom - 0.61.0 + 0.62.0 pom import com.google.cloud google-cloud-texttospeech-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-tpu-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-trace-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-translate-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-valkey-bom - 0.37.0 + 0.38.0 pom import com.google.cloud google-cloud-vectorsearch-bom - 0.12.0 + 0.14.0 pom import com.google.cloud google-cloud-video-intelligence-bom - 2.90.0 + 2.91.0 pom import com.google.cloud google-cloud-video-stitcher-bom - 0.91.0 + 0.92.0 pom import com.google.cloud google-cloud-video-transcoder-bom - 1.90.0 + 1.91.0 pom import com.google.cloud google-cloud-vision-bom - 3.89.0 + 3.90.0 pom import com.google.cloud google-cloud-visionai-bom - 0.48.0 + 0.49.0 pom import com.google.cloud google-cloud-vmmigration-bom - 1.91.0 + 1.92.0 pom import com.google.cloud google-cloud-vmwareengine-bom - 0.85.0 + 0.86.0 pom import com.google.cloud google-cloud-vpcaccess-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-webrisk-bom - 2.90.0 + 2.91.0 pom import com.google.cloud google-cloud-websecurityscanner-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-workflow-executions-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-workflows-bom - 2.91.0 + 2.92.0 pom import com.google.cloud google-cloud-workloadmanager-bom - 0.7.0 + 0.8.0 pom import com.google.cloud google-cloud-workspaceevents-bom - 0.55.0 + 0.56.0 pom import com.google.cloud google-cloud-workstations-bom - 0.79.0 + 0.80.0 pom import com.google.cloud google-iam-admin-bom - 3.86.0 + 3.87.0 pom import com.google.cloud google-iam-policy-bom - 1.88.0 + 1.89.0 pom import com.google.cloud google-identity-accesscontextmanager-bom - 1.92.0 + 1.93.0 pom import io.grafeas grafeas - 2.92.0 + 2.93.0 diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index 68f1d32afe20..d8b16503136b 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -18,10 +18,14 @@ function find_existing_version_pom() { local version=$(xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' \ "${pom_file}") echo -n "Checking ${group_id}:${artifact_id}:${version}:" - if [ -z "${group_id}" ] || [ -z "${artifact_id}" ] || [ -z "${version}" ]; then - echo "Couldn't parse the pom file: $pom_file" + if [ -z "${artifact_id}" ]; then + echo "Couldn't parse artifact_id in the pom file: $pom_file" exit 1 fi + if [ -z "${group_id}" ] || [ -z "${version}" ]; then + echo "Skipping file without explicit coordinates (likely inherits): $pom_file" + return 0 + fi if [[ "${version}" == *SNAPSHOT* ]] && [ "${artifact_id}" != "google-cloud-java" ]; then echo " Release Please pull request contains SNAPSHOT version. Please investigate." return_code=1 diff --git a/generation/check_non_release_please_versions.sh b/generation/check_non_release_please_versions.sh index 74b00dcd0771..a32af46bb725 100755 --- a/generation/check_non_release_please_versions.sh +++ b/generation/check_non_release_please_versions.sh @@ -13,12 +13,16 @@ for pomFile in $(find . -mindepth 2 -name pom.xml | sort ); do [[ "${pomFile}" =~ .*java-logging-logback.* ]] || \ [[ "${pomFile}" =~ .*java-bigquery.* ]] || \ [[ "${pomFile}" =~ .*sdk-platform-java.* ]] || \ + [[ "${pomFile}" =~ .*java-common-protos.* ]] || \ + [[ "${pomFile}" =~ .*java-showcase.* ]] || \ + [[ "${pomFile}" =~ .*java-iam.* ]] || \ [[ "${pomFile}" =~ .*java-spanner.* ]] || \ [[ "${pomFile}" =~ .*java-spanner-jdbc.* ]] || \ [[ "${pomFile}" =~ .*google-auth-library-java.* ]] || \ [[ "${pomFile}" =~ .*java-storage.* ]] || \ [[ "${pomFile}" =~ .*java-storage-nio.* ]] || \ [[ "${pomFile}" =~ .*java-vertexai.* ]] || \ + [[ "${pomFile}" =~ .*java-compute.* ]] || \ [[ "${pomFile}" =~ .*.github*. ]]; then continue fi diff --git a/generation/run_generator_docker.sh b/generation/run_generator_docker.sh new file mode 100755 index 000000000000..4255747319da --- /dev/null +++ b/generation/run_generator_docker.sh @@ -0,0 +1,62 @@ +#!/bin/bash +# Copyright 2026 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. + +set -exo pipefail + +REQUESTED_TAG="$1" +TARGET_BRANCH="$2" +shift 2 + +# Parse arguments using '--' as delimiter +DOCKER_OPTS=() +CONTAINER_CMD=() +found_delimiter=false + +for arg in "$@"; do + if [ "$arg" == "--" ]; then + found_delimiter=true + continue + fi + if $found_delimiter; then + CONTAINER_CMD+=("$arg") + else + DOCKER_OPTS+=("$arg") + fi +done + +IMAGE_NAME="gcr.io/cloud-devrel-public-resources/java-library-generation" +# Support both local git and GitHub Actions environment variables +CURRENT_BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME:-$(git branch --show-current)}}" +IMAGE_TAG="$REQUESTED_TAG" + +# Fallback logic on Release PR branches +if [[ "$CURRENT_BRANCH" =~ ^release-please-- ]]; then + echo "Detected release PR branch: $CURRENT_BRANCH" + if ! docker pull "${IMAGE_NAME}:${IMAGE_TAG}"; then + echo "Image not found for version ${IMAGE_TAG}. Falling back to previous version from ${TARGET_BRANCH}." + # Extract tag from target branch's versions.txt using explicit fetch + git fetch origin "${TARGET_BRANCH}" --depth=1 || true + PREVIOUS_TAG=$(git show FETCH_HEAD:versions.txt | grep "^gapic-generator-java:" | cut -d ':' -f 2 || true) + if [ -n "$PREVIOUS_TAG" ]; then + echo "Using previous image version: $PREVIOUS_TAG" + IMAGE_TAG="$PREVIOUS_TAG" + else + echo "Failed to extract fallback tag. Proceeding with requested tag." + fi + fi +fi + +# Execute Docker run with proper ordering +docker run --rm "${DOCKER_OPTS[@]}" "${IMAGE_NAME}:${IMAGE_TAG}" "${CONTAINER_CMD[@]}" diff --git a/generation/update_owlbot_postprocessor_config.sh b/generation/update_owlbot_postprocessor_config.sh index 0f77bd7f2e6f..a59d865bc2d9 100755 --- a/generation/update_owlbot_postprocessor_config.sh +++ b/generation/update_owlbot_postprocessor_config.sh @@ -6,7 +6,7 @@ set -e -for dir in $(find . -mindepth 2 -maxdepth 2 -name owlbot.py | sort | xargs dirname ); do +for dir in $(find . -mindepth 2 -maxdepth 2 -name owlbot.py | grep -v 'java-common-protos/' | grep -v 'java-iam/' | grep -v 'java-showcase/' | sort | xargs dirname ); do pushd "$dir" # form a perl command to replace java.common_templates() invocation diff --git a/generation_config.yaml b/generation_config.yaml index 4a2ebeb5be48..b5c231a71a29 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.69.0 -googleapis_commitish: e182cf5152967047b763fd88f03094cfc836d194 -libraries_bom_version: 26.79.0 +googleapis_commitish: 3adc515b8bda328fb894f86765d9c5ec8c944480 +libraries_bom_version: 26.80.0 +is_monorepo: true libraries: - api_shortname: accessapproval name_pretty: Access Approval @@ -188,7 +188,7 @@ libraries: product_documentation: https://docs.cloud.google.com/app-optimize/overview api_description: The App Optimize API provides developers and platform teams with tools to monitor, analyze, and improve the performance and cost-efficiency of - their cloud applications. + their cloud applications. client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview release_level: preview @@ -235,7 +235,7 @@ libraries: library_name: asset release_level: stable api_reference: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview - issue_tracker: https://issuetracker.google.com/issues/new?component=187210&template=0 + issue_tracker: https://issuetracker.google.com/issues/new?component=187210 GAPICs: - proto_path: google/cloud/asset/v1 - proto_path: google/cloud/asset/v1p1beta1 @@ -391,7 +391,7 @@ libraries: - api_shortname: bigquerydatapolicy name_pretty: BigQuery DataPolicy API product_documentation: https://cloud.google.com/bigquery/docs/reference/datapolicy/ - api_description: '' + api_description: Allows users to manage BigQuery data policies. GAPICs: - proto_path: google/cloud/bigquery/datapolicies/v1 - proto_path: google/cloud/bigquery/datapolicies/v1beta1 @@ -772,7 +772,7 @@ libraries: api_description: Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through - Database Center’s fleet health dashboard and API, database platform teams that + Database Center's fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team. @@ -1282,6 +1282,22 @@ libraries: - proto_path: google/apps/script/type/gmail - proto_path: google/apps/script/type/sheets - proto_path: google/apps/script/type/slides +- api_shortname: health + name_pretty: Google Health API + product_documentation: https://developers.google.com/health/api + api_description: The Google Health API lets you view and manage health and fitness + metrics and measurement data. + client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-health/latest/overview + release_level: preview + distribution_name: com.google.cloud:google-cloud-health + api_id: health.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.cloud + cloud_api: true + GAPICs: + - proto_path: google/devicesandservices/health/v4 + requires_billing: true + rpc_documentation: https://developers.google.com/health/api/reference/rpc - api_shortname: hypercomputecluster name_pretty: Cluster Director API product_documentation: @@ -1299,12 +1315,22 @@ libraries: - proto_path: google/cloud/hypercomputecluster/v1beta - proto_path: google/cloud/hypercomputecluster/v1 requires_billing: true -- api_shortname: iam +- api_shortname: iam-admin + name_pretty: IAM Admin API + product_documentation: https://cloud.google.com/iam/docs/apis + api_description: you to manage your Service Accounts and IAM bindings. + release_level: stable + distribution_name: com.google.cloud:google-iam-admin + api_id: iam.googleapis.com + GAPICs: + - proto_path: google/iam/admin/v1 +- api_shortname: iam-policy name_pretty: IAM product_documentation: n/a api_description: n/a release_level: stable distribution_name: com.google.cloud:google-iam-policy + api_id: iam.googleapis.com client_documentation: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/history excluded_poms: proto-google-iam-v1-bom,google-iam-policy,proto-google-iam-v1 excluded_dependencies: google-iam-policy @@ -1315,15 +1341,6 @@ libraries: - proto_path: google/iam/v2beta - proto_path: google/iam/v3 - proto_path: google/iam/v3beta -- api_shortname: iam-admin - name_pretty: IAM Admin API - product_documentation: https://cloud.google.com/iam/docs/apis - api_description: you to manage your Service Accounts and IAM bindings. - release_level: stable - distribution_name: com.google.cloud:google-iam-admin - api_id: iam.googleapis.com - GAPICs: - - proto_path: google/iam/admin/v1 - api_shortname: iamcredentials name_pretty: IAM Service Account Credentials API product_documentation: https://cloud.google.com/iam/credentials/reference/rest/ @@ -1331,7 +1348,7 @@ libraries: accounts. release_level: stable requires_billing: false - issue_tracker: https://issuetracker.google.com/issues/new?component=187161&template=0 + issue_tracker: https://issuetracker.google.com/issues/new?component=187161 GAPICs: - proto_path: google/iam/credentials/v1 - api_shortname: iap @@ -1557,7 +1574,6 @@ libraries: api_id: managedidentities.googleapis.com GAPICs: - proto_path: google/cloud/managedidentities/v1 - - proto_path: google/cloud/managedidentities/v1beta1 - api_shortname: managedkafka name_pretty: Managed Service for Apache Kafka product_documentation: https://cloud.google.com/managed-kafka @@ -1654,6 +1670,25 @@ libraries: - proto_path: google/maps/geocode/v4 library_name: maps-geocode requires_billing: true +- api_shortname: mapmanagement + name_pretty: Map Management API + product_documentation: https://developers.google.com/maps/documentation/mapmanagement/overview + api_description: The Map Management API is a RESTful service that accepts HTTP requests + for map styling data through a variety of methods. It returns formatted configuration + data about map styling resources so that you can programmatically manage your + Cloud-based map styles. + client_documentation: + https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview + release_level: preview + distribution_name: com.google.maps:google-maps-mapmanagement + api_id: mapmanagement.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.maps + cloud_api: false + GAPICs: + - proto_path: google/maps/mapmanagement/v2beta + library_name: maps-mapmanagement + requires_billing: true - api_shortname: maps-mapsplatformdatasets name_pretty: Maps Platform Datasets API product_documentation: https://developers.google.com/maps/documentation @@ -1976,7 +2011,6 @@ libraries: issue_tracker: https://issuetracker.google.com/savedsearches/559755 GAPICs: - proto_path: google/cloud/oslogin/v1 - - proto_path: google/cloud/oslogin/v1beta - api_shortname: parallelstore name_pretty: Parallelstore API product_documentation: https://cloud/parallelstore?hl=en @@ -2191,7 +2225,7 @@ libraries: GAPICs: - proto_path: google/cloud/run/v2 - api_shortname: saasservicemgmt - name_pretty: SaaS Runtime API + name_pretty: App Lifecycle Manager product_documentation: https://cloud.google.com/saas-runtime/docs/overview api_description: "Model, deploy, and operate your SaaS at scale.\t" client_documentation: @@ -2924,12 +2958,12 @@ libraries: product_documentation: https://cloud.google.com/web-risk/docs/ api_description: is a Google Cloud service that lets client applications check URLs against Google's constantly updated lists of unsafe web resources. Unsafe web - resources include social engineering sites—such as phishing and deceptive sites—and - sites that host malware or unwanted software. With the Web Risk API, you can quickly - identify known bad sites, warn users before they click infected links, and prevent - users from posting links to known infected pages from your site. The Web Risk - API includes data on more than a million unsafe URLs and stays up to date by examining - billions of URLs each day. + resources include social engineering sites - such as phishing and deceptive sites + - and sites that host malware or unwanted software. With the Web Risk API, you + can quickly identify known bad sites, warn users before they click infected links, + and prevent users from posting links to known infected pages from your site. The + Web Risk API includes data on more than a million unsafe URLs and stays up to + date by examining billions of URLs each day. release_level: stable requires_billing: false issue_tracker: '' @@ -3014,4 +3048,51 @@ libraries: GAPICs: - proto_path: google/cloud/workstations/v1 - proto_path: google/cloud/workstations/v1beta - +- api_shortname: common-protos + name_pretty: Common Protos + product_documentation: https://github.com/googleapis/api-common-protos + api_description: Protobuf classes for Google's common protos. + release_level: stable + client_documentation: https://cloud.google.com/java/docs/reference/proto-google-common-protos/latest/history + distribution_name: com.google.api.grpc:proto-google-common-protos + excluded_dependencies: grpc-google-common-protos,proto-google-common-protos,proto-google-common-protos-parent + excluded_poms: proto-google-common-protos-bom,proto-google-common-protos + library_type: OTHER + GAPICs: + - proto_path: google/api + - proto_path: google/apps/card/v1 + - proto_path: google/cloud + - proto_path: google/cloud/audit + - proto_path: google/cloud/location + - proto_path: google/geo/type + - proto_path: google/logging/type + - proto_path: google/longrunning + - proto_path: google/rpc + - proto_path: google/rpc/context + - proto_path: google/shopping/type + - proto_path: google/type +- api_shortname: showcase + excluded_poms: gapic-showcase-bom + name_pretty: Showcase + api_description: Showcase module + product_documentation: https://cloud.google.com/dummy + distribution_name: com.google.cloud:gapic-showcase + library_type: OTHER + GAPICs: + - proto_path: schema/google/showcase/v1beta1 +- api_shortname: iam + name_pretty: IAM + product_documentation: https://cloud.google.com/iam + api_description: Manages access control for Google Cloud Platform resources + release_level: stable + client_documentation: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/overview + distribution_name: com.google.api.grpc:proto-google-iam-v1 + excluded_dependencies: "grpc-google-iam-v1" + excluded_poms: "proto-google-iam-v1-bom,google-iam-policy,proto-google-iam-v1" + library_type: OTHER + GAPICs: + - proto_path: google/iam/v1 + - proto_path: google/iam/v2 + - proto_path: google/iam/v2beta + - proto_path: google/iam/v3 + - proto_path: google/iam/v3beta diff --git a/google-auth-library-java/appengine/pom.xml b/google-auth-library-java/appengine/pom.xml index 0af59fd0d985..9eabc4d38d92 100644 --- a/google-auth-library-java/appengine/pom.xml +++ b/google-auth-library-java/appengine/pom.xml @@ -5,7 +5,7 @@ com.google.auth google-auth-library-parent - 1.46.0 + 1.47.0 ../pom.xml @@ -42,6 +42,14 @@ + + org.graalvm.buildtools + native-maven-plugin + + true + + + diff --git a/google-auth-library-java/bom/README.md b/google-auth-library-java/bom/README.md index 3a57c134ffab..716032e33b4c 100644 --- a/google-auth-library-java/bom/README.md +++ b/google-auth-library-java/bom/README.md @@ -12,7 +12,7 @@ To use it in Maven, add the following to your `pom.xml`: com.google.auth google-auth-library-bom - 1.46.0 + 1.47.0 pom import diff --git a/google-auth-library-java/bom/pom.xml b/google-auth-library-java/bom/pom.xml index 1afc0176ff7c..049d583d17a0 100644 --- a/google-auth-library-java/bom/pom.xml +++ b/google-auth-library-java/bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.auth google-auth-library-bom - 1.46.0 + 1.47.0 pom @@ -23,22 +23,22 @@ com.google.auth google-auth-library-credentials - 1.46.0 + 1.47.0 com.google.auth google-auth-library-oauth2-http - 1.46.0 + 1.47.0 com.google.auth google-auth-library-appengine - 1.46.0 + 1.47.0 com.google.auth google-auth-library-cab-token-generator - 1.46.0 + 1.47.0 diff --git a/google-auth-library-java/cab-token-generator/javatests/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactoryTest.java b/google-auth-library-java/cab-token-generator/javatests/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactoryTest.java index bfe9077c990f..99cbbbda90f1 100644 --- a/google-auth-library-java/cab-token-generator/javatests/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactoryTest.java +++ b/google-auth-library-java/cab-token-generator/javatests/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactoryTest.java @@ -614,22 +614,28 @@ private Clock createMockClock(RefreshType refreshType, GoogleCredentials sourceC // Set mocked time so that the token is fresh and no refresh is needed (before the refresh // margin). mockedTimeInMillis = expirationTimeInMillis - refreshMarginInMillis - 60000; + when(mockClock.currentTimeMillis()).thenReturn(mockedTimeInMillis); break; case ASYNC: // Set mocked time so that the token is nearing expiry and an async refresh is triggered // (within the refresh margin). mockedTimeInMillis = expirationTimeInMillis - refreshMarginInMillis + 60000; + when(mockClock.currentTimeMillis()) + .thenReturn( + mockedTimeInMillis, // First call: Stale (triggers the async refresh) + currentTimeInMillis // Subsequent calls: Fresh (skips redundant refreshes) + ); break; case BLOCKING: // Set mocked time so that the token requires immediate refresh (just after the minimum // token lifetime). mockedTimeInMillis = expirationTimeInMillis - minimumTokenLifetimeMillis + 60000; + when(mockClock.currentTimeMillis()).thenReturn(mockedTimeInMillis); break; default: throw new IllegalArgumentException("Unexpected RefreshType: " + refreshType); } - when(mockClock.currentTimeMillis()).thenReturn(mockedTimeInMillis); return mockClock; } diff --git a/google-auth-library-java/cab-token-generator/pom.xml b/google-auth-library-java/cab-token-generator/pom.xml index f14748eeb066..029882110db7 100644 --- a/google-auth-library-java/cab-token-generator/pom.xml +++ b/google-auth-library-java/cab-token-generator/pom.xml @@ -6,7 +6,7 @@ com.google.auth google-auth-library-parent - 1.46.0 + 1.47.0 google-auth-library-cab-token-generator @@ -22,6 +22,10 @@ + + com.google.guava + guava + com.google.auth google-auth-library-oauth2-http @@ -38,10 +42,6 @@ com.google.errorprone error_prone_annotations - - com.google.guava - guava - com.google.protobuf protobuf-java @@ -49,10 +49,12 @@ dev.cel cel - - - com.google.code.findbugs - jsr305 + + + com.google.code.findbugs + annotations + + com.google.crypto.tink diff --git a/google-auth-library-java/credentials/BUILD.bazel b/google-auth-library-java/credentials/BUILD.bazel new file mode 100644 index 000000000000..04e31f4a1713 --- /dev/null +++ b/google-auth-library-java/credentials/BUILD.bazel @@ -0,0 +1,5 @@ +java_library( + name = "credentials", + srcs = glob(["java/**/*.java"]), + visibility = ["//visibility:public"], +) diff --git a/google-auth-library-java/credentials/pom.xml b/google-auth-library-java/credentials/pom.xml index 62cff4c16bb8..b44b3d890f58 100644 --- a/google-auth-library-java/credentials/pom.xml +++ b/google-auth-library-java/credentials/pom.xml @@ -4,7 +4,7 @@ com.google.auth google-auth-library-parent - 1.46.0 + 1.47.0 ../pom.xml @@ -22,6 +22,13 @@ java javatests + + org.graalvm.buildtools + native-maven-plugin + + true + + org.apache.maven.plugins maven-source-plugin diff --git a/google-auth-library-java/oauth2_http/BUILD.bazel b/google-auth-library-java/oauth2_http/BUILD.bazel new file mode 100644 index 000000000000..3d8cc5b675c5 --- /dev/null +++ b/google-auth-library-java/oauth2_http/BUILD.bazel @@ -0,0 +1,20 @@ +java_library( + name = "oauth2_http", + srcs = glob(["java/**/*.java"]), + deps = [ + "@com_google_guava_guava//jar", + "@com_google_guava_failureaccess//jar", + "//google-auth-library-java/credentials:credentials", + "@com_google_http_client_google_http_client//jar", + "@com_google_http_client_google_http_client_gson//jar", + "@com_google_api_api_common//jar", + "@com_google_code_gson_gson//jar", + "@com_google_errorprone_error_prone_annotations//jar", + "@com_google_code_findbugs_jsr305//jar", + "@com_google_auto_value_auto_value_annotations//jar", + "@com_google_auto_value_auto_value//jar", + "@org_slf4j_slf4j_api//jar", + ], + plugins = ["@com_google_api_gax_java//:auto_value_plugin"], + visibility = ["//visibility:public"], +) diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java index e92c64bed90e..47cb398d26bf 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java @@ -36,7 +36,6 @@ import com.google.api.client.http.HttpHeaders; import com.google.api.client.json.GenericJson; import com.google.api.client.util.Data; -import com.google.api.core.InternalApi; import com.google.auth.RequestMetadataCallback; import com.google.auth.http.HttpTransportFactory; import com.google.common.base.MoreObjects; @@ -99,9 +98,6 @@ public abstract class ExternalAccountCredentials extends GoogleCredentials { private EnvironmentProvider environmentProvider; private PropertyProvider propertyProvider; - private int connectTimeout; - private int readTimeout; - /** * Constructor with minimum identifying information and custom HTTP transport. Does not support * workforce credentials. @@ -281,8 +277,6 @@ protected ExternalAccountCredentials(ExternalAccountCredentials.Builder builder) : builder.metricsHandler; this.name = GoogleCredentialsInfo.EXTERNAL_ACCOUNT_CREDENTIALS.getCredentialName(); - this.connectTimeout = builder.connectTimeout; - this.readTimeout = builder.readTimeout; } ImpersonatedCredentials buildImpersonatedCredentials() { @@ -317,8 +311,6 @@ ImpersonatedCredentials buildImpersonatedCredentials() { .setScopes(new ArrayList<>(scopes)) .setLifetime(this.serviceAccountImpersonationOptions.lifetime) .setIamEndpointOverride(serviceAccountImpersonationUrl) - .setConnectTimeout(connectTimeout) - .setReadTimeout(readTimeout) .build(); } @@ -547,9 +539,7 @@ protected AccessToken exchangeExternalCredentialForAccessToken( StsRequestHandler.Builder requestHandler = StsRequestHandler.newBuilder( - tokenUrl, stsTokenExchangeRequest, transportFactory.create().createRequestFactory()) - .setConnectTimeout(connectTimeout) - .setReadTimeout(readTimeout); + tokenUrl, stsTokenExchangeRequest, transportFactory.create().createRequestFactory()); // If this credential was initialized with a Workforce configuration then the // workforcePoolUserProject must be passed to the Security Token Service via the internal @@ -792,9 +782,6 @@ public abstract static class Builder extends GoogleCredentials.Builder { @Nullable protected String workforcePoolUserProject; @Nullable protected ServiceAccountImpersonationOptions serviceAccountImpersonationOptions; - protected int connectTimeout = 20000; // Default to 20000ms = 20s - protected int readTimeout = 20000; // Default to 20000ms = 20s - /* The field is not being used and value not set. Superseded by the same field in the {@link GoogleCredentials.Builder}. */ @@ -821,8 +808,6 @@ protected Builder(ExternalAccountCredentials credentials) { this.workforcePoolUserProject = credentials.workforcePoolUserProject; this.serviceAccountImpersonationOptions = credentials.serviceAccountImpersonationOptions; this.metricsHandler = credentials.metricsHandler; - this.connectTimeout = credentials.connectTimeout; - this.readTimeout = credentials.readTimeout; } /** @@ -1015,20 +1000,6 @@ public Builder setUniverseDomain(String universeDomain) { return this; } - /** Warning: Not for public use and can be removed at any time. */ - @InternalApi - public Builder setConnectTimeout(int connectTimeout) { - this.connectTimeout = connectTimeout; - return this; - } - - /** Warning: Not for public use and can be removed at any time. */ - @InternalApi - public Builder setReadTimeout(int readTimeout) { - this.readTimeout = readTimeout; - return this; - } - /** * Sets the optional Environment Provider. * diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java index 274f30ff9077..34716d92b552 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java @@ -44,7 +44,6 @@ import com.google.api.client.json.GenericJson; import com.google.api.client.json.JsonObjectParser; import com.google.api.client.util.GenericData; -import com.google.api.core.InternalApi; import com.google.api.core.ObsoleteApi; import com.google.auth.CredentialTypeForMetrics; import com.google.auth.ServiceAccountSigner; @@ -118,9 +117,6 @@ public class ImpersonatedCredentials extends GoogleCredentials private transient Calendar calendar; - private int connectTimeout; - private int readTimeout; - /** * @param sourceCredentials the source credential used to acquire the impersonated credentials. It * should be either a user account credential or a service account credential. @@ -567,8 +563,6 @@ private ImpersonatedCredentials(Builder builder) throws IOException { + "does not match %s universe domain set for impersonated credentials.", this.sourceCredentials.getUniverseDomain(), builder.getUniverseDomain())); } - this.connectTimeout = builder.connectTimeout; - this.readTimeout = builder.readTimeout; } /** @@ -597,12 +591,6 @@ public AccessToken refreshAccessToken() throws IOException { || (isDefaultUniverseDomain() && ((ServiceAccountCredentials) this.sourceCredentials) .shouldUseAssertionFlowForGdu())) { - if (this.sourceCredentials instanceof IdentityPoolCredentials) { - this.sourceCredentials = - ((IdentityPoolCredentials) this.sourceCredentials) - .toBuilder().setConnectTimeout(connectTimeout).setReadTimeout(readTimeout).build(); - } - try { this.sourceCredentials.refreshIfExpired(); } catch (IOException e) { @@ -635,8 +623,6 @@ public AccessToken refreshAccessToken() throws IOException { // Disable automatic logging by google-http-java-client to prevent leakage of sensitive tokens. // Client Library Debug Logging via LoggingUtils is used instead. request.setLoggingEnabled(false); - request.setConnectTimeout(connectTimeout); - request.setReadTimeout(readTimeout); adapter.initialize(request); request.setParser(parser); MetricsUtils.setMetricsHeader( @@ -783,9 +769,6 @@ public static class Builder extends GoogleCredentials.Builder { private String iamEndpointOverride; private Calendar calendar = Calendar.getInstance(); - private int connectTimeout = 20000; // Default to 20000ms = 20s - private int readTimeout = 20000; // Default to 20000ms = 20s - protected Builder() {} /** @@ -809,8 +792,6 @@ protected Builder(ImpersonatedCredentials credentials) { this.lifetime = credentials.lifetime; this.transportFactory = credentials.transportFactory; this.iamEndpointOverride = credentials.iamEndpointOverride; - this.connectTimeout = credentials.connectTimeout; - this.readTimeout = credentials.readTimeout; } @CanIgnoreReturnValue @@ -912,20 +893,6 @@ public Builder setCalendar(Calendar calendar) { return this; } - /** Warning: Not for public use and can be removed at any time. */ - @InternalApi - public Builder setConnectTimeout(int connectTimeout) { - this.connectTimeout = connectTimeout; - return this; - } - - /** Warning: Not for public use and can be removed at any time. */ - @InternalApi - public Builder setReadTimeout(int readTimeout) { - this.readTimeout = readTimeout; - return this; - } - /** * This method is marked obsolete. There is no alternative to getting a custom calendar for the * Credential. diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/InternalAwsSecurityCredentialsSupplier.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/InternalAwsSecurityCredentialsSupplier.java index a65c79fabdbf..f8c75bc65b64 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/InternalAwsSecurityCredentialsSupplier.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/InternalAwsSecurityCredentialsSupplier.java @@ -235,12 +235,8 @@ Map createMetadataRequestHeaders(AwsCredentialSource awsCredenti // Both flows work for IDMS v1 and v2. But if IDMSv2 is enabled, then if // session token is not present, Unauthorized exception will be thrown. if (awsCredentialSource.imdsv2SessionTokenUrl != null) { - Map tokenRequestHeaders = - new HashMap() { - { - put(AWS_IMDSV2_SESSION_TOKEN_TTL_HEADER, AWS_IMDSV2_SESSION_TOKEN_TTL); - } - }; + Map tokenRequestHeaders = new HashMap<>(); + tokenRequestHeaders.put(AWS_IMDSV2_SESSION_TOKEN_TTL_HEADER, AWS_IMDSV2_SESSION_TOKEN_TTL); String imdsv2SessionToken = retrieveResource( diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/StsRequestHandler.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/StsRequestHandler.java index ee32b2cd6863..ecd33ca14cf6 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/StsRequestHandler.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/StsRequestHandler.java @@ -42,7 +42,6 @@ import com.google.api.client.json.JsonObjectParser; import com.google.api.client.json.JsonParser; import com.google.api.client.util.GenericData; -import com.google.api.core.InternalApi; import com.google.common.base.Joiner; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.io.IOException; @@ -77,22 +76,12 @@ public final class StsRequestHandler { @Nullable private final HttpHeaders headers; @Nullable private final String internalOptions; - private final int connectTimeout; - private final int readTimeout; - - /** - * Internal constructor. - * - * @return an StsTokenExchangeResponse instance if the request was successful - */ private StsRequestHandler(Builder builder) { this.tokenExchangeEndpoint = builder.tokenExchangeEndpoint; this.request = builder.request; this.httpRequestFactory = builder.httpRequestFactory; this.headers = builder.headers; this.internalOptions = builder.internalOptions; - this.connectTimeout = builder.connectTimeout; - this.readTimeout = builder.readTimeout; } /** @@ -125,8 +114,6 @@ public StsTokenExchangeResponse exchangeToken() throws IOException { if (headers != null) { httpRequest.setHeaders(headers); } - httpRequest.setConnectTimeout(connectTimeout); - httpRequest.setReadTimeout(readTimeout); try { LoggingUtils.logRequest(httpRequest, LOGGER_PROVIDER, "Sending request for token exchange"); @@ -225,9 +212,6 @@ public static class Builder { @Nullable private HttpHeaders headers; @Nullable private String internalOptions; - private int connectTimeout = 20000; // Default to 20000ms = 20s - private int readTimeout = 20000; // Default to 20000ms = 20s - private Builder( String tokenExchangeEndpoint, StsTokenExchangeRequest stsTokenExchangeRequest, @@ -249,20 +233,6 @@ public StsRequestHandler.Builder setInternalOptions(String internalOptions) { return this; } - /** Warning: Not for public use and can be removed at any time. */ - @InternalApi - public StsRequestHandler.Builder setConnectTimeout(int connectTimeout) { - this.connectTimeout = connectTimeout; - return this; - } - - /** Warning: Not for public use and can be removed at any time. */ - @InternalApi - public StsRequestHandler.Builder setReadTimeout(int readTimeout) { - this.readTimeout = readTimeout; - return this; - } - public StsRequestHandler build() { return new StsRequestHandler(this); } diff --git a/google-auth-library-java/oauth2_http/pom.xml b/google-auth-library-java/oauth2_http/pom.xml index 30311fc42007..20fda8c9663c 100644 --- a/google-auth-library-java/oauth2_http/pom.xml +++ b/google-auth-library-java/oauth2_http/pom.xml @@ -7,7 +7,7 @@ com.google.auth google-auth-library-parent - 1.46.0 + 1.47.0 ../pom.xml diff --git a/google-auth-library-java/pom.xml b/google-auth-library-java/pom.xml index 0020399949aa..3fbf4d98b71e 100644 --- a/google-auth-library-java/pom.xml +++ b/google-auth-library-java/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.auth google-auth-library-parent - 1.46.0 + 1.47.0 pom Google Auth Library for Java Client libraries providing authentication and @@ -76,17 +76,17 @@ UTF-8 2.1.0 5.11.4 - 33.5.0-android + 33.5.0-jre 2.0.33 3.0.2 false - 2.42.0 + 2.48.0 4.33.2 0.9.0-proto3 1.15.0 2.0.17 - 2.12.1 - 2.53.0 + 2.13.2 + 2.63.0 3.5.2 true diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index 7ea2f4738280..6486c37211a2 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-jar-parent com.google.cloud - 1.85.0 + 1.86.0 pom Google Cloud JAR Parent @@ -15,11 +15,12 @@ com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../google-cloud-pom-parent/pom.xml false + true @@ -27,7 +28,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.61.0 + 3.62.0 pom import @@ -46,7 +47,7 @@ com.google.cloud google-cloud-storage - 2.67.0 + 2.68.0 com.google.apis @@ -76,6 +77,18 @@ 4.13.2 test + + ch.qos.logback + logback-classic + 1.5.25 + test + + + ch.qos.logback + logback-core + 1.5.25 + test + joda-time joda-time diff --git a/google-cloud-pom-parent/pom.xml b/google-cloud-pom-parent/pom.xml index e0f039d054c1..e08cf84eff39 100644 --- a/google-cloud-pom-parent/pom.xml +++ b/google-cloud-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-pom-parent com.google.cloud - 1.85.0 + 1.86.0 pom Google Cloud POM Parent https://github.com/googleapis/google-cloud-java @@ -15,7 +15,7 @@ com.google.cloud sdk-platform-java-config - 3.61.0 + 3.62.0 ../sdk-platform-java/sdk-platform-java-config @@ -108,22 +108,6 @@ enforce - - - - - io.opentelemetry:opentelemetry-api - io.opentelemetry:opentelemetry-sdk-metrics - io.opentelemetry:opentelemetry-sdk-logs - io.opentelemetry:opentelemetry-context - io.opentelemetry:opentelemetry-sdk-trace - io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi - io.opentelemetry:opentelemetry-sdk-common - io.opentelemetry:opentelemetry-sdk - - - - @@ -148,11 +132,6 @@ - - google-maven-central-copy - Google Maven Central copy - https://maven-central.storage-download.googleapis.com/maven2 - maven-central Maven Central diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 0ad0f90b5729..2182d18d0244 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.91.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.91.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.92.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-accessapproval/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index 1b7b58c96f63..fb75eb1a7f23 100644 --- a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-accessapproval-bom - 2.92.0 + 2.93.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-accessapproval - 2.92.0 + 2.93.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.92.0 + 2.93.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.92.0 + 2.93.0 diff --git a/java-accessapproval/google-cloud-accessapproval/pom.xml b/java-accessapproval/google-cloud-accessapproval/pom.xml index 6c699750cf39..e5b0a2d1cdd1 100644 --- a/java-accessapproval/google-cloud-accessapproval/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-accessapproval - 2.92.0 + 2.93.0 jar Google Cloud Access Approval Java idiomatic client for Google Cloud accessapproval com.google.cloud google-cloud-accessapproval-parent - 2.92.0 + 2.93.0 google-cloud-accessapproval diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/Version.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/Version.java index 207ec18e6be2..4cf0ee522f20 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/Version.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-accessapproval:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0"; // {x-version-update-end} } diff --git a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml index 4b604498f10a..6effc6896b9c 100644 --- a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.92.0 + 2.93.0 grpc-google-cloud-accessapproval-v1 GRPC library for grpc-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.92.0 + 2.93.0 diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index 78903c4369ea..6a2410d7081a 100644 --- a/java-accessapproval/pom.xml +++ b/java-accessapproval/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-accessapproval-parent pom - 2.92.0 + 2.93.0 Google Cloud Access Approval Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.92.0 + 2.93.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.92.0 + 2.93.0 com.google.cloud google-cloud-accessapproval - 2.92.0 + 2.93.0 diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml index 5c98bf142f33..a223a9ac0f17 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.92.0 + 2.93.0 proto-google-cloud-accessapproval-v1beta1 PROTO library for proto-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.92.0 + 2.93.0 diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 373e7a206c59..e202b22405cd 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.91.0 + 1.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.91.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.91.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.92.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index d5b9428060f2..8b3fab06c4bf 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager-bom - 1.92.0 + 1.93.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-identity-accesscontextmanager - 1.92.0 + 1.93.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.92.0 + 1.93.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.92.0 + 1.93.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.92.0 + 1.93.0 diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml index 120edd3c74d6..c230149608b4 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager - 1.92.0 + 1.93.0 jar Google Identity Access Context Manager Identity Access Context Manager n/a com.google.cloud google-identity-accesscontextmanager-parent - 1.92.0 + 1.93.0 google-identity-accesscontextmanager diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/Version.java b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/Version.java index 68f86b432abf..49fcda42be04 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/Version.java +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-identity-accesscontextmanager:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0"; // {x-version-update-end} } diff --git a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml index 7646567fc972..1c5ba803b75f 100644 --- a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.92.0 + 1.93.0 grpc-google-identity-accesscontextmanager-v1 GRPC library for google-identity-accesscontextmanager com.google.cloud google-identity-accesscontextmanager-parent - 1.92.0 + 1.93.0 diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index a8f992ccafcd..d7f1f521da06 100644 --- a/java-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-identity-accesscontextmanager-parent pom - 1.92.0 + 1.93.0 Google Identity Access Context Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.92.0 + 1.93.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.92.0 + 1.93.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.92.0 + 1.93.0 com.google.cloud google-identity-accesscontextmanager - 1.92.0 + 1.93.0 diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml index a71fe0f3137e..9c67b29d3a90 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.92.0 + 1.93.0 proto-google-identity-accesscontextmanager-type PROTO library for proto-google-identity-accesscontextmanager-type com.google.cloud google-identity-accesscontextmanager-parent - 1.92.0 + 1.93.0 diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml index e2b18be340e3..1d68a64ed3b5 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.92.0 + 1.93.0 proto-google-identity-accesscontextmanager-v1 PROTO library for proto-google-identity-accesscontextmanager-v1 com.google.cloud google-identity-accesscontextmanager-parent - 1.92.0 + 1.93.0 @@ -37,7 +37,7 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.92.0 + 1.93.0 diff --git a/java-admanager/README.md b/java-admanager/README.md index eb1ab1472043..14f79580ccde 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads ad-manager - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.49.0' +implementation 'com.google.api-ads:ad-manager:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.49.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.50.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/ad-manager-bom/pom.xml b/java-admanager/ad-manager-bom/pom.xml index 31e73b809970..b2f40bfb65e6 100644 --- a/java-admanager/ad-manager-bom/pom.xml +++ b/java-admanager/ad-manager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.api-ads ad-manager-bom - 0.50.0 + 0.51.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.api-ads ad-manager - 0.50.0 + 0.51.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.50.0 + 0.51.0 diff --git a/java-admanager/ad-manager/pom.xml b/java-admanager/ad-manager/pom.xml index 5a5479e1d72a..c8ff4f0fbc5b 100644 --- a/java-admanager/ad-manager/pom.xml +++ b/java-admanager/ad-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.api-ads ad-manager - 0.50.0 + 0.51.0 jar Google Google Ad Manager API Google Ad Manager API The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API. com.google.api-ads ad-manager-parent - 0.50.0 + 0.51.0 ad-manager diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/Version.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/Version.java index ee1c2d97e1c2..cc76d1da733e 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/Version.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:ad-manager:current} - static final String VERSION = "0.50.0"; + static final String VERSION = "0.51.0"; // {x-version-update-end} } diff --git a/java-admanager/pom.xml b/java-admanager/pom.xml index cbcbf0235d9d..fa4167e903ec 100644 --- a/java-admanager/pom.xml +++ b/java-admanager/pom.xml @@ -4,7 +4,7 @@ com.google.api-ads ad-manager-parent pom - 0.50.0 + 0.51.0 Google Google Ad Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.api-ads ad-manager - 0.50.0 + 0.51.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.50.0 + 0.51.0 diff --git a/java-admanager/proto-ad-manager-v1/pom.xml b/java-admanager/proto-ad-manager-v1/pom.xml index 3ecbe452cd27..24be6c34c975 100644 --- a/java-admanager/proto-ad-manager-v1/pom.xml +++ b/java-admanager/proto-ad-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.50.0 + 0.51.0 proto-ad-manager-v1 Proto library for ad-manager com.google.api-ads ad-manager-parent - 0.50.0 + 0.51.0 diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 2616ee1f27d0..e026aeb16d56 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.79.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-advisorynotifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml index 5666d6512308..7cf24cc364cc 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications-bom - 0.80.0 + 0.81.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.80.0 + 0.81.0 diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml index 221375a3b9ff..bf3694ceae90 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications - 0.80.0 + 0.81.0 jar Google Advisory Notifications API Advisory Notifications API An API for accessing Advisory Notifications in Google Cloud. com.google.cloud google-cloud-advisorynotifications-parent - 0.80.0 + 0.81.0 google-cloud-advisorynotifications diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/Version.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/Version.java index 3fffa1621d11..c6745a7650a6 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/Version.java +++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-advisorynotifications:current} - static final String VERSION = "0.80.0"; + static final String VERSION = "0.81.0"; // {x-version-update-end} } diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml index 117289b70d96..7c46489b37fb 100644 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.80.0 + 0.81.0 grpc-google-cloud-advisorynotifications-v1 GRPC library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.80.0 + 0.81.0 diff --git a/java-advisorynotifications/pom.xml b/java-advisorynotifications/pom.xml index ee1734dab8f1..eb11983fcd5d 100644 --- a/java-advisorynotifications/pom.xml +++ b/java-advisorynotifications/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-advisorynotifications-parent pom - 0.80.0 + 0.81.0 Google Advisory Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.80.0 + 0.81.0 diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml index ccd7bea8d7a2..2af337a670ad 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.80.0 + 0.81.0 proto-google-cloud-advisorynotifications-v1 Proto library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.80.0 + 0.81.0 diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 9da0d2e678f4..89312b6a3aff 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.91.0 + 3.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.91.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.92.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-aiplatform/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml index 53089ab57e64..7fba1a25b5bf 100644 --- a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 3.92.0 + 3.93.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-aiplatform - 3.92.0 + 3.93.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.92.0 + 3.93.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.108.0 + 0.109.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.92.0 + 3.93.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.108.0 + 0.109.0 diff --git a/java-aiplatform/google-cloud-aiplatform/pom.xml b/java-aiplatform/google-cloud-aiplatform/pom.xml index 06b8680e5685..3611dd769ee4 100644 --- a/java-aiplatform/google-cloud-aiplatform/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 3.92.0 + 3.93.0 jar Google Cloud Vertex AI Java client for Google Cloud Vertex AI services. com.google.cloud google-cloud-aiplatform-parent - 3.92.0 + 3.93.0 google-cloud-aiplatform diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java index da8c437fe2c7..fe590b501029 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java @@ -2508,6 +2508,7 @@ public final OperationFuture copy * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) * .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + * .setCustomServiceAccount("customServiceAccount-2110106743") * .build(); * CopyModelResponse response = modelServiceClient.copyModelAsync(request).get(); * } @@ -2542,6 +2543,7 @@ public final OperationFuture copy * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) * .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + * .setCustomServiceAccount("customServiceAccount-2110106743") * .build(); * OperationFuture future = * modelServiceClient.copyModelOperationCallable().futureCall(request); @@ -2576,6 +2578,7 @@ public final OperationFuture copy * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) * .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + * .setCustomServiceAccount("customServiceAccount-2110106743") * .build(); * ApiFuture future = modelServiceClient.copyModelCallable().futureCall(request); * // Do something. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java index 7c8c70a563cc..4aa3182446f1 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java @@ -20,9 +20,11 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -38,6 +40,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -107,6 +111,21 @@ * * * + *

AsyncQueryReasoningEngine + *

Async query using a reasoning engine. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • asyncQueryReasoningEngineAsync(AsyncQueryReasoningEngineRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • asyncQueryReasoningEngineOperationCallable() + *

  • asyncQueryReasoningEngineCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -226,6 +245,7 @@ public class ReasoningEngineExecutionServiceClient implements BackgroundResource { private final ReasoningEngineExecutionServiceSettings settings; private final ReasoningEngineExecutionServiceStub stub; + private final OperationsClient operationsClient; /** Constructs an instance of ReasoningEngineExecutionServiceClient with default settings. */ public static final ReasoningEngineExecutionServiceClient create() throws IOException { @@ -262,11 +282,13 @@ protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceS this.settings = settings; this.stub = ((ReasoningEngineExecutionServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } public final ReasoningEngineExecutionServiceSettings getSettings() { @@ -277,6 +299,14 @@ public ReasoningEngineExecutionServiceStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Queries using a reasoning engine. @@ -381,6 +411,118 @@ public final QueryReasoningEngineResponse queryReasoningEngine( return stub.streamQueryReasoningEngineCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   AsyncQueryReasoningEngineRequest request =
+   *       AsyncQueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInputGcsUri("inputGcsUri-665217217")
+   *           .setOutputGcsUri("outputGcsUri-489598154")
+   *           .build();
+   *   AsyncQueryReasoningEngineResponse response =
+   *       reasoningEngineExecutionServiceClient.asyncQueryReasoningEngineAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + AsyncQueryReasoningEngineResponse, AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineAsync(AsyncQueryReasoningEngineRequest request) { + return asyncQueryReasoningEngineOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   AsyncQueryReasoningEngineRequest request =
+   *       AsyncQueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInputGcsUri("inputGcsUri-665217217")
+   *           .setOutputGcsUri("outputGcsUri-489598154")
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           reasoningEngineExecutionServiceClient
+   *               .asyncQueryReasoningEngineOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   AsyncQueryReasoningEngineResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + return stub.asyncQueryReasoningEngineOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   AsyncQueryReasoningEngineRequest request =
+   *       AsyncQueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInputGcsUri("inputGcsUri-665217217")
+   *           .setOutputGcsUri("outputGcsUri-489598154")
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineExecutionServiceClient
+   *           .asyncQueryReasoningEngineCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + asyncQueryReasoningEngineCallable() { + return stub.asyncQueryReasoningEngineCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java index f1fc42afedca..507dfcc4fa90 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; @@ -40,6 +41,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -94,6 +96,32 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncQueryReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder =
+ *     ReasoningEngineExecutionServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * reasoningEngineExecutionServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
*/ @Generated("by gapic-generator-java") public class ReasoningEngineExecutionServiceSettings @@ -113,6 +141,23 @@ public class ReasoningEngineExecutionServiceSettings .streamQueryReasoningEngineSettings(); } + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings + asyncQueryReasoningEngineSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .asyncQueryReasoningEngineSettings(); + } + + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .asyncQueryReasoningEngineOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -251,6 +296,21 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().streamQueryReasoningEngineSettings(); } + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings() { + return getStubSettingsBuilder().asyncQueryReasoningEngineSettings(); + } + + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return getStubSettingsBuilder().asyncQueryReasoningEngineOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index 65c8fd3eaa08..9156f309b31e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -1375,6 +1375,9 @@ "grpc": { "libraryClient": "ReasoningEngineExecutionServiceClient", "rpcs": { + "AsyncQueryReasoningEngine": { + "methods": ["asyncQueryReasoningEngineAsync", "asyncQueryReasoningEngineOperationCallable", "asyncQueryReasoningEngineCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java index a4bc3e65714c..5ee590310075 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java @@ -24,9 +24,13 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; @@ -39,6 +43,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -79,6 +84,18 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + asyncQueryReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineExecutionService/AsyncQueryReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(AsyncQueryReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -134,6 +151,13 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec queryReasoningEngineCallable; private final ServerStreamingCallable streamQueryReasoningEngineCallable; + private final UnaryCallable + asyncQueryReasoningEngineCallable; + private final OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -214,6 +238,18 @@ protected GrpcReasoningEngineExecutionServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + asyncQueryReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(asyncQueryReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -279,6 +315,17 @@ protected GrpcReasoningEngineExecutionServiceStub( streamQueryReasoningEngineTransportSettings, settings.streamQueryReasoningEngineSettings(), clientContext); + this.asyncQueryReasoningEngineCallable = + callableFactory.createUnaryCallable( + asyncQueryReasoningEngineTransportSettings, + settings.asyncQueryReasoningEngineSettings(), + clientContext); + this.asyncQueryReasoningEngineOperationCallable = + callableFactory.createOperationCallable( + asyncQueryReasoningEngineTransportSettings, + settings.asyncQueryReasoningEngineOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -320,6 +367,21 @@ public GrpcOperationsStub getOperationsStub() { return streamQueryReasoningEngineCallable; } + @Override + public UnaryCallable + asyncQueryReasoningEngineCallable() { + return asyncQueryReasoningEngineCallable; + } + + @Override + public OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + return asyncQueryReasoningEngineOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java index 9f3a7ebc8a4f..e759d16df608 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java @@ -20,8 +20,12 @@ import com.google.api.HttpBody; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; @@ -34,6 +38,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -45,6 +51,10 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineExecutionServiceStub implements BackgroundResource { + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + public UnaryCallable queryReasoningEngineCallable() { throw new UnsupportedOperationException("Not implemented: queryReasoningEngineCallable()"); @@ -56,6 +66,20 @@ public abstract class ReasoningEngineExecutionServiceStub implements BackgroundR "Not implemented: streamQueryReasoningEngineCallable()"); } + public OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: asyncQueryReasoningEngineOperationCallable()"); + } + + public UnaryCallable + asyncQueryReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: asyncQueryReasoningEngineCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java index 9a063451cc97..ac23e94666e0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java @@ -28,11 +28,15 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -43,6 +47,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; @@ -59,7 +66,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import java.io.IOException; +import java.time.Duration; import java.util.List; import javax.annotation.Generated; @@ -114,6 +123,33 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncQueryReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineExecutionServiceStubSettings.Builder
+ *     reasoningEngineExecutionServiceSettingsBuilder =
+ *         ReasoningEngineExecutionServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * reasoningEngineExecutionServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
*/ @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") @@ -127,6 +163,13 @@ public class ReasoningEngineExecutionServiceStubSettings queryReasoningEngineSettings; private final ServerStreamingCallSettings streamQueryReasoningEngineSettings; + private final UnaryCallSettings + asyncQueryReasoningEngineSettings; + private final OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -199,6 +242,21 @@ public ApiFuture getFuturePagedResponse( return streamQueryReasoningEngineSettings; } + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings + asyncQueryReasoningEngineSettings() { + return asyncQueryReasoningEngineSettings; + } + + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return asyncQueryReasoningEngineOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -312,6 +370,9 @@ protected ReasoningEngineExecutionServiceStubSettings(Builder settingsBuilder) queryReasoningEngineSettings = settingsBuilder.queryReasoningEngineSettings().build(); streamQueryReasoningEngineSettings = settingsBuilder.streamQueryReasoningEngineSettings().build(); + asyncQueryReasoningEngineSettings = settingsBuilder.asyncQueryReasoningEngineSettings().build(); + asyncQueryReasoningEngineOperationSettings = + settingsBuilder.asyncQueryReasoningEngineOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -337,6 +398,13 @@ public static class Builder queryReasoningEngineSettings; private final ServerStreamingCallSettings.Builder streamQueryReasoningEngineSettings; + private final UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings; + private final OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -374,6 +442,8 @@ protected Builder(ClientContext clientContext) { queryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamQueryReasoningEngineSettings = ServerStreamingCallSettings.newBuilder(); + asyncQueryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + asyncQueryReasoningEngineOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -383,6 +453,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( queryReasoningEngineSettings, + asyncQueryReasoningEngineSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -396,6 +467,9 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { queryReasoningEngineSettings = settings.queryReasoningEngineSettings.toBuilder(); streamQueryReasoningEngineSettings = settings.streamQueryReasoningEngineSettings.toBuilder(); + asyncQueryReasoningEngineSettings = settings.asyncQueryReasoningEngineSettings.toBuilder(); + asyncQueryReasoningEngineOperationSettings = + settings.asyncQueryReasoningEngineOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -405,6 +479,7 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( queryReasoningEngineSettings, + asyncQueryReasoningEngineSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -435,6 +510,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .asyncQueryReasoningEngineSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -460,6 +540,33 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .asyncQueryReasoningEngineOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + AsyncQueryReasoningEngineResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + AsyncQueryReasoningEngineOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -490,6 +597,21 @@ public Builder applyToAllUnaryMethods( return streamQueryReasoningEngineSettings; } + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings() { + return asyncQueryReasoningEngineSettings; + } + + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return asyncQueryReasoningEngineOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/Version.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/Version.java index c8c43ab8b03f..caa714fd56c4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/Version.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-aiplatform:current} - static final String VERSION = "3.92.0"; + static final String VERSION = "3.93.0"; // {x-version-update-end} } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java index 9771ef8c0ed1..0a63c5ffbde5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java @@ -63,6 +63,9 @@ * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllMetrics(new ArrayList()) + * .addAllMetricSources(new ArrayList()) + * .setInstance(EvaluationInstance.newBuilder().build()) * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); @@ -110,6 +113,20 @@ * * * + *

GenerateInstanceRubrics + *

Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateInstanceRubrics(GenerateInstanceRubricsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateInstanceRubricsCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -303,6 +320,9 @@ public final OperationsClient getOperationsClient() { * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllMetrics(new ArrayList()) + * .addAllMetricSources(new ArrayList()) + * .setInstance(EvaluationInstance.newBuilder().build()) * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); @@ -332,6 +352,9 @@ public final EvaluateInstancesResponse evaluateInstances(EvaluateInstancesReques * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllMetrics(new ArrayList()) + * .addAllMetricSources(new ArrayList()) + * .setInstance(EvaluationInstance.newBuilder().build()) * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * ApiFuture future = @@ -446,6 +469,79 @@ public final UnaryCallable evaluateDatasetCal return stub.evaluateDatasetCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates rubrics for a given prompt. A rubric represents a single testable criterion for + * evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested + * rubrics based on provided prompt, which can then be reviewed and used for subsequent + * evaluations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   GenerateInstanceRubricsRequest request =
+   *       GenerateInstanceRubricsRequest.newBuilder()
+   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllContents(new ArrayList())
+   *           .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build())
+   *           .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build())
+   *           .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build())
+   *           .build();
+   *   GenerateInstanceRubricsResponse response =
+   *       evaluationServiceClient.generateInstanceRubrics(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateInstanceRubricsResponse generateInstanceRubrics( + GenerateInstanceRubricsRequest request) { + return generateInstanceRubricsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates rubrics for a given prompt. A rubric represents a single testable criterion for + * evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested + * rubrics based on provided prompt, which can then be reviewed and used for subsequent + * evaluations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   GenerateInstanceRubricsRequest request =
+   *       GenerateInstanceRubricsRequest.newBuilder()
+   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllContents(new ArrayList())
+   *           .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build())
+   *           .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build())
+   *           .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       evaluationServiceClient.generateInstanceRubricsCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateInstanceRubricsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + generateInstanceRubricsCallable() { + return stub.generateInstanceRubricsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java index 509bec6fc624..5a905269909e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java @@ -143,6 +143,12 @@ public UnaryCallSettings evaluateDatasetSetti return ((EvaluationServiceStubSettings) getStubSettings()).evaluateDatasetOperationSettings(); } + /** Returns the object with the settings used for calls to generateInstanceRubrics. */ + public UnaryCallSettings + generateInstanceRubricsSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).generateInstanceRubricsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -284,6 +290,13 @@ public UnaryCallSettings.Builder evaluateData return getStubSettingsBuilder().evaluateDatasetOperationSettings(); } + /** Returns the builder for the settings used for calls to generateInstanceRubrics. */ + public UnaryCallSettings.Builder< + GenerateInstanceRubricsRequest, GenerateInstanceRubricsResponse> + generateInstanceRubricsSettings() { + return getStubSettingsBuilder().generateInstanceRubricsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java index b55b684e4465..a9fdf5a0748f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java @@ -2521,6 +2521,7 @@ public final OperationFuture copy * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) * .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + * .setCustomServiceAccount("customServiceAccount-2110106743") * .build(); * CopyModelResponse response = modelServiceClient.copyModelAsync(request).get(); * } @@ -2555,6 +2556,7 @@ public final OperationFuture copy * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) * .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + * .setCustomServiceAccount("customServiceAccount-2110106743") * .build(); * OperationFuture future = * modelServiceClient.copyModelOperationCallable().futureCall(request); @@ -2589,6 +2591,7 @@ public final OperationFuture copy * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) * .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + * .setCustomServiceAccount("customServiceAccount-2110106743") * .build(); * ApiFuture future = modelServiceClient.copyModelCallable().futureCall(request); * // Do something. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java new file mode 100644 index 000000000000..f934acd4ed42 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java @@ -0,0 +1,2075 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStub; +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: This service is used to create and manage Vertex AI OnlineEvaluators. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+ *     OnlineEvaluatorServiceClient.create()) {
+ *   OnlineEvaluatorName name =
+ *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the OnlineEvaluatorServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

CreateOnlineEvaluator

Creates an OnlineEvaluator in the given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createOnlineEvaluatorAsync(LocationName parent, OnlineEvaluator onlineEvaluator) + *

  • createOnlineEvaluatorAsync(String parent, OnlineEvaluator onlineEvaluator) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createOnlineEvaluatorOperationCallable() + *

  • createOnlineEvaluatorCallable() + *

+ *

GetOnlineEvaluator

Gets details of an OnlineEvaluator.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getOnlineEvaluator(GetOnlineEvaluatorRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getOnlineEvaluator(OnlineEvaluatorName name) + *

  • getOnlineEvaluator(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getOnlineEvaluatorCallable() + *

+ *

UpdateOnlineEvaluator

Updates the fields of an OnlineEvaluator.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateOnlineEvaluatorAsync(OnlineEvaluator onlineEvaluator, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateOnlineEvaluatorOperationCallable() + *

  • updateOnlineEvaluatorCallable() + *

+ *

DeleteOnlineEvaluator

Deletes an OnlineEvaluator.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteOnlineEvaluatorAsync(OnlineEvaluatorName name) + *

  • deleteOnlineEvaluatorAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteOnlineEvaluatorOperationCallable() + *

  • deleteOnlineEvaluatorCallable() + *

+ *

ListOnlineEvaluators

Lists the OnlineEvaluators for the given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listOnlineEvaluators(ListOnlineEvaluatorsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listOnlineEvaluators(LocationName parent) + *

  • listOnlineEvaluators(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listOnlineEvaluatorsPagedCallable() + *

  • listOnlineEvaluatorsCallable() + *

+ *

ActivateOnlineEvaluator

Activates an OnlineEvaluator.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • activateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • activateOnlineEvaluatorAsync(OnlineEvaluatorName name) + *

  • activateOnlineEvaluatorAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • activateOnlineEvaluatorOperationCallable() + *

  • activateOnlineEvaluatorCallable() + *

+ *

SuspendOnlineEvaluator

Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • suspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • suspendOnlineEvaluatorAsync(OnlineEvaluatorName name) + *

  • suspendOnlineEvaluatorAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • suspendOnlineEvaluatorOperationCallable() + *

  • suspendOnlineEvaluatorCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLocationCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • setIamPolicyCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of OnlineEvaluatorServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings =
+ *     OnlineEvaluatorServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+ *     OnlineEvaluatorServiceClient.create(onlineEvaluatorServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings =
+ *     OnlineEvaluatorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+ *     OnlineEvaluatorServiceClient.create(onlineEvaluatorServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class OnlineEvaluatorServiceClient implements BackgroundResource { + private final OnlineEvaluatorServiceSettings settings; + private final OnlineEvaluatorServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of OnlineEvaluatorServiceClient with default settings. */ + public static final OnlineEvaluatorServiceClient create() throws IOException { + return create(OnlineEvaluatorServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OnlineEvaluatorServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final OnlineEvaluatorServiceClient create(OnlineEvaluatorServiceSettings settings) + throws IOException { + return new OnlineEvaluatorServiceClient(settings); + } + + /** + * Constructs an instance of OnlineEvaluatorServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(OnlineEvaluatorServiceSettings). + */ + public static final OnlineEvaluatorServiceClient create(OnlineEvaluatorServiceStub stub) { + return new OnlineEvaluatorServiceClient(stub); + } + + /** + * Constructs an instance of OnlineEvaluatorServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected OnlineEvaluatorServiceClient(OnlineEvaluatorServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((OnlineEvaluatorServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected OnlineEvaluatorServiceClient(OnlineEvaluatorServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final OnlineEvaluatorServiceSettings getSettings() { + return settings; + } + + public OnlineEvaluatorServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(parent, onlineEvaluator).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the OnlineEvaluator will be created. Format: + * projects/{project}/locations/{location}. + * @param onlineEvaluator Required. The OnlineEvaluator to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOnlineEvaluatorAsync(LocationName parent, OnlineEvaluator onlineEvaluator) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setOnlineEvaluator(onlineEvaluator) + .build(); + return createOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(parent, onlineEvaluator).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the OnlineEvaluator will be created. Format: + * projects/{project}/locations/{location}. + * @param onlineEvaluator Required. The OnlineEvaluator to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOnlineEvaluatorAsync(String parent, OnlineEvaluator onlineEvaluator) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(parent) + .setOnlineEvaluator(onlineEvaluator) + .build(); + return createOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   CreateOnlineEvaluatorRequest request =
+   *       CreateOnlineEvaluatorRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
+   *           .build();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest request) { + return createOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   CreateOnlineEvaluatorRequest request =
+   *       CreateOnlineEvaluatorRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       onlineEvaluatorServiceClient.createOnlineEvaluatorOperationCallable().futureCall(request);
+   *   // Do something.
+   *   OnlineEvaluator response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationCallable() { + return stub.createOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   CreateOnlineEvaluatorRequest request =
+   *       CreateOnlineEvaluatorRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.createOnlineEvaluatorCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createOnlineEvaluatorCallable() { + return stub.createOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   OnlineEvaluatorName name =
+   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+   *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name);
+   * }
+   * }
+ * + * @param name Required. The name of the OnlineEvaluator to retrieve. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OnlineEvaluator getOnlineEvaluator(OnlineEvaluatorName name) { + GetOnlineEvaluatorRequest request = + GetOnlineEvaluatorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOnlineEvaluator(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   String name =
+   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString();
+   *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name);
+   * }
+   * }
+ * + * @param name Required. The name of the OnlineEvaluator to retrieve. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OnlineEvaluator getOnlineEvaluator(String name) { + GetOnlineEvaluatorRequest request = + GetOnlineEvaluatorRequest.newBuilder().setName(name).build(); + return getOnlineEvaluator(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   GetOnlineEvaluatorRequest request =
+   *       GetOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OnlineEvaluator getOnlineEvaluator(GetOnlineEvaluatorRequest request) { + return getOnlineEvaluatorCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   GetOnlineEvaluatorRequest request =
+   *       GetOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.getOnlineEvaluatorCallable().futureCall(request);
+   *   // Do something.
+   *   OnlineEvaluator response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getOnlineEvaluatorCallable() { + return stub.getOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the fields of an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient
+   *           .updateOnlineEvaluatorAsync(onlineEvaluator, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param onlineEvaluator Required. The OnlineEvaluator to update. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @param updateMask Optional. Field mask is used to control which fields get updated. If the mask + * is not present, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateOnlineEvaluatorAsync(OnlineEvaluator onlineEvaluator, FieldMask updateMask) { + UpdateOnlineEvaluatorRequest request = + UpdateOnlineEvaluatorRequest.newBuilder() + .setOnlineEvaluator(onlineEvaluator) + .setUpdateMask(updateMask) + .build(); + return updateOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the fields of an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   UpdateOnlineEvaluatorRequest request =
+   *       UpdateOnlineEvaluatorRequest.newBuilder()
+   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.updateOnlineEvaluatorAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest request) { + return updateOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the fields of an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   UpdateOnlineEvaluatorRequest request =
+   *       UpdateOnlineEvaluatorRequest.newBuilder()
+   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       onlineEvaluatorServiceClient.updateOnlineEvaluatorOperationCallable().futureCall(request);
+   *   // Do something.
+   *   OnlineEvaluator response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationCallable() { + return stub.updateOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the fields of an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   UpdateOnlineEvaluatorRequest request =
+   *       UpdateOnlineEvaluatorRequest.newBuilder()
+   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.updateOnlineEvaluatorCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateOnlineEvaluatorCallable() { + return stub.updateOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   OnlineEvaluatorName name =
+   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+   *   onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the OnlineEvaluator to delete. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteOnlineEvaluatorAsync(OnlineEvaluatorName name) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   String name =
+   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString();
+   *   onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the OnlineEvaluator to delete. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteOnlineEvaluatorAsync(String name) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder().setName(name).build(); + return deleteOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   DeleteOnlineEvaluatorRequest request =
+   *       DeleteOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest request) { + return deleteOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   DeleteOnlineEvaluatorRequest request =
+   *       DeleteOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       onlineEvaluatorServiceClient.deleteOnlineEvaluatorOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationCallable() { + return stub.deleteOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   DeleteOnlineEvaluatorRequest request =
+   *       DeleteOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.deleteOnlineEvaluatorCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteOnlineEvaluatorCallable() { + return stub.deleteOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (OnlineEvaluator element :
+   *       onlineEvaluatorServiceClient.listOnlineEvaluators(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the OnlineEvaluators to list. Format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators(LocationName parent) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOnlineEvaluators(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (OnlineEvaluator element :
+   *       onlineEvaluatorServiceClient.listOnlineEvaluators(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the OnlineEvaluators to list. Format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators(String parent) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder().setParent(parent).build(); + return listOnlineEvaluators(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ListOnlineEvaluatorsRequest request =
+   *       ListOnlineEvaluatorsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (OnlineEvaluator element :
+   *       onlineEvaluatorServiceClient.listOnlineEvaluators(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators( + ListOnlineEvaluatorsRequest request) { + return listOnlineEvaluatorsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ListOnlineEvaluatorsRequest request =
+   *       ListOnlineEvaluatorsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.listOnlineEvaluatorsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (OnlineEvaluator element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listOnlineEvaluatorsPagedCallable() { + return stub.listOnlineEvaluatorsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ListOnlineEvaluatorsRequest request =
+   *       ListOnlineEvaluatorsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListOnlineEvaluatorsResponse response =
+   *         onlineEvaluatorServiceClient.listOnlineEvaluatorsCallable().call(request);
+   *     for (OnlineEvaluator element : response.getOnlineEvaluatorsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listOnlineEvaluatorsCallable() { + return stub.listOnlineEvaluatorsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   OnlineEvaluatorName name =
+   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the OnlineEvaluator to activate. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + activateOnlineEvaluatorAsync(OnlineEvaluatorName name) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return activateOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   String name =
+   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the OnlineEvaluator to activate. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + activateOnlineEvaluatorAsync(String name) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder().setName(name).build(); + return activateOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ActivateOnlineEvaluatorRequest request =
+   *       ActivateOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + activateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest request) { + return activateOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ActivateOnlineEvaluatorRequest request =
+   *       ActivateOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       onlineEvaluatorServiceClient
+   *           .activateOnlineEvaluatorOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   OnlineEvaluator response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationCallable() { + return stub.activateOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ActivateOnlineEvaluatorRequest request =
+   *       ActivateOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.activateOnlineEvaluatorCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + activateOnlineEvaluatorCallable() { + return stub.activateOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   OnlineEvaluatorName name =
+   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the OnlineEvaluator to suspend. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + suspendOnlineEvaluatorAsync(OnlineEvaluatorName name) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return suspendOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   String name =
+   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the OnlineEvaluator to suspend. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + suspendOnlineEvaluatorAsync(String name) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder().setName(name).build(); + return suspendOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   SuspendOnlineEvaluatorRequest request =
+   *       SuspendOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   OnlineEvaluator response =
+   *       onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + suspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest request) { + return suspendOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   SuspendOnlineEvaluatorRequest request =
+   *       SuspendOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       onlineEvaluatorServiceClient
+   *           .suspendOnlineEvaluatorOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   OnlineEvaluator response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationCallable() { + return stub.suspendOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   SuspendOnlineEvaluatorRequest request =
+   *       SuspendOnlineEvaluatorRequest.newBuilder()
+   *           .setName(
+   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.suspendOnlineEvaluatorCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + suspendOnlineEvaluatorCallable() { + return stub.suspendOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : onlineEvaluatorServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         onlineEvaluatorServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = onlineEvaluatorServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = onlineEvaluatorServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = onlineEvaluatorServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response =
+   *       onlineEvaluatorServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+   *     OnlineEvaluatorServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       onlineEvaluatorServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListOnlineEvaluatorsPagedResponse + extends AbstractPagedListResponse< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + OnlineEvaluator, + ListOnlineEvaluatorsPage, + ListOnlineEvaluatorsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOnlineEvaluatorsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListOnlineEvaluatorsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListOnlineEvaluatorsPagedResponse(ListOnlineEvaluatorsPage page) { + super(page, ListOnlineEvaluatorsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOnlineEvaluatorsPage + extends AbstractPage< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + OnlineEvaluator, + ListOnlineEvaluatorsPage> { + + private ListOnlineEvaluatorsPage( + PageContext + context, + ListOnlineEvaluatorsResponse response) { + super(context, response); + } + + private static ListOnlineEvaluatorsPage createEmptyPage() { + return new ListOnlineEvaluatorsPage(null, null); + } + + @Override + protected ListOnlineEvaluatorsPage createPage( + PageContext + context, + ListOnlineEvaluatorsResponse response) { + return new ListOnlineEvaluatorsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOnlineEvaluatorsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + OnlineEvaluator, + ListOnlineEvaluatorsPage, + ListOnlineEvaluatorsFixedSizeCollection> { + + private ListOnlineEvaluatorsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOnlineEvaluatorsFixedSizeCollection createEmptyCollection() { + return new ListOnlineEvaluatorsFixedSizeCollection(null, 0); + } + + @Override + protected ListOnlineEvaluatorsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOnlineEvaluatorsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java new file mode 100644 index 000000000000..e4ad1ba14695 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java @@ -0,0 +1,457 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OnlineEvaluatorServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getOnlineEvaluator: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OnlineEvaluatorServiceSettings.Builder onlineEvaluatorServiceSettingsBuilder =
+ *     OnlineEvaluatorServiceSettings.newBuilder();
+ * onlineEvaluatorServiceSettingsBuilder
+ *     .getOnlineEvaluatorSettings()
+ *     .setRetrySettings(
+ *         onlineEvaluatorServiceSettingsBuilder
+ *             .getOnlineEvaluatorSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings =
+ *     onlineEvaluatorServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createOnlineEvaluator: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OnlineEvaluatorServiceSettings.Builder onlineEvaluatorServiceSettingsBuilder =
+ *     OnlineEvaluatorServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * onlineEvaluatorServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class OnlineEvaluatorServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createOnlineEvaluator. */ + public UnaryCallSettings + createOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).createOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to createOnlineEvaluator. */ + public OperationCallSettings< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .createOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to getOnlineEvaluator. */ + public UnaryCallSettings + getOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).getOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to updateOnlineEvaluator. */ + public UnaryCallSettings + updateOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).updateOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to updateOnlineEvaluator. */ + public OperationCallSettings< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .updateOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteOnlineEvaluator. */ + public UnaryCallSettings + deleteOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).deleteOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to deleteOnlineEvaluator. */ + public OperationCallSettings< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .deleteOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to listOnlineEvaluators. */ + public PagedCallSettings< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).listOnlineEvaluatorsSettings(); + } + + /** Returns the object with the settings used for calls to activateOnlineEvaluator. */ + public UnaryCallSettings + activateOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .activateOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to activateOnlineEvaluator. */ + public OperationCallSettings< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .activateOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to suspendOnlineEvaluator. */ + public UnaryCallSettings + suspendOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .suspendOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to suspendOnlineEvaluator. */ + public OperationCallSettings< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .suspendOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final OnlineEvaluatorServiceSettings create(OnlineEvaluatorServiceStubSettings stub) + throws IOException { + return new OnlineEvaluatorServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OnlineEvaluatorServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OnlineEvaluatorServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OnlineEvaluatorServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OnlineEvaluatorServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return OnlineEvaluatorServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OnlineEvaluatorServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OnlineEvaluatorServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OnlineEvaluatorServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for OnlineEvaluatorServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OnlineEvaluatorServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(OnlineEvaluatorServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OnlineEvaluatorServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OnlineEvaluatorServiceStubSettings.newBuilder()); + } + + public OnlineEvaluatorServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OnlineEvaluatorServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createOnlineEvaluator. */ + public UnaryCallSettings.Builder + createOnlineEvaluatorSettings() { + return getStubSettingsBuilder().createOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to createOnlineEvaluator. */ + public OperationCallSettings.Builder< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().createOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getOnlineEvaluator. */ + public UnaryCallSettings.Builder + getOnlineEvaluatorSettings() { + return getStubSettingsBuilder().getOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to updateOnlineEvaluator. */ + public UnaryCallSettings.Builder + updateOnlineEvaluatorSettings() { + return getStubSettingsBuilder().updateOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to updateOnlineEvaluator. */ + public OperationCallSettings.Builder< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().updateOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOnlineEvaluator. */ + public UnaryCallSettings.Builder + deleteOnlineEvaluatorSettings() { + return getStubSettingsBuilder().deleteOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOnlineEvaluator. */ + public OperationCallSettings.Builder< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().deleteOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listOnlineEvaluators. */ + public PagedCallSettings.Builder< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings() { + return getStubSettingsBuilder().listOnlineEvaluatorsSettings(); + } + + /** Returns the builder for the settings used for calls to activateOnlineEvaluator. */ + public UnaryCallSettings.Builder + activateOnlineEvaluatorSettings() { + return getStubSettingsBuilder().activateOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to activateOnlineEvaluator. */ + public OperationCallSettings.Builder< + ActivateOnlineEvaluatorRequest, + OnlineEvaluator, + ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().activateOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to suspendOnlineEvaluator. */ + public UnaryCallSettings.Builder + suspendOnlineEvaluatorSettings() { + return getStubSettingsBuilder().suspendOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to suspendOnlineEvaluator. */ + public OperationCallSettings.Builder< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().suspendOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public OnlineEvaluatorServiceSettings build() throws IOException { + return new OnlineEvaluatorServiceSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java index 4146136de493..8fc7bbe82bba 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java @@ -21,9 +21,11 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -39,6 +41,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -108,6 +112,21 @@ * * * + *

AsyncQueryReasoningEngine + *

Async query using a reasoning engine. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • asyncQueryReasoningEngineAsync(AsyncQueryReasoningEngineRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • asyncQueryReasoningEngineOperationCallable() + *

  • asyncQueryReasoningEngineCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -228,6 +247,7 @@ public class ReasoningEngineExecutionServiceClient implements BackgroundResource { private final ReasoningEngineExecutionServiceSettings settings; private final ReasoningEngineExecutionServiceStub stub; + private final OperationsClient operationsClient; /** Constructs an instance of ReasoningEngineExecutionServiceClient with default settings. */ public static final ReasoningEngineExecutionServiceClient create() throws IOException { @@ -264,11 +284,13 @@ protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceS this.settings = settings; this.stub = ((ReasoningEngineExecutionServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } public final ReasoningEngineExecutionServiceSettings getSettings() { @@ -279,6 +301,14 @@ public ReasoningEngineExecutionServiceStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Queries using a reasoning engine. @@ -383,6 +413,118 @@ public final QueryReasoningEngineResponse queryReasoningEngine( return stub.streamQueryReasoningEngineCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   AsyncQueryReasoningEngineRequest request =
+   *       AsyncQueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInputGcsUri("inputGcsUri-665217217")
+   *           .setOutputGcsUri("outputGcsUri-489598154")
+   *           .build();
+   *   AsyncQueryReasoningEngineResponse response =
+   *       reasoningEngineExecutionServiceClient.asyncQueryReasoningEngineAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + AsyncQueryReasoningEngineResponse, AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineAsync(AsyncQueryReasoningEngineRequest request) { + return asyncQueryReasoningEngineOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   AsyncQueryReasoningEngineRequest request =
+   *       AsyncQueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInputGcsUri("inputGcsUri-665217217")
+   *           .setOutputGcsUri("outputGcsUri-489598154")
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           reasoningEngineExecutionServiceClient
+   *               .asyncQueryReasoningEngineOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   AsyncQueryReasoningEngineResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + return stub.asyncQueryReasoningEngineOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   AsyncQueryReasoningEngineRequest request =
+   *       AsyncQueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInputGcsUri("inputGcsUri-665217217")
+   *           .setOutputGcsUri("outputGcsUri-489598154")
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineExecutionServiceClient
+   *           .asyncQueryReasoningEngineCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + asyncQueryReasoningEngineCallable() { + return stub.asyncQueryReasoningEngineCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java index 2da603b90ea8..59c914a792bb 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; @@ -41,6 +42,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -95,6 +97,32 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncQueryReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder =
+ *     ReasoningEngineExecutionServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * reasoningEngineExecutionServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
*/ @BetaApi @Generated("by gapic-generator-java") @@ -115,6 +143,23 @@ public class ReasoningEngineExecutionServiceSettings .streamQueryReasoningEngineSettings(); } + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings + asyncQueryReasoningEngineSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .asyncQueryReasoningEngineSettings(); + } + + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .asyncQueryReasoningEngineOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -253,6 +298,21 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().streamQueryReasoningEngineSettings(); } + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings() { + return getStubSettingsBuilder().asyncQueryReasoningEngineSettings(); + } + + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return getStubSettingsBuilder().asyncQueryReasoningEngineOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index f026fac0413f..027a69d71646 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -202,6 +202,9 @@ "EvaluateInstances": { "methods": ["evaluateInstances", "evaluateInstancesCallable"] }, + "GenerateInstanceRubrics": { + "methods": ["generateInstanceRubrics", "generateInstanceRubricsCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, @@ -1457,6 +1460,51 @@ } } }, + "OnlineEvaluatorService": { + "clients": { + "grpc": { + "libraryClient": "OnlineEvaluatorServiceClient", + "rpcs": { + "ActivateOnlineEvaluator": { + "methods": ["activateOnlineEvaluatorAsync", "activateOnlineEvaluatorAsync", "activateOnlineEvaluatorAsync", "activateOnlineEvaluatorOperationCallable", "activateOnlineEvaluatorCallable"] + }, + "CreateOnlineEvaluator": { + "methods": ["createOnlineEvaluatorAsync", "createOnlineEvaluatorAsync", "createOnlineEvaluatorAsync", "createOnlineEvaluatorOperationCallable", "createOnlineEvaluatorCallable"] + }, + "DeleteOnlineEvaluator": { + "methods": ["deleteOnlineEvaluatorAsync", "deleteOnlineEvaluatorAsync", "deleteOnlineEvaluatorAsync", "deleteOnlineEvaluatorOperationCallable", "deleteOnlineEvaluatorCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetOnlineEvaluator": { + "methods": ["getOnlineEvaluator", "getOnlineEvaluator", "getOnlineEvaluator", "getOnlineEvaluatorCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListOnlineEvaluators": { + "methods": ["listOnlineEvaluators", "listOnlineEvaluators", "listOnlineEvaluators", "listOnlineEvaluatorsPagedCallable", "listOnlineEvaluatorsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "SuspendOnlineEvaluator": { + "methods": ["suspendOnlineEvaluatorAsync", "suspendOnlineEvaluatorAsync", "suspendOnlineEvaluatorAsync", "suspendOnlineEvaluatorOperationCallable", "suspendOnlineEvaluatorCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateOnlineEvaluator": { + "methods": ["updateOnlineEvaluatorAsync", "updateOnlineEvaluatorAsync", "updateOnlineEvaluatorOperationCallable", "updateOnlineEvaluatorCallable"] + } + } + } + } + }, "PersistentResourceService": { "clients": { "grpc": { @@ -1636,6 +1684,9 @@ "grpc": { "libraryClient": "ReasoningEngineExecutionServiceClient", "rpcs": { + "AsyncQueryReasoningEngine": { + "methods": ["asyncQueryReasoningEngineAsync", "asyncQueryReasoningEngineOperationCallable", "asyncQueryReasoningEngineCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java index e1ba2f797fcd..de09de8761bc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java @@ -93,6 +93,9 @@ * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllMetrics(new ArrayList()) + * .addAllMetricSources(new ArrayList()) + * .setInstance(EvaluationInstance.newBuilder().build()) * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); @@ -529,6 +532,26 @@ * } * } * + *

======================= OnlineEvaluatorServiceClient ======================= + * + *

Service Description: This service is used to create and manage Vertex AI OnlineEvaluators. + * + *

Sample for OnlineEvaluatorServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
+ *     OnlineEvaluatorServiceClient.create()) {
+ *   OnlineEvaluatorName name =
+ *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name);
+ * }
+ * }
+ * *

======================= PersistentResourceServiceClient ======================= * *

Service Description: A service for managing Vertex AI's machine learning PersistentResource. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java index fe666d7a6fa9..7c5355d6a794 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java @@ -27,6 +27,8 @@ import com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -69,6 +71,11 @@ public UnaryCallable evaluateDatasetCallable( throw new UnsupportedOperationException("Not implemented: evaluateDatasetCallable()"); } + public UnaryCallable + generateInstanceRubricsCallable() { + throw new UnsupportedOperationException("Not implemented: generateInstanceRubricsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java index a3277094c085..a4a51bbd3979 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java @@ -51,6 +51,8 @@ import com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -161,6 +163,8 @@ public class EvaluationServiceStubSettings extends StubSettings evaluateDatasetOperationSettings; + private final UnaryCallSettings + generateInstanceRubricsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -239,6 +243,12 @@ public UnaryCallSettings evaluateDatasetSetti return evaluateDatasetOperationSettings; } + /** Returns the object with the settings used for calls to generateInstanceRubrics. */ + public UnaryCallSettings + generateInstanceRubricsSettings() { + return generateInstanceRubricsSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -350,6 +360,7 @@ protected EvaluationServiceStubSettings(Builder settingsBuilder) throws IOExcept evaluateInstancesSettings = settingsBuilder.evaluateInstancesSettings().build(); evaluateDatasetSettings = settingsBuilder.evaluateDatasetSettings().build(); evaluateDatasetOperationSettings = settingsBuilder.evaluateDatasetOperationSettings().build(); + generateInstanceRubricsSettings = settingsBuilder.generateInstanceRubricsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -376,6 +387,9 @@ public static class Builder extends StubSettings.Builder evaluateDatasetOperationSettings; + private final UnaryCallSettings.Builder< + GenerateInstanceRubricsRequest, GenerateInstanceRubricsResponse> + generateInstanceRubricsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -424,6 +438,7 @@ protected Builder(ClientContext clientContext) { evaluateInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); evaluateDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); evaluateDatasetOperationSettings = OperationCallSettings.newBuilder(); + generateInstanceRubricsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -434,6 +449,7 @@ protected Builder(ClientContext clientContext) { ImmutableList.>of( evaluateInstancesSettings, evaluateDatasetSettings, + generateInstanceRubricsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -448,6 +464,7 @@ protected Builder(EvaluationServiceStubSettings settings) { evaluateInstancesSettings = settings.evaluateInstancesSettings.toBuilder(); evaluateDatasetSettings = settings.evaluateDatasetSettings.toBuilder(); evaluateDatasetOperationSettings = settings.evaluateDatasetOperationSettings.toBuilder(); + generateInstanceRubricsSettings = settings.generateInstanceRubricsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -458,6 +475,7 @@ protected Builder(EvaluationServiceStubSettings settings) { ImmutableList.>of( evaluateInstancesSettings, evaluateDatasetSettings, + generateInstanceRubricsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -488,6 +506,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .generateInstanceRubricsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -574,6 +597,13 @@ public UnaryCallSettings.Builder evaluateData return evaluateDatasetOperationSettings; } + /** Returns the builder for the settings used for calls to generateInstanceRubrics. */ + public UnaryCallSettings.Builder< + GenerateInstanceRubricsRequest, GenerateInstanceRubricsResponse> + generateInstanceRubricsSettings() { + return generateInstanceRubricsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEvaluationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEvaluationServiceStub.java index 39b649772905..f244eaae41b3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEvaluationServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEvaluationServiceStub.java @@ -32,6 +32,8 @@ import com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -83,6 +85,21 @@ public class GrpcEvaluationServiceStub extends EvaluationServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + GenerateInstanceRubricsRequest, GenerateInstanceRubricsResponse> + generateInstanceRubricsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.EvaluationService/GenerateInstanceRubrics") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateInstanceRubricsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateInstanceRubricsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -140,6 +157,8 @@ public class GrpcEvaluationServiceStub extends EvaluationServiceStub { private final OperationCallable< EvaluateDatasetRequest, EvaluateDatasetResponse, EvaluateDatasetOperationMetadata> evaluateDatasetOperationCallable; + private final UnaryCallable + generateInstanceRubricsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -216,6 +235,19 @@ protected GrpcEvaluationServiceStub( }) .setResourceNameExtractor(request -> request.getLocation()) .build(); + GrpcCallSettings + generateInstanceRubricsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(generateInstanceRubricsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -285,6 +317,11 @@ protected GrpcEvaluationServiceStub( settings.evaluateDatasetOperationSettings(), clientContext, operationsStub); + this.generateInstanceRubricsCallable = + callableFactory.createUnaryCallable( + generateInstanceRubricsTransportSettings, + settings.generateInstanceRubricsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -332,6 +369,12 @@ public UnaryCallable evaluateDatasetCallable( return evaluateDatasetOperationCallable; } + @Override + public UnaryCallable + generateInstanceRubricsCallable() { + return generateInstanceRubricsCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceCallableFactory.java new file mode 100644 index 000000000000..248b0b42b394 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the OnlineEvaluatorService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcOnlineEvaluatorServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceStub.java new file mode 100644 index 000000000000..a648166fb4cc --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceStub.java @@ -0,0 +1,676 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the OnlineEvaluatorService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcOnlineEvaluatorServiceStub extends OnlineEvaluatorServiceStub { + private static final MethodDescriptor + createOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/CreateOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/GetOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(GetOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(OnlineEvaluator.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/UpdateOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/DeleteOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listOnlineEvaluatorsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/ListOnlineEvaluators") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOnlineEvaluatorsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOnlineEvaluatorsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + activateOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/ActivateOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(ActivateOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + suspendOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/SuspendOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(SuspendOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + createOnlineEvaluatorCallable; + private final OperationCallable< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationCallable; + private final UnaryCallable + getOnlineEvaluatorCallable; + private final UnaryCallable + updateOnlineEvaluatorCallable; + private final OperationCallable< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationCallable; + private final UnaryCallable + deleteOnlineEvaluatorCallable; + private final OperationCallable< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationCallable; + private final UnaryCallable + listOnlineEvaluatorsCallable; + private final UnaryCallable + listOnlineEvaluatorsPagedCallable; + private final UnaryCallable + activateOnlineEvaluatorCallable; + private final OperationCallable< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationCallable; + private final UnaryCallable + suspendOnlineEvaluatorCallable; + private final OperationCallable< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcOnlineEvaluatorServiceStub create( + OnlineEvaluatorServiceStubSettings settings) throws IOException { + return new GrpcOnlineEvaluatorServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcOnlineEvaluatorServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcOnlineEvaluatorServiceStub( + OnlineEvaluatorServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcOnlineEvaluatorServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcOnlineEvaluatorServiceStub( + OnlineEvaluatorServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcOnlineEvaluatorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcOnlineEvaluatorServiceStub( + OnlineEvaluatorServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcOnlineEvaluatorServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcOnlineEvaluatorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcOnlineEvaluatorServiceStub( + OnlineEvaluatorServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "online_evaluator.name", + String.valueOf(request.getOnlineEvaluator().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listOnlineEvaluatorsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOnlineEvaluatorsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + activateOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(activateOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + suspendOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(suspendOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.createOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + createOnlineEvaluatorTransportSettings, + settings.createOnlineEvaluatorSettings(), + clientContext); + this.createOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + createOnlineEvaluatorTransportSettings, + settings.createOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.getOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + getOnlineEvaluatorTransportSettings, + settings.getOnlineEvaluatorSettings(), + clientContext); + this.updateOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + updateOnlineEvaluatorTransportSettings, + settings.updateOnlineEvaluatorSettings(), + clientContext); + this.updateOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + updateOnlineEvaluatorTransportSettings, + settings.updateOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.deleteOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + deleteOnlineEvaluatorTransportSettings, + settings.deleteOnlineEvaluatorSettings(), + clientContext); + this.deleteOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + deleteOnlineEvaluatorTransportSettings, + settings.deleteOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.listOnlineEvaluatorsCallable = + callableFactory.createUnaryCallable( + listOnlineEvaluatorsTransportSettings, + settings.listOnlineEvaluatorsSettings(), + clientContext); + this.listOnlineEvaluatorsPagedCallable = + callableFactory.createPagedCallable( + listOnlineEvaluatorsTransportSettings, + settings.listOnlineEvaluatorsSettings(), + clientContext); + this.activateOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + activateOnlineEvaluatorTransportSettings, + settings.activateOnlineEvaluatorSettings(), + clientContext); + this.activateOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + activateOnlineEvaluatorTransportSettings, + settings.activateOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.suspendOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + suspendOnlineEvaluatorTransportSettings, + settings.suspendOnlineEvaluatorSettings(), + clientContext); + this.suspendOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + suspendOnlineEvaluatorTransportSettings, + settings.suspendOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createOnlineEvaluatorCallable() { + return createOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationCallable() { + return createOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable getOnlineEvaluatorCallable() { + return getOnlineEvaluatorCallable; + } + + @Override + public UnaryCallable updateOnlineEvaluatorCallable() { + return updateOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationCallable() { + return updateOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable deleteOnlineEvaluatorCallable() { + return deleteOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationCallable() { + return deleteOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable + listOnlineEvaluatorsCallable() { + return listOnlineEvaluatorsCallable; + } + + @Override + public UnaryCallable + listOnlineEvaluatorsPagedCallable() { + return listOnlineEvaluatorsPagedCallable; + } + + @Override + public UnaryCallable + activateOnlineEvaluatorCallable() { + return activateOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationCallable() { + return activateOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable suspendOnlineEvaluatorCallable() { + return suspendOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationCallable() { + return suspendOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java index bb454141d4d5..c97af79e31a3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java @@ -25,9 +25,13 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; @@ -40,6 +44,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -81,6 +86,18 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + asyncQueryReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService/AsyncQueryReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(AsyncQueryReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -136,6 +153,13 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec queryReasoningEngineCallable; private final ServerStreamingCallable streamQueryReasoningEngineCallable; + private final UnaryCallable + asyncQueryReasoningEngineCallable; + private final OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -216,6 +240,18 @@ protected GrpcReasoningEngineExecutionServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + asyncQueryReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(asyncQueryReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -281,6 +317,17 @@ protected GrpcReasoningEngineExecutionServiceStub( streamQueryReasoningEngineTransportSettings, settings.streamQueryReasoningEngineSettings(), clientContext); + this.asyncQueryReasoningEngineCallable = + callableFactory.createUnaryCallable( + asyncQueryReasoningEngineTransportSettings, + settings.asyncQueryReasoningEngineSettings(), + clientContext); + this.asyncQueryReasoningEngineOperationCallable = + callableFactory.createOperationCallable( + asyncQueryReasoningEngineTransportSettings, + settings.asyncQueryReasoningEngineOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -322,6 +369,21 @@ public GrpcOperationsStub getOperationsStub() { return streamQueryReasoningEngineCallable; } + @Override + public UnaryCallable + asyncQueryReasoningEngineCallable() { + return asyncQueryReasoningEngineCallable; + } + + @Override + public OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + return asyncQueryReasoningEngineOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java new file mode 100644 index 000000000000..1b11ec216ff2 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OnlineEvaluatorService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class OnlineEvaluatorServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable createOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: createOnlineEvaluatorCallable()"); + } + + public UnaryCallable getOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: getOnlineEvaluatorCallable()"); + } + + public OperationCallable< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable updateOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: updateOnlineEvaluatorCallable()"); + } + + public OperationCallable< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable deleteOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOnlineEvaluatorCallable()"); + } + + public UnaryCallable + listOnlineEvaluatorsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listOnlineEvaluatorsPagedCallable()"); + } + + public UnaryCallable + listOnlineEvaluatorsCallable() { + throw new UnsupportedOperationException("Not implemented: listOnlineEvaluatorsCallable()"); + } + + public OperationCallable< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: activateOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable + activateOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: activateOnlineEvaluatorCallable()"); + } + + public OperationCallable< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: suspendOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable suspendOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: suspendOnlineEvaluatorCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java new file mode 100644 index 000000000000..928ac07435d9 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OnlineEvaluatorServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getOnlineEvaluator: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OnlineEvaluatorServiceStubSettings.Builder onlineEvaluatorServiceSettingsBuilder =
+ *     OnlineEvaluatorServiceStubSettings.newBuilder();
+ * onlineEvaluatorServiceSettingsBuilder
+ *     .getOnlineEvaluatorSettings()
+ *     .setRetrySettings(
+ *         onlineEvaluatorServiceSettingsBuilder
+ *             .getOnlineEvaluatorSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * OnlineEvaluatorServiceStubSettings onlineEvaluatorServiceSettings =
+ *     onlineEvaluatorServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createOnlineEvaluator: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OnlineEvaluatorServiceStubSettings.Builder onlineEvaluatorServiceSettingsBuilder =
+ *     OnlineEvaluatorServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * onlineEvaluatorServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class OnlineEvaluatorServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + createOnlineEvaluatorSettings; + private final OperationCallSettings< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings; + private final UnaryCallSettings + getOnlineEvaluatorSettings; + private final UnaryCallSettings + updateOnlineEvaluatorSettings; + private final OperationCallSettings< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings; + private final UnaryCallSettings + deleteOnlineEvaluatorSettings; + private final OperationCallSettings< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings; + private final PagedCallSettings< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings; + private final UnaryCallSettings + activateOnlineEvaluatorSettings; + private final OperationCallSettings< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings; + private final UnaryCallSettings + suspendOnlineEvaluatorSettings; + private final OperationCallSettings< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListOnlineEvaluatorsRequest, ListOnlineEvaluatorsResponse, OnlineEvaluator> + LIST_ONLINE_EVALUATORS_PAGE_STR_DESC = + new PagedListDescriptor< + ListOnlineEvaluatorsRequest, ListOnlineEvaluatorsResponse, OnlineEvaluator>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOnlineEvaluatorsRequest injectToken( + ListOnlineEvaluatorsRequest payload, String token) { + return ListOnlineEvaluatorsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListOnlineEvaluatorsRequest injectPageSize( + ListOnlineEvaluatorsRequest payload, int pageSize) { + return ListOnlineEvaluatorsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListOnlineEvaluatorsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOnlineEvaluatorsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListOnlineEvaluatorsResponse payload) { + return payload.getOnlineEvaluatorsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + LIST_ONLINE_EVALUATORS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListOnlineEvaluatorsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListOnlineEvaluatorsRequest, ListOnlineEvaluatorsResponse, OnlineEvaluator> + pageContext = + PageContext.create( + callable, LIST_ONLINE_EVALUATORS_PAGE_STR_DESC, request, context); + return ListOnlineEvaluatorsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createOnlineEvaluator. */ + public UnaryCallSettings + createOnlineEvaluatorSettings() { + return createOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to createOnlineEvaluator. */ + public OperationCallSettings< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings() { + return createOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to getOnlineEvaluator. */ + public UnaryCallSettings + getOnlineEvaluatorSettings() { + return getOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to updateOnlineEvaluator. */ + public UnaryCallSettings + updateOnlineEvaluatorSettings() { + return updateOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to updateOnlineEvaluator. */ + public OperationCallSettings< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings() { + return updateOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteOnlineEvaluator. */ + public UnaryCallSettings + deleteOnlineEvaluatorSettings() { + return deleteOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to deleteOnlineEvaluator. */ + public OperationCallSettings< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings() { + return deleteOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to listOnlineEvaluators. */ + public PagedCallSettings< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings() { + return listOnlineEvaluatorsSettings; + } + + /** Returns the object with the settings used for calls to activateOnlineEvaluator. */ + public UnaryCallSettings + activateOnlineEvaluatorSettings() { + return activateOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to activateOnlineEvaluator. */ + public OperationCallSettings< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings() { + return activateOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to suspendOnlineEvaluator. */ + public UnaryCallSettings + suspendOnlineEvaluatorSettings() { + return suspendOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to suspendOnlineEvaluator. */ + public OperationCallSettings< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings() { + return suspendOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public OnlineEvaluatorServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcOnlineEvaluatorServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "aiplatform"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "aiplatform.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(OnlineEvaluatorServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OnlineEvaluatorServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createOnlineEvaluatorSettings = settingsBuilder.createOnlineEvaluatorSettings().build(); + createOnlineEvaluatorOperationSettings = + settingsBuilder.createOnlineEvaluatorOperationSettings().build(); + getOnlineEvaluatorSettings = settingsBuilder.getOnlineEvaluatorSettings().build(); + updateOnlineEvaluatorSettings = settingsBuilder.updateOnlineEvaluatorSettings().build(); + updateOnlineEvaluatorOperationSettings = + settingsBuilder.updateOnlineEvaluatorOperationSettings().build(); + deleteOnlineEvaluatorSettings = settingsBuilder.deleteOnlineEvaluatorSettings().build(); + deleteOnlineEvaluatorOperationSettings = + settingsBuilder.deleteOnlineEvaluatorOperationSettings().build(); + listOnlineEvaluatorsSettings = settingsBuilder.listOnlineEvaluatorsSettings().build(); + activateOnlineEvaluatorSettings = settingsBuilder.activateOnlineEvaluatorSettings().build(); + activateOnlineEvaluatorOperationSettings = + settingsBuilder.activateOnlineEvaluatorOperationSettings().build(); + suspendOnlineEvaluatorSettings = settingsBuilder.suspendOnlineEvaluatorSettings().build(); + suspendOnlineEvaluatorOperationSettings = + settingsBuilder.suspendOnlineEvaluatorOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-aiplatform") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for OnlineEvaluatorServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings; + private final UnaryCallSettings.Builder + getOnlineEvaluatorSettings; + private final UnaryCallSettings.Builder + updateOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings; + private final UnaryCallSettings.Builder + deleteOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings; + private final PagedCallSettings.Builder< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings; + private final UnaryCallSettings.Builder + activateOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + ActivateOnlineEvaluatorRequest, + OnlineEvaluator, + ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings; + private final UnaryCallSettings.Builder + suspendOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + getOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + deleteOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + listOnlineEvaluatorsSettings = + PagedCallSettings.newBuilder(LIST_ONLINE_EVALUATORS_PAGE_STR_FACT); + activateOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + activateOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + suspendOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + suspendOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createOnlineEvaluatorSettings, + getOnlineEvaluatorSettings, + updateOnlineEvaluatorSettings, + deleteOnlineEvaluatorSettings, + listOnlineEvaluatorsSettings, + activateOnlineEvaluatorSettings, + suspendOnlineEvaluatorSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(OnlineEvaluatorServiceStubSettings settings) { + super(settings); + + createOnlineEvaluatorSettings = settings.createOnlineEvaluatorSettings.toBuilder(); + createOnlineEvaluatorOperationSettings = + settings.createOnlineEvaluatorOperationSettings.toBuilder(); + getOnlineEvaluatorSettings = settings.getOnlineEvaluatorSettings.toBuilder(); + updateOnlineEvaluatorSettings = settings.updateOnlineEvaluatorSettings.toBuilder(); + updateOnlineEvaluatorOperationSettings = + settings.updateOnlineEvaluatorOperationSettings.toBuilder(); + deleteOnlineEvaluatorSettings = settings.deleteOnlineEvaluatorSettings.toBuilder(); + deleteOnlineEvaluatorOperationSettings = + settings.deleteOnlineEvaluatorOperationSettings.toBuilder(); + listOnlineEvaluatorsSettings = settings.listOnlineEvaluatorsSettings.toBuilder(); + activateOnlineEvaluatorSettings = settings.activateOnlineEvaluatorSettings.toBuilder(); + activateOnlineEvaluatorOperationSettings = + settings.activateOnlineEvaluatorOperationSettings.toBuilder(); + suspendOnlineEvaluatorSettings = settings.suspendOnlineEvaluatorSettings.toBuilder(); + suspendOnlineEvaluatorOperationSettings = + settings.suspendOnlineEvaluatorOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createOnlineEvaluatorSettings, + getOnlineEvaluatorSettings, + updateOnlineEvaluatorSettings, + deleteOnlineEvaluatorSettings, + listOnlineEvaluatorsSettings, + activateOnlineEvaluatorSettings, + suspendOnlineEvaluatorSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listOnlineEvaluatorsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .activateOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .suspendOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OnlineEvaluator.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateOnlineEvaluatorOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OnlineEvaluator.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateOnlineEvaluatorOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + DeleteOnlineEvaluatorOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .activateOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OnlineEvaluator.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ActivateOnlineEvaluatorOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .suspendOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OnlineEvaluator.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + SuspendOnlineEvaluatorOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createOnlineEvaluator. */ + public UnaryCallSettings.Builder + createOnlineEvaluatorSettings() { + return createOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to createOnlineEvaluator. */ + public OperationCallSettings.Builder< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings() { + return createOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to getOnlineEvaluator. */ + public UnaryCallSettings.Builder + getOnlineEvaluatorSettings() { + return getOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to updateOnlineEvaluator. */ + public UnaryCallSettings.Builder + updateOnlineEvaluatorSettings() { + return updateOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to updateOnlineEvaluator. */ + public OperationCallSettings.Builder< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings() { + return updateOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteOnlineEvaluator. */ + public UnaryCallSettings.Builder + deleteOnlineEvaluatorSettings() { + return deleteOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to deleteOnlineEvaluator. */ + public OperationCallSettings.Builder< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings() { + return deleteOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to listOnlineEvaluators. */ + public PagedCallSettings.Builder< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings() { + return listOnlineEvaluatorsSettings; + } + + /** Returns the builder for the settings used for calls to activateOnlineEvaluator. */ + public UnaryCallSettings.Builder + activateOnlineEvaluatorSettings() { + return activateOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to activateOnlineEvaluator. */ + public OperationCallSettings.Builder< + ActivateOnlineEvaluatorRequest, + OnlineEvaluator, + ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings() { + return activateOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to suspendOnlineEvaluator. */ + public UnaryCallSettings.Builder + suspendOnlineEvaluatorSettings() { + return suspendOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to suspendOnlineEvaluator. */ + public OperationCallSettings.Builder< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings() { + return suspendOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public OnlineEvaluatorServiceStubSettings build() throws IOException { + return new OnlineEvaluatorServiceStubSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java index 880fa1da9228..fdef35b7810b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java @@ -21,8 +21,12 @@ import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; @@ -35,6 +39,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -47,6 +53,10 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineExecutionServiceStub implements BackgroundResource { + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + public UnaryCallable queryReasoningEngineCallable() { throw new UnsupportedOperationException("Not implemented: queryReasoningEngineCallable()"); @@ -58,6 +68,20 @@ public abstract class ReasoningEngineExecutionServiceStub implements BackgroundR "Not implemented: streamQueryReasoningEngineCallable()"); } + public OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: asyncQueryReasoningEngineOperationCallable()"); + } + + public UnaryCallable + asyncQueryReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: asyncQueryReasoningEngineCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java index 83a8d0f469f1..530af74bc990 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java @@ -29,11 +29,15 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -44,6 +48,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; @@ -60,7 +67,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import java.io.IOException; +import java.time.Duration; import java.util.List; import javax.annotation.Generated; @@ -115,6 +124,33 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncQueryReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineExecutionServiceStubSettings.Builder
+ *     reasoningEngineExecutionServiceSettingsBuilder =
+ *         ReasoningEngineExecutionServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * reasoningEngineExecutionServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
*/ @BetaApi @Generated("by gapic-generator-java") @@ -129,6 +165,13 @@ public class ReasoningEngineExecutionServiceStubSettings queryReasoningEngineSettings; private final ServerStreamingCallSettings streamQueryReasoningEngineSettings; + private final UnaryCallSettings + asyncQueryReasoningEngineSettings; + private final OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -201,6 +244,21 @@ public ApiFuture getFuturePagedResponse( return streamQueryReasoningEngineSettings; } + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings + asyncQueryReasoningEngineSettings() { + return asyncQueryReasoningEngineSettings; + } + + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return asyncQueryReasoningEngineOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -314,6 +372,9 @@ protected ReasoningEngineExecutionServiceStubSettings(Builder settingsBuilder) queryReasoningEngineSettings = settingsBuilder.queryReasoningEngineSettings().build(); streamQueryReasoningEngineSettings = settingsBuilder.streamQueryReasoningEngineSettings().build(); + asyncQueryReasoningEngineSettings = settingsBuilder.asyncQueryReasoningEngineSettings().build(); + asyncQueryReasoningEngineOperationSettings = + settingsBuilder.asyncQueryReasoningEngineOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -339,6 +400,13 @@ public static class Builder queryReasoningEngineSettings; private final ServerStreamingCallSettings.Builder streamQueryReasoningEngineSettings; + private final UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings; + private final OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -376,6 +444,8 @@ protected Builder(ClientContext clientContext) { queryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamQueryReasoningEngineSettings = ServerStreamingCallSettings.newBuilder(); + asyncQueryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + asyncQueryReasoningEngineOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -385,6 +455,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( queryReasoningEngineSettings, + asyncQueryReasoningEngineSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -398,6 +469,9 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { queryReasoningEngineSettings = settings.queryReasoningEngineSettings.toBuilder(); streamQueryReasoningEngineSettings = settings.streamQueryReasoningEngineSettings.toBuilder(); + asyncQueryReasoningEngineSettings = settings.asyncQueryReasoningEngineSettings.toBuilder(); + asyncQueryReasoningEngineOperationSettings = + settings.asyncQueryReasoningEngineOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -407,6 +481,7 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( queryReasoningEngineSettings, + asyncQueryReasoningEngineSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -437,6 +512,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .asyncQueryReasoningEngineSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -462,6 +542,33 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .asyncQueryReasoningEngineOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + AsyncQueryReasoningEngineResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + AsyncQueryReasoningEngineOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -492,6 +599,21 @@ public Builder applyToAllUnaryMethods( return streamQueryReasoningEngineSettings; } + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings() { + return asyncQueryReasoningEngineSettings; + } + + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return asyncQueryReasoningEngineOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/Version.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/Version.java index 66784e842651..159ba2cd0a07 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/Version.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-aiplatform:current} - static final String VERSION = "3.92.0"; + static final String VERSION = "3.93.0"; // {x-version-update-end} } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 4d12e1024b65..e32d0ddacc07 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -890,6 +890,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata", "queryAllDeclaredConstructors": true, @@ -21131,6 +21185,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Tool$ParallelAiSearch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Tool$ParallelAiSearch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.Tool$PhishBlockThreshold", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index 6dceb47d79ae..3c6d29dbafc4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -521,6 +521,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig", "queryAllDeclaredConstructors": true, @@ -665,6 +701,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.AggregationOutput", "queryAllDeclaredConstructors": true, @@ -1187,6 +1277,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata", "queryAllDeclaredConstructors": true, @@ -3248,6 +3392,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ConversationTurn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ConversationTurn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata", "queryAllDeclaredConstructors": true, @@ -4337,6 +4499,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata", "queryAllDeclaredConstructors": true, @@ -4805,6 +5003,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CustomJob", "queryAllDeclaredConstructors": true, @@ -5849,6 +6083,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata", "queryAllDeclaredConstructors": true, @@ -7299,7 +7569,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Event", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7308,7 +7578,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Event$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7317,7 +7587,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Event$Type", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7326,7 +7596,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.EventActions", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7335,7 +7605,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.EventActions$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentConfig$Tools", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7344,7 +7614,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.EventMetadata", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentConfig$Tools$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7353,7 +7623,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.EventMetadata$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7362,7 +7632,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInput", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$AgentEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7371,7 +7641,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInput$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$AgentEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7380,7 +7650,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInstance", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7389,7 +7659,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInstance$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$ConversationTurn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7398,7 +7668,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$ConversationTurn$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7407,7 +7677,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Events", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7416,7 +7686,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchResults", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Events$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7425,7 +7695,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchResults$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Tools", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7434,7 +7704,241 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchSpec", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Tools$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$InstanceData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$InstanceData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$InstanceData$Contents", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$InstanceData$Contents$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$MapInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$MapInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig$CustomCodeParserConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig$CustomCodeParserConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Event", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Event$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Event$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EventActions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EventActions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EventMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EventMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -10538,6 +11042,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.GenerateMemoriesOperationMetadata", "queryAllDeclaredConstructors": true, @@ -11627,6 +12167,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest", "queryAllDeclaredConstructors": true, @@ -14696,6 +15254,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest", "queryAllDeclaredConstructors": true, @@ -15794,6 +16388,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricMetadata$ScoreRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricMetadata$ScoreRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.MetricResult", "queryAllDeclaredConstructors": true, @@ -15812,6 +16442,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.MetricxInput", "queryAllDeclaredConstructors": true, @@ -18063,7 +18711,187 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DirectNotebookSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DirectNotebookSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$GcsNotebookSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$GcsNotebookSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$HealthState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$RuntimeState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18072,7 +18900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplateRef", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18081,7 +18909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplateRef$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18090,7 +18918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18099,7 +18927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18108,7 +18936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18117,7 +18945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DirectNotebookSource", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18126,7 +18954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DirectNotebookSource$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18135,7 +18963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$GcsNotebookSource", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18144,7 +18972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$GcsNotebookSource$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18153,7 +18981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$NumericPredicate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18162,7 +18990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$NumericPredicate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18171,7 +18999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$NumericPredicate$ComparisonOperator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18180,7 +19008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$OpenTelemetry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18189,7 +19017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$OpenTelemetry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18198,7 +19026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$TraceScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18207,7 +19035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$TraceScope$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18216,7 +19044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$HealthState", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$TraceScope$Predicate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18225,7 +19053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$RuntimeState", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$TraceScope$Predicate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18234,7 +19062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Config", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18243,7 +19071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Config$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18252,7 +19080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplateRef", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Config$RandomSampling", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18261,7 +19089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplateRef$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Config$RandomSampling$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18270,7 +19098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeType", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18279,7 +19107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$StateDetails", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18288,7 +19116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$StateDetails$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -22976,6 +23804,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Content", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Content$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Content$Property", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Content$Property$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Importance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInput", "queryAllDeclaredConstructors": true, @@ -23066,6 +23957,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec$RubricContentType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricVerdict", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricVerdict$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.RuntimeArtifact", "queryAllDeclaredConstructors": true, @@ -25613,6 +26567,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.SyncFeatureViewRequest", "queryAllDeclaredConstructors": true, @@ -26018,6 +27008,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Tool$ParallelAiSearch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Tool$ParallelAiSearch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.Tool$PhishBlockThreshold", "queryAllDeclaredConstructors": true, @@ -28097,6 +29105,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata", "queryAllDeclaredConstructors": true, @@ -28826,6 +29870,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VeoHyperParameters$AdapterSize", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.VeoHyperParameters$Builder", "queryAllDeclaredConstructors": true, @@ -28835,6 +29888,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VeoHyperParameters$TuningSpeed", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.VeoHyperParameters$TuningTask", "queryAllDeclaredConstructors": true, @@ -28844,6 +29906,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.VeoTuningSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java index 033d887dab3a..e4bd5c680d56 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceGrpc.ReasoningEngineExecutionServiceImplBase; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; import java.util.ArrayList; @@ -104,4 +105,26 @@ public void streamQueryReasoningEngine( Exception.class.getName()))); } } + + @Override + public void asyncQueryReasoningEngine( + AsyncQueryReasoningEngineRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AsyncQueryReasoningEngine, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java index 23602ccc5922..5b5dbc03f58c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java @@ -42,6 +42,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -218,6 +219,69 @@ public void streamQueryReasoningEngineExceptionTest() throws Exception { } } + @Test + public void asyncQueryReasoningEngineTest() throws Exception { + AsyncQueryReasoningEngineResponse expectedResponse = + AsyncQueryReasoningEngineResponse.newBuilder() + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("asyncQueryReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineExecutionService.addResponse(resultOperation); + + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + + AsyncQueryReasoningEngineResponse actualResponse = + client.asyncQueryReasoningEngineAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineExecutionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AsyncQueryReasoningEngineRequest actualRequest = + ((AsyncQueryReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getInputGcsUri(), actualRequest.getInputGcsUri()); + Assert.assertEquals(request.getOutputGcsUri(), actualRequest.getOutputGcsUri()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void asyncQueryReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineExecutionService.addException(exception); + + try { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + client.asyncQueryReasoningEngineAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java index 9170af34caae..dfe8f955ec3b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java @@ -114,6 +114,9 @@ public void evaluateInstancesTest() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllMetrics(new ArrayList()) + .addAllMetricSources(new ArrayList()) + .setInstance(EvaluationInstance.newBuilder().build()) .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); @@ -183,6 +186,9 @@ public void evaluateInstancesTest() throws Exception { request.getRubricBasedInstructionFollowingInput(), actualRequest.getRubricBasedInstructionFollowingInput()); Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); + Assert.assertEquals(request.getMetricSourcesList(), actualRequest.getMetricSourcesList()); + Assert.assertEquals(request.getInstance(), actualRequest.getInstance()); Assert.assertEquals(request.getAutoraterConfig(), actualRequest.getAutoraterConfig()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -199,6 +205,9 @@ public void evaluateInstancesExceptionTest() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllMetrics(new ArrayList()) + .addAllMetricSources(new ArrayList()) + .setInstance(EvaluationInstance.newBuilder().build()) .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); client.evaluateInstances(request); @@ -273,6 +282,65 @@ public void evaluateDatasetExceptionTest() throws Exception { } } + @Test + public void generateInstanceRubricsTest() throws Exception { + GenerateInstanceRubricsResponse expectedResponse = + GenerateInstanceRubricsResponse.newBuilder() + .addAllGeneratedRubrics(new ArrayList()) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + GenerateInstanceRubricsRequest request = + GenerateInstanceRubricsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build()) + .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build()) + .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build()) + .build(); + + GenerateInstanceRubricsResponse actualResponse = client.generateInstanceRubrics(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateInstanceRubricsRequest actualRequest = + ((GenerateInstanceRubricsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertEquals(request.getContentsList(), actualRequest.getContentsList()); + Assert.assertEquals( + request.getPredefinedRubricGenerationSpec(), + actualRequest.getPredefinedRubricGenerationSpec()); + Assert.assertEquals(request.getRubricGenerationSpec(), actualRequest.getRubricGenerationSpec()); + Assert.assertEquals(request.getAgentConfig(), actualRequest.getAgentConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateInstanceRubricsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + GenerateInstanceRubricsRequest request = + GenerateInstanceRubricsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build()) + .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build()) + .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build()) + .build(); + client.generateInstanceRubrics(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEvaluationServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEvaluationServiceImpl.java index e0278b096f25..940506a0a6a4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEvaluationServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEvaluationServiceImpl.java @@ -101,4 +101,27 @@ public void evaluateDataset( Exception.class.getName()))); } } + + @Override + public void generateInstanceRubrics( + GenerateInstanceRubricsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateInstanceRubricsResponse) { + requests.add(request); + responseObserver.onNext(((GenerateInstanceRubricsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GenerateInstanceRubrics, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + GenerateInstanceRubricsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorService.java new file mode 100644 index 000000000000..b12beaf97e7a --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockOnlineEvaluatorService implements MockGrpcService { + private final MockOnlineEvaluatorServiceImpl serviceImpl; + + public MockOnlineEvaluatorService() { + serviceImpl = new MockOnlineEvaluatorServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorServiceImpl.java new file mode 100644 index 000000000000..559a4c0bf763 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorServiceImpl.java @@ -0,0 +1,215 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceGrpc.OnlineEvaluatorServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockOnlineEvaluatorServiceImpl extends OnlineEvaluatorServiceImplBase { + private List requests; + private Queue responses; + + public MockOnlineEvaluatorServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createOnlineEvaluator( + CreateOnlineEvaluatorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOnlineEvaluator( + GetOnlineEvaluatorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof OnlineEvaluator) { + requests.add(request); + responseObserver.onNext(((OnlineEvaluator) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetOnlineEvaluator, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + OnlineEvaluator.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateOnlineEvaluator( + UpdateOnlineEvaluatorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteOnlineEvaluator( + DeleteOnlineEvaluatorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listOnlineEvaluators( + ListOnlineEvaluatorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOnlineEvaluatorsResponse) { + requests.add(request); + responseObserver.onNext(((ListOnlineEvaluatorsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListOnlineEvaluators, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListOnlineEvaluatorsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void activateOnlineEvaluator( + ActivateOnlineEvaluatorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ActivateOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void suspendOnlineEvaluator( + SuspendOnlineEvaluatorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SuspendOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java index a16183980911..2220b794cd60 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceGrpc.ReasoningEngineExecutionServiceImplBase; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; import java.util.ArrayList; @@ -104,4 +105,26 @@ public void streamQueryReasoningEngine( Exception.class.getName()))); } } + + @Override + public void asyncQueryReasoningEngine( + AsyncQueryReasoningEngineRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AsyncQueryReasoningEngine, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClientTest.java new file mode 100644 index 000000000000..ea5abd098bc5 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClientTest.java @@ -0,0 +1,1046 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OnlineEvaluatorServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockOnlineEvaluatorService mockOnlineEvaluatorService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private OnlineEvaluatorServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockOnlineEvaluatorService = new MockOnlineEvaluatorService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockOnlineEvaluatorService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + OnlineEvaluatorServiceSettings settings = + OnlineEvaluatorServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OnlineEvaluatorServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + + OnlineEvaluator actualResponse = + client.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOnlineEvaluatorRequest actualRequest = + ((CreateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(onlineEvaluator, actualRequest.getOnlineEvaluator()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + client.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createOnlineEvaluatorTest2() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + String parent = "parent-995424086"; + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + + OnlineEvaluator actualResponse = + client.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOnlineEvaluatorRequest actualRequest = + ((CreateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(onlineEvaluator, actualRequest.getOnlineEvaluator()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String parent = "parent-995424086"; + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + client.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockOnlineEvaluatorService.addResponse(expectedResponse); + + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + + OnlineEvaluator actualResponse = client.getOnlineEvaluator(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOnlineEvaluatorRequest actualRequest = ((GetOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + client.getOnlineEvaluator(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOnlineEvaluatorTest2() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockOnlineEvaluatorService.addResponse(expectedResponse); + + String name = "name3373707"; + + OnlineEvaluator actualResponse = client.getOnlineEvaluator(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOnlineEvaluatorRequest actualRequest = ((GetOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String name = "name3373707"; + client.getOnlineEvaluator(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + OnlineEvaluator actualResponse = + client.updateOnlineEvaluatorAsync(onlineEvaluator, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateOnlineEvaluatorRequest actualRequest = + ((UpdateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(onlineEvaluator, actualRequest.getOnlineEvaluator()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateOnlineEvaluatorAsync(onlineEvaluator, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteOnlineEvaluatorTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + + client.deleteOnlineEvaluatorAsync(name).get(); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOnlineEvaluatorRequest actualRequest = + ((DeleteOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + client.deleteOnlineEvaluatorAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteOnlineEvaluatorTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteOnlineEvaluatorAsync(name).get(); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOnlineEvaluatorRequest actualRequest = + ((DeleteOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String name = "name3373707"; + client.deleteOnlineEvaluatorAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listOnlineEvaluatorsTest() throws Exception { + OnlineEvaluator responsesElement = OnlineEvaluator.newBuilder().build(); + ListOnlineEvaluatorsResponse expectedResponse = + ListOnlineEvaluatorsResponse.newBuilder() + .setNextPageToken("") + .addAllOnlineEvaluators(Arrays.asList(responsesElement)) + .build(); + mockOnlineEvaluatorService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOnlineEvaluatorsPagedResponse pagedListResponse = client.listOnlineEvaluators(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOnlineEvaluatorsList().get(0), resources.get(0)); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOnlineEvaluatorsRequest actualRequest = + ((ListOnlineEvaluatorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOnlineEvaluatorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOnlineEvaluators(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOnlineEvaluatorsTest2() throws Exception { + OnlineEvaluator responsesElement = OnlineEvaluator.newBuilder().build(); + ListOnlineEvaluatorsResponse expectedResponse = + ListOnlineEvaluatorsResponse.newBuilder() + .setNextPageToken("") + .addAllOnlineEvaluators(Arrays.asList(responsesElement)) + .build(); + mockOnlineEvaluatorService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOnlineEvaluatorsPagedResponse pagedListResponse = client.listOnlineEvaluators(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOnlineEvaluatorsList().get(0), resources.get(0)); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOnlineEvaluatorsRequest actualRequest = + ((ListOnlineEvaluatorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOnlineEvaluatorsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOnlineEvaluators(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void activateOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("activateOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + + OnlineEvaluator actualResponse = client.activateOnlineEvaluatorAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ActivateOnlineEvaluatorRequest actualRequest = + ((ActivateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void activateOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + client.activateOnlineEvaluatorAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void activateOnlineEvaluatorTest2() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("activateOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + String name = "name3373707"; + + OnlineEvaluator actualResponse = client.activateOnlineEvaluatorAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ActivateOnlineEvaluatorRequest actualRequest = + ((ActivateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void activateOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String name = "name3373707"; + client.activateOnlineEvaluatorAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void suspendOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("suspendOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + + OnlineEvaluator actualResponse = client.suspendOnlineEvaluatorAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SuspendOnlineEvaluatorRequest actualRequest = + ((SuspendOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void suspendOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + client.suspendOnlineEvaluatorAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void suspendOnlineEvaluatorTest2() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("suspendOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + String name = "name3373707"; + + OnlineEvaluator actualResponse = client.suspendOnlineEvaluatorAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SuspendOnlineEvaluatorRequest actualRequest = + ((SuspendOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void suspendOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String name = "name3373707"; + client.suspendOnlineEvaluatorAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java index e8fbd7bbd8b8..998d27c17750 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java @@ -42,6 +42,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -218,6 +219,69 @@ public void streamQueryReasoningEngineExceptionTest() throws Exception { } } + @Test + public void asyncQueryReasoningEngineTest() throws Exception { + AsyncQueryReasoningEngineResponse expectedResponse = + AsyncQueryReasoningEngineResponse.newBuilder() + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("asyncQueryReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineExecutionService.addResponse(resultOperation); + + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + + AsyncQueryReasoningEngineResponse actualResponse = + client.asyncQueryReasoningEngineAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineExecutionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AsyncQueryReasoningEngineRequest actualRequest = + ((AsyncQueryReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getInputGcsUri(), actualRequest.getInputGcsUri()); + Assert.assertEquals(request.getOutputGcsUri(), actualRequest.getOutputGcsUri()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void asyncQueryReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineExecutionService.addException(exception); + + try { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + client.asyncQueryReasoningEngineAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml index 9f2a00bd78c3..04fd9899bb02 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.92.0 + 3.93.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.92.0 + 3.93.0 diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java index 6438a7cec712..9f839d31db65 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java @@ -136,6 +136,58 @@ private ReasoningEngineExecutionServiceGrpc() {} return getStreamQueryReasoningEngineMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AsyncQueryReasoningEngine", + requestType = com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod; + if ((getAsyncQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineExecutionServiceGrpc.class) { + if ((getAsyncQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod) + == null) { + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod = + getAsyncQueryReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AsyncQueryReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineExecutionServiceMethodDescriptorSupplier( + "AsyncQueryReasoningEngine")) + .build(); + } + } + } + return getAsyncQueryReasoningEngineMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ReasoningEngineExecutionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -229,6 +281,20 @@ default void streamQueryReasoningEngine( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getStreamQueryReasoningEngineMethod(), responseObserver); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + default void asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncQueryReasoningEngineMethod(), responseObserver); + } } /** @@ -300,6 +366,22 @@ public void streamQueryReasoningEngine( request, responseObserver); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + public void asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAsyncQueryReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -349,6 +431,20 @@ public io.grpc.stub.BlockingClientCall streamQueryRe return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + public com.google.longrunning.Operation asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAsyncQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -397,6 +493,19 @@ public java.util.Iterator streamQueryReasoningEngine( return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + public com.google.longrunning.Operation asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAsyncQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -433,10 +542,25 @@ protected ReasoningEngineExecutionServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryReasoningEngineMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAsyncQueryReasoningEngineMethod(), getCallOptions()), request); + } } private static final int METHODID_QUERY_REASONING_ENGINE = 0; private static final int METHODID_STREAM_QUERY_REASONING_ENGINE = 1; + private static final int METHODID_ASYNC_QUERY_REASONING_ENGINE = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -467,6 +591,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ASYNC_QUERY_REASONING_ENGINE: + serviceImpl.asyncQueryReasoningEngine( + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -498,6 +627,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest, com.google.api.HttpBody>(service, METHODID_STREAM_QUERY_REASONING_ENGINE))) + .addMethod( + getAsyncQueryReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation>( + service, METHODID_ASYNC_QUERY_REASONING_ENGINE))) .build(); } @@ -552,6 +688,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { new ReasoningEngineExecutionServiceFileDescriptorSupplier()) .addMethod(getQueryReasoningEngineMethod()) .addMethod(getStreamQueryReasoningEngineMethod()) + .addMethod(getAsyncQueryReasoningEngineMethod()) .build(); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml index 1de53d7c1ce4..3da714a19025 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.108.0 + 0.109.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.92.0 + 3.93.0 diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java index 5639874a9da4..b88922e7b20a 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java @@ -127,6 +127,57 @@ private EvaluationServiceGrpc() {} return getEvaluateDatasetMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + getGenerateInstanceRubricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateInstanceRubrics", + requestType = com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + getGenerateInstanceRubricsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + getGenerateInstanceRubricsMethod; + if ((getGenerateInstanceRubricsMethod = EvaluationServiceGrpc.getGenerateInstanceRubricsMethod) + == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getGenerateInstanceRubricsMethod = + EvaluationServiceGrpc.getGenerateInstanceRubricsMethod) + == null) { + EvaluationServiceGrpc.getGenerateInstanceRubricsMethod = + getGenerateInstanceRubricsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateInstanceRubrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("GenerateInstanceRubrics")) + .build(); + } + } + } + return getGenerateInstanceRubricsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EvaluationServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -218,6 +269,26 @@ default void evaluateDataset( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getEvaluateDatasetMethod(), responseObserver); } + + /** + * + * + *
+     * Generates rubrics for a given prompt.
+     * A rubric represents a single testable criterion for evaluation.
+     * One input prompt could have multiple rubrics
+     * This RPC allows users to get suggested rubrics based on provided prompt,
+     * which can then be reviewed and used for subsequent evaluations.
+     * 
+ */ + default void generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateInstanceRubricsMethod(), responseObserver); + } } /** @@ -287,6 +358,28 @@ public void evaluateDataset( request, responseObserver); } + + /** + * + * + *
+     * Generates rubrics for a given prompt.
+     * A rubric represents a single testable criterion for evaluation.
+     * One input prompt could have multiple rubrics
+     * This RPC allows users to get suggested rubrics based on provided prompt,
+     * which can then be reviewed and used for subsequent evaluations.
+     * 
+ */ + public void generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateInstanceRubricsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -336,6 +429,25 @@ public com.google.longrunning.Operation evaluateDataset( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvaluateDatasetMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Generates rubrics for a given prompt.
+     * A rubric represents a single testable criterion for evaluation.
+     * One input prompt could have multiple rubrics
+     * This RPC allows users to get suggested rubrics based on provided prompt,
+     * which can then be reviewed and used for subsequent evaluations.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateInstanceRubricsMethod(), getCallOptions(), request); + } } /** @@ -383,6 +495,24 @@ public com.google.longrunning.Operation evaluateDataset( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEvaluateDatasetMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Generates rubrics for a given prompt.
+     * A rubric represents a single testable criterion for evaluation.
+     * One input prompt could have multiple rubrics
+     * This RPC allows users to get suggested rubrics based on provided prompt,
+     * which can then be reviewed and used for subsequent evaluations.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateInstanceRubricsMethod(), getCallOptions(), request); + } } /** @@ -430,10 +560,30 @@ protected EvaluationServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEvaluateDatasetMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Generates rubrics for a given prompt.
+     * A rubric represents a single testable criterion for evaluation.
+     * One input prompt could have multiple rubrics
+     * This RPC allows users to get suggested rubrics based on provided prompt,
+     * which can then be reviewed and used for subsequent evaluations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateInstanceRubricsMethod(), getCallOptions()), request); + } } private static final int METHODID_EVALUATE_INSTANCES = 0; private static final int METHODID_EVALUATE_DATASET = 1; + private static final int METHODID_GENERATE_INSTANCE_RUBRICS = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -464,6 +614,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GENERATE_INSTANCE_RUBRICS: + serviceImpl.generateInstanceRubrics( + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -495,6 +652,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRequest, com.google.longrunning.Operation>(service, METHODID_EVALUATE_DATASET))) + .addMethod( + getGenerateInstanceRubricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse>( + service, METHODID_GENERATE_INSTANCE_RUBRICS))) .build(); } @@ -548,6 +712,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new EvaluationServiceFileDescriptorSupplier()) .addMethod(getEvaluateInstancesMethod()) .addMethod(getEvaluateDatasetMethod()) + .addMethod(getGenerateInstanceRubricsMethod()) .build(); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceGrpc.java new file mode 100644 index 000000000000..31e6513354d1 --- /dev/null +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceGrpc.java @@ -0,0 +1,1256 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * This service is used to create and manage Vertex AI OnlineEvaluators.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class OnlineEvaluatorServiceGrpc { + + private OnlineEvaluatorServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getCreateOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getCreateOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getCreateOnlineEvaluatorMethod; + if ((getCreateOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getCreateOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getCreateOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getCreateOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getCreateOnlineEvaluatorMethod = + getCreateOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "CreateOnlineEvaluator")) + .build(); + } + } + } + return getCreateOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator> + getGetOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator> + getGetOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator> + getGetOnlineEvaluatorMethod; + if ((getGetOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getGetOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getGetOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getGetOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getGetOnlineEvaluatorMethod = + getGetOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator + .getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier("GetOnlineEvaluator")) + .build(); + } + } + } + return getGetOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getUpdateOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getUpdateOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getUpdateOnlineEvaluatorMethod; + if ((getUpdateOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getUpdateOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getUpdateOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getUpdateOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getUpdateOnlineEvaluatorMethod = + getUpdateOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "UpdateOnlineEvaluator")) + .build(); + } + } + } + return getUpdateOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getDeleteOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getDeleteOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getDeleteOnlineEvaluatorMethod; + if ((getDeleteOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getDeleteOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getDeleteOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getDeleteOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getDeleteOnlineEvaluatorMethod = + getDeleteOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "DeleteOnlineEvaluator")) + .build(); + } + } + } + return getDeleteOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + getListOnlineEvaluatorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOnlineEvaluators", + requestType = com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + getListOnlineEvaluatorsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + getListOnlineEvaluatorsMethod; + if ((getListOnlineEvaluatorsMethod = OnlineEvaluatorServiceGrpc.getListOnlineEvaluatorsMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getListOnlineEvaluatorsMethod = + OnlineEvaluatorServiceGrpc.getListOnlineEvaluatorsMethod) + == null) { + OnlineEvaluatorServiceGrpc.getListOnlineEvaluatorsMethod = + getListOnlineEvaluatorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListOnlineEvaluators")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "ListOnlineEvaluators")) + .build(); + } + } + } + return getListOnlineEvaluatorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getActivateOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ActivateOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getActivateOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getActivateOnlineEvaluatorMethod; + if ((getActivateOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getActivateOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getActivateOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getActivateOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getActivateOnlineEvaluatorMethod = + getActivateOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ActivateOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "ActivateOnlineEvaluator")) + .build(); + } + } + } + return getActivateOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getSuspendOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SuspendOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getSuspendOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getSuspendOnlineEvaluatorMethod; + if ((getSuspendOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getSuspendOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getSuspendOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getSuspendOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getSuspendOnlineEvaluatorMethod = + getSuspendOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SuspendOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "SuspendOnlineEvaluator")) + .build(); + } + } + } + return getSuspendOnlineEvaluatorMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static OnlineEvaluatorServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OnlineEvaluatorServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceStub(channel, callOptions); + } + }; + return OnlineEvaluatorServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static OnlineEvaluatorServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OnlineEvaluatorServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceBlockingV2Stub(channel, callOptions); + } + }; + return OnlineEvaluatorServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static OnlineEvaluatorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OnlineEvaluatorServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceBlockingStub(channel, callOptions); + } + }; + return OnlineEvaluatorServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static OnlineEvaluatorServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OnlineEvaluatorServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceFutureStub(channel, callOptions); + } + }; + return OnlineEvaluatorServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * This service is used to create and manage Vertex AI OnlineEvaluators.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates an OnlineEvaluator in the given project and location.
+     * 
+ */ + default void createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of an OnlineEvaluator.
+     * 
+ */ + default void getOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the fields of an OnlineEvaluator.
+     * 
+ */ + default void updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an OnlineEvaluator.
+     * 
+ */ + default void deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the OnlineEvaluators for the given project and location.
+     * 
+ */ + default void listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOnlineEvaluatorsMethod(), responseObserver); + } + + /** + * + * + *
+     * Activates an OnlineEvaluator.
+     * 
+ */ + default void activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getActivateOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
+     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
+     * run any evaluations until it is activated again.
+     * 
+ */ + default void suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSuspendOnlineEvaluatorMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service OnlineEvaluatorService. + * + *
+   * This service is used to create and manage Vertex AI OnlineEvaluators.
+   * 
+ */ + public abstract static class OnlineEvaluatorServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return OnlineEvaluatorServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service OnlineEvaluatorService. + * + *
+   * This service is used to create and manage Vertex AI OnlineEvaluators.
+   * 
+ */ + public static final class OnlineEvaluatorServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private OnlineEvaluatorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OnlineEvaluatorServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an OnlineEvaluator in the given project and location.
+     * 
+ */ + public void createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of an OnlineEvaluator.
+     * 
+ */ + public void getOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the fields of an OnlineEvaluator.
+     * 
+ */ + public void updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an OnlineEvaluator.
+     * 
+ */ + public void deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the OnlineEvaluators for the given project and location.
+     * 
+ */ + public void listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOnlineEvaluatorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Activates an OnlineEvaluator.
+     * 
+ */ + public void activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getActivateOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
+     * run any evaluations until it is activated again.
+     * 
+ */ + public void suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSuspendOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service OnlineEvaluatorService. + * + *
+   * This service is used to create and manage Vertex AI OnlineEvaluators.
+   * 
+ */ + public static final class OnlineEvaluatorServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private OnlineEvaluatorServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OnlineEvaluatorServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an OnlineEvaluator in the given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of an OnlineEvaluator.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the fields of an OnlineEvaluator.
+     * 
+ */ + public com.google.longrunning.Operation updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an OnlineEvaluator.
+     * 
+ */ + public com.google.longrunning.Operation deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the OnlineEvaluators for the given project and location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListOnlineEvaluatorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Activates an OnlineEvaluator.
+     * 
+ */ + public com.google.longrunning.Operation activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getActivateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
+     * run any evaluations until it is activated again.
+     * 
+ */ + public com.google.longrunning.Operation suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSuspendOnlineEvaluatorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service OnlineEvaluatorService. + * + *
+   * This service is used to create and manage Vertex AI OnlineEvaluators.
+   * 
+ */ + public static final class OnlineEvaluatorServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private OnlineEvaluatorServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OnlineEvaluatorServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an OnlineEvaluator in the given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of an OnlineEvaluator.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the fields of an OnlineEvaluator.
+     * 
+ */ + public com.google.longrunning.Operation updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an OnlineEvaluator.
+     * 
+ */ + public com.google.longrunning.Operation deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the OnlineEvaluators for the given project and location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOnlineEvaluatorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Activates an OnlineEvaluator.
+     * 
+ */ + public com.google.longrunning.Operation activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getActivateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
+     * run any evaluations until it is activated again.
+     * 
+ */ + public com.google.longrunning.Operation suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSuspendOnlineEvaluatorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * OnlineEvaluatorService. + * + *
+   * This service is used to create and manage Vertex AI OnlineEvaluators.
+   * 
+ */ + public static final class OnlineEvaluatorServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private OnlineEvaluatorServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OnlineEvaluatorServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an OnlineEvaluator in the given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of an OnlineEvaluator.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator> + getOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the fields of an OnlineEvaluator.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an OnlineEvaluator.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the OnlineEvaluators for the given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOnlineEvaluatorsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Activates an OnlineEvaluator.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getActivateOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
+     * run any evaluations until it is activated again.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSuspendOnlineEvaluatorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ONLINE_EVALUATOR = 0; + private static final int METHODID_GET_ONLINE_EVALUATOR = 1; + private static final int METHODID_UPDATE_ONLINE_EVALUATOR = 2; + private static final int METHODID_DELETE_ONLINE_EVALUATOR = 3; + private static final int METHODID_LIST_ONLINE_EVALUATORS = 4; + private static final int METHODID_ACTIVATE_ONLINE_EVALUATOR = 5; + private static final int METHODID_SUSPEND_ONLINE_EVALUATOR = 6; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_ONLINE_EVALUATOR: + serviceImpl.createOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ONLINE_EVALUATOR: + serviceImpl.getOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ONLINE_EVALUATOR: + serviceImpl.updateOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ONLINE_EVALUATOR: + serviceImpl.deleteOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ONLINE_EVALUATORS: + serviceImpl.listOnlineEvaluators( + (com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse>) + responseObserver); + break; + case METHODID_ACTIVATE_ONLINE_EVALUATOR: + serviceImpl.activateOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUSPEND_ONLINE_EVALUATOR: + serviceImpl.suspendOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ONLINE_EVALUATOR))) + .addMethod( + getGetOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator>( + service, METHODID_GET_ONLINE_EVALUATOR))) + .addMethod( + getUpdateOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ONLINE_EVALUATOR))) + .addMethod( + getDeleteOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ONLINE_EVALUATOR))) + .addMethod( + getListOnlineEvaluatorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse>( + service, METHODID_LIST_ONLINE_EVALUATORS))) + .addMethod( + getActivateOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_ACTIVATE_ONLINE_EVALUATOR))) + .addMethod( + getSuspendOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_SUSPEND_ONLINE_EVALUATOR))) + .build(); + } + + private abstract static class OnlineEvaluatorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + OnlineEvaluatorServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("OnlineEvaluatorService"); + } + } + + private static final class OnlineEvaluatorServiceFileDescriptorSupplier + extends OnlineEvaluatorServiceBaseDescriptorSupplier { + OnlineEvaluatorServiceFileDescriptorSupplier() {} + } + + private static final class OnlineEvaluatorServiceMethodDescriptorSupplier + extends OnlineEvaluatorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + OnlineEvaluatorServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new OnlineEvaluatorServiceFileDescriptorSupplier()) + .addMethod(getCreateOnlineEvaluatorMethod()) + .addMethod(getGetOnlineEvaluatorMethod()) + .addMethod(getUpdateOnlineEvaluatorMethod()) + .addMethod(getDeleteOnlineEvaluatorMethod()) + .addMethod(getListOnlineEvaluatorsMethod()) + .addMethod(getActivateOnlineEvaluatorMethod()) + .addMethod(getSuspendOnlineEvaluatorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java index 0cd007e80a40..14c6eb3edd0c 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java @@ -138,6 +138,58 @@ private ReasoningEngineExecutionServiceGrpc() {} return getStreamQueryReasoningEngineMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AsyncQueryReasoningEngine", + requestType = com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod; + if ((getAsyncQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineExecutionServiceGrpc.class) { + if ((getAsyncQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod) + == null) { + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod = + getAsyncQueryReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AsyncQueryReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineExecutionServiceMethodDescriptorSupplier( + "AsyncQueryReasoningEngine")) + .build(); + } + } + } + return getAsyncQueryReasoningEngineMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ReasoningEngineExecutionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -232,6 +284,20 @@ default void streamQueryReasoningEngine( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getStreamQueryReasoningEngineMethod(), responseObserver); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + default void asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncQueryReasoningEngineMethod(), responseObserver); + } } /** @@ -304,6 +370,22 @@ public void streamQueryReasoningEngine( request, responseObserver); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + public void asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAsyncQueryReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -353,6 +435,20 @@ public io.grpc.stub.BlockingClientCall streamQueryRe return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + public com.google.longrunning.Operation asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAsyncQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -401,6 +497,19 @@ public java.util.Iterator streamQueryReasoningEngine( return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + public com.google.longrunning.Operation asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAsyncQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -438,10 +547,25 @@ protected ReasoningEngineExecutionServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryReasoningEngineMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Async query using a reasoning engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAsyncQueryReasoningEngineMethod(), getCallOptions()), request); + } } private static final int METHODID_QUERY_REASONING_ENGINE = 0; private static final int METHODID_STREAM_QUERY_REASONING_ENGINE = 1; + private static final int METHODID_ASYNC_QUERY_REASONING_ENGINE = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -472,6 +596,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ASYNC_QUERY_REASONING_ENGINE: + serviceImpl.asyncQueryReasoningEngine( + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -503,6 +632,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest, com.google.api.HttpBody>(service, METHODID_STREAM_QUERY_REASONING_ENGINE))) + .addMethod( + getAsyncQueryReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation>( + service, METHODID_ASYNC_QUERY_REASONING_ENGINE))) .build(); } @@ -558,6 +694,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { new ReasoningEngineExecutionServiceFileDescriptorSupplier()) .addMethod(getQueryReasoningEngineMethod()) .addMethod(getStreamQueryReasoningEngineMethod()) + .addMethod(getAsyncQueryReasoningEngineMethod()) .build(); } } diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index e9d96fef69bc..485beaf48cf5 100644 --- a/java-aiplatform/pom.xml +++ b/java-aiplatform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 3.92.0 + 3.93.0 Google Cloud Vertex AI Parent Java client for Google Cloud Vertex AI services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-aiplatform - 3.92.0 + 3.93.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.92.0 + 3.93.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.108.0 + 0.109.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.92.0 + 3.93.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.108.0 + 0.109.0
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml index 2fb68d8037b6..83e942962adb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.92.0 + 3.93.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.92.0 + 3.93.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadata.java new file mode 100644 index 000000000000..844f7f6bc44a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadata.java @@ -0,0 +1,731 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Operation metadata message for
+ * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + AsyncQueryReasoningEngineOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineOperationMetadata"); + } + + // Use AsyncQueryReasoningEngineOperationMetadata.newBuilder() to construct. + private AsyncQueryReasoningEngineOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata other = + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Operation metadata message for
+   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata build() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata result = + new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + private static final com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..45ab287607ce --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequest.java new file mode 100644 index 000000000000..64c74a5bf643 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequest.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + AsyncQueryReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineRequest"); + } + + // Use AsyncQueryReasoningEngineRequest.newBuilder() to construct. + private AsyncQueryReasoningEngineRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineRequest() { + name_ = ""; + inputGcsUri_ = ""; + outputGcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputGcsUri_ = ""; + + /** + * + * + *
+   * Optional. Input Cloud Storage URI for the Async query.
+   * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + @java.lang.Override + public java.lang.String getInputGcsUri() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Input Cloud Storage URI for the Async query.
+   * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputGcsUriBytes() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
+   * Optional. Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + @java.lang.Override + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inputGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, outputGcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inputGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, outputGcsUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getInputGcsUri().equals(other.getInputGcsUri())) return false; + if (!getOutputGcsUri().equals(other.getOutputGcsUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + INPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputGcsUri().hashCode(); + hash = (37 * hash) + OUTPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + inputGcsUri_ = ""; + outputGcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputGcsUri_ = inputGcsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputGcsUri_ = outputGcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest other) { + if (other + == com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInputGcsUri().isEmpty()) { + inputGcsUri_ = other.inputGcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOutputGcsUri().isEmpty()) { + outputGcsUri_ = other.outputGcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + inputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + outputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object inputGcsUri_ = ""; + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + public java.lang.String getInputGcsUri() { + java.lang.Object ref = inputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + public com.google.protobuf.ByteString getInputGcsUriBytes() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setInputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInputGcsUri() { + inputGcsUri_ = getDefaultInstance().getInputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for inputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setInputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsUri() { + outputGcsUri_ = getDefaultInstance().getOutputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..a231f484e3eb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Input Cloud Storage URI for the Async query.
+   * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + java.lang.String getInputGcsUri(); + + /** + * + * + *
+   * Optional. Input Cloud Storage URI for the Async query.
+   * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + com.google.protobuf.ByteString getInputGcsUriBytes(); + + /** + * + * + *
+   * Optional. Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + java.lang.String getOutputGcsUri(); + + /** + * + * + *
+   * Optional. Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + com.google.protobuf.ByteString getOutputGcsUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponse.java new file mode 100644 index 000000000000..d869d9904458 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponse.java @@ -0,0 +1,607 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + AsyncQueryReasoningEngineResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineResponse"); + } + + // Use AsyncQueryReasoningEngineResponse.newBuilder() to construct. + private AsyncQueryReasoningEngineResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineResponse() { + outputGcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.Builder.class); + } + + public static final int OUTPUT_GCS_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
+   * Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + @java.lang.Override + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outputGcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outputGcsUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse other = + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) obj; + + if (!getOutputGcsUri().equals(other.getOutputGcsUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outputGcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse build() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse buildPartial() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse result = + new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputGcsUri_ = outputGcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse other) { + if (other + == com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.getDefaultInstance()) + return this; + if (!other.getOutputGcsUri().isEmpty()) { + outputGcsUri_ = other.outputGcsUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + outputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @param value The outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsUri() { + outputGcsUri_ = getDefaultInstance().getOutputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @param value The bytes for outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + private static final com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse(); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponseOrBuilder.java new file mode 100644 index 000000000000..8cfffc4c0e20 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponseOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + java.lang.String getOutputGcsUri(); + + /** + * + * + *
+   * Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + com.google.protobuf.ByteString getOutputGcsUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CopyModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CopyModelRequest.java index 2243efe8795e..90273de5b72e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CopyModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CopyModelRequest.java @@ -55,6 +55,7 @@ private CopyModelRequest(com.google.protobuf.GeneratedMessage.Builder builder private CopyModelRequest() { parent_ = ""; sourceModel_ = ""; + customServiceAccount_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -469,6 +470,77 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO : encryptionSpec_; } + public static final int CUSTOM_SERVICE_ACCOUNT_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object customServiceAccount_ = ""; + + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the copy
+   * model. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used to access resources needed to upload the model. This account
+   * must belong to the destination project where the model is copied to,
+   * i.e., the project specified in the `parent` field of this request and
+   * have the Vertex AI Service Agent role in the source project.
+   *
+   * Requires the user copying the Model to have the
+   * `iam.serviceAccounts.actAs` permission on this service account.
+   * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customServiceAccount. + */ + @java.lang.Override + public java.lang.String getCustomServiceAccount() { + java.lang.Object ref = customServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customServiceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the copy
+   * model. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used to access resources needed to upload the model. This account
+   * must belong to the destination project where the model is copied to,
+   * i.e., the project specified in the `parent` field of this request and
+   * have the Vertex AI Service Agent role in the source project.
+   *
+   * Requires the user copying the Model to have the
+   * `iam.serviceAccounts.actAs` permission on this service account.
+   * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomServiceAccountBytes() { + java.lang.Object ref = customServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -498,6 +570,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destinationModelCase_ == 5) { com.google.protobuf.GeneratedMessage.writeString(output, 5, destinationModel_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, customServiceAccount_); + } getUnknownFields().writeTo(output); } @@ -522,6 +597,9 @@ public int getSerializedSize() { if (destinationModelCase_ == 5) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, destinationModel_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customServiceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, customServiceAccount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -544,6 +622,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; } + if (!getCustomServiceAccount().equals(other.getCustomServiceAccount())) return false; if (!getDestinationModelCase().equals(other.getDestinationModelCase())) return false; switch (destinationModelCase_) { case 4: @@ -574,6 +653,8 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); } + hash = (37 * hash) + CUSTOM_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getCustomServiceAccount().hashCode(); switch (destinationModelCase_) { case 4: hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; @@ -743,6 +824,7 @@ public Builder clear() { encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } + customServiceAccount_ = ""; destinationModelCase_ = 0; destinationModel_ = null; return this; @@ -794,6 +876,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.CopyModelRequest resul encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.customServiceAccount_ = customServiceAccount_; + } result.bitField0_ |= to_bitField0_; } @@ -828,6 +913,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CopyModelRequest other) if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } + if (!other.getCustomServiceAccount().isEmpty()) { + customServiceAccount_ = other.customServiceAccount_; + bitField0_ |= 0x00000020; + onChanged(); + } switch (other.getDestinationModelCase()) { case MODEL_ID: { @@ -907,6 +997,12 @@ public Builder mergeFrom( destinationModel_ = s; break; } // case 42 + case 58: + { + customServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1728,6 +1824,162 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO return encryptionSpecBuilder_; } + private java.lang.Object customServiceAccount_ = ""; + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customServiceAccount. + */ + public java.lang.String getCustomServiceAccount() { + java.lang.Object ref = customServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customServiceAccount. + */ + public com.google.protobuf.ByteString getCustomServiceAccountBytes() { + java.lang.Object ref = customServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setCustomServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customServiceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomServiceAccount() { + customServiceAccount_ = getDefaultInstance().getCustomServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for customServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setCustomServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customServiceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CopyModelRequest) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CopyModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CopyModelRequestOrBuilder.java index 0e621ca8de85..12336112aa1e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CopyModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CopyModelRequestOrBuilder.java @@ -234,5 +234,49 @@ public interface CopyModelRequestOrBuilder */ com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the copy
+   * model. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used to access resources needed to upload the model. This account
+   * must belong to the destination project where the model is copied to,
+   * i.e., the project specified in the `parent` field of this request and
+   * have the Vertex AI Service Agent role in the source project.
+   *
+   * Requires the user copying the Model to have the
+   * `iam.serviceAccounts.actAs` permission on this service account.
+   * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customServiceAccount. + */ + java.lang.String getCustomServiceAccount(); + + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the copy
+   * model. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used to access resources needed to upload the model. This account
+   * must belong to the destination project where the model is copied to,
+   * i.e., the project specified in the `parent` field of this request and
+   * have the Vertex AI Service Agent role in the source project.
+   *
+   * Requires the user copying the Model to have the
+   * `iam.serviceAccounts.actAs` permission on this service account.
+   * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customServiceAccount. + */ + com.google.protobuf.ByteString getCustomServiceAccountBytes(); + com.google.cloud.aiplatform.v1.CopyModelRequest.DestinationModelCase getDestinationModelCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java index a2561a292793..b7858633cc0f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java @@ -285,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oB\003\340A\003\032M\n\nOutputInfo\022 \n\023artifact_output_" + "uri\030\002 \001(\tB\003\340A\003\022\035\n\020image_output_uri\030\003 \001(\t" + "B\003\340A\003\"\"\n UpdateExplanationDatasetRespons" - + "e\"\025\n\023ExportModelResponse\"\300\002\n\020CopyModelRe" + + "e\"\025\n\023ExportModelResponse\"\345\002\n\020CopyModelRe" + "quest\022\027\n\010model_id\030\004 \001(\tB\003\340A\001H\000\022?\n\014parent" + "_model\030\005 \001(\tB\'\340A\001\372A!\n\037aiplatform.googlea" + "pis.com/ModelH\000\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" @@ -293,168 +293,169 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "urce_model\030\002 \001(\tB\'\340A\002\372A!\n\037aiplatform.goo" + "gleapis.com/Model\022C\n\017encryption_spec\030\003 \001" + "(\0132*.google.cloud.aiplatform.v1.Encrypti" - + "onSpecB\023\n\021destination_model\"l\n\032CopyModel" - + "OperationMetadata\022N\n\020generic_metadata\030\001 " - + "\001(\01324.google.cloud.aiplatform.v1.Generic" - + "OperationMetadata\"g\n\021CopyModelResponse\0223" - + "\n\005model\030\001 \001(\tB$\372A!\n\037aiplatform.googleapi" - + "s.com/Model\022\035\n\020model_version_id\030\002 \001(\tB\003\340" - + "A\003\"\243\001\n\034ImportModelEvaluationRequest\0227\n\006p" - + "arent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleap" - + "is.com/Model\022J\n\020model_evaluation\030\002 \001(\0132+" - + ".google.cloud.aiplatform.v1.ModelEvaluat" - + "ionB\003\340A\002\"\304\001\n\'BatchImportModelEvaluationS" - + "licesRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)ai" - + "platform.googleapis.com/ModelEvaluation\022" - + "V\n\027model_evaluation_slices\030\002 \003(\01320.googl" - + "e.cloud.aiplatform.v1.ModelEvaluationSli" - + "ceB\003\340A\002\"Y\n(BatchImportModelEvaluationSli" - + "cesResponse\022-\n imported_model_evaluation" - + "_slices\030\001 \003(\tB\003\340A\003\"\305\001\n&BatchImportEvalua" - + "tedAnnotationsRequest\022F\n\006parent\030\001 \001(\tB6\340" - + "A\002\372A0\n.aiplatform.googleapis.com/ModelEv" - + "aluationSlice\022S\n\025evaluated_annotations\030\002" - + " \003(\0132/.google.cloud.aiplatform.v1.Evalua" - + "tedAnnotationB\003\340A\002\"\\\n\'BatchImportEvaluat" - + "edAnnotationsResponse\0221\n$imported_evalua" - + "ted_annotations_count\030\001 \001(\005B\003\340A\003\"\\\n\031GetM" - + "odelEvaluationRequest\022?\n\004name\030\001 \001(\tB1\340A\002" - + "\372A+\n)aiplatform.googleapis.com/ModelEval" - + "uation\"\274\001\n\033ListModelEvaluationsRequest\0227" - + "\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googl" - + "eapis.com/Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_" - + "size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_m" - + "ask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\177\n" - + "\034ListModelEvaluationsResponse\022F\n\021model_e" - + "valuations\030\001 \003(\0132+.google.cloud.aiplatfo" - + "rm.v1.ModelEvaluation\022\027\n\017next_page_token" - + "\030\002 \001(\t\"f\n\036GetModelEvaluationSliceRequest" - + "\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.aiplatform.googl" - + "eapis.com/ModelEvaluationSlice\"\313\001\n ListM" - + "odelEvaluationSlicesRequest\022A\n\006parent\030\001 " - + "\001(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/M" - + "odelEvaluation\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_s" - + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_ma" - + "sk\030\005 \001(\0132\032.google.protobuf.FieldMask\"\217\001\n" - + "!ListModelEvaluationSlicesResponse\022Q\n\027mo" - + "del_evaluation_slices\030\001 \003(\01320.google.clo" - + "ud.aiplatform.v1.ModelEvaluationSlice\022\027\n" - + "\017next_page_token\030\002 \001(\t2\211\"\n\014ModelService\022" - + "\340\001\n\013UploadModel\022..google.cloud.aiplatfor" - + "m.v1.UploadModelRequest\032\035.google.longrun" - + "ning.Operation\"\201\001\312A3\n\023UploadModelRespons" - + "e\022\034UploadModelOperationMetadata\332A\014parent" - + ",model\202\323\344\223\0026\"1/v1/{parent=projects/*/loc" - + "ations/*}/models:upload:\001*\022\225\001\n\010GetModel\022" - + "+.google.cloud.aiplatform.v1.GetModelReq" - + "uest\032!.google.cloud.aiplatform.v1.Model\"" - + "9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/loc" - + "ations/*/models/*}\022\250\001\n\nListModels\022-.goog" - + "le.cloud.aiplatform.v1.ListModelsRequest" - + "\032..google.cloud.aiplatform.v1.ListModels" - + "Response\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=p" - + "rojects/*/locations/*}/models\022\310\001\n\021ListMo" - + "delVersions\0224.google.cloud.aiplatform.v1" - + ".ListModelVersionsRequest\0325.google.cloud" - + ".aiplatform.v1.ListModelVersionsResponse" - + "\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/lo" - + "cations/*/models/*}:listVersions\022\351\001\n\033Lis" - + "tModelVersionCheckpoints\022>.google.cloud." - + "aiplatform.v1.ListModelVersionCheckpoint" - + "sRequest\032?.google.cloud.aiplatform.v1.Li" - + "stModelVersionCheckpointsResponse\"I\332A\004na" - + "me\202\323\344\223\002<\022:/v1/{name=projects/*/locations" - + "/*/models/*}:listCheckpoints\022\265\001\n\013UpdateM" - + "odel\022..google.cloud.aiplatform.v1.Update" - + "ModelRequest\032!.google.cloud.aiplatform.v" - + "1.Model\"S\332A\021model,update_mask\202\323\344\223\002920/v1" - + "/{model.name=projects/*/locations/*/mode" - + "ls/*}:\005model\022\240\002\n\030UpdateExplanationDatase" - + "t\022;.google.cloud.aiplatform.v1.UpdateExp" - + "lanationDatasetRequest\032\035.google.longrunn" - + "ing.Operation\"\247\001\312AM\n UpdateExplanationDa" - + "tasetResponse\022)UpdateExplanationDatasetO" - + "perationMetadata\332A\005model\202\323\344\223\002I\"D/v1/{mod" - + "el=projects/*/locations/*/models/*}:upda" - + "teExplanationDataset:\001*\022\312\001\n\013DeleteModel\022" - + "..google.cloud.aiplatform.v1.DeleteModel" - + "Request\032\035.google.longrunning.Operation\"l" - + "\312A0\n\025google.protobuf.Empty\022\027DeleteOperat" - + "ionMetadata\332A\004name\202\323\344\223\002,**/v1/{name=proj" - + "ects/*/locations/*/models/*}\022\346\001\n\022DeleteM" - + "odelVersion\0225.google.cloud.aiplatform.v1" - + ".DeleteModelVersionRequest\032\035.google.long" - + "running.Operation\"z\312A0\n\025google.protobuf." - + "Empty\022\027DeleteOperationMetadata\332A\004name\202\323\344" - + "\223\002:*8/v1/{name=projects/*/locations/*/mo" - + "dels/*}:deleteVersion\022\322\001\n\023MergeVersionAl" - + "iases\0226.google.cloud.aiplatform.v1.Merge" - + "VersionAliasesRequest\032!.google.cloud.aip" - + "latform.v1.Model\"`\332A\024name,version_aliase" - + "s\202\323\344\223\002C\">/v1/{name=projects/*/locations/" - + "*/models/*}:mergeVersionAliases:\001*\022\346\001\n\013E" - + "xportModel\022..google.cloud.aiplatform.v1." - + "ExportModelRequest\032\035.google.longrunning." - + "Operation\"\207\001\312A3\n\023ExportModelResponse\022\034Ex" - + "portModelOperationMetadata\332A\022name,output" - + "_config\202\323\344\223\0026\"1/v1/{name=projects/*/loca" - + "tions/*/models/*}:export:\001*\022\335\001\n\tCopyMode" - + "l\022,.google.cloud.aiplatform.v1.CopyModel" - + "Request\032\035.google.longrunning.Operation\"\202" - + "\001\312A/\n\021CopyModelResponse\022\032CopyModelOperat" - + "ionMetadata\332A\023parent,source_model\202\323\344\223\0024\"" - + "//v1/{parent=projects/*/locations/*}/mod" - + "els:copy:\001*\022\344\001\n\025ImportModelEvaluation\0228." - + "google.cloud.aiplatform.v1.ImportModelEv" - + "aluationRequest\032+.google.cloud.aiplatfor" - + "m.v1.ModelEvaluation\"d\332A\027parent,model_ev" - + "aluation\202\323\344\223\002D\"?/v1/{parent=projects/*/l" - + "ocations/*/models/*}/evaluations:import:" - + "\001*\022\250\002\n BatchImportModelEvaluationSlices\022" - + "C.google.cloud.aiplatform.v1.BatchImport" - + "ModelEvaluationSlicesRequest\032D.google.cl" - + "oud.aiplatform.v1.BatchImportModelEvalua" - + "tionSlicesResponse\"y\332A\036parent,model_eval" - + "uation_slices\202\323\344\223\002R\"M/v1/{parent=project" - + "s/*/locations/*/models/*/evaluations/*}/" - + "slices:batchImport:\001*\022\245\002\n\037BatchImportEva" - + "luatedAnnotations\022B.google.cloud.aiplatf" - + "orm.v1.BatchImportEvaluatedAnnotationsRe" - + "quest\032C.google.cloud.aiplatform.v1.Batch" - + "ImportEvaluatedAnnotationsResponse\"y\332A\034p" - + "arent,evaluated_annotations\202\323\344\223\002T\"O/v1/{" - + "parent=projects/*/locations/*/models/*/e" - + "valuations/*/slices/*}:batchImport:\001*\022\301\001" - + "\n\022GetModelEvaluation\0225.google.cloud.aipl" - + "atform.v1.GetModelEvaluationRequest\032+.go" + + "onSpec\022#\n\026custom_service_account\030\007 \001(\tB\003" + + "\340A\001B\023\n\021destination_model\"l\n\032CopyModelOpe" + + "rationMetadata\022N\n\020generic_metadata\030\001 \001(\013" + + "24.google.cloud.aiplatform.v1.GenericOpe" + + "rationMetadata\"g\n\021CopyModelResponse\0223\n\005m" + + "odel\030\001 \001(\tB$\372A!\n\037aiplatform.googleapis.c" + + "om/Model\022\035\n\020model_version_id\030\002 \001(\tB\003\340A\003\"" + + "\243\001\n\034ImportModelEvaluationRequest\0227\n\006pare" + + "nt\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis." + + "com/Model\022J\n\020model_evaluation\030\002 \001(\0132+.go" + "ogle.cloud.aiplatform.v1.ModelEvaluation" - + "\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=projects/*/lo" - + "cations/*/models/*/evaluations/*}\022\324\001\n\024Li" - + "stModelEvaluations\0227.google.cloud.aiplat" - + "form.v1.ListModelEvaluationsRequest\0328.go" - + "ogle.cloud.aiplatform.v1.ListModelEvalua" - + "tionsResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{par" - + "ent=projects/*/locations/*/models/*}/eva" - + "luations\022\331\001\n\027GetModelEvaluationSlice\022:.g" - + "oogle.cloud.aiplatform.v1.GetModelEvalua" - + "tionSliceRequest\0320.google.cloud.aiplatfo" - + "rm.v1.ModelEvaluationSlice\"P\332A\004name\202\323\344\223\002" - + "C\022A/v1/{name=projects/*/locations/*/mode" - + "ls/*/evaluations/*/slices/*}\022\354\001\n\031ListMod" - + "elEvaluationSlices\022<.google.cloud.aiplat" - + "form.v1.ListModelEvaluationSlicesRequest" - + "\032=.google.cloud.aiplatform.v1.ListModelE" - + "valuationSlicesResponse\"R\332A\006parent\202\323\344\223\002C" - + "\022A/v1/{parent=projects/*/locations/*/mod" - + "els/*/evaluations/*}/slices\032M\312A\031aiplatfo" - + "rm.googleapis.com\322A.https://www.googleap" - + "is.com/auth/cloud-platformB\317\001\n\036com.googl" - + "e.cloud.aiplatform.v1B\021ModelServiceProto" - + "P\001Z>cloud.google.com/go/aiplatform/apiv1" - + "/aiplatformpb;aiplatformpb\252\002\032Google.Clou" - + "d.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfor" - + "m\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pr" - + "oto3" + + "B\003\340A\002\"\304\001\n\'BatchImportModelEvaluationSlic" + + "esRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aipla" + + "tform.googleapis.com/ModelEvaluation\022V\n\027" + + "model_evaluation_slices\030\002 \003(\01320.google.c" + + "loud.aiplatform.v1.ModelEvaluationSliceB" + + "\003\340A\002\"Y\n(BatchImportModelEvaluationSlices" + + "Response\022-\n imported_model_evaluation_sl" + + "ices\030\001 \003(\tB\003\340A\003\"\305\001\n&BatchImportEvaluated" + + "AnnotationsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" + + "A0\n.aiplatform.googleapis.com/ModelEvalu" + + "ationSlice\022S\n\025evaluated_annotations\030\002 \003(" + + "\0132/.google.cloud.aiplatform.v1.Evaluated" + + "AnnotationB\003\340A\002\"\\\n\'BatchImportEvaluatedA" + + "nnotationsResponse\0221\n$imported_evaluated" + + "_annotations_count\030\001 \001(\005B\003\340A\003\"\\\n\031GetMode" + + "lEvaluationRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)aiplatform.googleapis.com/ModelEvaluat" + + "ion\"\274\001\n\033ListModelEvaluationsRequest\0227\n\006p" + + "arent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleap" + + "is.com/Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_siz" + + "e\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask" + + "\030\005 \001(\0132\032.google.protobuf.FieldMask\"\177\n\034Li" + + "stModelEvaluationsResponse\022F\n\021model_eval" + + "uations\030\001 \003(\0132+.google.cloud.aiplatform." + + "v1.ModelEvaluation\022\027\n\017next_page_token\030\002 " + + "\001(\t\"f\n\036GetModelEvaluationSliceRequest\022D\n" + + "\004name\030\001 \001(\tB6\340A\002\372A0\n.aiplatform.googleap" + + "is.com/ModelEvaluationSlice\"\313\001\n ListMode" + + "lEvaluationSlicesRequest\022A\n\006parent\030\001 \001(\t" + + "B1\340A\002\372A+\n)aiplatform.googleapis.com/Mode" + + "lEvaluation\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size" + + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030" + + "\005 \001(\0132\032.google.protobuf.FieldMask\"\217\001\n!Li" + + "stModelEvaluationSlicesResponse\022Q\n\027model" + + "_evaluation_slices\030\001 \003(\01320.google.cloud." + + "aiplatform.v1.ModelEvaluationSlice\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t2\211\"\n\014ModelService\022\340\001\n" + + "\013UploadModel\022..google.cloud.aiplatform.v" + + "1.UploadModelRequest\032\035.google.longrunnin" + + "g.Operation\"\201\001\312A3\n\023UploadModelResponse\022\034" + + "UploadModelOperationMetadata\332A\014parent,mo" + + "del\202\323\344\223\0026\"1/v1/{parent=projects/*/locati" + + "ons/*}/models:upload:\001*\022\225\001\n\010GetModel\022+.g" + + "oogle.cloud.aiplatform.v1.GetModelReques" + + "t\032!.google.cloud.aiplatform.v1.Model\"9\332A" + + "\004name\202\323\344\223\002,\022*/v1/{name=projects/*/locati" + + "ons/*/models/*}\022\250\001\n\nListModels\022-.google." + + "cloud.aiplatform.v1.ListModelsRequest\032.." + + "google.cloud.aiplatform.v1.ListModelsRes" + + "ponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=proj" + + "ects/*/locations/*}/models\022\310\001\n\021ListModel" + + "Versions\0224.google.cloud.aiplatform.v1.Li" + + "stModelVersionsRequest\0325.google.cloud.ai" + + "platform.v1.ListModelVersionsResponse\"F\332" + + "A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locat" + + "ions/*/models/*}:listVersions\022\351\001\n\033ListMo" + + "delVersionCheckpoints\022>.google.cloud.aip" + + "latform.v1.ListModelVersionCheckpointsRe" + + "quest\032?.google.cloud.aiplatform.v1.ListM" + + "odelVersionCheckpointsResponse\"I\332A\004name\202" + + "\323\344\223\002<\022:/v1/{name=projects/*/locations/*/" + + "models/*}:listCheckpoints\022\265\001\n\013UpdateMode" + + "l\022..google.cloud.aiplatform.v1.UpdateMod" + + "elRequest\032!.google.cloud.aiplatform.v1.M" + + "odel\"S\332A\021model,update_mask\202\323\344\223\002920/v1/{m" + + "odel.name=projects/*/locations/*/models/" + + "*}:\005model\022\240\002\n\030UpdateExplanationDataset\022;" + + ".google.cloud.aiplatform.v1.UpdateExplan" + + "ationDatasetRequest\032\035.google.longrunning" + + ".Operation\"\247\001\312AM\n UpdateExplanationDatas" + + "etResponse\022)UpdateExplanationDatasetOper" + + "ationMetadata\332A\005model\202\323\344\223\002I\"D/v1/{model=" + + "projects/*/locations/*/models/*}:updateE" + + "xplanationDataset:\001*\022\312\001\n\013DeleteModel\022..g" + + "oogle.cloud.aiplatform.v1.DeleteModelReq" + + "uest\032\035.google.longrunning.Operation\"l\312A0" + + "\n\025google.protobuf.Empty\022\027DeleteOperation" + + "Metadata\332A\004name\202\323\344\223\002,**/v1/{name=project" + + "s/*/locations/*/models/*}\022\346\001\n\022DeleteMode" + + "lVersion\0225.google.cloud.aiplatform.v1.De" + + "leteModelVersionRequest\032\035.google.longrun" + + "ning.Operation\"z\312A0\n\025google.protobuf.Emp" + + "ty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002:" + + "*8/v1/{name=projects/*/locations/*/model" + + "s/*}:deleteVersion\022\322\001\n\023MergeVersionAlias" + + "es\0226.google.cloud.aiplatform.v1.MergeVer" + + "sionAliasesRequest\032!.google.cloud.aiplat" + + "form.v1.Model\"`\332A\024name,version_aliases\202\323" + + "\344\223\002C\">/v1/{name=projects/*/locations/*/m" + + "odels/*}:mergeVersionAliases:\001*\022\346\001\n\013Expo" + + "rtModel\022..google.cloud.aiplatform.v1.Exp" + + "ortModelRequest\032\035.google.longrunning.Ope" + + "ration\"\207\001\312A3\n\023ExportModelResponse\022\034Expor" + + "tModelOperationMetadata\332A\022name,output_co" + + "nfig\202\323\344\223\0026\"1/v1/{name=projects/*/locatio" + + "ns/*/models/*}:export:\001*\022\335\001\n\tCopyModel\022," + + ".google.cloud.aiplatform.v1.CopyModelReq" + + "uest\032\035.google.longrunning.Operation\"\202\001\312A" + + "/\n\021CopyModelResponse\022\032CopyModelOperation" + + "Metadata\332A\023parent,source_model\202\323\344\223\0024\"//v" + + "1/{parent=projects/*/locations/*}/models" + + ":copy:\001*\022\344\001\n\025ImportModelEvaluation\0228.goo" + + "gle.cloud.aiplatform.v1.ImportModelEvalu" + + "ationRequest\032+.google.cloud.aiplatform.v" + + "1.ModelEvaluation\"d\332A\027parent,model_evalu" + + "ation\202\323\344\223\002D\"?/v1/{parent=projects/*/loca" + + "tions/*/models/*}/evaluations:import:\001*\022" + + "\250\002\n BatchImportModelEvaluationSlices\022C.g" + + "oogle.cloud.aiplatform.v1.BatchImportMod" + + "elEvaluationSlicesRequest\032D.google.cloud" + + ".aiplatform.v1.BatchImportModelEvaluatio" + + "nSlicesResponse\"y\332A\036parent,model_evaluat" + + "ion_slices\202\323\344\223\002R\"M/v1/{parent=projects/*" + + "/locations/*/models/*/evaluations/*}/sli" + + "ces:batchImport:\001*\022\245\002\n\037BatchImportEvalua" + + "tedAnnotations\022B.google.cloud.aiplatform" + + ".v1.BatchImportEvaluatedAnnotationsReque" + + "st\032C.google.cloud.aiplatform.v1.BatchImp" + + "ortEvaluatedAnnotationsResponse\"y\332A\034pare" + + "nt,evaluated_annotations\202\323\344\223\002T\"O/v1/{par" + + "ent=projects/*/locations/*/models/*/eval" + + "uations/*/slices/*}:batchImport:\001*\022\301\001\n\022G" + + "etModelEvaluation\0225.google.cloud.aiplatf" + + "orm.v1.GetModelEvaluationRequest\032+.googl" + + "e.cloud.aiplatform.v1.ModelEvaluation\"G\332" + + "A\004name\202\323\344\223\002:\0228/v1/{name=projects/*/locat" + + "ions/*/models/*/evaluations/*}\022\324\001\n\024ListM" + + "odelEvaluations\0227.google.cloud.aiplatfor" + + "m.v1.ListModelEvaluationsRequest\0328.googl" + + "e.cloud.aiplatform.v1.ListModelEvaluatio" + + "nsResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent" + + "=projects/*/locations/*/models/*}/evalua" + + "tions\022\331\001\n\027GetModelEvaluationSlice\022:.goog" + + "le.cloud.aiplatform.v1.GetModelEvaluatio" + + "nSliceRequest\0320.google.cloud.aiplatform." + + "v1.ModelEvaluationSlice\"P\332A\004name\202\323\344\223\002C\022A" + + "/v1/{name=projects/*/locations/*/models/" + + "*/evaluations/*/slices/*}\022\354\001\n\031ListModelE" + + "valuationSlices\022<.google.cloud.aiplatfor" + + "m.v1.ListModelEvaluationSlicesRequest\032=." + + "google.cloud.aiplatform.v1.ListModelEval" + + "uationSlicesResponse\"R\332A\006parent\202\323\344\223\002C\022A/" + + "v1/{parent=projects/*/locations/*/models" + + "/*/evaluations/*}/slices\032M\312A\031aiplatform." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\317\001\n\036com.google.c" + + "loud.aiplatform.v1B\021ModelServiceProtoP\001Z" + + ">cloud.google.com/go/aiplatform/apiv1/ai" + + "platformpb;aiplatformpb\252\002\032Google.Cloud.A" + + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V" + + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -668,6 +669,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "SourceModel", "EncryptionSpec", + "CustomServiceAccount", "DestinationModel", }); internal_static_google_cloud_aiplatform_v1_CopyModelOperationMetadata_descriptor = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java index 00ee2c233911..5cd06338c03b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java @@ -52,6 +52,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -67,37 +79,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s.proto\032\027google/api/client.proto\032\037google" + "/api/field_behavior.proto\032\031google/api/ht" + "tpbody.proto\032\031google/api/resource.proto\032" - + "\034google/protobuf/struct.proto\"\246\001\n\033QueryR" - + "easoningEngineRequest\022?\n\004name\030\001 \001(\tB1\340A\002" - + "\372A+\n)aiplatform.googleapis.com/Reasoning" - + "Engine\022+\n\005input\030\002 \001(\0132\027.google.protobuf." - + "StructB\003\340A\001\022\031\n\014class_method\030\003 \001(\tB\003\340A\001\"F" - + "\n\034QueryReasoningEngineResponse\022&\n\006output" - + "\030\001 \001(\0132\026.google.protobuf.Value\"\254\001\n!Strea" - + "mQueryReasoningEngineRequest\022?\n\004name\030\001 \001" - + "(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/Re" - + "asoningEngine\022+\n\005input\030\002 \001(\0132\027.google.pr" - + "otobuf.StructB\003\340A\001\022\031\n\014class_method\030\003 \001(\t" - + "B\003\340A\0012\206\004\n\037ReasoningEngineExecutionServic" - + "e\022\320\001\n\024QueryReasoningEngine\0227.google.clou" - + "d.aiplatform.v1.QueryReasoningEngineRequ" - + "est\0328.google.cloud.aiplatform.v1.QueryRe" - + "asoningEngineResponse\"E\202\323\344\223\002?\":/v1/{name" - + "=projects/*/locations/*/reasoningEngines" - + "/*}:query:\001*\022\300\001\n\032StreamQueryReasoningEng" - + "ine\022=.google.cloud.aiplatform.v1.StreamQ" - + "ueryReasoningEngineRequest\032\024.google.api." - + "HttpBody\"K\202\323\344\223\002E\"@/v1/{name=projects/*/l" - + "ocations/*/reasoningEngines/*}:streamQue" - + "ry:\001*0\001\032M\312A\031aiplatform.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\342\001\n\036com.google.cloud.aiplatform.v" - + "1B$ReasoningEngineExecutionServiceProtoP" - + "\001Z>cloud.google.com/go/aiplatform/apiv1/" - + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud" - + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" - + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" - + "to3" + + "*google/cloud/aiplatform/v1/operation.pr" + + "oto\032#google/longrunning/operations.proto" + + "\032\034google/protobuf/struct.proto\"\246\001\n\033Query" + + "ReasoningEngineRequest\022?\n\004name\030\001 \001(\tB1\340A" + + "\002\372A+\n)aiplatform.googleapis.com/Reasonin" + + "gEngine\022+\n\005input\030\002 \001(\0132\027.google.protobuf" + + ".StructB\003\340A\001\022\031\n\014class_method\030\003 \001(\tB\003\340A\001\"" + + "F\n\034QueryReasoningEngineResponse\022&\n\006outpu" + + "t\030\001 \001(\0132\026.google.protobuf.Value\"\254\001\n!Stre" + + "amQueryReasoningEngineRequest\022?\n\004name\030\001 " + + "\001(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/R" + + "easoningEngine\022+\n\005input\030\002 \001(\0132\027.google.p" + + "rotobuf.StructB\003\340A\001\022\031\n\014class_method\030\003 \001(" + + "\tB\003\340A\001\"\234\001\n AsyncQueryReasoningEngineRequ" + + "est\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.go" + + "ogleapis.com/ReasoningEngine\022\032\n\rinput_gc" + + "s_uri\030\002 \001(\tB\003\340A\001\022\033\n\016output_gcs_uri\030\003 \001(\t" + + "B\003\340A\001\"|\n*AsyncQueryReasoningEngineOperat" + + "ionMetadata\022N\n\020generic_metadata\030\001 \001(\01324." + + "google.cloud.aiplatform.v1.GenericOperat" + + "ionMetadata\";\n!AsyncQueryReasoningEngine" + + "Response\022\026\n\016output_gcs_uri\030\001 \001(\t2\317\006\n\037Rea" + + "soningEngineExecutionService\022\320\001\n\024QueryRe" + + "asoningEngine\0227.google.cloud.aiplatform." + + "v1.QueryReasoningEngineRequest\0328.google." + + "cloud.aiplatform.v1.QueryReasoningEngine" + + "Response\"E\202\323\344\223\002?\":/v1/{name=projects/*/l" + + "ocations/*/reasoningEngines/*}:query:\001*\022" + + "\300\001\n\032StreamQueryReasoningEngine\022=.google." + + "cloud.aiplatform.v1.StreamQueryReasoning" + + "EngineRequest\032\024.google.api.HttpBody\"K\202\323\344" + + "\223\002E\"@/v1/{name=projects/*/locations/*/re" + + "asoningEngines/*}:streamQuery:\001*0\001\022\306\002\n\031A" + + "syncQueryReasoningEngine\022<.google.cloud." + + "aiplatform.v1.AsyncQueryReasoningEngineR" + + "equest\032\035.google.longrunning.Operation\"\313\001" + + "\312AO\n!AsyncQueryReasoningEngineResponse\022*" + + "AsyncQueryReasoningEngineOperationMetada" + + "ta\202\323\344\223\002s\"?/v1/{name=projects/*/locations" + + "/*/reasoningEngines/*}:asyncQuery:\001*Z-\"(" + + "/v1/{name=reasoningEngines/*}:asyncQuery" + + ":\001*\032M\312A\031aiplatform.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\342\001\n\036com.google.cloud.aiplatform.v1B$R" + + "easoningEngineExecutionServiceProtoP\001Z>c" + + "loud.google.com/go/aiplatform/apiv1/aipl" + + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP" + + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352" + + "\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -108,6 +138,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.HttpBodyProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_descriptor = @@ -134,12 +166,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Input", "ClassMethod", }); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Name", "InputGcsUri", "OutputGcsUri", + }); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor, + new java.lang.String[] { + "OutputGcsUri", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.HttpBodyProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -148,6 +206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java index 0addc0a481c6..725db91c896a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java @@ -244,7 +244,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=426 + * google/cloud/aiplatform/v1/tool.proto;l=463 * @return The disableAttribution. */ @java.lang.Override @@ -1121,7 +1121,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=426 + * google/cloud/aiplatform/v1/tool.proto;l=463 * @return The disableAttribution. */ @java.lang.Override @@ -1142,7 +1142,7 @@ public boolean getDisableAttribution() { * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=426 + * google/cloud/aiplatform/v1/tool.proto;l=463 * @param value The disableAttribution to set. * @return This builder for chaining. */ @@ -1167,7 +1167,7 @@ public Builder setDisableAttribution(boolean value) { * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=426 + * google/cloud/aiplatform/v1/tool.proto;l=463 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java index a9980c9ac931..6fd4212c279f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java @@ -115,7 +115,7 @@ public interface RetrievalOrBuilder * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=426 + * google/cloud/aiplatform/v1/tool.proto;l=463 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java index 455ccb78e44d..65766b3f91cd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java @@ -1391,6 +1391,1237 @@ public com.google.cloud.aiplatform.v1.Tool.GoogleSearch getDefaultInstanceForTyp } } + public interface ParallelAiSearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Tool.ParallelAiSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The API key for ParallelAiSearch.
+     * If an API key is not provided, the system will attempt to verify access
+     * by checking for an active Parallel.ai subscription through the Google
+     * Cloud Marketplace.
+     * See https://docs.parallel.ai/search/search-quickstart for more details.
+     * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + java.lang.String getApiKey(); + + /** + * + * + *
+     * Optional. The API key for ParallelAiSearch.
+     * If an API key is not provided, the system will attempt to verify access
+     * by checking for an active Parallel.ai subscription through the Google
+     * Cloud Marketplace.
+     * See https://docs.parallel.ai/search/search-quickstart for more details.
+     * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + com.google.protobuf.ByteString getApiKeyBytes(); + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customConfigs field is set. + */ + boolean hasCustomConfigs(); + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customConfigs. + */ + com.google.protobuf.Struct getCustomConfigs(); + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getCustomConfigsOrBuilder(); + } + + /** + * + * + *
+   * ParallelAiSearch tool type.
+   * A tool that uses the Parallel.ai search engine for grounding.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Tool.ParallelAiSearch} + */ + public static final class ParallelAiSearch extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Tool.ParallelAiSearch) + ParallelAiSearchOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ParallelAiSearch"); + } + + // Use ParallelAiSearch.newBuilder() to construct. + private ParallelAiSearch(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ParallelAiSearch() { + apiKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.class, + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.Builder.class); + } + + private int bitField0_; + public static final int API_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKey_ = ""; + + /** + * + * + *
+     * Optional. The API key for ParallelAiSearch.
+     * If an API key is not provided, the system will attempt to verify access
+     * by checking for an active Parallel.ai subscription through the Google
+     * Cloud Marketplace.
+     * See https://docs.parallel.ai/search/search-quickstart for more details.
+     * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + @java.lang.Override + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKey_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The API key for ParallelAiSearch.
+     * If an API key is not provided, the system will attempt to verify access
+     * by checking for an active Parallel.ai subscription through the Google
+     * Cloud Marketplace.
+     * See https://docs.parallel.ai/search/search-quickstart for more details.
+     * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_CONFIGS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct customConfigs_; + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customConfigs field is set. + */ + @java.lang.Override + public boolean hasCustomConfigs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customConfigs. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomConfigs() { + return customConfigs_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customConfigs_; + } + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomConfigsOrBuilder() { + return customConfigs_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customConfigs_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apiKey_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCustomConfigs()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apiKey_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomConfigs()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch other = + (com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch) obj; + + if (!getApiKey().equals(other.getApiKey())) return false; + if (hasCustomConfigs() != other.hasCustomConfigs()) return false; + if (hasCustomConfigs()) { + if (!getCustomConfigs().equals(other.getCustomConfigs())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + API_KEY_FIELD_NUMBER; + hash = (53 * hash) + getApiKey().hashCode(); + if (hasCustomConfigs()) { + hash = (37 * hash) + CUSTOM_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getCustomConfigs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * ParallelAiSearch tool type.
+     * A tool that uses the Parallel.ai search engine for grounding.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Tool.ParallelAiSearch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Tool.ParallelAiSearch) + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.class, + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCustomConfigsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiKey_ = ""; + customConfigs_ = null; + if (customConfigsBuilder_ != null) { + customConfigsBuilder_.dispose(); + customConfigsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch build() { + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch buildPartial() { + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch result = + new com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiKey_ = apiKey_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customConfigs_ = + customConfigsBuilder_ == null ? customConfigs_ : customConfigsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch) { + return mergeFrom((com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch other) { + if (other == com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.getDefaultInstance()) + return this; + if (!other.getApiKey().isEmpty()) { + apiKey_ = other.apiKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomConfigs()) { + mergeCustomConfigs(other.getCustomConfigs()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetCustomConfigsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object apiKey_ = ""; + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearApiKey() { + apiKey_ = getDefaultInstance().getApiKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customConfigs_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customConfigsBuilder_; + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customConfigs field is set. + */ + public boolean hasCustomConfigs() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customConfigs. + */ + public com.google.protobuf.Struct getCustomConfigs() { + if (customConfigsBuilder_ == null) { + return customConfigs_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customConfigs_; + } else { + return customConfigsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomConfigs(com.google.protobuf.Struct value) { + if (customConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customConfigs_ = value; + } else { + customConfigsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomConfigs(com.google.protobuf.Struct.Builder builderForValue) { + if (customConfigsBuilder_ == null) { + customConfigs_ = builderForValue.build(); + } else { + customConfigsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomConfigs(com.google.protobuf.Struct value) { + if (customConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customConfigs_ != null + && customConfigs_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomConfigsBuilder().mergeFrom(value); + } else { + customConfigs_ = value; + } + } else { + customConfigsBuilder_.mergeFrom(value); + } + if (customConfigs_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomConfigs() { + bitField0_ = (bitField0_ & ~0x00000002); + customConfigs_ = null; + if (customConfigsBuilder_ != null) { + customConfigsBuilder_.dispose(); + customConfigsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getCustomConfigsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCustomConfigsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getCustomConfigsOrBuilder() { + if (customConfigsBuilder_ != null) { + return customConfigsBuilder_.getMessageOrBuilder(); + } else { + return customConfigs_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customConfigs_; + } + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetCustomConfigsFieldBuilder() { + if (customConfigsBuilder_ == null) { + customConfigsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomConfigs(), getParentForChildren(), isClean()); + customConfigs_ = null; + } + return customConfigsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Tool.ParallelAiSearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Tool.ParallelAiSearch) + private static final com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch(); + } + + public static com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParallelAiSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface CodeExecutionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Tool.CodeExecution) @@ -3442,6 +4673,72 @@ public com.google.cloud.aiplatform.v1.EnterpriseWebSearch getEnterpriseWebSearch : enterpriseWebSearch_; } + public static final int PARALLEL_AI_SEARCH_FIELD_NUMBER = 13; + private com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallelAiSearch_; + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parallelAiSearch field is set. + */ + @java.lang.Override + public boolean hasParallelAiSearch() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parallelAiSearch. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch getParallelAiSearch() { + return parallelAiSearch_ == null + ? com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.getDefaultInstance() + : parallelAiSearch_; + } + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearchOrBuilder + getParallelAiSearchOrBuilder() { + return parallelAiSearch_ == null + ? com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.getDefaultInstance() + : parallelAiSearch_; + } + public static final int CODE_EXECUTION_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1.Tool.CodeExecution codeExecution_; @@ -3461,7 +4758,7 @@ public com.google.cloud.aiplatform.v1.EnterpriseWebSearch getEnterpriseWebSearch */ @java.lang.Override public boolean hasCodeExecution() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -3522,7 +4819,7 @@ public com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder getCodeExecuti */ @java.lang.Override public boolean hasUrlContext() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3583,7 +4880,7 @@ public com.google.cloud.aiplatform.v1.UrlContextOrBuilder getUrlContextOrBuilder */ @java.lang.Override public boolean hasComputerUse() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3651,7 +4948,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getGoogleSearchRetrieval()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(4, getCodeExecution()); } if (((bitField0_ & 0x00000008) != 0)) { @@ -3663,12 +4960,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getGoogleSearch()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(10, getUrlContext()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(11, getComputerUse()); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(13, getParallelAiSearch()); + } getUnknownFields().writeTo(output); } @@ -3689,7 +4989,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGoogleSearchRetrieval()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCodeExecution()); } if (((bitField0_ & 0x00000008) != 0)) { @@ -3701,12 +5001,15 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGoogleSearch()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUrlContext()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getComputerUse()); } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getParallelAiSearch()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3743,6 +5046,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEnterpriseWebSearch()) { if (!getEnterpriseWebSearch().equals(other.getEnterpriseWebSearch())) return false; } + if (hasParallelAiSearch() != other.hasParallelAiSearch()) return false; + if (hasParallelAiSearch()) { + if (!getParallelAiSearch().equals(other.getParallelAiSearch())) return false; + } if (hasCodeExecution() != other.hasCodeExecution()) return false; if (hasCodeExecution()) { if (!getCodeExecution().equals(other.getCodeExecution())) return false; @@ -3790,6 +5097,10 @@ public int hashCode() { hash = (37 * hash) + ENTERPRISE_WEB_SEARCH_FIELD_NUMBER; hash = (53 * hash) + getEnterpriseWebSearch().hashCode(); } + if (hasParallelAiSearch()) { + hash = (37 * hash) + PARALLEL_AI_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getParallelAiSearch().hashCode(); + } if (hasCodeExecution()) { hash = (37 * hash) + CODE_EXECUTION_FIELD_NUMBER; hash = (53 * hash) + getCodeExecution().hashCode(); @@ -3954,6 +5265,7 @@ private void maybeForceBuilderInitialization() { internalGetGoogleSearchRetrievalFieldBuilder(); internalGetGoogleMapsFieldBuilder(); internalGetEnterpriseWebSearchFieldBuilder(); + internalGetParallelAiSearchFieldBuilder(); internalGetCodeExecutionFieldBuilder(); internalGetUrlContextFieldBuilder(); internalGetComputerUseFieldBuilder(); @@ -3996,6 +5308,11 @@ public Builder clear() { enterpriseWebSearchBuilder_.dispose(); enterpriseWebSearchBuilder_ = null; } + parallelAiSearch_ = null; + if (parallelAiSearchBuilder_ != null) { + parallelAiSearchBuilder_.dispose(); + parallelAiSearchBuilder_ = null; + } codeExecution_ = null; if (codeExecutionBuilder_ != null) { codeExecutionBuilder_.dispose(); @@ -4088,18 +5405,23 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Tool result) { to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.codeExecution_ = - codeExecutionBuilder_ == null ? codeExecution_ : codeExecutionBuilder_.build(); + result.parallelAiSearch_ = + parallelAiSearchBuilder_ == null ? parallelAiSearch_ : parallelAiSearchBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.urlContext_ = urlContextBuilder_ == null ? urlContext_ : urlContextBuilder_.build(); + result.codeExecution_ = + codeExecutionBuilder_ == null ? codeExecution_ : codeExecutionBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.urlContext_ = urlContextBuilder_ == null ? urlContext_ : urlContextBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.computerUse_ = computerUseBuilder_ == null ? computerUse_ : computerUseBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } @@ -4158,6 +5480,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tool other) { if (other.hasEnterpriseWebSearch()) { mergeEnterpriseWebSearch(other.getEnterpriseWebSearch()); } + if (other.hasParallelAiSearch()) { + mergeParallelAiSearch(other.getParallelAiSearch()); + } if (other.hasCodeExecution()) { mergeCodeExecution(other.getCodeExecution()); } @@ -4225,7 +5550,7 @@ public Builder mergeFrom( { input.readMessage( internalGetCodeExecutionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 34 case 42: @@ -4253,16 +5578,23 @@ public Builder mergeFrom( { input.readMessage( internalGetUrlContextFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 82 case 90: { input.readMessage( internalGetComputerUseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 90 + case 106: + { + input.readMessage( + internalGetParallelAiSearchFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5981,6 +7313,241 @@ public Builder clearEnterpriseWebSearch() { return enterpriseWebSearchBuilder_; } + private com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallelAiSearch_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch, + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.Builder, + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearchOrBuilder> + parallelAiSearchBuilder_; + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parallelAiSearch field is set. + */ + public boolean hasParallelAiSearch() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parallelAiSearch. + */ + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch getParallelAiSearch() { + if (parallelAiSearchBuilder_ == null) { + return parallelAiSearch_ == null + ? com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.getDefaultInstance() + : parallelAiSearch_; + } else { + return parallelAiSearchBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParallelAiSearch(com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch value) { + if (parallelAiSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parallelAiSearch_ = value; + } else { + parallelAiSearchBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParallelAiSearch( + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.Builder builderForValue) { + if (parallelAiSearchBuilder_ == null) { + parallelAiSearch_ = builderForValue.build(); + } else { + parallelAiSearchBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParallelAiSearch( + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch value) { + if (parallelAiSearchBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && parallelAiSearch_ != null + && parallelAiSearch_ + != com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.getDefaultInstance()) { + getParallelAiSearchBuilder().mergeFrom(value); + } else { + parallelAiSearch_ = value; + } + } else { + parallelAiSearchBuilder_.mergeFrom(value); + } + if (parallelAiSearch_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParallelAiSearch() { + bitField0_ = (bitField0_ & ~0x00000040); + parallelAiSearch_ = null; + if (parallelAiSearchBuilder_ != null) { + parallelAiSearchBuilder_.dispose(); + parallelAiSearchBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.Builder + getParallelAiSearchBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetParallelAiSearchFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.ParallelAiSearchOrBuilder + getParallelAiSearchOrBuilder() { + if (parallelAiSearchBuilder_ != null) { + return parallelAiSearchBuilder_.getMessageOrBuilder(); + } else { + return parallelAiSearch_ == null + ? com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.getDefaultInstance() + : parallelAiSearch_; + } + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch, + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.Builder, + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearchOrBuilder> + internalGetParallelAiSearchFieldBuilder() { + if (parallelAiSearchBuilder_ == null) { + parallelAiSearchBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch, + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch.Builder, + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearchOrBuilder>( + getParallelAiSearch(), getParentForChildren(), isClean()); + parallelAiSearch_ = null; + } + return parallelAiSearchBuilder_; + } + private com.google.cloud.aiplatform.v1.Tool.CodeExecution codeExecution_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1.Tool.CodeExecution, @@ -6003,7 +7570,7 @@ public Builder clearEnterpriseWebSearch() { * @return Whether the codeExecution field is set. */ public boolean hasCodeExecution() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -6051,7 +7618,7 @@ public Builder setCodeExecution(com.google.cloud.aiplatform.v1.Tool.CodeExecutio } else { codeExecutionBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6075,7 +7642,7 @@ public Builder setCodeExecution( } else { codeExecutionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6094,7 +7661,7 @@ public Builder setCodeExecution( */ public Builder mergeCodeExecution(com.google.cloud.aiplatform.v1.Tool.CodeExecution value) { if (codeExecutionBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && codeExecution_ != null && codeExecution_ != com.google.cloud.aiplatform.v1.Tool.CodeExecution.getDefaultInstance()) { @@ -6106,7 +7673,7 @@ public Builder mergeCodeExecution(com.google.cloud.aiplatform.v1.Tool.CodeExecut codeExecutionBuilder_.mergeFrom(value); } if (codeExecution_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -6125,7 +7692,7 @@ public Builder mergeCodeExecution(com.google.cloud.aiplatform.v1.Tool.CodeExecut * */ public Builder clearCodeExecution() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); codeExecution_ = null; if (codeExecutionBuilder_ != null) { codeExecutionBuilder_.dispose(); @@ -6148,7 +7715,7 @@ public Builder clearCodeExecution() { * */ public com.google.cloud.aiplatform.v1.Tool.CodeExecution.Builder getCodeExecutionBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetCodeExecutionFieldBuilder().getBuilder(); } @@ -6225,7 +7792,7 @@ public com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder getCodeExecuti * @return Whether the urlContext field is set. */ public boolean hasUrlContext() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -6271,7 +7838,7 @@ public Builder setUrlContext(com.google.cloud.aiplatform.v1.UrlContext value) { } else { urlContextBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6294,7 +7861,7 @@ public Builder setUrlContext( } else { urlContextBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6312,7 +7879,7 @@ public Builder setUrlContext( */ public Builder mergeUrlContext(com.google.cloud.aiplatform.v1.UrlContext value) { if (urlContextBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && urlContext_ != null && urlContext_ != com.google.cloud.aiplatform.v1.UrlContext.getDefaultInstance()) { getUrlContextBuilder().mergeFrom(value); @@ -6323,7 +7890,7 @@ public Builder mergeUrlContext(com.google.cloud.aiplatform.v1.UrlContext value) urlContextBuilder_.mergeFrom(value); } if (urlContext_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -6341,7 +7908,7 @@ public Builder mergeUrlContext(com.google.cloud.aiplatform.v1.UrlContext value) * */ public Builder clearUrlContext() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); urlContext_ = null; if (urlContextBuilder_ != null) { urlContextBuilder_.dispose(); @@ -6363,7 +7930,7 @@ public Builder clearUrlContext() { * */ public com.google.cloud.aiplatform.v1.UrlContext.Builder getUrlContextBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetUrlContextFieldBuilder().getBuilder(); } @@ -6440,7 +8007,7 @@ public com.google.cloud.aiplatform.v1.UrlContextOrBuilder getUrlContextOrBuilder * @return Whether the computerUse field is set. */ public boolean hasComputerUse() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -6490,7 +8057,7 @@ public Builder setComputerUse(com.google.cloud.aiplatform.v1.Tool.ComputerUse va } else { computerUseBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6515,7 +8082,7 @@ public Builder setComputerUse( } else { computerUseBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6535,7 +8102,7 @@ public Builder setComputerUse( */ public Builder mergeComputerUse(com.google.cloud.aiplatform.v1.Tool.ComputerUse value) { if (computerUseBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && computerUse_ != null && computerUse_ != com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDefaultInstance()) { @@ -6547,7 +8114,7 @@ public Builder mergeComputerUse(com.google.cloud.aiplatform.v1.Tool.ComputerUse computerUseBuilder_.mergeFrom(value); } if (computerUse_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -6567,7 +8134,7 @@ public Builder mergeComputerUse(com.google.cloud.aiplatform.v1.Tool.ComputerUse * */ public Builder clearComputerUse() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); computerUse_ = null; if (computerUseBuilder_ != null) { computerUseBuilder_.dispose(); @@ -6591,7 +8158,7 @@ public Builder clearComputerUse() { * */ public com.google.cloud.aiplatform.v1.Tool.ComputerUse.Builder getComputerUseBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetComputerUseFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java index 5417ea88a559..7820f38ef488 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java @@ -369,6 +369,55 @@ com.google.cloud.aiplatform.v1.FunctionDeclarationOrBuilder getFunctionDeclarati */ com.google.cloud.aiplatform.v1.EnterpriseWebSearchOrBuilder getEnterpriseWebSearchOrBuilder(); + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parallelAiSearch field is set. + */ + boolean hasParallelAiSearch(); + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parallelAiSearch. + */ + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearch getParallelAiSearch(); + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.Tool.ParallelAiSearchOrBuilder getParallelAiSearchOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java index 6e6cb5dcd400..a00b0883c9cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_Tool_GoogleSearch_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_Tool_GoogleSearch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -178,7 +182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032google.cloud.aiplatform.v1\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" + "e.proto\032(google/cloud/aiplatform/v1/open" - + "api.proto\032\034google/protobuf/struct.proto\032\030google/type/latlng.proto\"\253\n\n" + + "api.proto\032\034google/protobuf/struct.proto\032\030google/type/latlng.proto\"\337\013\n" + "\004Tool\022S\n" + "\025function_declarations\030\001 \003(\0132/.google.cloud" + ".aiplatform.v1.FunctionDeclarationB\003\340A\001\022=\n" @@ -191,23 +195,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013google_maps\030\005" + " \001(\0132&.google.cloud.aiplatform.v1.GoogleMapsB\003\340A\001\022S\n" + "\025enterprise_web_search\030\006 " - + "\001(\0132/.google.cloud.aiplatform.v1.EnterpriseWebSearchB\003\340A\001\022K\n" - + "\016code_execution\030\004 \001(" - + "\0132..google.cloud.aiplatform.v1.Tool.CodeExecutionB\003\340A\001\022@\n" + + "\001(\0132/.google.cloud.aiplatform.v1.EnterpriseWebSearchB\003\340A\001\022R\n" + + "\022parallel_ai_search\030\r" + + " \001(\01321.google.cloud.aiplatform.v1.Tool.ParallelAiSearchB\003\340A\001\022K\n" + + "\016code_execution\030\004" + + " \001(\0132..google.cloud.aiplatform.v1.Tool.CodeExecutionB\003\340A\001\022@\n" + "\013url_context\030\n" + " \001(\0132&.google.cloud.aiplatform.v1.UrlContextB\003\340A\001\022G\n" - + "\014computer_use\030\013" - + " \001(\0132,.google.cloud.aiplatform.v1.Tool.ComputerUseB\003\340A\001\032\241\001\n" + + "\014computer_use\030\013 \001(\0132,.google.clou" + + "d.aiplatform.v1.Tool.ComputerUseB\003\340A\001\032\241\001\n" + "\014GoogleSearch\022\034\n" + "\017exclude_domains\030\003 \003(\tB\003\340A\001\022[\n" - + "\023blocking_confidence\030\004 \001(\01624.google.c" - + "loud.aiplatform.v1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" - + "\024_blocking_confidence\032\017\n" - + "\r" + + "\023blocking_confidence\030\004 \001(\01624.goog" + + "le.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" + + "\024_blocking_confidence\032^\n" + + "\020ParallelAiSearch\022\024\n" + + "\007api_key\030\001 \001(\tB\003\340A\001\0224\n" + + "\016custom_configs\030\003" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032\017\n\r" + "CodeExecution\032\322\001\n" + "\013ComputerUse\022R\n" - + "\013environment\030\001" - + " \001(\01628.google.cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\003\340A\002\022*\n" + + "\013environment\030\001 \001(\01628.google" + + ".cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\003\340A\002\022*\n" + "\035excluded_predefined_functions\030\002 \003(\tB\003\340A\001\"C\n" + "\013Environment\022\033\n" + "\027ENVIRONMENT_UNSPECIFIED\020\000\022\027\n" @@ -235,23 +244,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014FunctionCall\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022*\n" + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022A\n" - + "\014partial_args\030\004" - + " \003(\0132&.google.cloud.aiplatform.v1.PartialArgB\003\340A\001\022\032\n\r" + + "\014partial_args\030\004 \003(\0132&.g" + + "oogle.cloud.aiplatform.v1.PartialArgB\003\340A\001\022\032\n\r" + "will_continue\030\005 \001(\010B\003\340A\001\"\325\001\n\n" + "PartialArg\0225\n\n" + "null_value\030\002" + " \001(\0162\032.google.protobuf.NullValueB\003\340A\001H\000\022\033\n" + "\014number_value\030\003 \001(\001B\003\340A\001H\000\022\033\n" - + "\014string_value\030\004 \001(\tB\003\340A\001H\000\022\031\n\n" + + "\014string_value\030\004 \001(\tB\003\340A\001H\000\022\031\n" + + "\n" + "bool_value\030\005 \001(\010B\003\340A\001H\000\022\026\n" + "\tjson_path\030\001 \001(\tB\003\340A\002\022\032\n\r" + "will_continue\030\006 \001(\010B\003\340A\001B\007\n" + "\005delta\"\262\001\n" + "\024FunctionResponsePart\022G\n" - + "\013inline_data\030\001 \001(\01320.google" - + ".cloud.aiplatform.v1.FunctionResponseBlobH\000\022I\n" - + "\tfile_data\030\002 \001(\01324.google.cloud.ai" - + "platform.v1.FunctionResponseFileDataH\000B\006\n" + + "\013inline_data\030\001" + + " \001(\01320.google.cloud.aiplatform.v1.FunctionResponseBlobH\000\022I\n" + + "\tfile_data\030\002 \001" + + "(\01324.google.cloud.aiplatform.v1.FunctionResponseFileDataH\000B\006\n" + "\004data\"\\\n" + "\024FunctionResponseBlob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" @@ -264,18 +274,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020FunctionResponse\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022.\n" + "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\022D\n" - + "\005parts\030\004 \003(\01320.google.cloud" - + ".aiplatform.v1.FunctionResponsePartB\003\340A\001\"\241\001\n" + + "\005parts\030\004" + + " \003(\01320.google.cloud.aiplatform.v1.FunctionResponsePartB\003\340A\001\"\241\001\n" + "\016ExecutableCode\022J\n" - + "\010language\030\001 \001(\01623." - + "google.cloud.aiplatform.v1.ExecutableCode.LanguageB\003\340A\002\022\021\n" + + "\010language\030\001" + + " \001(\01623.google.cloud.aiplatform.v1.ExecutableCode.LanguageB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"0\n" + "\010Language\022\030\n" + "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n" + "\006PYTHON\020\001\"\340\001\n" + "\023CodeExecutionResult\022M\n" - + "\007outcome\030\001" - + " \001(\01627.google.cloud.aiplatform.v1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + + "\007outcome\030\001 \001(\01627.google.cloud" + + ".aiplatform.v1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + "\006output\030\002 \001(\tB\003\340A\001\"e\n" + "\007Outcome\022\027\n" + "\023OUTCOME_UNSPECIFIED\020\000\022\016\n\n" @@ -285,18 +295,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tRetrieval\022F\n" + "\020vertex_ai_search\030\002" + " \001(\0132*.google.cloud.aiplatform.v1.VertexAISearchH\000\022F\n" - + "\020vertex_rag_store\030\004" - + " \001(\0132*.google.cloud.aiplatform.v1.VertexRagStoreH\000\022\"\n" + + "\020vertex_rag_store\030\004 " + + "\001(\0132*.google.cloud.aiplatform.v1.VertexRagStoreH\000\022\"\n" + "\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n" + "\006source\"\252\003\n" + "\016VertexRagStore\022R\n\r" - + "rag_resources\030\004 \003(\01326." - + "google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\003\340A\001\022$\n" + + "rag_resources\030\004 \003(\01326.google.cloud.aiplatf" + + "orm.v1.VertexRagStore.RagResourceB\003\340A\001\022$\n" + "\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n" + "\031vector_distance_threshold\030\003" + " \001(\001B\005\030\001\340A\001H\001\210\001\001\022Q\n" - + "\024rag_retrieval_config\030\006" - + " \001(\0132..google.cloud.aiplatform.v1.RagRetrievalConfigB\003\340A\001\032i\n" + + "\024rag_retrieval_config\030\006 \001(\0132..goog" + + "le.cloud.aiplatform.v1.RagRetrievalConfigB\003\340A\001\032i\n" + "\013RagResource\022?\n\n" + "rag_corpus\030\001 \001(\tB+\340A\001\372A%\n" + "#aiplatform.googleapis.com/RagCorpus\022\031\n" @@ -308,37 +318,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006engine\030\002 \001(\tB\003\340A\001\022\030\n" + "\013max_results\030\003 \001(\005B\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022R\n" - + "\020data_store_specs\030\005 \003(" - + "\01328.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\0328\n\r" + + "\020data_store_specs\030\005 \003(\01328.google.cloud.aip" + + "latform.v1.VertexAISearch.DataStoreSpec\0328\n\r" + "DataStoreSpec\022\022\n\n" + "data_store\030\001 \001(\t\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\001\"m\n" + "\025GoogleSearchRetrieval\022T\n" - + "\030dynamic_retrieval_config\030\002" - + " \001(\01322.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"(\n\n" + + "\030dynamic_retrieval_config\030\002 \001(\01322.g" + + "oogle.cloud.aiplatform.v1.DynamicRetrievalConfig\"(\n\n" + "GoogleMaps\022\032\n\r" + "enable_widget\030\001 \001(\010B\003\340A\001\"\250\001\n" + "\023EnterpriseWebSearch\022\034\n" + "\017exclude_domains\030\001 \003(\tB\003\340A\001\022[\n" - + "\023blocking_confidence\030\002 \001(\01624.goog" - + "le.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" + + "\023blocking_confidence\030\002" + + " \001(\01624.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" + "\024_blocking_confidence\"\312\001\n" + "\026DynamicRetrievalConfig\022E\n" - + "\004mode\030\001 \001" - + "(\01627.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\022#\n" + + "\004mode\030\001 \001(\01627.google.cloud.ai" + + "platform.v1.DynamicRetrievalConfig.Mode\022#\n" + "\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\020\n" + "\014MODE_DYNAMIC\020\001B\024\n" + "\022_dynamic_threshold\"\261\001\n\n" + "ToolConfig\022W\n" - + "\027function_calling_config\030\001" - + " \001(\01321.google.cloud.aiplatform.v1.FunctionCallingConfigB\003\340A\001\022J\n" - + "\020retrieval_config\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1.RetrievalConfigB\003\340A\001\"\204\002\n" + + "\027function_calling_config\030\001 \001(\01321.goo" + + "gle.cloud.aiplatform.v1.FunctionCallingConfigB\003\340A\001\022J\n" + + "\020retrieval_config\030\002 \001(\0132+.g" + + "oogle.cloud.aiplatform.v1.RetrievalConfigB\003\340A\001\"\204\002\n" + "\025FunctionCallingConfig\022I\n" - + "\004mode\030\001 \001(\01626.google.clou" - + "d.aiplatform.v1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" + + "\004mode\030\001" + + " \001(\01626.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\022+\n" + "\036stream_function_call_arguments\030\004 \001(\010B\003\340A\001\"N\n" + "\004Mode\022\024\n" @@ -354,20 +364,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_language_code\"\252\005\n" + "\022RagRetrievalConfig\022\022\n" + "\005top_k\030\001 \001(\005B\003\340A\001\022J\n" - + "\006filter\030\003 \001(\01325.google.cl" - + "oud.aiplatform.v1.RagRetrievalConfig.FilterB\003\340A\001\022L\n" - + "\007ranking\030\004 \001(\01326.google.cloud" - + ".aiplatform.v1.RagRetrievalConfig.RankingB\003\340A\001\032\223\001\n" + + "\006filter\030\003" + + " \001(\01325.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\003\340A\001\022L\n" + + "\007ranking\030\004" + + " \001(\01326.google.cloud.aiplatform.v1.RagRetrievalConfig.RankingB\003\340A\001\032\223\001\n" + "\006Filter\022(\n" + "\031vector_distance_threshold\030\003 \001(\001B\003\340A\001H\000\022*\n" + "\033vector_similarity_threshold\030\004 \001(\001B\003\340A\001H\000\022\034\n" + "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n" + "\023vector_db_threshold\032\317\002\n" + "\007Ranking\022_\n" - + "\014rank_service\030\001 \001(\0132B.google." - + "cloud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022[\n\n" - + "llm_ranker\030\003 \001(\0132@.google.cloud.aiplatform.v1.RagRe" - + "trievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + + "\014rank_service\030\001 \001(\0132B.google.cloud.aiplatform.v1." + + "RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022[\n\n" + + "llm_ranker\030\003 \001(\0132@.google.cloud" + + ".aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + "\013RankService\022\034\n\n" + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_name\0328\n" @@ -375,10 +385,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_nameB\020\n" + "\016ranking_configB\307\001\n" - + "\036com.google.cloud.aiplatform.v1B\tToolProtoP\001Z>cloud.google.com" - + "/go/aiplatform/apiv1/aiplatformpb;aiplat" - + "formpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Go" - + "ogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\tToolProto" + + "P\001Z>cloud.google.com/go/aiplatform/apiv1" + + "/aiplatformpb;aiplatformpb\252\002\032Google.Clou" + + "d.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfor" + + "m\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -401,6 +412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleSearchRetrieval", "GoogleMaps", "EnterpriseWebSearch", + "ParallelAiSearch", "CodeExecution", "UrlContext", "ComputerUse", @@ -413,14 +425,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ExcludeDomains", "BlockingConfidence", }); - internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor = + internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_descriptor = internal_static_google_cloud_aiplatform_v1_Tool_descriptor.getNestedType(1); + internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Tool_ParallelAiSearch_descriptor, + new java.lang.String[] { + "ApiKey", "CustomConfigs", + }); + internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor = + internal_static_google_cloud_aiplatform_v1_Tool_descriptor.getNestedType(2); internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_descriptor = - internal_static_google_cloud_aiplatform_v1_Tool_descriptor.getNestedType(2); + internal_static_google_cloud_aiplatform_v1_Tool_descriptor.getNestedType(3); internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java index df7fcf5aee3d..a42b308cb2b0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java @@ -1195,7 +1195,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getRagResources * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=457 + * google/cloud/aiplatform/v1/tool.proto;l=494 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -1216,7 +1216,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=457 + * google/cloud/aiplatform/v1/tool.proto;l=494 * @return The similarityTopK. */ @java.lang.Override @@ -1241,7 +1241,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=462 + * See google/cloud/aiplatform/v1/tool.proto;l=499 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -1263,7 +1263,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=462 + * See google/cloud/aiplatform/v1/tool.proto;l=499 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2285,7 +2285,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder addRagR * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=457 + * google/cloud/aiplatform/v1/tool.proto;l=494 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -2306,7 +2306,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=457 + * google/cloud/aiplatform/v1/tool.proto;l=494 * @return The similarityTopK. */ @java.lang.Override @@ -2327,7 +2327,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=457 + * google/cloud/aiplatform/v1/tool.proto;l=494 * @param value The similarityTopK to set. * @return This builder for chaining. */ @@ -2352,7 +2352,7 @@ public Builder setSimilarityTopK(int value) { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=457 + * google/cloud/aiplatform/v1/tool.proto;l=494 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2378,7 +2378,7 @@ public Builder clearSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=462 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=499 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -2400,7 +2400,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=462 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=499 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2422,7 +2422,7 @@ public double getVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=462 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=499 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ @@ -2448,7 +2448,7 @@ public Builder setVectorDistanceThreshold(double value) { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=462 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=499 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java index 5cf338129e0d..b3ad8230d82e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java @@ -120,7 +120,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=457 + * google/cloud/aiplatform/v1/tool.proto;l=494 * @return Whether the similarityTopK field is set. */ @java.lang.Deprecated @@ -138,7 +138,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=457 + * google/cloud/aiplatform/v1/tool.proto;l=494 * @return The similarityTopK. */ @java.lang.Deprecated @@ -157,7 +157,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=462 + * See google/cloud/aiplatform/v1/tool.proto;l=499 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Deprecated @@ -176,7 +176,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=462 + * See google/cloud/aiplatform/v1/tool.proto;l=499 * @return The vectorDistanceThreshold. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto index f10478d3074e..b114d2429c68 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto @@ -768,6 +768,18 @@ message CopyModelRequest { // 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; + + // Optional. The user-provided custom service account to use to do the copy + // model. If empty, [Vertex AI Service + // Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // will be used to access resources needed to upload the model. This account + // must belong to the destination project where the model is copied to, + // i.e., the project specified in the `parent` field of this request and + // have the Vertex AI Service Agent role in the source project. + // + // Requires the user copying the Model to have the + // `iam.serviceAccounts.actAs` permission on this service account. + string custom_service_account = 7 [(google.api.field_behavior) = OPTIONAL]; } // Details of diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto index 84fd35f1438b..e4e8b99e3b01 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/httpbody.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -54,6 +56,23 @@ service ReasoningEngineExecutionService { body: "*" }; } + + // Async query using a reasoning engine. + rpc AsyncQueryReasoningEngine(AsyncQueryReasoningEngineRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/reasoningEngines/*}:asyncQuery" + body: "*" + additional_bindings { + post: "/v1/{name=reasoningEngines/*}:asyncQuery" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "AsyncQueryReasoningEngineResponse" + metadata_type: "AsyncQueryReasoningEngineOperationMetadata" + }; + } } // Request message for [ReasoningEngineExecutionService.Query][]. @@ -103,3 +122,37 @@ message StreamQueryReasoningEngineRequest { // It is optional and defaults to "stream_query" if unspecified. string class_method = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Request message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineRequest { + // Required. The name of the ReasoningEngine resource to use. + // Format: + // `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ReasoningEngine" + } + ]; + + // Optional. Input Cloud Storage URI for the Async query. + string input_gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output Cloud Storage URI for the Async query. + string output_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Operation metadata message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineResponse { + // Output Cloud Storage URI for the Async query. + string output_gcs_uri = 1; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto index 96bda732c143..a5d730aefda1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto @@ -79,6 +79,37 @@ message Tool { [(google.api.field_behavior) = OPTIONAL]; } + // ParallelAiSearch tool type. + // A tool that uses the Parallel.ai search engine for grounding. + message ParallelAiSearch { + // Optional. The API key for ParallelAiSearch. + // If an API key is not provided, the system will attempt to verify access + // by checking for an active Parallel.ai subscription through the Google + // Cloud Marketplace. + // See https://docs.parallel.ai/search/search-quickstart for more details. + string api_key = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom configs for ParallelAiSearch. + // This field can be used to pass any parameter from the Parallel.ai + // Search API. + // See the Parallel.ai documentation for the full list of available + // parameters and their usage: + // https://docs.parallel.ai/api-reference/search-beta/search + // Currently only `source_policy`, `excerpts`, `max_results`, `mode`, + // `fetch_policy` can be set via this field. For example: + // { + // "source_policy": { + // "include_domains": ["google.com", "wikipedia.org"], + // "exclude_domains": ["example.com"] + // }, + // "fetch_policy": { + // "max_age_seconds": 3600 + // } + // } + google.protobuf.Struct custom_configs = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + // Tool that executes code generated by the model, and automatically returns // the result to the model. // @@ -146,6 +177,12 @@ message Tool { EnterpriseWebSearch enterprise_web_search = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If specified, Vertex AI will use Parallel.ai to search for + // information to answer user queries. The search results will be grounded on + // Parallel.ai and presented to the model for response generation + ParallelAiSearch parallel_ai_search = 13 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. CodeExecution tool type. // Enables the model to execute code as part of generation. CodeExecution code_execution = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml index 048ad4b2add6..67b9c987189d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.108.0 + 0.109.0 proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.92.0 + 3.93.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..5111beb82dc1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Metadata for the ActivateOnlineEvaluator operation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class ActivateOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + ActivateOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ActivateOnlineEvaluatorOperationMetadata"); + } + + // Use ActivateOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private ActivateOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ActivateOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for the ActivateOnlineEvaluator operation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivateOnlineEvaluatorOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..3967bd8d710c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ActivateOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..a58f7e62b527 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for ActivateOnlineEvaluator.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class ActivateOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + ActivateOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ActivateOnlineEvaluatorRequest"); + } + + // Use ActivateOnlineEvaluatorRequest.newBuilder() to construct. + private ActivateOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ActivateOnlineEvaluatorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to activate.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to activate.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ActivateOnlineEvaluator.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to activate.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to activate.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to activate.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to activate.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to activate.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivateOnlineEvaluatorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..d79c6afbe470 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ActivateOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to activate.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to activate.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfig.java new file mode 100644 index 000000000000..450014e7cb18 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfig.java @@ -0,0 +1,2133 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents configuration for an Agent.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentConfig} + */ +@com.google.protobuf.Generated +public final class AgentConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AgentConfig) + AgentConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentConfig"); + } + + // Use AgentConfig.newBuilder() to construct. + private AgentConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentConfig() { + agentId_ = ""; + agentType_ = ""; + description_ = ""; + instruction_ = ""; + tools_ = java.util.Collections.emptyList(); + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentConfig.class, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder.class); + } + + private int bitField0_; + public static final int AGENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentId_ = ""; + + /** + * + * + *
+   * Required. Unique identifier of the agent.
+   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+   * the `sub_agents` field. It must be unique within the `agents` map.
+   * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agentId field is set. + */ + @java.lang.Override + public boolean hasAgentId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Unique identifier of the agent.
+   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+   * the `sub_agents` field. It must be unique within the `agents` map.
+   * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentId. + */ + @java.lang.Override + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Unique identifier of the agent.
+   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+   * the `sub_agents` field. It must be unique within the `agents` map.
+   * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentType_ = ""; + + /** + * + * + *
+   * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+   * "ToolUseAgent"). Useful for the autorater to understand the expected
+   * behavior of the agent.
+   * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + @java.lang.Override + public java.lang.String getAgentType() { + java.lang.Object ref = agentType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentType_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+   * "ToolUseAgent"). Useful for the autorater to understand the expected
+   * behavior of the agent.
+   * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentTypeBytes() { + java.lang.Object ref = agentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. A high-level description of the agent's role and
+   * responsibilities. Critical for evaluating if the agent is routing tasks
+   * correctly.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A high-level description of the agent's role and
+   * responsibilities. Critical for evaluating if the agent is routing tasks
+   * correctly.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTRUCTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object instruction_ = ""; + + /** + * + * + *
+   * Optional. Provides instructions for the LLM model, guiding the agent's
+   * behavior. Can be static or dynamic. Dynamic instructions can contain
+   * placeholders like {variable_name} that will be resolved at runtime using
+   * the `AgentEvent.state_delta` field.
+   * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + @java.lang.Override + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Provides instructions for the LLM model, guiding the agent's
+   * behavior. Can be static or dynamic. Dynamic instructions can contain
+   * placeholders like {variable_name} that will be resolved at runtime using
+   * the `AgentEvent.state_delta` field.
+   * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List tools_; + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolsOrBuilderList() { + return tools_; + } + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + public static final int SUB_AGENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The list of valid agent IDs that this agent can delegate to.
+   * This defines the directed edges in the multi-agent system graph topology.
+   * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + public com.google.protobuf.ProtocolStringList getSubAgentsList() { + return subAgents_; + } + + /** + * + * + *
+   * Optional. The list of valid agent IDs that this agent can delegate to.
+   * This defines the directed edges in the multi-agent system graph topology.
+   * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + public int getSubAgentsCount() { + return subAgents_.size(); + } + + /** + * + * + *
+   * Optional. The list of valid agent IDs that this agent can delegate to.
+   * This defines the directed edges in the multi-agent system graph topology.
+   * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + public java.lang.String getSubAgents(int index) { + return subAgents_.get(index); + } + + /** + * + * + *
+   * Optional. The list of valid agent IDs that this agent can delegate to.
+   * This defines the directed edges in the multi-agent system graph topology.
+   * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + public com.google.protobuf.ByteString getSubAgentsBytes(int index) { + return subAgents_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agentType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, instruction_); + } + for (int i = 0; i < tools_.size(); i++) { + output.writeMessage(5, tools_.get(i)); + } + for (int i = 0; i < subAgents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, subAgents_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agentType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instruction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, instruction_); + } + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, tools_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < subAgents_.size(); i++) { + dataSize += computeStringSizeNoTag(subAgents_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubAgentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AgentConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AgentConfig other = + (com.google.cloud.aiplatform.v1beta1.AgentConfig) obj; + + if (hasAgentId() != other.hasAgentId()) return false; + if (hasAgentId()) { + if (!getAgentId().equals(other.getAgentId())) return false; + } + if (!getAgentType().equals(other.getAgentType())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getInstruction().equals(other.getInstruction())) return false; + if (!getToolsList().equals(other.getToolsList())) return false; + if (!getSubAgentsList().equals(other.getSubAgentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAgentId()) { + hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + } + hash = (37 * hash) + AGENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAgentType().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getInstruction().hashCode(); + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + if (getSubAgentsCount() > 0) { + hash = (37 * hash) + SUB_AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getSubAgentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.AgentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents configuration for an Agent.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AgentConfig) + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentConfig.class, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AgentConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentId_ = ""; + agentType_ = ""; + description_ = ""; + instruction_ = ""; + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AgentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig build() { + com.google.cloud.aiplatform.v1beta1.AgentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.AgentConfig result = + new com.google.cloud.aiplatform.v1beta1.AgentConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.AgentConfig result) { + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AgentConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentId_ = agentId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentType_ = agentType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.instruction_ = instruction_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + subAgents_.makeImmutable(); + result.subAgents_ = subAgents_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AgentConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AgentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AgentConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.AgentConfig.getDefaultInstance()) + return this; + if (other.hasAgentId()) { + agentId_ = other.agentId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAgentType().isEmpty()) { + agentType_ = other.agentType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getInstruction().isEmpty()) { + instruction_ = other.instruction_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000010); + toolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + if (!other.subAgents_.isEmpty()) { + if (subAgents_.isEmpty()) { + subAgents_ = other.subAgents_; + bitField0_ |= 0x00000020; + } else { + ensureSubAgentsIsMutable(); + subAgents_.addAll(other.subAgents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + agentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + agentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + instruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.aiplatform.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubAgentsIsMutable(); + subAgents_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object agentId_ = ""; + + /** + * + * + *
+     * Required. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agentId field is set. + */ + public boolean hasAgentId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + agentId_ = getDefaultInstance().getAgentId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object agentType_ = ""; + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+     * "ToolUseAgent"). Useful for the autorater to understand the expected
+     * behavior of the agent.
+     * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + public java.lang.String getAgentType() { + java.lang.Object ref = agentType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+     * "ToolUseAgent"). Useful for the autorater to understand the expected
+     * behavior of the agent.
+     * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + public com.google.protobuf.ByteString getAgentTypeBytes() { + java.lang.Object ref = agentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+     * "ToolUseAgent"). Useful for the autorater to understand the expected
+     * behavior of the agent.
+     * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+     * "ToolUseAgent"). Useful for the autorater to understand the expected
+     * behavior of the agent.
+     * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentType() { + agentType_ = getDefaultInstance().getAgentType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+     * "ToolUseAgent"). Useful for the autorater to understand the expected
+     * behavior of the agent.
+     * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object instruction_ = ""; + + /** + * + * + *
+     * Optional. Provides instructions for the LLM model, guiding the agent's
+     * behavior. Can be static or dynamic. Dynamic instructions can contain
+     * placeholders like {variable_name} that will be resolved at runtime using
+     * the `AgentEvent.state_delta` field.
+     * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Provides instructions for the LLM model, guiding the agent's
+     * behavior. Can be static or dynamic. Dynamic instructions can contain
+     * placeholders like {variable_name} that will be resolved at runtime using
+     * the `AgentEvent.state_delta` field.
+     * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Provides instructions for the LLM model, guiding the agent's
+     * behavior. Can be static or dynamic. Dynamic instructions can contain
+     * placeholders like {variable_name} that will be resolved at runtime using
+     * the `AgentEvent.state_delta` field.
+     * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The instruction to set. + * @return This builder for chaining. + */ + public Builder setInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Provides instructions for the LLM model, guiding the agent's
+     * behavior. Can be static or dynamic. Dynamic instructions can contain
+     * placeholders like {variable_name} that will be resolved at runtime using
+     * the `AgentEvent.state_delta` field.
+     * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInstruction() { + instruction_ = getDefaultInstance().getInstruction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Provides instructions for the LLM model, guiding the agent's
+     * behavior. Can be static or dynamic. Dynamic instructions can contain
+     * placeholders like {variable_name} that will be resolved at runtime using
+     * the `AgentEvent.state_delta` field.
+     * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for instruction to set. + * @return This builder for chaining. + */ + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List tools_ = + java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTools( + java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolsBuilder(int index) { + return internalGetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder() { + return internalGetToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder(int index) { + return internalGetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of tools available to this agent.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsBuilderList() { + return internalGetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList subAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSubAgentsIsMutable() { + if (!subAgents_.isModifiable()) { + subAgents_ = new com.google.protobuf.LazyStringArrayList(subAgents_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + public com.google.protobuf.ProtocolStringList getSubAgentsList() { + subAgents_.makeImmutable(); + return subAgents_; + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + public int getSubAgentsCount() { + return subAgents_.size(); + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + public java.lang.String getSubAgents(int index) { + return subAgents_.get(index); + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + public com.google.protobuf.ByteString getSubAgentsBytes(int index) { + return subAgents_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The subAgents to set. + * @return This builder for chaining. + */ + public Builder setSubAgents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubAgentsIsMutable(); + subAgents_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subAgents to add. + * @return This builder for chaining. + */ + public Builder addSubAgents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubAgentsIsMutable(); + subAgents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The subAgents to add. + * @return This builder for chaining. + */ + public Builder addAllSubAgents(java.lang.Iterable values) { + ensureSubAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subAgents_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubAgents() { + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs that this agent can delegate to.
+     * This defines the directed edges in the multi-agent system graph topology.
+     * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the subAgents to add. + * @return This builder for chaining. + */ + public Builder addSubAgentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubAgentsIsMutable(); + subAgents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AgentConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AgentConfig) + private static final com.google.cloud.aiplatform.v1beta1.AgentConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AgentConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfigOrBuilder.java new file mode 100644 index 000000000000..ad8a8b31312d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfigOrBuilder.java @@ -0,0 +1,289 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AgentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AgentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Unique identifier of the agent.
+   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+   * the `sub_agents` field. It must be unique within the `agents` map.
+   * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agentId field is set. + */ + boolean hasAgentId(); + + /** + * + * + *
+   * Required. Unique identifier of the agent.
+   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+   * the `sub_agents` field. It must be unique within the `agents` map.
+   * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentId. + */ + java.lang.String getAgentId(); + + /** + * + * + *
+   * Required. Unique identifier of the agent.
+   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+   * the `sub_agents` field. It must be unique within the `agents` map.
+   * 
+ * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentId. + */ + com.google.protobuf.ByteString getAgentIdBytes(); + + /** + * + * + *
+   * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+   * "ToolUseAgent"). Useful for the autorater to understand the expected
+   * behavior of the agent.
+   * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + java.lang.String getAgentType(); + + /** + * + * + *
+   * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+   * "ToolUseAgent"). Useful for the autorater to understand the expected
+   * behavior of the agent.
+   * 
+ * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + com.google.protobuf.ByteString getAgentTypeBytes(); + + /** + * + * + *
+   * Optional. A high-level description of the agent's role and
+   * responsibilities. Critical for evaluating if the agent is routing tasks
+   * correctly.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. A high-level description of the agent's role and
+   * responsibilities. Critical for evaluating if the agent is routing tasks
+   * correctly.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Provides instructions for the LLM model, guiding the agent's
+   * behavior. Can be static or dynamic. Dynamic instructions can contain
+   * placeholders like {variable_name} that will be resolved at runtime using
+   * the `AgentEvent.state_delta` field.
+   * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + java.lang.String getInstruction(); + + /** + * + * + *
+   * Optional. Provides instructions for the LLM model, guiding the agent's
+   * behavior. Can be static or dynamic. Dynamic instructions can contain
+   * placeholders like {variable_name} that will be resolved at runtime using
+   * the `AgentEvent.state_delta` field.
+   * 
+ * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + com.google.protobuf.ByteString getInstructionBytes(); + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsList(); + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getTools(int index); + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsCount(); + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolsOrBuilderList(); + + /** + * + * + *
+   * Optional. The list of tools available to this agent.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The list of valid agent IDs that this agent can delegate to.
+   * This defines the directed edges in the multi-agent system graph topology.
+   * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + java.util.List getSubAgentsList(); + + /** + * + * + *
+   * Optional. The list of valid agent IDs that this agent can delegate to.
+   * This defines the directed edges in the multi-agent system graph topology.
+   * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + int getSubAgentsCount(); + + /** + * + * + *
+   * Optional. The list of valid agent IDs that this agent can delegate to.
+   * This defines the directed edges in the multi-agent system graph topology.
+   * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + java.lang.String getSubAgents(int index); + + /** + * + * + *
+   * Optional. The list of valid agent IDs that this agent can delegate to.
+   * This defines the directed edges in the multi-agent system graph topology.
+   * 
+ * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + com.google.protobuf.ByteString getSubAgentsBytes(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentData.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentData.java new file mode 100644 index 000000000000..0156f1edb2e9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentData.java @@ -0,0 +1,1504 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents data specific to multi-turn agent evaluations.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentData} + */ +@com.google.protobuf.Generated +public final class AgentData extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AgentData) + AgentDataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentData"); + } + + // Use AgentData.newBuilder() to construct. + private AgentData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentData() { + turns_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentData.class, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder.class); + } + + public static final int AGENTS_FIELD_NUMBER = 1; + + private static final class AgentsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.AgentConfig.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + agents_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + internalGetAgents() { + if (agents_ == null) { + return com.google.protobuf.MapField.emptyMapField(AgentsDefaultEntryHolder.defaultEntry); + } + return agents_; + } + + public int getAgentsCount() { + return internalGetAgents().getMap().size(); + } + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAgents().getMap().containsKey(key); + } + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getAgents() { + return getAgentsMap(); + } + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getAgentsMap() { + return internalGetAgents().getMap(); + } + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.AgentConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAgents().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAgents().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TURNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List turns_; + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getTurnsList() { + return turns_; + } + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTurnsOrBuilderList() { + return turns_; + } + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTurnsCount() { + return turns_.size(); + } + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn getTurns(int index) { + return turns_.get(index); + } + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder getTurnsOrBuilder( + int index) { + return turns_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAgents(), AgentsDefaultEntryHolder.defaultEntry, 1); + for (int i = 0; i < turns_.size(); i++) { + output.writeMessage(2, turns_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry + entry : internalGetAgents().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + agents__ = + AgentsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agents__); + } + for (int i = 0; i < turns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, turns_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AgentData)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AgentData other = + (com.google.cloud.aiplatform.v1beta1.AgentData) obj; + + if (!internalGetAgents().equals(other.internalGetAgents())) return false; + if (!getTurnsList().equals(other.getTurnsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetAgents().getMap().isEmpty()) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAgents().hashCode(); + } + if (getTurnsCount() > 0) { + hash = (37 * hash) + TURNS_FIELD_NUMBER; + hash = (53 * hash) + getTurnsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.AgentData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents data specific to multi-turn agent evaluations.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AgentData) + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentData.class, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AgentData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableAgents().clear(); + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + } else { + turns_ = null; + turnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData build() { + com.google.cloud.aiplatform.v1beta1.AgentData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData buildPartial() { + com.google.cloud.aiplatform.v1beta1.AgentData result = + new com.google.cloud.aiplatform.v1beta1.AgentData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.AgentData result) { + if (turnsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + turns_ = java.util.Collections.unmodifiableList(turns_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.turns_ = turns_; + } else { + result.turns_ = turnsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AgentData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agents_ = internalGetAgents().build(AgentsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AgentData) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AgentData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AgentData other) { + if (other == com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance()) return this; + internalGetMutableAgents().mergeFrom(other.internalGetAgents()); + bitField0_ |= 0x00000001; + if (turnsBuilder_ == null) { + if (!other.turns_.isEmpty()) { + if (turns_.isEmpty()) { + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTurnsIsMutable(); + turns_.addAll(other.turns_); + } + onChanged(); + } + } else { + if (!other.turns_.isEmpty()) { + if (turnsBuilder_.isEmpty()) { + turnsBuilder_.dispose(); + turnsBuilder_ = null; + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000002); + turnsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTurnsFieldBuilder() + : null; + } else { + turnsBuilder_.addAllMessages(other.turns_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + agents__ = + input.readMessage( + AgentsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAgents() + .ensureBuilderMap() + .put(agents__.getKey(), agents__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.ConversationTurn m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ConversationTurn.parser(), + extensionRegistry); + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(m); + } else { + turnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private static final class AgentsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.AgentConfig> { + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig build( + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder val) { + if (val instanceof com.google.cloud.aiplatform.v1beta1.AgentConfig) { + return (com.google.cloud.aiplatform.v1beta1.AgentConfig) val; + } + return ((com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + defaultEntry() { + return AgentsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final AgentsConverter agentsConverter = new AgentsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.AgentConfig, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder> + agents_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.AgentConfig, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder> + internalGetAgents() { + if (agents_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(agentsConverter); + } + return agents_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.AgentConfig, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder> + internalGetMutableAgents() { + if (agents_ == null) { + agents_ = new com.google.protobuf.MapFieldBuilder<>(agentsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return agents_; + } + + public int getAgentsCount() { + return internalGetAgents().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Optional. A map containing the static configurations for each agent in the
+     * system. Key: agent_id (matches the `author` field in events). Value: The
+     * static configuration of the agent.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAgents().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getAgents() { + return getAgentsMap(); + } + + /** + * + * + *
+     * Optional. A map containing the static configurations for each agent in the
+     * system. Key: agent_id (matches the `author` field in events). Value: The
+     * static configuration of the agent.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getAgentsMap() { + return internalGetAgents().getImmutableMap(); + } + + /** + * + * + *
+     * Optional. A map containing the static configurations for each agent in the
+     * system. Key: agent_id (matches the `author` field in events). Value: The
+     * static configuration of the agent.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.AgentConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableAgents().ensureBuilderMap(); + return map.containsKey(key) ? agentsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Optional. A map containing the static configurations for each agent in the
+     * system. Key: agent_id (matches the `author` field in events). Value: The
+     * static configuration of the agent.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableAgents().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return agentsConverter.build(map.get(key)); + } + + public Builder clearAgents() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableAgents().clear(); + return this; + } + + /** + * + * + *
+     * Optional. A map containing the static configurations for each agent in the
+     * system. Key: agent_id (matches the `author` field in events). Value: The
+     * static configuration of the agent.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAgents().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableAgents() { + bitField0_ |= 0x00000001; + return internalGetMutableAgents().ensureMessageMap(); + } + + /** + * + * + *
+     * Optional. A map containing the static configurations for each agent in the
+     * system. Key: agent_id (matches the `author` field in events). Value: The
+     * static configuration of the agent.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAgents( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.AgentConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAgents().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Optional. A map containing the static configurations for each agent in the
+     * system. Key: agent_id (matches the `author` field in events). Value: The
+     * static configuration of the agent.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAgents( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableAgents().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Optional. A map containing the static configurations for each agent in the
+     * system. Key: agent_id (matches the `author` field in events). Value: The
+     * static configuration of the agent.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder putAgentsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableAgents().ensureBuilderMap(); + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.aiplatform.v1beta1.AgentConfig.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.aiplatform.v1beta1.AgentConfig) { + entry = ((com.google.cloud.aiplatform.v1beta1.AgentConfig) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder) entry; + } + + private java.util.List turns_ = + java.util.Collections.emptyList(); + + private void ensureTurnsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + turns_ = + new java.util.ArrayList(turns_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ConversationTurn, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder> + turnsBuilder_; + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getTurnsList() { + if (turnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(turns_); + } else { + return turnsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTurnsCount() { + if (turnsBuilder_ == null) { + return turns_.size(); + } else { + return turnsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurn getTurns(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurns(int index, com.google.cloud.aiplatform.v1beta1.ConversationTurn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.set(index, value); + onChanged(); + } else { + turnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurns( + int index, com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.set(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns(com.google.cloud.aiplatform.v1beta1.ConversationTurn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(value); + onChanged(); + } else { + turnsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns(int index, com.google.cloud.aiplatform.v1beta1.ConversationTurn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(index, value); + onChanged(); + } else { + turnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + int index, com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTurns( + java.lang.Iterable values) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, turns_); + onChanged(); + } else { + turnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTurns() { + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + turnsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTurns(int index) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.remove(index); + onChanged(); + } else { + turnsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder getTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder getTurnsOrBuilder( + int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTurnsOrBuilderList() { + if (turnsBuilder_ != null) { + return turnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(turns_); + } + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder addTurnsBuilder() { + return internalGetTurnsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ConversationTurn.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder addTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ConversationTurn.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTurnsBuilderList() { + return internalGetTurnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ConversationTurn, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder> + internalGetTurnsFieldBuilder() { + if (turnsBuilder_ == null) { + turnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ConversationTurn, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder>( + turns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + turns_ = null; + } + return turnsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AgentData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AgentData) + private static final com.google.cloud.aiplatform.v1beta1.AgentData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AgentData(); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentDataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentDataOrBuilder.java new file mode 100644 index 000000000000..01d59e942a84 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentDataOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AgentDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AgentData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAgentsCount(); + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAgents(java.lang.String key); + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAgents(); + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAgentsMap(); + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.AgentConfig defaultValue); + + /** + * + * + *
+   * Optional. A map containing the static configurations for each agent in the
+   * system. Key: agent_id (matches the `author` field in events). Value: The
+   * static configuration of the agent.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getTurnsList(); + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ConversationTurn getTurns(int index); + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTurnsCount(); + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTurnsOrBuilderList(); + + /** + * + * + *
+   * Optional. A chronological list of conversation turns.
+   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+   * Response).
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder getTurnsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEvent.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEvent.java new file mode 100644 index 000000000000..45ee0c3db1fd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEvent.java @@ -0,0 +1,2133 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents a single event in the execution trace.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentEvent} + */ +@com.google.protobuf.Generated +public final class AgentEvent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AgentEvent) + AgentEventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentEvent"); + } + + // Use AgentEvent.newBuilder() to construct. + private AgentEvent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentEvent() { + author_ = ""; + activeTools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentEvent.class, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder.class); + } + + private int bitField0_; + public static final int AUTHOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
+   * Required. The ID of the agent or entity that generated this event.
+   * Use "user" to denote events generated by the end-user.
+   * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The ID of the agent or entity that generated this event.
+   * Use "user" to denote events generated by the end-user.
+   * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the agent or entity that generated this event.
+   * Use "user" to denote events generated by the end-user.
+   * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Content content_; + + /** + * + * + *
+   * Required. The content of the event (e.g., text response, tool call, tool
+   * response).
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The content of the event (e.g., text response, tool call, tool
+   * response).
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + /** + * + * + *
+   * Required. The content of the event (e.g., text response, tool call, tool
+   * response).
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
+   * Optional. The timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
+   * Optional. The timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int STATE_DELTA_FIELD_NUMBER = 4; + private com.google.protobuf.Struct stateDelta_; + + /** + * + * + *
+   * Optional. The change in the session state caused by this event. This is a
+   * key-value map of fields that were modified or added by the event.
+   * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the stateDelta field is set. + */ + @java.lang.Override + public boolean hasStateDelta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. The change in the session state caused by this event. This is a
+   * key-value map of fields that were modified or added by the event.
+   * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stateDelta. + */ + @java.lang.Override + public com.google.protobuf.Struct getStateDelta() { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + + /** + * + * + *
+   * Optional. The change in the session state caused by this event. This is a
+   * key-value map of fields that were modified or added by the event.
+   * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder() { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + + public static final int ACTIVE_TOOLS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List activeTools_; + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getActiveToolsList() { + return activeTools_; + } + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getActiveToolsOrBuilderList() { + return activeTools_; + } + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getActiveToolsCount() { + return activeTools_.size(); + } + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index) { + return activeTools_.get(index); + } + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index) { + return activeTools_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, author_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEventTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getStateDelta()); + } + for (int i = 0; i < activeTools_.size(); i++) { + output.writeMessage(5, activeTools_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, author_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateDelta()); + } + for (int i = 0; i < activeTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, activeTools_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AgentEvent)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AgentEvent other = + (com.google.cloud.aiplatform.v1beta1.AgentEvent) obj; + + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor().equals(other.getAuthor())) return false; + } + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (hasStateDelta() != other.hasStateDelta()) return false; + if (hasStateDelta()) { + if (!getStateDelta().equals(other.getStateDelta())) return false; + } + if (!getActiveToolsList().equals(other.getActiveToolsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasStateDelta()) { + hash = (37 * hash) + STATE_DELTA_FIELD_NUMBER; + hash = (53 * hash) + getStateDelta().hashCode(); + } + if (getActiveToolsCount() > 0) { + hash = (37 * hash) + ACTIVE_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getActiveToolsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.AgentEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a single event in the execution trace.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AgentEvent) + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentEvent.class, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AgentEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + internalGetEventTimeFieldBuilder(); + internalGetStateDeltaFieldBuilder(); + internalGetActiveToolsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + author_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + stateDelta_ = null; + if (stateDeltaBuilder_ != null) { + stateDeltaBuilder_.dispose(); + stateDeltaBuilder_ = null; + } + if (activeToolsBuilder_ == null) { + activeTools_ = java.util.Collections.emptyList(); + } else { + activeTools_ = null; + activeToolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AgentEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent build() { + com.google.cloud.aiplatform.v1beta1.AgentEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent buildPartial() { + com.google.cloud.aiplatform.v1beta1.AgentEvent result = + new com.google.cloud.aiplatform.v1beta1.AgentEvent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.AgentEvent result) { + if (activeToolsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + activeTools_ = java.util.Collections.unmodifiableList(activeTools_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.activeTools_ = activeTools_; + } else { + result.activeTools_ = activeToolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AgentEvent result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.author_ = author_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stateDelta_ = stateDeltaBuilder_ == null ? stateDelta_ : stateDeltaBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AgentEvent) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AgentEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AgentEvent other) { + if (other == com.google.cloud.aiplatform.v1beta1.AgentEvent.getDefaultInstance()) return this; + if (other.hasAuthor()) { + author_ = other.author_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasStateDelta()) { + mergeStateDelta(other.getStateDelta()); + } + if (activeToolsBuilder_ == null) { + if (!other.activeTools_.isEmpty()) { + if (activeTools_.isEmpty()) { + activeTools_ = other.activeTools_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureActiveToolsIsMutable(); + activeTools_.addAll(other.activeTools_); + } + onChanged(); + } + } else { + if (!other.activeTools_.isEmpty()) { + if (activeToolsBuilder_.isEmpty()) { + activeToolsBuilder_.dispose(); + activeToolsBuilder_ = null; + activeTools_ = other.activeTools_; + bitField0_ = (bitField0_ & ~0x00000010); + activeToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetActiveToolsFieldBuilder() + : null; + } else { + activeToolsBuilder_.addAllMessages(other.activeTools_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetStateDeltaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.aiplatform.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(m); + } else { + activeToolsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object author_ = ""; + + /** + * + * + *
+     * Required. The ID of the agent or entity that generated this event.
+     * Use "user" to denote events generated by the end-user.
+     * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The ID of the agent or entity that generated this event.
+     * Use "user" to denote events generated by the end-user.
+     * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the agent or entity that generated this event.
+     * Use "user" to denote events generated by the end-user.
+     * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the agent or entity that generated this event.
+     * Use "user" to denote events generated by the end-user.
+     * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the agent or entity that generated this event.
+     * Use "user" to denote events generated by the end-user.
+     * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the agent or entity that generated this event.
+     * Use "user" to denote events generated by the end-user.
+     * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Content content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
+     * Required. The content of the event (e.g., text response, tool call, tool
+     * response).
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + + /** + * + * + *
+     * Optional. The timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.protobuf.Struct stateDelta_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + stateDeltaBuilder_; + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stateDelta field is set. + */ + public boolean hasStateDelta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stateDelta. + */ + public com.google.protobuf.Struct getStateDelta() { + if (stateDeltaBuilder_ == null) { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } else { + return stateDeltaBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStateDelta(com.google.protobuf.Struct value) { + if (stateDeltaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateDelta_ = value; + } else { + stateDeltaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStateDelta(com.google.protobuf.Struct.Builder builderForValue) { + if (stateDeltaBuilder_ == null) { + stateDelta_ = builderForValue.build(); + } else { + stateDeltaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStateDelta(com.google.protobuf.Struct value) { + if (stateDeltaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && stateDelta_ != null + && stateDelta_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStateDeltaBuilder().mergeFrom(value); + } else { + stateDelta_ = value; + } + } else { + stateDeltaBuilder_.mergeFrom(value); + } + if (stateDelta_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStateDelta() { + bitField0_ = (bitField0_ & ~0x00000008); + stateDelta_ = null; + if (stateDeltaBuilder_ != null) { + stateDeltaBuilder_.dispose(); + stateDeltaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getStateDeltaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetStateDeltaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder() { + if (stateDeltaBuilder_ != null) { + return stateDeltaBuilder_.getMessageOrBuilder(); + } else { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + } + + /** + * + * + *
+     * Optional. The change in the session state caused by this event. This is a
+     * key-value map of fields that were modified or added by the event.
+     * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetStateDeltaFieldBuilder() { + if (stateDeltaBuilder_ == null) { + stateDeltaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStateDelta(), getParentForChildren(), isClean()); + stateDelta_ = null; + } + return stateDeltaBuilder_; + } + + private java.util.List activeTools_ = + java.util.Collections.emptyList(); + + private void ensureActiveToolsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + activeTools_ = + new java.util.ArrayList(activeTools_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + activeToolsBuilder_; + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getActiveToolsList() { + if (activeToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(activeTools_); + } else { + return activeToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getActiveToolsCount() { + if (activeToolsBuilder_ == null) { + return activeTools_.size(); + } else { + return activeToolsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index) { + if (activeToolsBuilder_ == null) { + return activeTools_.get(index); + } else { + return activeToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActiveTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.set(index, value); + onChanged(); + } else { + activeToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActiveTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.set(index, builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.add(value); + onChanged(); + } else { + activeToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.add(index, value); + onChanged(); + } else { + activeToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools( + com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(index, builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllActiveTools( + java.lang.Iterable values) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activeTools_); + onChanged(); + } else { + activeToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearActiveTools() { + if (activeToolsBuilder_ == null) { + activeTools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + activeToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeActiveTools(int index) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.remove(index); + onChanged(); + } else { + activeToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getActiveToolsBuilder(int index) { + return internalGetActiveToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index) { + if (activeToolsBuilder_ == null) { + return activeTools_.get(index); + } else { + return activeToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getActiveToolsOrBuilderList() { + if (activeToolsBuilder_ != null) { + return activeToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activeTools_); + } + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addActiveToolsBuilder() { + return internalGetActiveToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addActiveToolsBuilder(int index) { + return internalGetActiveToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of tools that were active/available to the agent at the
+     * time of this event. This overrides the `AgentConfig.tools` if set.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getActiveToolsBuilderList() { + return internalGetActiveToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetActiveToolsFieldBuilder() { + if (activeToolsBuilder_ == null) { + activeToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + activeTools_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + activeTools_ = null; + } + return activeToolsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AgentEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AgentEvent) + private static final com.google.cloud.aiplatform.v1beta1.AgentEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AgentEvent(); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEventOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEventOrBuilder.java new file mode 100644 index 000000000000..f0586c6624d1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEventOrBuilder.java @@ -0,0 +1,267 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AgentEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AgentEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the agent or entity that generated this event.
+   * Use "user" to denote events generated by the end-user.
+   * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + boolean hasAuthor(); + + /** + * + * + *
+   * Required. The ID of the agent or entity that generated this event.
+   * Use "user" to denote events generated by the end-user.
+   * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
+   * Required. The ID of the agent or entity that generated this event.
+   * Use "user" to denote events generated by the end-user.
+   * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
+   * Required. The content of the event (e.g., text response, tool call, tool
+   * response).
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
+   * Required. The content of the event (e.g., text response, tool call, tool
+   * response).
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + com.google.cloud.aiplatform.v1beta1.Content getContent(); + + /** + * + * + *
+   * Required. The content of the event (e.g., text response, tool call, tool
+   * response).
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
+   * Optional. The timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
+   * Optional. The timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
+   * Optional. The timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The change in the session state caused by this event. This is a
+   * key-value map of fields that were modified or added by the event.
+   * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the stateDelta field is set. + */ + boolean hasStateDelta(); + + /** + * + * + *
+   * Optional. The change in the session state caused by this event. This is a
+   * key-value map of fields that were modified or added by the event.
+   * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stateDelta. + */ + com.google.protobuf.Struct getStateDelta(); + + /** + * + * + *
+   * Optional. The change in the session state caused by this event. This is a
+   * key-value map of fields that were modified or added by the event.
+   * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder(); + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getActiveToolsList(); + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index); + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getActiveToolsCount(); + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getActiveToolsOrBuilderList(); + + /** + * + * + *
+   * Optional. The list of tools that were active/available to the agent at the
+   * time of this event. This overrides the `AgentConfig.tools` if set.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java index d5ebfeeb06ff..aa3c64ac4822 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java @@ -84,6 +84,7 @@ public enum AggregationResultCase EXACT_MATCH_METRIC_VALUE(7), BLEU_METRIC_VALUE(8), ROUGE_METRIC_VALUE(9), + CUSTOM_CODE_EXECUTION_RESULT(10), AGGREGATIONRESULT_NOT_SET(0); private final int value; @@ -113,6 +114,8 @@ public static AggregationResultCase forNumber(int value) { return BLEU_METRIC_VALUE; case 9: return ROUGE_METRIC_VALUE; + case 10: + return CUSTOM_CODE_EXECUTION_RESULT; case 0: return AGGREGATIONRESULT_NOT_SET; default: @@ -410,6 +413,68 @@ public com.google.cloud.aiplatform.v1beta1.RougeMetricValue getRougeMetricValue( return com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance(); } + public static final int CUSTOM_CODE_EXECUTION_RESULT_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Result for code execution metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return Whether the customCodeExecutionResult field is set. + */ + @java.lang.Override + public boolean hasCustomCodeExecutionResult() { + return aggregationResultCase_ == 10; + } + + /** + * + * + *
+   * Result for code execution metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return The customCodeExecutionResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + getCustomCodeExecutionResult() { + if (aggregationResultCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + + /** + * + * + *
+   * Result for code execution metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder + getCustomCodeExecutionResultOrBuilder() { + if (aggregationResultCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + public static final int AGGREGATION_METRIC_FIELD_NUMBER = 4; private int aggregationMetric_ = 0; @@ -489,6 +554,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 9, (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_); } + if (aggregationResultCase_ == 10) { + output.writeMessage( + 10, (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_); + } getUnknownFields().writeTo(output); } @@ -529,6 +598,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_); } + if (aggregationResultCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -563,6 +638,10 @@ public boolean equals(final java.lang.Object obj) { case 9: if (!getRougeMetricValue().equals(other.getRougeMetricValue())) return false; break; + case 10: + if (!getCustomCodeExecutionResult().equals(other.getCustomCodeExecutionResult())) + return false; + break; case 0: default: } @@ -600,6 +679,10 @@ public int hashCode() { hash = (37 * hash) + ROUGE_METRIC_VALUE_FIELD_NUMBER; hash = (53 * hash) + getRougeMetricValue().hashCode(); break; + case 10: + hash = (37 * hash) + CUSTOM_CODE_EXECUTION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCustomCodeExecutionResult().hashCode(); + break; case 0: default: } @@ -759,6 +842,9 @@ public Builder clear() { if (rougeMetricValueBuilder_ != null) { rougeMetricValueBuilder_.clear(); } + if (customCodeExecutionResultBuilder_ != null) { + customCodeExecutionResultBuilder_.clear(); + } aggregationMetric_ = 0; aggregationResultCase_ = 0; aggregationResult_ = null; @@ -799,7 +885,7 @@ public com.google.cloud.aiplatform.v1beta1.AggregationResult buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AggregationResult result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.aggregationMetric_ = aggregationMetric_; } } @@ -822,6 +908,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.AggregationR if (aggregationResultCase_ == 9 && rougeMetricValueBuilder_ != null) { result.aggregationResult_ = rougeMetricValueBuilder_.build(); } + if (aggregationResultCase_ == 10 && customCodeExecutionResultBuilder_ != null) { + result.aggregationResult_ = customCodeExecutionResultBuilder_.build(); + } } @java.lang.Override @@ -866,6 +955,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AggregationResult o mergeRougeMetricValue(other.getRougeMetricValue()); break; } + case CUSTOM_CODE_EXECUTION_RESULT: + { + mergeCustomCodeExecutionResult(other.getCustomCodeExecutionResult()); + break; + } case AGGREGATIONRESULT_NOT_SET: { break; @@ -900,7 +994,7 @@ public Builder mergeFrom( case 32: { aggregationMetric_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 32 case 42: @@ -938,6 +1032,14 @@ public Builder mergeFrom( aggregationResultCase_ = 9; break; } // case 74 + case 82: + { + input.readMessage( + internalGetCustomCodeExecutionResultFieldBuilder().getBuilder(), + extensionRegistry); + aggregationResultCase_ = 10; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2116,6 +2218,251 @@ public Builder clearRougeMetricValue() { return rougeMetricValueBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder> + customCodeExecutionResultBuilder_; + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return Whether the customCodeExecutionResult field is set. + */ + @java.lang.Override + public boolean hasCustomCodeExecutionResult() { + return aggregationResultCase_ == 10; + } + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return The customCodeExecutionResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + getCustomCodeExecutionResult() { + if (customCodeExecutionResultBuilder_ == null) { + if (aggregationResultCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } else { + if (aggregationResultCase_ == 10) { + return customCodeExecutionResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public Builder setCustomCodeExecutionResult( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult value) { + if (customCodeExecutionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregationResult_ = value; + onChanged(); + } else { + customCodeExecutionResultBuilder_.setMessage(value); + } + aggregationResultCase_ = 10; + return this; + } + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public Builder setCustomCodeExecutionResult( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder builderForValue) { + if (customCodeExecutionResultBuilder_ == null) { + aggregationResult_ = builderForValue.build(); + onChanged(); + } else { + customCodeExecutionResultBuilder_.setMessage(builderForValue.build()); + } + aggregationResultCase_ = 10; + return this; + } + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public Builder mergeCustomCodeExecutionResult( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult value) { + if (customCodeExecutionResultBuilder_ == null) { + if (aggregationResultCase_ == 10 + && aggregationResult_ + != com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + .getDefaultInstance()) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + aggregationResult_) + .mergeFrom(value) + .buildPartial(); + } else { + aggregationResult_ = value; + } + onChanged(); + } else { + if (aggregationResultCase_ == 10) { + customCodeExecutionResultBuilder_.mergeFrom(value); + } else { + customCodeExecutionResultBuilder_.setMessage(value); + } + } + aggregationResultCase_ = 10; + return this; + } + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public Builder clearCustomCodeExecutionResult() { + if (customCodeExecutionResultBuilder_ == null) { + if (aggregationResultCase_ == 10) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + onChanged(); + } + } else { + if (aggregationResultCase_ == 10) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + } + customCodeExecutionResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder + getCustomCodeExecutionResultBuilder() { + return internalGetCustomCodeExecutionResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder + getCustomCodeExecutionResultOrBuilder() { + if ((aggregationResultCase_ == 10) && (customCodeExecutionResultBuilder_ != null)) { + return customCodeExecutionResultBuilder_.getMessageOrBuilder(); + } else { + if (aggregationResultCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Result for code execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder> + internalGetCustomCodeExecutionResultFieldBuilder() { + if (customCodeExecutionResultBuilder_ == null) { + if (!(aggregationResultCase_ == 10)) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + customCodeExecutionResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_, + getParentForChildren(), + isClean()); + aggregationResult_ = null; + } + aggregationResultCase_ = 10; + onChanged(); + return customCodeExecutionResultBuilder_; + } + private int aggregationMetric_ = 0; /** @@ -2150,7 +2497,7 @@ public int getAggregationMetricValue() { */ public Builder setAggregationMetricValue(int value) { aggregationMetric_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2195,7 +2542,7 @@ public Builder setAggregationMetric( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; aggregationMetric_ = value.getNumber(); onChanged(); return this; @@ -2214,7 +2561,7 @@ public Builder setAggregationMetric( * @return This builder for chaining. */ public Builder clearAggregationMetric() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); aggregationMetric_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java index 65912ecb542f..f8adeb3d2888 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java @@ -220,6 +220,50 @@ public interface AggregationResultOrBuilder */ com.google.cloud.aiplatform.v1beta1.RougeMetricValueOrBuilder getRougeMetricValueOrBuilder(); + /** + * + * + *
+   * Result for code execution metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return Whether the customCodeExecutionResult field is set. + */ + boolean hasCustomCodeExecutionResult(); + + /** + * + * + *
+   * Result for code execution metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return The customCodeExecutionResult. + */ + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult getCustomCodeExecutionResult(); + + /** + * + * + *
+   * Result for code execution metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder + getCustomCodeExecutionResultOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadata.java new file mode 100644 index 000000000000..1ea60c0cc90f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadata.java @@ -0,0 +1,741 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Operation metadata message for
+ * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + AsyncQueryReasoningEngineOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineOperationMetadata"); + } + + // Use AsyncQueryReasoningEngineOperationMetadata.newBuilder() to construct. + private AsyncQueryReasoningEngineOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Operation metadata message for
+   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1 + .AsyncQueryReasoningEngineOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..b841370705d7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequest.java new file mode 100644 index 000000000000..3da7cc070ceb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequest.java @@ -0,0 +1,1017 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + AsyncQueryReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineRequest"); + } + + // Use AsyncQueryReasoningEngineRequest.newBuilder() to construct. + private AsyncQueryReasoningEngineRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineRequest() { + name_ = ""; + inputGcsUri_ = ""; + outputGcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputGcsUri_ = ""; + + /** + * + * + *
+   * Optional. Input Cloud Storage URI for the Async query.
+   * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + @java.lang.Override + public java.lang.String getInputGcsUri() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Input Cloud Storage URI for the Async query.
+   * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputGcsUriBytes() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
+   * Optional. Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + @java.lang.Override + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inputGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, outputGcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inputGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, outputGcsUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getInputGcsUri().equals(other.getInputGcsUri())) return false; + if (!getOutputGcsUri().equals(other.getOutputGcsUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + INPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputGcsUri().hashCode(); + hash = (37 * hash) + OUTPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + inputGcsUri_ = ""; + outputGcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputGcsUri_ = inputGcsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputGcsUri_ = outputGcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInputGcsUri().isEmpty()) { + inputGcsUri_ = other.inputGcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOutputGcsUri().isEmpty()) { + outputGcsUri_ = other.outputGcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + inputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + outputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object inputGcsUri_ = ""; + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + public java.lang.String getInputGcsUri() { + java.lang.Object ref = inputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + public com.google.protobuf.ByteString getInputGcsUriBytes() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setInputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInputGcsUri() { + inputGcsUri_ = getDefaultInstance().getInputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input Cloud Storage URI for the Async query.
+     * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for inputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setInputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsUri() { + outputGcsUri_ = getDefaultInstance().getOutputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..9239c326f5d8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Input Cloud Storage URI for the Async query.
+   * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + java.lang.String getInputGcsUri(); + + /** + * + * + *
+   * Optional. Input Cloud Storage URI for the Async query.
+   * 
+ * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + com.google.protobuf.ByteString getInputGcsUriBytes(); + + /** + * + * + *
+   * Optional. Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + java.lang.String getOutputGcsUri(); + + /** + * + * + *
+   * Optional. Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + com.google.protobuf.ByteString getOutputGcsUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponse.java new file mode 100644 index 000000000000..206be14855b0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponse.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + AsyncQueryReasoningEngineResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineResponse"); + } + + // Use AsyncQueryReasoningEngineResponse.newBuilder() to construct. + private AsyncQueryReasoningEngineResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineResponse() { + outputGcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.Builder.class); + } + + public static final int OUTPUT_GCS_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
+   * Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + @java.lang.Override + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outputGcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outputGcsUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse other = + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) obj; + + if (!getOutputGcsUri().equals(other.getOutputGcsUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outputGcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse build() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse result = + new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputGcsUri_ = outputGcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + .getDefaultInstance()) return this; + if (!other.getOutputGcsUri().isEmpty()) { + outputGcsUri_ = other.outputGcsUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + outputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @param value The outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsUri() { + outputGcsUri_ = getDefaultInstance().getOutputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output Cloud Storage URI for the Async query.
+     * 
+ * + * string output_gcs_uri = 1; + * + * @param value The bytes for outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + private static final com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponseOrBuilder.java new file mode 100644 index 000000000000..3195b04a2e3f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponseOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + java.lang.String getOutputGcsUri(); + + /** + * + * + *
+   * Output Cloud Storage URI for the Async query.
+   * 
+ * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + com.google.protobuf.ByteString getOutputGcsUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java index 66dcdb441cb6..0f4734d135ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java @@ -223,6 +223,66 @@ public com.google.protobuf.ByteString getAutoraterModelBytes() { } } + public static final int GENERATION_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.GenerationConfig generationConfig_; + + /** + * + * + *
+   * Optional. Configuration options for model generation and outputs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + @java.lang.Override + public boolean hasGenerationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Configuration options for model generation and outputs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerationConfig getGenerationConfig() { + return generationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + + /** + * + * + *
+   * Optional. Configuration options for model generation and outputs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder + getGenerationConfigOrBuilder() { + return generationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -246,6 +306,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoraterModel_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, autoraterModel_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getGenerationConfig()); + } getUnknownFields().writeTo(output); } @@ -264,6 +327,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoraterModel_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, autoraterModel_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerationConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -289,6 +355,10 @@ public boolean equals(final java.lang.Object obj) { if (getFlipEnabled() != other.getFlipEnabled()) return false; } if (!getAutoraterModel().equals(other.getAutoraterModel())) return false; + if (hasGenerationConfig() != other.hasGenerationConfig()) return false; + if (hasGenerationConfig()) { + if (!getGenerationConfig().equals(other.getGenerationConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,6 +380,10 @@ public int hashCode() { } hash = (37 * hash) + AUTORATER_MODEL_FIELD_NUMBER; hash = (53 * hash) + getAutoraterModel().hashCode(); + if (hasGenerationConfig()) { + hash = (37 * hash) + GENERATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGenerationConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -441,10 +515,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1beta1.AutoraterConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenerationConfigFieldBuilder(); + } } @java.lang.Override @@ -454,6 +537,11 @@ public Builder clear() { samplingCount_ = 0; flipEnabled_ = false; autoraterModel_ = ""; + generationConfig_ = null; + if (generationConfigBuilder_ != null) { + generationConfigBuilder_.dispose(); + generationConfigBuilder_ = null; + } return this; } @@ -502,6 +590,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AutoraterConfig r if (((from_bitField0_ & 0x00000004) != 0)) { result.autoraterModel_ = autoraterModel_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generationConfig_ = + generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -529,6 +622,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AutoraterConfig oth bitField0_ |= 0x00000004; onChanged(); } + if (other.hasGenerationConfig()) { + mergeGenerationConfig(other.getGenerationConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -573,6 +669,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + internalGetGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -910,6 +1013,223 @@ public Builder setAutoraterModelBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.aiplatform.v1beta1.GenerationConfig generationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenerationConfig, + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder> + generationConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + public boolean hasGenerationConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + public com.google.cloud.aiplatform.v1beta1.GenerationConfig getGenerationConfig() { + if (generationConfigBuilder_ == null) { + return generationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance() + : generationConfig_; + } else { + return generationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationConfig(com.google.cloud.aiplatform.v1beta1.GenerationConfig value) { + if (generationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generationConfig_ = value; + } else { + generationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationConfig( + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder builderForValue) { + if (generationConfigBuilder_ == null) { + generationConfig_ = builderForValue.build(); + } else { + generationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGenerationConfig( + com.google.cloud.aiplatform.v1beta1.GenerationConfig value) { + if (generationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && generationConfig_ != null + && generationConfig_ + != com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance()) { + getGenerationConfigBuilder().mergeFrom(value); + } else { + generationConfig_ = value; + } + } else { + generationConfigBuilder_.mergeFrom(value); + } + if (generationConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGenerationConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + generationConfig_ = null; + if (generationConfigBuilder_ != null) { + generationConfigBuilder_.dispose(); + generationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder + getGenerationConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetGenerationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder + getGenerationConfigOrBuilder() { + if (generationConfigBuilder_ != null) { + return generationConfigBuilder_.getMessageOrBuilder(); + } else { + return generationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration options for model generation and outputs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenerationConfig, + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder> + internalGetGenerationConfigFieldBuilder() { + if (generationConfigBuilder_ == null) { + generationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenerationConfig, + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder>( + getGenerationConfig(), getParentForChildren(), isClean()); + generationConfig_ = null; + } + return generationConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AutoraterConfig) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java index a54dfbdd5702..74b46a2c8198 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java @@ -131,4 +131,47 @@ public interface AutoraterConfigOrBuilder * @return The bytes for autoraterModel. */ com.google.protobuf.ByteString getAutoraterModelBytes(); + + /** + * + * + *
+   * Optional. Configuration options for model generation and outputs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + boolean hasGenerationConfig(); + + /** + * + * + *
+   * Optional. Configuration options for model generation and outputs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + com.google.cloud.aiplatform.v1beta1.GenerationConfig getGenerationConfig(); + + /** + * + * + *
+   * Optional. Configuration options for model generation and outputs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder getGenerationConfigOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurn.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurn.java new file mode 100644 index 000000000000..f6a40b9920d9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurn.java @@ -0,0 +1,1303 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents a single turn/invocation in the conversation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ConversationTurn} + */ +@com.google.protobuf.Generated +public final class ConversationTurn extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ConversationTurn) + ConversationTurnOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversationTurn"); + } + + // Use ConversationTurn.newBuilder() to construct. + private ConversationTurn(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversationTurn() { + turnId_ = ""; + events_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ConversationTurn.class, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder.class); + } + + private int bitField0_; + public static final int TURN_INDEX_FIELD_NUMBER = 1; + private int turnIndex_ = 0; + + /** + * + * + *
+   * Required. The 0-based index of the turn in the conversation sequence.
+   * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + @java.lang.Override + public boolean hasTurnIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The 0-based index of the turn in the conversation sequence.
+   * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + public static final int TURN_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object turnId_ = ""; + + /** + * + * + *
+   * Optional. A unique identifier for the turn.
+   * Useful for referencing specific turns across systems.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + @java.lang.Override + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A unique identifier for the turn.
+   * Useful for referencing specific turns across systems.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List events_; + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getEventsList() { + return events_; + } + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getEventsOrBuilderList() { + return events_; + } + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getEventsCount() { + return events_.size(); + } + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent getEvents(int index) { + return events_.get(index); + } + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder getEventsOrBuilder(int index) { + return events_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, turnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, turnId_); + } + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(3, events_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, turnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, turnId_); + } + for (int i = 0; i < events_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, events_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ConversationTurn)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ConversationTurn other = + (com.google.cloud.aiplatform.v1beta1.ConversationTurn) obj; + + if (hasTurnIndex() != other.hasTurnIndex()) return false; + if (hasTurnIndex()) { + if (getTurnIndex() != other.getTurnIndex()) return false; + } + if (!getTurnId().equals(other.getTurnId())) return false; + if (!getEventsList().equals(other.getEventsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTurnIndex()) { + hash = (37 * hash) + TURN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTurnIndex(); + } + hash = (37 * hash) + TURN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTurnId().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.ConversationTurn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a single turn/invocation in the conversation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ConversationTurn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ConversationTurn) + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ConversationTurn.class, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ConversationTurn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + turnIndex_ = 0; + turnId_ = ""; + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + } else { + events_ = null; + eventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ConversationTurn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn build() { + com.google.cloud.aiplatform.v1beta1.ConversationTurn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn buildPartial() { + com.google.cloud.aiplatform.v1beta1.ConversationTurn result = + new com.google.cloud.aiplatform.v1beta1.ConversationTurn(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ConversationTurn result) { + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ConversationTurn result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.turnIndex_ = turnIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.turnId_ = turnId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ConversationTurn) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ConversationTurn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ConversationTurn other) { + if (other == com.google.cloud.aiplatform.v1beta1.ConversationTurn.getDefaultInstance()) + return this; + if (other.hasTurnIndex()) { + setTurnIndex(other.getTurnIndex()); + } + if (!other.getTurnId().isEmpty()) { + turnId_ = other.turnId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + eventsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEventsFieldBuilder() + : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + turnIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + turnId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.AgentEvent m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.AgentEvent.parser(), extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int turnIndex_; + + /** + * + * + *
+     * Required. The 0-based index of the turn in the conversation sequence.
+     * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + @java.lang.Override + public boolean hasTurnIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The 0-based index of the turn in the conversation sequence.
+     * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + /** + * + * + *
+     * Required. The 0-based index of the turn in the conversation sequence.
+     * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The turnIndex to set. + * @return This builder for chaining. + */ + public Builder setTurnIndex(int value) { + + turnIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The 0-based index of the turn in the conversation sequence.
+     * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTurnIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + turnIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object turnId_ = ""; + + /** + * + * + *
+     * Optional. A unique identifier for the turn.
+     * Useful for referencing specific turns across systems.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A unique identifier for the turn.
+     * Useful for referencing specific turns across systems.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A unique identifier for the turn.
+     * Useful for referencing specific turns across systems.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A unique identifier for the turn.
+     * Useful for referencing specific turns across systems.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTurnId() { + turnId_ = getDefaultInstance().getTurnId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A unique identifier for the turn.
+     * Useful for referencing specific turns across systems.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List events_ = + java.util.Collections.emptyList(); + + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + events_ = new java.util.ArrayList(events_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentEvent, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder> + eventsBuilder_; + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEvent getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvents(int index, com.google.cloud.aiplatform.v1beta1.AgentEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvents( + int index, com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents(com.google.cloud.aiplatform.v1beta1.AgentEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents(int index, com.google.cloud.aiplatform.v1beta1.AgentEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + int index, com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllEvents( + java.lang.Iterable values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder getEventsBuilder(int index) { + return internalGetEventsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder getEventsOrBuilder(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder addEventsBuilder() { + return internalGetEventsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.AgentEvent.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder addEventsBuilder(int index) { + return internalGetEventsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.AgentEvent.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of events that occurred during this turn.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEventsBuilderList() { + return internalGetEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentEvent, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder> + internalGetEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentEvent, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder>( + events_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + events_ = null; + } + return eventsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ConversationTurn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ConversationTurn) + private static final com.google.cloud.aiplatform.v1beta1.ConversationTurn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ConversationTurn(); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationTurn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurnOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurnOrBuilder.java new file mode 100644 index 000000000000..9a3c544cf1a6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurnOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ConversationTurnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ConversationTurn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The 0-based index of the turn in the conversation sequence.
+   * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + boolean hasTurnIndex(); + + /** + * + * + *
+   * Required. The 0-based index of the turn in the conversation sequence.
+   * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + int getTurnIndex(); + + /** + * + * + *
+   * Optional. A unique identifier for the turn.
+   * Useful for referencing specific turns across systems.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + java.lang.String getTurnId(); + + /** + * + * + *
+   * Optional. A unique identifier for the turn.
+   * Useful for referencing specific turns across systems.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + com.google.protobuf.ByteString getTurnIdBytes(); + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getEventsList(); + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AgentEvent getEvents(int index); + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEventsCount(); + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getEventsOrBuilderList(); + + /** + * + * + *
+   * Optional. The list of events that occurred during this turn.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder getEventsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CopyModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CopyModelRequest.java index 68ebeadb0c68..8e2ee7b350e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CopyModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CopyModelRequest.java @@ -55,6 +55,7 @@ private CopyModelRequest(com.google.protobuf.GeneratedMessage.Builder builder private CopyModelRequest() { parent_ = ""; sourceModel_ = ""; + customServiceAccount_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -469,6 +470,77 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryption : encryptionSpec_; } + public static final int CUSTOM_SERVICE_ACCOUNT_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object customServiceAccount_ = ""; + + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the copy
+   * model. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used to access resources needed to upload the model. This account
+   * must belong to the destination project where the model is copied to,
+   * i.e., the project specified in the `parent` field of this request and
+   * have the Vertex AI Service Agent role in the source project.
+   *
+   * Requires the user copying the Model to have the
+   * `iam.serviceAccounts.actAs` permission on this service account.
+   * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customServiceAccount. + */ + @java.lang.Override + public java.lang.String getCustomServiceAccount() { + java.lang.Object ref = customServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customServiceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the copy
+   * model. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used to access resources needed to upload the model. This account
+   * must belong to the destination project where the model is copied to,
+   * i.e., the project specified in the `parent` field of this request and
+   * have the Vertex AI Service Agent role in the source project.
+   *
+   * Requires the user copying the Model to have the
+   * `iam.serviceAccounts.actAs` permission on this service account.
+   * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomServiceAccountBytes() { + java.lang.Object ref = customServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -498,6 +570,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destinationModelCase_ == 5) { com.google.protobuf.GeneratedMessage.writeString(output, 5, destinationModel_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, customServiceAccount_); + } getUnknownFields().writeTo(output); } @@ -522,6 +597,9 @@ public int getSerializedSize() { if (destinationModelCase_ == 5) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, destinationModel_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customServiceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, customServiceAccount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -544,6 +622,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; } + if (!getCustomServiceAccount().equals(other.getCustomServiceAccount())) return false; if (!getDestinationModelCase().equals(other.getDestinationModelCase())) return false; switch (destinationModelCase_) { case 4: @@ -574,6 +653,8 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); } + hash = (37 * hash) + CUSTOM_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getCustomServiceAccount().hashCode(); switch (destinationModelCase_) { case 4: hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; @@ -743,6 +824,7 @@ public Builder clear() { encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } + customServiceAccount_ = ""; destinationModelCase_ = 0; destinationModel_ = null; return this; @@ -794,6 +876,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CopyModelRequest encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.customServiceAccount_ = customServiceAccount_; + } result.bitField0_ |= to_bitField0_; } @@ -828,6 +913,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CopyModelRequest ot if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } + if (!other.getCustomServiceAccount().isEmpty()) { + customServiceAccount_ = other.customServiceAccount_; + bitField0_ |= 0x00000020; + onChanged(); + } switch (other.getDestinationModelCase()) { case MODEL_ID: { @@ -907,6 +997,12 @@ public Builder mergeFrom( destinationModel_ = s; break; } // case 42 + case 58: + { + customServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1729,6 +1825,162 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS return encryptionSpecBuilder_; } + private java.lang.Object customServiceAccount_ = ""; + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customServiceAccount. + */ + public java.lang.String getCustomServiceAccount() { + java.lang.Object ref = customServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customServiceAccount. + */ + public com.google.protobuf.ByteString getCustomServiceAccountBytes() { + java.lang.Object ref = customServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setCustomServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customServiceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomServiceAccount() { + customServiceAccount_ = getDefaultInstance().getCustomServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the copy
+     * model. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used to access resources needed to upload the model. This account
+     * must belong to the destination project where the model is copied to,
+     * i.e., the project specified in the `parent` field of this request and
+     * have the Vertex AI Service Agent role in the source project.
+     *
+     * Requires the user copying the Model to have the
+     * `iam.serviceAccounts.actAs` permission on this service account.
+     * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for customServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setCustomServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customServiceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CopyModelRequest) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CopyModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CopyModelRequestOrBuilder.java index bff1cefa6c88..7fcf36d75a5c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CopyModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CopyModelRequestOrBuilder.java @@ -234,6 +234,50 @@ public interface CopyModelRequestOrBuilder */ com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the copy
+   * model. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used to access resources needed to upload the model. This account
+   * must belong to the destination project where the model is copied to,
+   * i.e., the project specified in the `parent` field of this request and
+   * have the Vertex AI Service Agent role in the source project.
+   *
+   * Requires the user copying the Model to have the
+   * `iam.serviceAccounts.actAs` permission on this service account.
+   * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customServiceAccount. + */ + java.lang.String getCustomServiceAccount(); + + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the copy
+   * model. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used to access resources needed to upload the model. This account
+   * must belong to the destination project where the model is copied to,
+   * i.e., the project specified in the `parent` field of this request and
+   * have the Vertex AI Service Agent role in the source project.
+   *
+   * Requires the user copying the Model to have the
+   * `iam.serviceAccounts.actAs` permission on this service account.
+   * 
+ * + * string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customServiceAccount. + */ + com.google.protobuf.ByteString getCustomServiceAccountBytes(); + com.google.cloud.aiplatform.v1beta1.CopyModelRequest.DestinationModelCase getDestinationModelCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..6d71c27b5314 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Metadata for the CreateOnlineEvaluator operation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class CreateOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + CreateOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateOnlineEvaluatorOperationMetadata"); + } + + // Use CreateOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private CreateOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for the CreateOnlineEvaluator operation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOnlineEvaluatorOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..50b331142d30 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface CreateOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..aa91c84fd335 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequest.java @@ -0,0 +1,946 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for CreateOnlineEvaluator.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class CreateOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + CreateOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateOnlineEvaluatorRequest"); + } + + // Use CreateOnlineEvaluatorRequest.newBuilder() to construct. + private CreateOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateOnlineEvaluatorRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the OnlineEvaluator will be created.
+   * Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where the OnlineEvaluator will be created.
+   * Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ONLINE_EVALUATOR_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator onlineEvaluator_; + + /** + * + * + *
+   * Required. The OnlineEvaluator to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + @java.lang.Override + public boolean hasOnlineEvaluator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The OnlineEvaluator to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator() { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + + /** + * + * + *
+   * Required. The OnlineEvaluator to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorOrBuilder() { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getOnlineEvaluator()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOnlineEvaluator()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasOnlineEvaluator() != other.hasOnlineEvaluator()) return false; + if (hasOnlineEvaluator()) { + if (!getOnlineEvaluator().equals(other.getOnlineEvaluator())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasOnlineEvaluator()) { + hash = (37 * hash) + ONLINE_EVALUATOR_FIELD_NUMBER; + hash = (53 * hash) + getOnlineEvaluator().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for CreateOnlineEvaluator.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOnlineEvaluatorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + onlineEvaluator_ = null; + if (onlineEvaluatorBuilder_ != null) { + onlineEvaluatorBuilder_.dispose(); + onlineEvaluatorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.onlineEvaluator_ = + onlineEvaluatorBuilder_ == null ? onlineEvaluator_ : onlineEvaluatorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOnlineEvaluator()) { + mergeOnlineEvaluator(other.getOnlineEvaluator()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetOnlineEvaluatorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the OnlineEvaluator will be created.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where the OnlineEvaluator will be created.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where the OnlineEvaluator will be created.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the OnlineEvaluator will be created.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the OnlineEvaluator will be created.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator onlineEvaluator_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + onlineEvaluatorBuilder_; + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + public boolean hasOnlineEvaluator() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator() { + if (onlineEvaluatorBuilder_ == null) { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } else { + return onlineEvaluatorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + onlineEvaluator_ = value; + } else { + onlineEvaluatorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorBuilder_ == null) { + onlineEvaluator_ = builderForValue.build(); + } else { + onlineEvaluatorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && onlineEvaluator_ != null + && onlineEvaluator_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()) { + getOnlineEvaluatorBuilder().mergeFrom(value); + } else { + onlineEvaluator_ = value; + } + } else { + onlineEvaluatorBuilder_.mergeFrom(value); + } + if (onlineEvaluator_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOnlineEvaluator() { + bitField0_ = (bitField0_ & ~0x00000002); + onlineEvaluator_ = null; + if (onlineEvaluatorBuilder_ != null) { + onlineEvaluatorBuilder_.dispose(); + onlineEvaluatorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder getOnlineEvaluatorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetOnlineEvaluatorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorOrBuilder() { + if (onlineEvaluatorBuilder_ != null) { + return onlineEvaluatorBuilder_.getMessageOrBuilder(); + } else { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + internalGetOnlineEvaluatorFieldBuilder() { + if (onlineEvaluatorBuilder_ == null) { + onlineEvaluatorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder>( + getOnlineEvaluator(), getParentForChildren(), isClean()); + onlineEvaluator_ = null; + } + return onlineEvaluatorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOnlineEvaluatorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..8c967ff545b1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface CreateOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the OnlineEvaluator will be created.
+   * Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the OnlineEvaluator will be created.
+   * Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The OnlineEvaluator to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + boolean hasOnlineEvaluator(); + + /** + * + * + *
+   * Required. The OnlineEvaluator to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator(); + + /** + * + * + *
+   * Required. The OnlineEvaluator to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder getOnlineEvaluatorOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResult.java new file mode 100644 index 000000000000..14627fe91c38 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResult.java @@ -0,0 +1,550 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Result for custom code execution metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult} + */ +@com.google.protobuf.Generated +public final class CustomCodeExecutionResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + CustomCodeExecutionResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomCodeExecutionResult"); + } + + // Use CustomCodeExecutionResult.newBuilder() to construct. + private CustomCodeExecutionResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomCodeExecutionResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.class, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + + /** + * + * + *
+   * Output only. Custom code execution score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Custom code execution score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult other = + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Result for custom code execution metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.class, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult build() { + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult buildPartial() { + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult result = + new com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance()) + return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float score_; + + /** + * + * + *
+     * Output only. Custom code execution score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Custom code execution score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + /** + * + * + *
+     * Output only. Custom code execution score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Custom code execution score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + private static final com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult(); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomCodeExecutionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResultOrBuilder.java new file mode 100644 index 000000000000..5215e0fe0113 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResultOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface CustomCodeExecutionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Custom code execution score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + + /** + * + * + *
+   * Output only. Custom code execution score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpec.java new file mode 100644 index 000000000000..c71abb780cbc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpec.java @@ -0,0 +1,951 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Specificies a metric that is populated by evaluating user-defined Python
+ * code.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec} + */ +@com.google.protobuf.Generated +public final class CustomCodeExecutionSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + CustomCodeExecutionSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomCodeExecutionSpec"); + } + + // Use CustomCodeExecutionSpec.newBuilder() to construct. + private CustomCodeExecutionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomCodeExecutionSpec() { + evaluationFunction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.class, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder.class); + } + + private int bitField0_; + public static final int EVALUATION_FUNCTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object evaluationFunction_ = ""; + + /** + * + * + *
+   * Required. Python function.
+   * Expected user to define the following function, e.g.:
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * Please include this function signature in the code snippet.
+   * Instance is the evaluation instance, any fields populated in the instance
+   * are available to the function as instance[field_name].
+   *
+   * Example:
+   * Example input:
+   * ```
+   * instance= EvaluationInstance(
+   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+   * reference=EvaluationInstance.InstanceData(text="4")
+   * )
+   * ```
+   *
+   * Example converted input:
+   * ```
+   * {
+   * 'response': {'text': 'The answer is 4.'},
+   * 'reference': {'text': '4'}
+   * }
+   * ```
+   *
+   * Example python function:
+   * ```
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * if instance['response']['text'] == instance['reference']['text']:
+   * return 1.0
+   * return 0.0
+   * ```
+   *
+   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+   * converted to dict[str, Any] and passed to the evaluation function.
+   * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the evaluationFunction field is set. + */ + @java.lang.Override + public boolean hasEvaluationFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Python function.
+   * Expected user to define the following function, e.g.:
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * Please include this function signature in the code snippet.
+   * Instance is the evaluation instance, any fields populated in the instance
+   * are available to the function as instance[field_name].
+   *
+   * Example:
+   * Example input:
+   * ```
+   * instance= EvaluationInstance(
+   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+   * reference=EvaluationInstance.InstanceData(text="4")
+   * )
+   * ```
+   *
+   * Example converted input:
+   * ```
+   * {
+   * 'response': {'text': 'The answer is 4.'},
+   * 'reference': {'text': '4'}
+   * }
+   * ```
+   *
+   * Example python function:
+   * ```
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * if instance['response']['text'] == instance['reference']['text']:
+   * return 1.0
+   * return 0.0
+   * ```
+   *
+   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+   * converted to dict[str, Any] and passed to the evaluation function.
+   * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The evaluationFunction. + */ + @java.lang.Override + public java.lang.String getEvaluationFunction() { + java.lang.Object ref = evaluationFunction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluationFunction_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Python function.
+   * Expected user to define the following function, e.g.:
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * Please include this function signature in the code snippet.
+   * Instance is the evaluation instance, any fields populated in the instance
+   * are available to the function as instance[field_name].
+   *
+   * Example:
+   * Example input:
+   * ```
+   * instance= EvaluationInstance(
+   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+   * reference=EvaluationInstance.InstanceData(text="4")
+   * )
+   * ```
+   *
+   * Example converted input:
+   * ```
+   * {
+   * 'response': {'text': 'The answer is 4.'},
+   * 'reference': {'text': '4'}
+   * }
+   * ```
+   *
+   * Example python function:
+   * ```
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * if instance['response']['text'] == instance['reference']['text']:
+   * return 1.0
+   * return 0.0
+   * ```
+   *
+   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+   * converted to dict[str, Any] and passed to the evaluation function.
+   * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for evaluationFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationFunctionBytes() { + java.lang.Object ref = evaluationFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluationFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, evaluationFunction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, evaluationFunction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec other = + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) obj; + + if (hasEvaluationFunction() != other.hasEvaluationFunction()) return false; + if (hasEvaluationFunction()) { + if (!getEvaluationFunction().equals(other.getEvaluationFunction())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEvaluationFunction()) { + hash = (37 * hash) + EVALUATION_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationFunction().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Specificies a metric that is populated by evaluating user-defined Python
+   * code.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.class, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluationFunction_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec build() { + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec result = + new com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.evaluationFunction_ = evaluationFunction_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance()) + return this; + if (other.hasEvaluationFunction()) { + evaluationFunction_ = other.evaluationFunction_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluationFunction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object evaluationFunction_ = ""; + + /** + * + * + *
+     * Required. Python function.
+     * Expected user to define the following function, e.g.:
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * Please include this function signature in the code snippet.
+     * Instance is the evaluation instance, any fields populated in the instance
+     * are available to the function as instance[field_name].
+     *
+     * Example:
+     * Example input:
+     * ```
+     * instance= EvaluationInstance(
+     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+     * reference=EvaluationInstance.InstanceData(text="4")
+     * )
+     * ```
+     *
+     * Example converted input:
+     * ```
+     * {
+     * 'response': {'text': 'The answer is 4.'},
+     * 'reference': {'text': '4'}
+     * }
+     * ```
+     *
+     * Example python function:
+     * ```
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * if instance['response']['text'] == instance['reference']['text']:
+     * return 1.0
+     * return 0.0
+     * ```
+     *
+     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+     * converted to dict[str, Any] and passed to the evaluation function.
+     * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluationFunction field is set. + */ + public boolean hasEvaluationFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Python function.
+     * Expected user to define the following function, e.g.:
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * Please include this function signature in the code snippet.
+     * Instance is the evaluation instance, any fields populated in the instance
+     * are available to the function as instance[field_name].
+     *
+     * Example:
+     * Example input:
+     * ```
+     * instance= EvaluationInstance(
+     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+     * reference=EvaluationInstance.InstanceData(text="4")
+     * )
+     * ```
+     *
+     * Example converted input:
+     * ```
+     * {
+     * 'response': {'text': 'The answer is 4.'},
+     * 'reference': {'text': '4'}
+     * }
+     * ```
+     *
+     * Example python function:
+     * ```
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * if instance['response']['text'] == instance['reference']['text']:
+     * return 1.0
+     * return 0.0
+     * ```
+     *
+     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+     * converted to dict[str, Any] and passed to the evaluation function.
+     * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluationFunction. + */ + public java.lang.String getEvaluationFunction() { + java.lang.Object ref = evaluationFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluationFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Python function.
+     * Expected user to define the following function, e.g.:
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * Please include this function signature in the code snippet.
+     * Instance is the evaluation instance, any fields populated in the instance
+     * are available to the function as instance[field_name].
+     *
+     * Example:
+     * Example input:
+     * ```
+     * instance= EvaluationInstance(
+     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+     * reference=EvaluationInstance.InstanceData(text="4")
+     * )
+     * ```
+     *
+     * Example converted input:
+     * ```
+     * {
+     * 'response': {'text': 'The answer is 4.'},
+     * 'reference': {'text': '4'}
+     * }
+     * ```
+     *
+     * Example python function:
+     * ```
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * if instance['response']['text'] == instance['reference']['text']:
+     * return 1.0
+     * return 0.0
+     * ```
+     *
+     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+     * converted to dict[str, Any] and passed to the evaluation function.
+     * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for evaluationFunction. + */ + public com.google.protobuf.ByteString getEvaluationFunctionBytes() { + java.lang.Object ref = evaluationFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluationFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Python function.
+     * Expected user to define the following function, e.g.:
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * Please include this function signature in the code snippet.
+     * Instance is the evaluation instance, any fields populated in the instance
+     * are available to the function as instance[field_name].
+     *
+     * Example:
+     * Example input:
+     * ```
+     * instance= EvaluationInstance(
+     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+     * reference=EvaluationInstance.InstanceData(text="4")
+     * )
+     * ```
+     *
+     * Example converted input:
+     * ```
+     * {
+     * 'response': {'text': 'The answer is 4.'},
+     * 'reference': {'text': '4'}
+     * }
+     * ```
+     *
+     * Example python function:
+     * ```
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * if instance['response']['text'] == instance['reference']['text']:
+     * return 1.0
+     * return 0.0
+     * ```
+     *
+     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+     * converted to dict[str, Any] and passed to the evaluation function.
+     * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The evaluationFunction to set. + * @return This builder for chaining. + */ + public Builder setEvaluationFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationFunction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Python function.
+     * Expected user to define the following function, e.g.:
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * Please include this function signature in the code snippet.
+     * Instance is the evaluation instance, any fields populated in the instance
+     * are available to the function as instance[field_name].
+     *
+     * Example:
+     * Example input:
+     * ```
+     * instance= EvaluationInstance(
+     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+     * reference=EvaluationInstance.InstanceData(text="4")
+     * )
+     * ```
+     *
+     * Example converted input:
+     * ```
+     * {
+     * 'response': {'text': 'The answer is 4.'},
+     * 'reference': {'text': '4'}
+     * }
+     * ```
+     *
+     * Example python function:
+     * ```
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * if instance['response']['text'] == instance['reference']['text']:
+     * return 1.0
+     * return 0.0
+     * ```
+     *
+     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+     * converted to dict[str, Any] and passed to the evaluation function.
+     * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluationFunction() { + evaluationFunction_ = getDefaultInstance().getEvaluationFunction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Python function.
+     * Expected user to define the following function, e.g.:
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * Please include this function signature in the code snippet.
+     * Instance is the evaluation instance, any fields populated in the instance
+     * are available to the function as instance[field_name].
+     *
+     * Example:
+     * Example input:
+     * ```
+     * instance= EvaluationInstance(
+     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+     * reference=EvaluationInstance.InstanceData(text="4")
+     * )
+     * ```
+     *
+     * Example converted input:
+     * ```
+     * {
+     * 'response': {'text': 'The answer is 4.'},
+     * 'reference': {'text': '4'}
+     * }
+     * ```
+     *
+     * Example python function:
+     * ```
+     * def evaluate(instance: dict[str, Any]) -> float:
+     * if instance['response']['text'] == instance['reference']['text']:
+     * return 1.0
+     * return 0.0
+     * ```
+     *
+     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+     * converted to dict[str, Any] and passed to the evaluation function.
+     * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for evaluationFunction to set. + * @return This builder for chaining. + */ + public Builder setEvaluationFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationFunction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + private static final com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomCodeExecutionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpecOrBuilder.java new file mode 100644 index 000000000000..0958e5c21823 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpecOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface CustomCodeExecutionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Python function.
+   * Expected user to define the following function, e.g.:
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * Please include this function signature in the code snippet.
+   * Instance is the evaluation instance, any fields populated in the instance
+   * are available to the function as instance[field_name].
+   *
+   * Example:
+   * Example input:
+   * ```
+   * instance= EvaluationInstance(
+   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+   * reference=EvaluationInstance.InstanceData(text="4")
+   * )
+   * ```
+   *
+   * Example converted input:
+   * ```
+   * {
+   * 'response': {'text': 'The answer is 4.'},
+   * 'reference': {'text': '4'}
+   * }
+   * ```
+   *
+   * Example python function:
+   * ```
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * if instance['response']['text'] == instance['reference']['text']:
+   * return 1.0
+   * return 0.0
+   * ```
+   *
+   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+   * converted to dict[str, Any] and passed to the evaluation function.
+   * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the evaluationFunction field is set. + */ + boolean hasEvaluationFunction(); + + /** + * + * + *
+   * Required. Python function.
+   * Expected user to define the following function, e.g.:
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * Please include this function signature in the code snippet.
+   * Instance is the evaluation instance, any fields populated in the instance
+   * are available to the function as instance[field_name].
+   *
+   * Example:
+   * Example input:
+   * ```
+   * instance= EvaluationInstance(
+   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+   * reference=EvaluationInstance.InstanceData(text="4")
+   * )
+   * ```
+   *
+   * Example converted input:
+   * ```
+   * {
+   * 'response': {'text': 'The answer is 4.'},
+   * 'reference': {'text': '4'}
+   * }
+   * ```
+   *
+   * Example python function:
+   * ```
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * if instance['response']['text'] == instance['reference']['text']:
+   * return 1.0
+   * return 0.0
+   * ```
+   *
+   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+   * converted to dict[str, Any] and passed to the evaluation function.
+   * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The evaluationFunction. + */ + java.lang.String getEvaluationFunction(); + + /** + * + * + *
+   * Required. Python function.
+   * Expected user to define the following function, e.g.:
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * Please include this function signature in the code snippet.
+   * Instance is the evaluation instance, any fields populated in the instance
+   * are available to the function as instance[field_name].
+   *
+   * Example:
+   * Example input:
+   * ```
+   * instance= EvaluationInstance(
+   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
+   * reference=EvaluationInstance.InstanceData(text="4")
+   * )
+   * ```
+   *
+   * Example converted input:
+   * ```
+   * {
+   * 'response': {'text': 'The answer is 4.'},
+   * 'reference': {'text': '4'}
+   * }
+   * ```
+   *
+   * Example python function:
+   * ```
+   * def evaluate(instance: dict[str, Any]) -> float:
+   * if instance['response']['text'] == instance['reference']['text']:
+   * return 1.0
+   * return 0.0
+   * ```
+   *
+   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
+   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
+   * converted to dict[str, Any] and passed to the evaluation function.
+   * 
+ * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for evaluationFunction. + */ + com.google.protobuf.ByteString getEvaluationFunctionBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..caa8ad846bf9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Metadata for the DeleteOnlineEvaluator operation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + DeleteOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteOnlineEvaluatorOperationMetadata"); + } + + // Use DeleteOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private DeleteOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for the DeleteOnlineEvaluator operation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOnlineEvaluatorOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..fce2405e409c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..1e6e2b541b06 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for DeleteOnlineEvaluator.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class DeleteOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + DeleteOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteOnlineEvaluatorRequest"); + } + + // Use DeleteOnlineEvaluatorRequest.newBuilder() to construct. + private DeleteOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteOnlineEvaluatorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to delete.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to delete.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for DeleteOnlineEvaluator.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to delete.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to delete.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to delete.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to delete.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to delete.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOnlineEvaluatorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..7ee7dcef610d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to delete.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to delete.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java index 8652387eb488..55e4a4943c74 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java @@ -53,6 +53,8 @@ private EvaluateInstancesRequest(com.google.protobuf.GeneratedMessage.Builder private EvaluateInstancesRequest() { location_ = ""; + metrics_ = java.util.Collections.emptyList(); + metricSources_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -2180,6 +2182,242 @@ public com.google.protobuf.ByteString getLocationBytes() { } } + public static final int METRICS_FIELD_NUMBER = 49; + + @SuppressWarnings("serial") + private java.util.List metrics_; + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Metric getMetrics(int index) { + return metrics_.get(index); + } + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int METRIC_SOURCES_FIELD_NUMBER = 52; + + @SuppressWarnings("serial") + private java.util.List metricSources_; + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMetricSourcesList() { + return metricSources_; + } + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMetricSourcesOrBuilderList() { + return metricSources_; + } + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMetricSourcesCount() { + return metricSources_.size(); + } + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index) { + return metricSources_.get(index); + } + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder( + int index) { + return metricSources_.get(index); + } + + public static final int INSTANCE_FIELD_NUMBER = 50; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance instance_; + + /** + * + * + *
+   * The instance to be evaluated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return Whether the instance field is set. + */ + @java.lang.Override + public boolean hasInstance() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The instance to be evaluated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return The instance. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance getInstance() { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance() + : instance_; + } + + /** + * + * + *
+   * The instance to be evaluated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder getInstanceOrBuilder() { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance() + : instance_; + } + public static final int AUTORATER_CONFIG_FIELD_NUMBER = 30; private com.google.cloud.aiplatform.v1beta1.AutoraterConfig autoraterConfig_; @@ -2198,7 +2436,7 @@ public com.google.protobuf.ByteString getLocationBytes() { */ @java.lang.Override public boolean hasAutoraterConfig() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -2346,7 +2584,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(30, getAutoraterConfig()); } if (metricInputsCase_ == 31) { @@ -2384,6 +2622,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 40, (com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInput) metricInputs_); } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(49, metrics_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(50, getInstance()); + } + for (int i = 0; i < metricSources_.size(); i++) { + output.writeMessage(52, metricSources_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2522,7 +2769,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getAutoraterConfig()); } if (metricInputsCase_ == 31) { @@ -2572,6 +2819,15 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInput) metricInputs_); } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, metrics_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getInstance()); + } + for (int i = 0; i < metricSources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, metricSources_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2589,6 +2845,12 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest) obj; if (!getLocation().equals(other.getLocation())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getMetricSourcesList().equals(other.getMetricSourcesList())) return false; + if (hasInstance() != other.hasInstance()) return false; + if (hasInstance()) { + if (!getInstance().equals(other.getInstance())) return false; + } if (hasAutoraterConfig() != other.hasAutoraterConfig()) return false; if (hasAutoraterConfig()) { if (!getAutoraterConfig().equals(other.getAutoraterConfig())) return false; @@ -2724,6 +2986,18 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getMetricSourcesCount() > 0) { + hash = (37 * hash) + METRIC_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getMetricSourcesList().hashCode(); + } + if (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } if (hasAutoraterConfig()) { hash = (37 * hash) + AUTORATER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAutoraterConfig().hashCode(); @@ -3002,6 +3276,9 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetricsFieldBuilder(); + internalGetMetricSourcesFieldBuilder(); + internalGetInstanceFieldBuilder(); internalGetAutoraterConfigFieldBuilder(); } } @@ -3108,6 +3385,25 @@ public Builder clear() { rubricBasedInstructionFollowingInputBuilder_.clear(); } location_ = ""; + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000002); + if (metricSourcesBuilder_ == null) { + metricSources_ = java.util.Collections.emptyList(); + } else { + metricSources_ = null; + metricSourcesBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000004); + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } autoraterConfig_ = null; if (autoraterConfigBuilder_ != null) { autoraterConfigBuilder_.dispose(); @@ -3143,6 +3439,7 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest build() { public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result = new com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -3154,6 +3451,28 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest buildPartial return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result) { + if (metricsBuilder_ == null) { + if (((bitField1_ & 0x00000002) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField1_ = (bitField1_ & ~0x00000002); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (metricSourcesBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0)) { + metricSources_ = java.util.Collections.unmodifiableList(metricSources_); + bitField1_ = (bitField1_ & ~0x00000004); + } + result.metricSources_ = metricSources_; + } else { + result.metricSources_ = metricSourcesBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result) { int from_bitField0_ = bitField0_; @@ -3166,10 +3485,14 @@ private void buildPartial1( result.location_ = location_; } int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000002) != 0)) { + if (((from_bitField1_ & 0x00000008) != 0)) { + result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField1_ & 0x00000010) != 0)) { result.autoraterConfig_ = autoraterConfigBuilder_ == null ? autoraterConfig_ : autoraterConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -3295,6 +3618,63 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe bitField1_ |= 0x00000001; onChanged(); } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField1_ = (bitField1_ & ~0x00000002); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField1_ = (bitField1_ & ~0x00000002); + metricsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (metricSourcesBuilder_ == null) { + if (!other.metricSources_.isEmpty()) { + if (metricSources_.isEmpty()) { + metricSources_ = other.metricSources_; + bitField1_ = (bitField1_ & ~0x00000004); + } else { + ensureMetricSourcesIsMutable(); + metricSources_.addAll(other.metricSources_); + } + onChanged(); + } + } else { + if (!other.metricSources_.isEmpty()) { + if (metricSourcesBuilder_.isEmpty()) { + metricSourcesBuilder_.dispose(); + metricSourcesBuilder_ = null; + metricSources_ = other.metricSources_; + bitField1_ = (bitField1_ & ~0x00000004); + metricSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricSourcesFieldBuilder() + : null; + } else { + metricSourcesBuilder_.addAllMessages(other.metricSources_); + } + } + } + if (other.hasInstance()) { + mergeInstance(other.getInstance()); + } if (other.hasAutoraterConfig()) { mergeAutoraterConfig(other.getAutoraterConfig()); } @@ -3674,7 +4054,7 @@ public Builder mergeFrom( { input.readMessage( internalGetAutoraterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; break; } // case 242 case 250: @@ -3746,6 +4126,40 @@ public Builder mergeFrom( metricInputsCase_ = 40; break; } // case 322 + case 394: + { + com.google.cloud.aiplatform.v1beta1.Metric m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Metric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 394 + case 402: + { + input.readMessage( + internalGetInstanceFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 402 + case 418: + { + com.google.cloud.aiplatform.v1beta1.MetricSource m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetricSource.parser(), + extensionRegistry); + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(m); + } else { + metricSourcesBuilder_.addMessage(m); + } + break; + } // case 418 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11529,50 +11943,57 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.aiplatform.v1beta1.AutoraterConfig autoraterConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.aiplatform.v1beta1.AutoraterConfig, - com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, - com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> - autoraterConfigBuilder_; + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField1_ & 0x00000002) != 0)) { + metrics_ = new java.util.ArrayList(metrics_); + bitField1_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder> + metricsBuilder_; /** * * *
-     * Optional. Autorater config used for evaluation.
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoraterConfig field is set. + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; */ - public boolean hasAutoraterConfig() { - return ((bitField1_ & 0x00000002) != 0); + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } } /** * * *
-     * Optional. Autorater config used for evaluation.
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoraterConfig. + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; */ - public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig() { - if (autoraterConfigBuilder_ == null) { - return autoraterConfig_ == null - ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() - : autoraterConfig_; + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); } else { - return autoraterConfigBuilder_.getMessage(); + return metricsBuilder_.getCount(); } } @@ -11580,37 +12001,1077 @@ public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig() * * *
-     * Optional. Autorater config used for evaluation.
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; */ - public Builder setAutoraterConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { - if (autoraterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoraterConfig_ = value; + public com.google.cloud.aiplatform.v1beta1.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); } else { - autoraterConfigBuilder_.setMessage(value); + return metricsBuilder_.getMessage(index); } - bitField1_ |= 0x00000002; - onChanged(); - return this; } /** * * *
-     * Optional. Autorater config used for evaluation.
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder setMetrics(int index, com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder setMetrics( + int index, com.google.cloud.aiplatform.v1beta1.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addMetrics(com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addMetrics(int index, com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addMetrics(com.google.cloud.aiplatform.v1beta1.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addMetrics( + int index, com.google.cloud.aiplatform.v1beta1.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000002); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public com.google.cloud.aiplatform.v1beta1.Metric.Builder getMetricsBuilder(int index) { + return internalGetMetricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricsOrBuilder(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public com.google.cloud.aiplatform.v1beta1.Metric.Builder addMetricsBuilder() { + return internalGetMetricsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance()); + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public com.google.cloud.aiplatform.v1beta1.Metric.Builder addMetricsBuilder(int index) { + return internalGetMetricsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance()); + } + + /** + * + * + *
+     * The metrics used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public java.util.List + getMetricsBuilderList() { + return internalGetMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder> + internalGetMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder>( + metrics_, ((bitField1_ & 0x00000002) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List metricSources_ = + java.util.Collections.emptyList(); + + private void ensureMetricSourcesIsMutable() { + if (!((bitField1_ & 0x00000004) != 0)) { + metricSources_ = + new java.util.ArrayList( + metricSources_); + bitField1_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder> + metricSourcesBuilder_; + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMetricSourcesList() { + if (metricSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricSources_); + } else { + return metricSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMetricSourcesCount() { + if (metricSourcesBuilder_ == null) { + return metricSources_.size(); + } else { + return metricSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index) { + if (metricSourcesBuilder_ == null) { + return metricSources_.get(index); + } else { + return metricSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.set(index, value); + onChanged(); + } else { + metricSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.set(index, builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetricSources(com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.add(value); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.add(index, value); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetricSources( + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(index, builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMetricSources( + java.lang.Iterable values) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricSources_); + onChanged(); + } else { + metricSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetricSources() { + if (metricSourcesBuilder_ == null) { + metricSources_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000004); + onChanged(); + } else { + metricSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMetricSources(int index) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.remove(index); + onChanged(); + } else { + metricSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder getMetricSourcesBuilder( + int index) { + return internalGetMetricSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder( + int index) { + if (metricSourcesBuilder_ == null) { + return metricSources_.get(index); + } else { + return metricSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMetricSourcesOrBuilderList() { + if (metricSourcesBuilder_ != null) { + return metricSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricSources_); + } + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder addMetricSourcesBuilder() { + return internalGetMetricSourcesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder addMetricSourcesBuilder( + int index) { + return internalGetMetricSourcesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The metrics (either inline or registered) used for evaluation.
+     * Currently, we only support evaluating a single metric. If multiple metrics
+     * are provided, only the first one will be evaluated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMetricSourcesBuilderList() { + return internalGetMetricSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder> + internalGetMetricSourcesFieldBuilder() { + if (metricSourcesBuilder_ == null) { + metricSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder>( + metricSources_, + ((bitField1_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + metricSources_ = null; + } + return metricSourcesBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance instance_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder> + instanceBuilder_; + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return Whether the instance field is set. + */ + public boolean hasInstance() { + return ((bitField1_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return The instance. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance() + : instance_; + } else { + return instanceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public Builder setInstance(com.google.cloud.aiplatform.v1beta1.EvaluationInstance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + } else { + instanceBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public Builder setInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public Builder mergeInstance(com.google.cloud.aiplatform.v1beta1.EvaluationInstance value) { + if (instanceBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) + && instance_ != null + && instance_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance()) { + getInstanceBuilder().mergeFrom(value); + } else { + instance_ = value; + } + } else { + instanceBuilder_.mergeFrom(value); + } + if (instance_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public Builder clearInstance() { + bitField1_ = (bitField1_ & ~0x00000008); + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder getInstanceBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return internalGetInstanceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance() + : instance_; + } + } + + /** + * + * + *
+     * The instance to be evaluated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder> + internalGetInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); + instance_ = null; + } + return instanceBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig autoraterConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + autoraterConfigBuilder_; + + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoraterConfig field is set. + */ + public boolean hasAutoraterConfig() { + return ((bitField1_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoraterConfig. + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig() { + if (autoraterConfigBuilder_ == null) { + return autoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : autoraterConfig_; + } else { + return autoraterConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoraterConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (autoraterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoraterConfig_ = value; + } else { + autoraterConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAutoraterConfig( com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder builderForValue) { @@ -11619,7 +13080,7 @@ public Builder setAutoraterConfig( } else { autoraterConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -11637,7 +13098,7 @@ public Builder setAutoraterConfig( */ public Builder mergeAutoraterConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { if (autoraterConfigBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0) + if (((bitField1_ & 0x00000010) != 0) && autoraterConfig_ != null && autoraterConfig_ != com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) { @@ -11649,7 +13110,7 @@ public Builder mergeAutoraterConfig(com.google.cloud.aiplatform.v1beta1.Autorate autoraterConfigBuilder_.mergeFrom(value); } if (autoraterConfig_ != null) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); } return this; @@ -11667,7 +13128,7 @@ public Builder mergeAutoraterConfig(com.google.cloud.aiplatform.v1beta1.Autorate * */ public Builder clearAutoraterConfig() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000010); autoraterConfig_ = null; if (autoraterConfigBuilder_ != null) { autoraterConfigBuilder_.dispose(); @@ -11689,7 +13150,7 @@ public Builder clearAutoraterConfig() { * */ public com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder getAutoraterConfigBuilder() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); return internalGetAutoraterConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java index be4dd0d6b5fd..770329d805fe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java @@ -1398,6 +1398,185 @@ public interface EvaluateInstancesRequestOrBuilder */ com.google.protobuf.ByteString getLocationBytes(); + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + java.util.List getMetricsList(); + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + com.google.cloud.aiplatform.v1beta1.Metric getMetrics(int index); + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + int getMetricsCount(); + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + java.util.List + getMetricsOrBuilderList(); + + /** + * + * + *
+   * The metrics used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMetricSourcesList(); + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index); + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMetricSourcesCount(); + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMetricSourcesOrBuilderList(); + + /** + * + * + *
+   * Optional. The metrics (either inline or registered) used for evaluation.
+   * Currently, we only support evaluating a single metric. If multiple metrics
+   * are provided, only the first one will be evaluated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder(int index); + + /** + * + * + *
+   * The instance to be evaluated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return Whether the instance field is set. + */ + boolean hasInstance(); + + /** + * + * + *
+   * The instance to be evaluated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return The instance. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance getInstance(); + + /** + * + * + *
+   * The instance to be evaluated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder getInstanceOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationAgentDataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationAgentDataProto.java new file mode 100644 index 000000000000..93fc4dabef98 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationAgentDataProto.java @@ -0,0 +1,182 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public final class EvaluationAgentDataProto extends com.google.protobuf.GeneratedFile { + private EvaluationAgentDataProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationAgentDataProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AgentData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ";google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto\022\037google.cloud.aipl" + + "atform.v1beta1\032\037google/api/field_behavio" + + "r.proto\032-google/cloud/aiplatform/v1beta1/content.proto\032*google/cloud/aiplatform/" + + "v1beta1/tool.proto\032\034google/protobuf/stru" + + "ct.proto\032\037google/protobuf/timestamp.proto\"\374\001\n" + + "\tAgentData\022K\n" + + "\006agents\030\001 \003(\01326.google" + + ".cloud.aiplatform.v1beta1.AgentData.AgentsEntryB\003\340A\001\022E\n" + + "\005turns\030\002 \003(\01321.google.clo" + + "ud.aiplatform.v1beta1.ConversationTurnB\003\340A\001\032[\n" + + "\013AgentsEntry\022\013\n" + + "\003key\030\001 \001(\t\022;\n" + + "\005value\030\002" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.AgentConfig:\0028\001\"\327\001\n" + + "\013AgentConfig\022\032\n" + + "\010agent_id\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\027\n\n" + + "agent_type\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\030\n" + + "\013instruction\030\004 \001(\tB\003\340A\001\0229\n" + + "\005tools\030\005" + + " \003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001\022\027\n\n" + + "sub_agents\030\006 \003(\tB\003\340A\001B\013\n" + + "\t_agent_id\"\227\001\n" + + "\020ConversationTurn\022\034\n\n" + + "turn_index\030\001 \001(\005B\003\340A\002H\000\210\001\001\022\024\n" + + "\007turn_id\030\002 \001(\tB\003\340A\001\022@\n" + + "\006events\030\003 " + + "\003(\0132+.google.cloud.aiplatform.v1beta1.AgentEventB\003\340A\001B\r\n" + + "\013_turn_index\"\254\002\n\n" + + "AgentEvent\022\030\n" + + "\006author\030\001 \001(\tB\003\340A\002H\000\210\001\001\022C\n" + + "\007content\030\002" + + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\002H\001\210\001\001\0223\n\n" + + "event_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0221\n" + + "\013state_delta\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\001\022@\n" + + "\014active_tools\030\005" + + " \003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001B\t\n" + + "\007_authorB\n\n" + + "\010_contentB\357\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\030EvaluationAgentDataProtoP\001Z" + + "Ccloud.google.com/go/aiplatform/apiv1bet" + + "a1/aiplatformpb;aiplatformpb\252\002\037Google.Cl" + + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" + + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ContentProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_aiplatform_v1beta1_AgentData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor, + new java.lang.String[] { + "Agents", "Turns", + }); + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor.getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor, + new java.lang.String[] { + "AgentId", "AgentType", "Description", "Instruction", "Tools", "SubAgents", + }); + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor, + new java.lang.String[] { + "TurnIndex", "TurnId", "Events", + }); + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor, + new java.lang.String[] { + "Author", "Content", "EventTime", "StateDelta", "ActiveTools", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ContentProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstance.java new file mode 100644 index 000000000000..4e876deda828 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstance.java @@ -0,0 +1,20165 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A single instance to be evaluated.
+ * Instances are used to specify the input data for evaluation, from
+ * simple string comparisons to complex, multi-turn model evaluations
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance} + */ +@com.google.protobuf.Generated +public final class EvaluationInstance extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance) + EvaluationInstanceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationInstance"); + } + + // Use EvaluationInstance.newBuilder() to construct. + private EvaluationInstance(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EvaluationInstance() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetRubricGroups(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder.class); + } + + public interface InstanceDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Text data.
+     * 
+ * + * string text = 1; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
+     * Text data.
+     * 
+ * + * string text = 1; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
+     * Text data.
+     * 
+ * + * string text = 1; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+     * List of Gemini content data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return Whether the contents field is set. + */ + boolean hasContents(); + + /** + * + * + *
+     * List of Gemini content data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return The contents. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents getContents(); + + /** + * + * + *
+     * List of Gemini content data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder + getContentsOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.DataCase getDataCase(); + } + + /** + * + * + *
+   * Instance data used to populate placeholders in a metric prompt template.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData} + */ + public static final class InstanceData extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + InstanceDataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstanceData"); + } + + // Use InstanceData.newBuilder() to construct. + private InstanceData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstanceData() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder.class); + } + + public interface ContentsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getContentsList(); + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Content getContents(int index); + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getContentsCount(); + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getContentsOrBuilderList(); + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index); + } + + /** + * + * + *
+     * List of standard Content messages from Gemini API.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents} + */ + public static final class Contents extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + ContentsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Contents"); + } + + // Use Contents.newBuilder() to construct. + private Contents(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Contents() { + contents_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder + .class); + } + + public static final int CONTENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List contents_; + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getContentsList() { + return contents_; + } + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getContentsOrBuilderList() { + return contents_; + } + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getContentsCount() { + return contents_.size(); + } + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + return contents_.get(index); + } + + /** + * + * + *
+       * Optional. Repeated contents.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { + return contents_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < contents_.size(); i++) { + output.writeMessage(1, contents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contents_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) obj; + + if (!getContentsList().equals(other.getContentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getContentsCount() > 0) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * List of standard Content messages from Gemini API.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + } else { + contents_ = null; + contentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents result) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance()) return this; + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000001); + contentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetContentsFieldBuilder() + : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), + extensionRegistry); + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(m); + } else { + contentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List contents_ = + java.util.Collections.emptyList(); + + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contents_ = + new java.util.ArrayList(contents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentsBuilder_; + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.set(index, value); + onChanged(); + } else { + contentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.set(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(value); + onChanged(); + } else { + contentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(index, value); + onChanged(); + } else { + contentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllContents( + java.lang.Iterable values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentsBuilder(int index) { + return internalGetContentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder( + int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder() { + return internalGetContentsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(int index) { + return internalGetContentsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. Repeated contents.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getContentsBuilderList() { + return internalGetContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + contents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .Contents + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Contents parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int dataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object data_; + + public enum DataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + CONTENTS(2), + DATA_NOT_SET(0); + private final int value; + + private DataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return CONTENTS; + case 0: + return DATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Text data.
+     * 
+ * + * string text = 1; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
+     * Text data.
+     * 
+ * + * string text = 1; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Text data.
+     * 
+ * + * string text = 1; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENTS_FIELD_NUMBER = 2; + + /** + * + * + *
+     * List of Gemini content data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return Whether the contents field is set. + */ + @java.lang.Override + public boolean hasContents() { + return dataCase_ == 2; + } + + /** + * + * + *
+     * List of Gemini content data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return The contents. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getContents() { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) data_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + + /** + * + * + *
+     * List of Gemini content data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder + getContentsOrBuilder() { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) data_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, data_); + } + if (dataCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, data_); + } + if (dataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + data_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 2: + if (!getContents().equals(other.getContents())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContents().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Instance data used to populate placeholders in a metric prompt template.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentsBuilder_ != null) { + contentsBuilder_.clear(); + } + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 2 && contentsBuilder_ != null) { + result.data_ = contentsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) return this; + switch (other.getDataCase()) { + case TEXT: + { + dataCase_ = 1; + data_ = other.data_; + onChanged(); + break; + } + case CONTENTS: + { + mergeContents(other.getContents()); + break; + } + case DATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 1; + data_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetContentsFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int dataCase_ = 0; + private java.lang.Object data_; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Text data.
+       * 
+ * + * string text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
+       * Text data.
+       * 
+ * + * string text = 1; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Text data.
+       * 
+ * + * string text = 1; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Text data.
+       * 
+ * + * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Text data.
+       * 
+ * + * string text = 1; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Text data.
+       * 
+ * + * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder> + contentsBuilder_; + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return Whether the contents field is set. + */ + @java.lang.Override + public boolean hasContents() { + return dataCase_ == 2; + } + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return The contents. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getContents() { + if (contentsBuilder_ == null) { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + data_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } else { + if (dataCase_ == 2) { + return contentsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public Builder setContents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + contentsBuilder_.setMessage(value); + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public Builder setContents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder + builderForValue) { + if (contentsBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + contentsBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public Builder mergeContents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents value) { + if (contentsBuilder_ == null) { + if (dataCase_ == 2 + && data_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance()) { + data_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .Contents) + data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 2) { + contentsBuilder_.mergeFrom(value); + } else { + contentsBuilder_.setMessage(value); + } + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + } + contentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder + getContentsBuilder() { + return internalGetContentsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder + getContentsOrBuilder() { + if ((dataCase_ == 2) && (contentsBuilder_ != null)) { + return contentsBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + data_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * List of Gemini content data.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder> + internalGetContentsFieldBuilder() { + if (contentsBuilder_ == null) { + if (!(dataCase_ == 2)) { + data_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + contentsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .ContentsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 2; + onChanged(); + return contentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MapInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMapInstanceCount(); + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsMapInstance(java.lang.String key); + + /** Use {@link #getMapInstanceMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstance(); + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstanceMap(); + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getMapInstanceOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData defaultValue); + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getMapInstanceOrThrow( + java.lang.String key); + } + + /** + * + * + *
+   * Instance data specified as a map.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance} + */ + public static final class MapInstance extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + MapInstanceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MapInstance"); + } + + // Use MapInstance.newBuilder() to construct. + private MapInstance(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MapInstance() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMapInstance(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder.class); + } + + public static final int MAP_INSTANCE_FIELD_NUMBER = 1; + + private static final class MapInstanceDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_MapInstanceEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + mapInstance_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + internalGetMapInstance() { + if (mapInstance_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MapInstanceDefaultEntryHolder.defaultEntry); + } + return mapInstance_; + } + + public int getMapInstanceCount() { + return internalGetMapInstance().getMap().size(); + } + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMapInstance(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMapInstance().getMap().containsKey(key); + } + + /** Use {@link #getMapInstanceMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstance() { + return getMapInstanceMap(); + } + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstanceMap() { + return internalGetMapInstance().getMap(); + } + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getMapInstanceOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + map = internalGetMapInstance().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Map of instance data.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getMapInstanceOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + map = internalGetMapInstance().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetMapInstance(), MapInstanceDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + entry : internalGetMapInstance().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + mapInstance__ = + MapInstanceDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mapInstance__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) obj; + + if (!internalGetMapInstance().equals(other.internalGetMapInstance())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetMapInstance().getMap().isEmpty()) { + hash = (37 * hash) + MAP_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + internalGetMapInstance().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Instance data specified as a map.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMapInstance(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableMapInstance(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableMapInstance().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mapInstance_ = + internalGetMapInstance().build(MapInstanceDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance()) return this; + internalGetMutableMapInstance().mergeFrom(other.internalGetMapInstance()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + mapInstance__ = + input.readMessage( + MapInstanceDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMapInstance() + .ensureBuilderMap() + .put(mapInstance__.getKey(), mapInstance__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private static final class MapInstanceConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> { + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData build( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder val) { + if (val instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) val; + } + return ((com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + defaultEntry() { + return MapInstanceDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final MapInstanceConverter mapInstanceConverter = new MapInstanceConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder> + mapInstance_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder> + internalGetMapInstance() { + if (mapInstance_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(mapInstanceConverter); + } + return mapInstance_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder> + internalGetMutableMapInstance() { + if (mapInstance_ == null) { + mapInstance_ = new com.google.protobuf.MapFieldBuilder<>(mapInstanceConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return mapInstance_; + } + + public int getMapInstanceCount() { + return internalGetMapInstance().ensureBuilderMap().size(); + } + + /** + * + * + *
+       * Optional. Map of instance data.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMapInstance(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMapInstance().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getMapInstanceMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstance() { + return getMapInstanceMap(); + } + + /** + * + * + *
+       * Optional. Map of instance data.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstanceMap() { + return internalGetMapInstance().getImmutableMap(); + } + + /** + * + * + *
+       * Optional. Map of instance data.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getMapInstanceOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + map = internalGetMutableMapInstance().ensureBuilderMap(); + return map.containsKey(key) ? mapInstanceConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+       * Optional. Map of instance data.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getMapInstanceOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + map = internalGetMutableMapInstance().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return mapInstanceConverter.build(map.get(key)); + } + + public Builder clearMapInstance() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableMapInstance().clear(); + return this; + } + + /** + * + * + *
+       * Optional. Map of instance data.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMapInstance(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMapInstance().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMutableMapInstance() { + bitField0_ |= 0x00000001; + return internalGetMutableMapInstance().ensureMessageMap(); + } + + /** + * + * + *
+       * Optional. Map of instance data.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putMapInstance( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMapInstance().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+       * Optional. Map of instance data.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllMapInstance( + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableMapInstance().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+       * Optional. Map of instance data.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + putMapInstanceBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + builderMap = internalGetMutableMapInstance().ensureBuilderMap(); + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) { + entry = + ((com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MapInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + public interface DeprecatedAgentDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return Whether the toolsText field is set. + */ + @java.lang.Deprecated + boolean hasToolsText(); + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The toolsText. + */ + @java.lang.Deprecated + java.lang.String getToolsText(); + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The bytes for toolsText. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getToolsTextBytes(); + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return Whether the tools field is set. + */ + @java.lang.Deprecated + boolean hasTools(); + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return The tools. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools getTools(); + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ToolsOrBuilder + getToolsOrBuilder(); + + /** + * + * + *
+     * A list of events.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return Whether the events field is set. + */ + boolean hasEvents(); + + /** + * + * + *
+     * A list of events.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return The events. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events getEvents(); + + /** + * + * + *
+     * A list of events.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.EventsOrBuilder + getEventsOrBuilder(); + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAgentsCount(); + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAgents(java.lang.String key); + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgents(); + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgentsMap(); + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig defaultValue); + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig getAgentsOrThrow( + java.lang.String key); + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + getTurnsList(); + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn + getTurns(int index); + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTurnsCount(); + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + getTurnsOrBuilderList(); + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder + getTurnsOrBuilder(int index); + + /** + * + * + *
+     * Optional. Deprecated:  Use `agents.developer_instruction` or
+     * `turns.events.active_instruction` instead.
+     * A field containing instructions from the developer for the agent.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return Whether the developerInstruction field is set. + */ + @java.lang.Deprecated + boolean hasDeveloperInstruction(); + + /** + * + * + *
+     * Optional. Deprecated:  Use `agents.developer_instruction` or
+     * `turns.events.active_instruction` instead.
+     * A field containing instructions from the developer for the agent.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return The developerInstruction. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getDeveloperInstruction(); + + /** + * + * + *
+     * Optional. Deprecated:  Use `agents.developer_instruction` or
+     * `turns.events.active_instruction` instead.
+     * A field containing instructions from the developer for the agent.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder(); + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Agent configuration.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + boolean hasAgentConfig(); + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Agent configuration.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig getAgentConfig(); + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Agent configuration.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ToolsDataCase + getToolsDataCase(); + + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.EventsDataCase + getEventsDataCase(); + } + + /** + * + * + *
+   * Deprecated: Use `agent_eval_data` instead.
+   * Contains data specific to agent evaluations.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData} + */ + @java.lang.Deprecated + public static final class DeprecatedAgentData extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + DeprecatedAgentDataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeprecatedAgentData"); + } + + // Use DeprecatedAgentData.newBuilder() to construct. + private DeprecatedAgentData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeprecatedAgentData() { + turns_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder + .class); + } + + public interface ConversationTurnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The 0-based index of the turn in the conversation sequence.
+       * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + boolean hasTurnIndex(); + + /** + * + * + *
+       * Required. The 0-based index of the turn in the conversation sequence.
+       * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + int getTurnIndex(); + + /** + * + * + *
+       * Optional. A unique identifier for the turn.
+       * Useful for referencing specific turns across systems.
+       * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + java.lang.String getTurnId(); + + /** + * + * + *
+       * Optional. A unique identifier for the turn.
+       * Useful for referencing specific turns across systems.
+       * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + com.google.protobuf.ByteString getTurnIdBytes(); + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent> + getEventsList(); + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getEvents(int index); + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEventsCount(); + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + getEventsOrBuilderList(); + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder + getEventsOrBuilder(int index); + } + + /** + * + * + *
+     * Represents a single turn/invocation in the conversation.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn} + */ + public static final class ConversationTurn extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + ConversationTurnOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversationTurn"); + } + + // Use ConversationTurn.newBuilder() to construct. + private ConversationTurn(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversationTurn() { + turnId_ = ""; + events_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder.class); + } + + private int bitField0_; + public static final int TURN_INDEX_FIELD_NUMBER = 1; + private int turnIndex_ = 0; + + /** + * + * + *
+       * Required. The 0-based index of the turn in the conversation sequence.
+       * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + @java.lang.Override + public boolean hasTurnIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Required. The 0-based index of the turn in the conversation sequence.
+       * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + public static final int TURN_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object turnId_ = ""; + + /** + * + * + *
+       * Optional. A unique identifier for the turn.
+       * Useful for referencing specific turns across systems.
+       * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + @java.lang.Override + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. A unique identifier for the turn.
+       * Useful for referencing specific turns across systems.
+       * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent> + events_; + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent> + getEventsList() { + return events_; + } + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + getEventsOrBuilderList() { + return events_; + } + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getEventsCount() { + return events_.size(); + } + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getEvents(int index) { + return events_.get(index); + } + + /** + * + * + *
+       * Optional. The list of events that occurred during this turn.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder + getEventsOrBuilder(int index) { + return events_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, turnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, turnId_); + } + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(3, events_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, turnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, turnId_); + } + for (int i = 0; i < events_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, events_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn + other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn) + obj; + + if (hasTurnIndex() != other.hasTurnIndex()) return false; + if (hasTurnIndex()) { + if (getTurnIndex() != other.getTurnIndex()) return false; + } + if (!getTurnId().equals(other.getTurnId())) return false; + if (!getEventsList().equals(other.getEventsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTurnIndex()) { + hash = (37 * hash) + TURN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTurnIndex(); + } + hash = (37 * hash) + TURN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTurnId().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Represents a single turn/invocation in the conversation.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + turnIndex_ = 0; + turnId_ = ""; + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + } else { + events_ = null; + eventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + result) { + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.turnIndex_ = turnIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.turnId_ = turnId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.getDefaultInstance()) return this; + if (other.hasTurnIndex()) { + setTurnIndex(other.getTurnIndex()); + } + if (!other.getTurnId().isEmpty()) { + turnId_ = other.turnId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + eventsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEventsFieldBuilder() + : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + turnIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + turnId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.AgentEvent.parser(), + extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int turnIndex_; + + /** + * + * + *
+         * Required. The 0-based index of the turn in the conversation sequence.
+         * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + @java.lang.Override + public boolean hasTurnIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Required. The 0-based index of the turn in the conversation sequence.
+         * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + /** + * + * + *
+         * Required. The 0-based index of the turn in the conversation sequence.
+         * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The turnIndex to set. + * @return This builder for chaining. + */ + public Builder setTurnIndex(int value) { + + turnIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The 0-based index of the turn in the conversation sequence.
+         * 
+ * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTurnIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + turnIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object turnId_ = ""; + + /** + * + * + *
+         * Optional. A unique identifier for the turn.
+         * Useful for referencing specific turns across systems.
+         * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. A unique identifier for the turn.
+         * Useful for referencing specific turns across systems.
+         * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. A unique identifier for the turn.
+         * Useful for referencing specific turns across systems.
+         * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. A unique identifier for the turn.
+         * Useful for referencing specific turns across systems.
+         * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTurnId() { + turnId_ = getDefaultInstance().getTurnId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. A unique identifier for the turn.
+         * Useful for referencing specific turns across systems.
+         * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent> + events_ = java.util.Collections.emptyList(); + + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + events_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent>(events_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + eventsBuilder_; + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent> + getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvents( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvents( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllEvents( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent> + values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + getEventsBuilder(int index) { + return internalGetEventsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder + getEventsOrBuilder(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + addEventsBuilder() { + return internalGetEventsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + addEventsBuilder(int index) { + return internalGetEventsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. The list of events that occurred during this turn.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder> + getEventsBuilderList() { + return internalGetEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + internalGetEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder>( + events_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + events_ = null; + } + return eventsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.ConversationTurn + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationTurn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The ID of the agent or entity that generated this event.
+       * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + boolean hasAuthor(); + + /** + * + * + *
+       * Required. The ID of the agent or entity that generated this event.
+       * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
+       * Required. The ID of the agent or entity that generated this event.
+       * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
+       * Required. The content of the event (e.g., text response, tool call,
+       * tool response).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
+       * Required. The content of the event (e.g., text response, tool call,
+       * tool response).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + com.google.cloud.aiplatform.v1beta1.Content getContent(); + + /** + * + * + *
+       * Required. The content of the event (e.g., text response, tool call,
+       * tool response).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
+       * Optional. The timestamp when the event occurred.
+       * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
+       * Optional. The timestamp when the event occurred.
+       * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
+       * Optional. The timestamp when the event occurred.
+       * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
+       * Optional. The change in the session state caused by this event. This is
+       * a key-value map of fields that were modified or added by the event.
+       * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stateDelta field is set. + */ + boolean hasStateDelta(); + + /** + * + * + *
+       * Optional. The change in the session state caused by this event. This is
+       * a key-value map of fields that were modified or added by the event.
+       * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stateDelta. + */ + com.google.protobuf.Struct getStateDelta(); + + /** + * + * + *
+       * Optional. The change in the session state caused by this event. This is
+       * a key-value map of fields that were modified or added by the event.
+       * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder(); + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getActiveToolsList(); + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index); + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getActiveToolsCount(); + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getActiveToolsOrBuilderList(); + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index); + } + + /** + * + * + *
+     * A single event in the execution trace.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent} + */ + public static final class AgentEvent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + AgentEventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentEvent"); + } + + // Use AgentEvent.newBuilder() to construct. + private AgentEvent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentEvent() { + author_ = ""; + activeTools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder.class); + } + + private int bitField0_; + public static final int AUTHOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
+       * Required. The ID of the agent or entity that generated this event.
+       * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Required. The ID of the agent or entity that generated this event.
+       * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. The ID of the agent or entity that generated this event.
+       * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Content content_; + + /** + * + * + *
+       * Required. The content of the event (e.g., text response, tool call,
+       * tool response).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Required. The content of the event (e.g., text response, tool call,
+       * tool response).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + /** + * + * + *
+       * Required. The content of the event (e.g., text response, tool call,
+       * tool response).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
+       * Optional. The timestamp when the event occurred.
+       * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. The timestamp when the event occurred.
+       * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
+       * Optional. The timestamp when the event occurred.
+       * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int STATE_DELTA_FIELD_NUMBER = 4; + private com.google.protobuf.Struct stateDelta_; + + /** + * + * + *
+       * Optional. The change in the session state caused by this event. This is
+       * a key-value map of fields that were modified or added by the event.
+       * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stateDelta field is set. + */ + @java.lang.Override + public boolean hasStateDelta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Optional. The change in the session state caused by this event. This is
+       * a key-value map of fields that were modified or added by the event.
+       * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stateDelta. + */ + @java.lang.Override + public com.google.protobuf.Struct getStateDelta() { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + + /** + * + * + *
+       * Optional. The change in the session state caused by this event. This is
+       * a key-value map of fields that were modified or added by the event.
+       * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder() { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + + public static final int ACTIVE_TOOLS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List activeTools_; + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getActiveToolsList() { + return activeTools_; + } + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getActiveToolsOrBuilderList() { + return activeTools_; + } + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getActiveToolsCount() { + return activeTools_.size(); + } + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index) { + return activeTools_.get(index); + } + + /** + * + * + *
+       * Optional. The list of tools that were active/available to the agent at
+       * the time of this event. This overrides the `AgentConfig.tools` if set.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index) { + return activeTools_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, author_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEventTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getStateDelta()); + } + for (int i = 0; i < activeTools_.size(); i++) { + output.writeMessage(5, activeTools_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, author_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateDelta()); + } + for (int i = 0; i < activeTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, activeTools_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent) + obj; + + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor().equals(other.getAuthor())) return false; + } + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (hasStateDelta() != other.hasStateDelta()) return false; + if (hasStateDelta()) { + if (!getStateDelta().equals(other.getStateDelta())) return false; + } + if (!getActiveToolsList().equals(other.getActiveToolsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasStateDelta()) { + hash = (37 * hash) + STATE_DELTA_FIELD_NUMBER; + hash = (53 * hash) + getStateDelta().hashCode(); + } + if (getActiveToolsCount() > 0) { + hash = (37 * hash) + ACTIVE_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getActiveToolsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * A single event in the execution trace.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + internalGetEventTimeFieldBuilder(); + internalGetStateDeltaFieldBuilder(); + internalGetActiveToolsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + author_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + stateDelta_ = null; + if (stateDeltaBuilder_ != null) { + stateDeltaBuilder_.dispose(); + stateDeltaBuilder_ = null; + } + if (activeToolsBuilder_ == null) { + activeTools_ = java.util.Collections.emptyList(); + } else { + activeTools_ = null; + activeToolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + result) { + if (activeToolsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + activeTools_ = java.util.Collections.unmodifiableList(activeTools_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.activeTools_ = activeTools_; + } else { + result.activeTools_ = activeToolsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.author_ = author_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stateDelta_ = + stateDeltaBuilder_ == null ? stateDelta_ : stateDeltaBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.getDefaultInstance()) return this; + if (other.hasAuthor()) { + author_ = other.author_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasStateDelta()) { + mergeStateDelta(other.getStateDelta()); + } + if (activeToolsBuilder_ == null) { + if (!other.activeTools_.isEmpty()) { + if (activeTools_.isEmpty()) { + activeTools_ = other.activeTools_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureActiveToolsIsMutable(); + activeTools_.addAll(other.activeTools_); + } + onChanged(); + } + } else { + if (!other.activeTools_.isEmpty()) { + if (activeToolsBuilder_.isEmpty()) { + activeToolsBuilder_.dispose(); + activeToolsBuilder_ = null; + activeTools_ = other.activeTools_; + bitField0_ = (bitField0_ & ~0x00000010); + activeToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetActiveToolsFieldBuilder() + : null; + } else { + activeToolsBuilder_.addAllMessages(other.activeTools_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetStateDeltaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.aiplatform.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(m); + } else { + activeToolsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object author_ = ""; + + /** + * + * + *
+         * Required. The ID of the agent or entity that generated this event.
+         * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Required. The ID of the agent or entity that generated this event.
+         * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The ID of the agent or entity that generated this event.
+         * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The ID of the agent or entity that generated this event.
+         * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The ID of the agent or entity that generated this event.
+         * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The ID of the agent or entity that generated this event.
+         * 
+ * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Content content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContent( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
+         * Required. The content of the event (e.g., text response, tool call,
+         * tool response).
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : eventTime_; + } + } + + /** + * + * + *
+         * Optional. The timestamp when the event occurred.
+         * 
+ * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.protobuf.Struct stateDelta_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + stateDeltaBuilder_; + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stateDelta field is set. + */ + public boolean hasStateDelta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stateDelta. + */ + public com.google.protobuf.Struct getStateDelta() { + if (stateDeltaBuilder_ == null) { + return stateDelta_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : stateDelta_; + } else { + return stateDeltaBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStateDelta(com.google.protobuf.Struct value) { + if (stateDeltaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateDelta_ = value; + } else { + stateDeltaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStateDelta(com.google.protobuf.Struct.Builder builderForValue) { + if (stateDeltaBuilder_ == null) { + stateDelta_ = builderForValue.build(); + } else { + stateDeltaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStateDelta(com.google.protobuf.Struct value) { + if (stateDeltaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && stateDelta_ != null + && stateDelta_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStateDeltaBuilder().mergeFrom(value); + } else { + stateDelta_ = value; + } + } else { + stateDeltaBuilder_.mergeFrom(value); + } + if (stateDelta_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStateDelta() { + bitField0_ = (bitField0_ & ~0x00000008); + stateDelta_ = null; + if (stateDeltaBuilder_ != null) { + stateDeltaBuilder_.dispose(); + stateDeltaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getStateDeltaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetStateDeltaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder() { + if (stateDeltaBuilder_ != null) { + return stateDeltaBuilder_.getMessageOrBuilder(); + } else { + return stateDelta_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : stateDelta_; + } + } + + /** + * + * + *
+         * Optional. The change in the session state caused by this event. This is
+         * a key-value map of fields that were modified or added by the event.
+         * 
+ * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetStateDeltaFieldBuilder() { + if (stateDeltaBuilder_ == null) { + stateDeltaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStateDelta(), getParentForChildren(), isClean()); + stateDelta_ = null; + } + return stateDeltaBuilder_; + } + + private java.util.List activeTools_ = + java.util.Collections.emptyList(); + + private void ensureActiveToolsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + activeTools_ = + new java.util.ArrayList(activeTools_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + activeToolsBuilder_; + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getActiveToolsList() { + if (activeToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(activeTools_); + } else { + return activeToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getActiveToolsCount() { + if (activeToolsBuilder_ == null) { + return activeTools_.size(); + } else { + return activeToolsBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index) { + if (activeToolsBuilder_ == null) { + return activeTools_.get(index); + } else { + return activeToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActiveTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.set(index, value); + onChanged(); + } else { + activeToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActiveTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.set(index, builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.add(value); + onChanged(); + } else { + activeToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.add(index, value); + onChanged(); + } else { + activeToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools( + com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(index, builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllActiveTools( + java.lang.Iterable values) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activeTools_); + onChanged(); + } else { + activeToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearActiveTools() { + if (activeToolsBuilder_ == null) { + activeTools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + activeToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeActiveTools(int index) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.remove(index); + onChanged(); + } else { + activeToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getActiveToolsBuilder(int index) { + return internalGetActiveToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder( + int index) { + if (activeToolsBuilder_ == null) { + return activeTools_.get(index); + } else { + return activeToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getActiveToolsOrBuilderList() { + if (activeToolsBuilder_ != null) { + return activeToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activeTools_); + } + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addActiveToolsBuilder() { + return internalGetActiveToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addActiveToolsBuilder(int index) { + return internalGetActiveToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. The list of tools that were active/available to the agent at
+         * the time of this event. This overrides the `AgentConfig.tools` if set.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getActiveToolsBuilderList() { + return internalGetActiveToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetActiveToolsFieldBuilder() { + if (activeToolsBuilder_ == null) { + activeToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + activeTools_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + activeTools_ = null; + } + return activeToolsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.AgentEvent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + java.util.List getToolList(); + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.Tool getTool(int index); + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + int getToolCount(); + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + java.util.List + getToolOrBuilderList(); + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index); + } + + /** + * + * + *
+     * Deprecated: Use `agent_eval_data` instead. Represents a list of tools for
+     * an agent.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools} + */ + public static final class Tools extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + ToolsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Tools"); + } + + // Use Tools.newBuilder() to construct. + private Tools(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Tools() { + tool_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder.class); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tool_; + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getToolList() { + return tool_; + } + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getToolOrBuilderList() { + return tool_; + } + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getToolCount() { + return tool_.size(); + } + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool getTool(int index) { + return tool_.get(index); + } + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index) { + return tool_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < tool_.size(); i++) { + output.writeMessage(1, tool_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tool_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tool_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) obj; + + if (!getToolList().equals(other.getToolList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolCount() > 0) { + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Deprecated: Use `agent_eval_data` instead. Represents a list of tools for
+       * an agent.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolBuilder_ == null) { + tool_ = java.util.Collections.emptyList(); + } else { + tool_ = null; + toolBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + result) { + if (toolBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tool_ = java.util.Collections.unmodifiableList(tool_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tool_ = tool_; + } else { + result.tool_ = toolBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance()) return this; + if (toolBuilder_ == null) { + if (!other.tool_.isEmpty()) { + if (tool_.isEmpty()) { + tool_ = other.tool_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolIsMutable(); + tool_.addAll(other.tool_); + } + onChanged(); + } + } else { + if (!other.tool_.isEmpty()) { + if (toolBuilder_.isEmpty()) { + toolBuilder_.dispose(); + toolBuilder_ = null; + tool_ = other.tool_; + bitField0_ = (bitField0_ & ~0x00000001); + toolBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolFieldBuilder() + : null; + } else { + toolBuilder_.addAllMessages(other.tool_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(m); + } else { + toolBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List tool_ = + java.util.Collections.emptyList(); + + private void ensureToolIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tool_ = new java.util.ArrayList(tool_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + toolBuilder_; + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public java.util.List getToolList() { + if (toolBuilder_ == null) { + return java.util.Collections.unmodifiableList(tool_); + } else { + return toolBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public int getToolCount() { + if (toolBuilder_ == null) { + return tool_.size(); + } else { + return toolBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool getTool(int index) { + if (toolBuilder_ == null) { + return tool_.get(index); + } else { + return toolBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setTool(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.set(index, value); + onChanged(); + } else { + toolBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setTool( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.set(index, builderForValue.build()); + onChanged(); + } else { + toolBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addTool(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.add(value); + onChanged(); + } else { + toolBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addTool(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.add(index, value); + onChanged(); + } else { + toolBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addTool(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(builderForValue.build()); + onChanged(); + } else { + toolBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addTool( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(index, builderForValue.build()); + onChanged(); + } else { + toolBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addAllTool( + java.lang.Iterable values) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tool_); + onChanged(); + } else { + toolBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearTool() { + if (toolBuilder_ == null) { + tool_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder removeTool(int index) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.remove(index); + onChanged(); + } else { + toolBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolBuilder(int index) { + return internalGetToolFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index) { + if (toolBuilder_ == null) { + return tool_.get(index); + } else { + return toolBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public java.util.List + getToolOrBuilderList() { + if (toolBuilder_ != null) { + return toolBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tool_); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolBuilder() { + return internalGetToolFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolBuilder(int index) { + return internalGetToolFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public java.util.List + getToolBuilderList() { + return internalGetToolFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetToolFieldBuilder() { + if (toolBuilder_ == null) { + toolBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + tool_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tool_ = null; + } + return toolBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.Tools + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tools parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EventsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getEventList(); + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Content getEvent(int index); + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEventCount(); + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getEventOrBuilderList(); + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getEventOrBuilder(int index); + } + + /** + * + * + *
+     * Represents a list of events for an agent.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events} + */ + public static final class Events extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + EventsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Events"); + } + + // Use Events.newBuilder() to construct. + private Events(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Events() { + event_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder.class); + } + + public static final int EVENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List event_; + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getEventList() { + return event_; + } + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getEventOrBuilderList() { + return event_; + } + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getEventCount() { + return event_.size(); + } + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getEvent(int index) { + return event_.get(index); + } + + /** + * + * + *
+       * Optional. A list of events.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getEventOrBuilder(int index) { + return event_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < event_.size(); i++) { + output.writeMessage(1, event_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < event_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, event_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) obj; + + if (!getEventList().equals(other.getEventList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventCount() > 0) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEventList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Represents a list of events for an agent.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (eventBuilder_ == null) { + event_ = java.util.Collections.emptyList(); + } else { + event_ = null; + eventBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + result) { + if (eventBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + event_ = java.util.Collections.unmodifiableList(event_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.event_ = event_; + } else { + result.event_ = eventBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance()) return this; + if (eventBuilder_ == null) { + if (!other.event_.isEmpty()) { + if (event_.isEmpty()) { + event_ = other.event_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventIsMutable(); + event_.addAll(other.event_); + } + onChanged(); + } + } else { + if (!other.event_.isEmpty()) { + if (eventBuilder_.isEmpty()) { + eventBuilder_.dispose(); + eventBuilder_ = null; + event_ = other.event_; + bitField0_ = (bitField0_ & ~0x00000001); + eventBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEventFieldBuilder() + : null; + } else { + eventBuilder_.addAllMessages(other.event_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), + extensionRegistry); + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.add(m); + } else { + eventBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List event_ = + java.util.Collections.emptyList(); + + private void ensureEventIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + event_ = new java.util.ArrayList(event_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + eventBuilder_; + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getEventList() { + if (eventBuilder_ == null) { + return java.util.Collections.unmodifiableList(event_); + } else { + return eventBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getEventCount() { + if (eventBuilder_ == null) { + return event_.size(); + } else { + return eventBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content getEvent(int index) { + if (eventBuilder_ == null) { + return event_.get(index); + } else { + return eventBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvent(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventIsMutable(); + event_.set(index, value); + onChanged(); + } else { + eventBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvent( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.set(index, builderForValue.build()); + onChanged(); + } else { + eventBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventIsMutable(); + event_.add(value); + onChanged(); + } else { + eventBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvent(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventIsMutable(); + event_.add(index, value); + onChanged(); + } else { + eventBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvent( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.add(builderForValue.build()); + onChanged(); + } else { + eventBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvent( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.add(index, builderForValue.build()); + onChanged(); + } else { + eventBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllEvent( + java.lang.Iterable values) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, event_); + onChanged(); + } else { + eventBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEvent(int index) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.remove(index); + onChanged(); + } else { + eventBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getEventBuilder(int index) { + return internalGetEventFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getEventOrBuilder(int index) { + if (eventBuilder_ == null) { + return event_.get(index); + } else { + return eventBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEventOrBuilderList() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(event_); + } + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addEventBuilder() { + return internalGetEventFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addEventBuilder(int index) { + return internalGetEventFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. A list of events.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEventBuilderList() { + return internalGetEventFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + event_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + event_ = null; + } + return eventBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.Events + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Events parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int toolsDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolsData_; + + public enum ToolsDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated + TOOLS_TEXT(1), + @java.lang.Deprecated + TOOLS(2), + TOOLSDATA_NOT_SET(0); + private final int value; + + private ToolsDataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolsDataCase valueOf(int value) { + return forNumber(value); + } + + public static ToolsDataCase forNumber(int value) { + switch (value) { + case 1: + return TOOLS_TEXT; + case 2: + return TOOLS; + case 0: + return TOOLSDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolsDataCase getToolsDataCase() { + return ToolsDataCase.forNumber(toolsDataCase_); + } + + private int eventsDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object eventsData_; + + public enum EventsDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVENTS(5), + EVENTSDATA_NOT_SET(0); + private final int value; + + private EventsDataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventsDataCase valueOf(int value) { + return forNumber(value); + } + + public static EventsDataCase forNumber(int value) { + switch (value) { + case 5: + return EVENTS; + case 0: + return EVENTSDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventsDataCase getEventsDataCase() { + return EventsDataCase.forNumber(eventsDataCase_); + } + + public static final int TOOLS_TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return Whether the toolsText field is set. + */ + @java.lang.Deprecated + public boolean hasToolsText() { + return toolsDataCase_ == 1; + } + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The toolsText. + */ + @java.lang.Deprecated + public java.lang.String getToolsText() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolsDataCase_ == 1) { + toolsData_ = s; + } + return s; + } + } + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The bytes for toolsText. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolsTextBytes() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolsDataCase_ == 1) { + toolsData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLS_FIELD_NUMBER = 2; + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return Whether the tools field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasTools() { + return toolsDataCase_ == 2; + } + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return The tools. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getTools() { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ToolsOrBuilder + getToolsOrBuilder() { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + + public static final int EVENTS_FIELD_NUMBER = 5; + + /** + * + * + *
+     * A list of events.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return Whether the events field is set. + */ + @java.lang.Override + public boolean hasEvents() { + return eventsDataCase_ == 5; + } + + /** + * + * + *
+     * A list of events.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return The events. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + getEvents() { + if (eventsDataCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + eventsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + + /** + * + * + *
+     * A list of events.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder + getEventsOrBuilder() { + if (eventsDataCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + eventsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + + public static final int AGENTS_FIELD_NUMBER = 7; + + private static final class AgentsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + agents_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + internalGetAgents() { + if (agents_ == null) { + return com.google.protobuf.MapField.emptyMapField(AgentsDefaultEntryHolder.defaultEntry); + } + return agents_; + } + + public int getAgentsCount() { + return internalGetAgents().getMap().size(); + } + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAgents().getMap().containsKey(key); + } + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgents() { + return getAgentsMap(); + } + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgentsMap() { + return internalGetAgents().getMap(); + } + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig + getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + map = internalGetAgents().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The static Agent Configuration.
+     * This map defines the graph structure of the agent system.
+     * Key: agent_id (matches the `author` field in events).
+     * Value: The static configuration of the agent (tools, instructions,
+     * sub-agents).
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + map = internalGetAgents().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TURNS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + turns_; + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + getTurnsList() { + return turns_; + } + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + getTurnsOrBuilderList() { + return turns_; + } + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTurnsCount() { + return turns_.size(); + } + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getTurns(int index) { + return turns_.get(index); + } + + /** + * + * + *
+     * Optional. The chronological list of conversation turns.
+     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+     * Response).
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder + getTurnsOrBuilder(int index) { + return turns_.get(index); + } + + public static final int DEVELOPER_INSTRUCTION_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + developerInstruction_; + + /** + * + * + *
+     * Optional. Deprecated:  Use `agents.developer_instruction` or
+     * `turns.events.active_instruction` instead.
+     * A field containing instructions from the developer for the agent.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return Whether the developerInstruction field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasDeveloperInstruction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Deprecated:  Use `agents.developer_instruction` or
+     * `turns.events.active_instruction` instead.
+     * A field containing instructions from the developer for the agent.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return The developerInstruction. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDeveloperInstruction() { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : developerInstruction_; + } + + /** + * + * + *
+     * Optional. Deprecated:  Use `agents.developer_instruction` or
+     * `turns.events.active_instruction` instead.
+     * A field containing instructions from the developer for the agent.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder() { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : developerInstruction_; + } + + public static final int AGENT_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + agentConfig_; + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Agent configuration.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + @java.lang.Override + public boolean hasAgentConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Agent configuration.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentConfig() { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Agent configuration.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder() { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (toolsDataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolsData_); + } + if (toolsDataCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDeveloperInstruction()); + } + if (eventsDataCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + eventsData_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getAgentConfig()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAgents(), AgentsDefaultEntryHolder.defaultEntry, 7); + for (int i = 0; i < turns_.size(); i++) { + output.writeMessage(8, turns_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolsDataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolsData_); + } + if (toolsDataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeveloperInstruction()); + } + if (eventsDataCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + eventsData_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAgentConfig()); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + entry : internalGetAgents().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + agents__ = + AgentsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, agents__); + } + for (int i = 0; i < turns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, turns_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) obj; + + if (!internalGetAgents().equals(other.internalGetAgents())) return false; + if (!getTurnsList().equals(other.getTurnsList())) return false; + if (hasDeveloperInstruction() != other.hasDeveloperInstruction()) return false; + if (hasDeveloperInstruction()) { + if (!getDeveloperInstruction().equals(other.getDeveloperInstruction())) return false; + } + if (hasAgentConfig() != other.hasAgentConfig()) return false; + if (hasAgentConfig()) { + if (!getAgentConfig().equals(other.getAgentConfig())) return false; + } + if (!getToolsDataCase().equals(other.getToolsDataCase())) return false; + switch (toolsDataCase_) { + case 1: + if (!getToolsText().equals(other.getToolsText())) return false; + break; + case 2: + if (!getTools().equals(other.getTools())) return false; + break; + case 0: + default: + } + if (!getEventsDataCase().equals(other.getEventsDataCase())) return false; + switch (eventsDataCase_) { + case 5: + if (!getEvents().equals(other.getEvents())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetAgents().getMap().isEmpty()) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAgents().hashCode(); + } + if (getTurnsCount() > 0) { + hash = (37 * hash) + TURNS_FIELD_NUMBER; + hash = (53 * hash) + getTurnsList().hashCode(); + } + if (hasDeveloperInstruction()) { + hash = (37 * hash) + DEVELOPER_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperInstruction().hashCode(); + } + if (hasAgentConfig()) { + hash = (37 * hash) + AGENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentConfig().hashCode(); + } + switch (toolsDataCase_) { + case 1: + hash = (37 * hash) + TOOLS_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getToolsText().hashCode(); + break; + case 2: + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getTools().hashCode(); + break; + case 0: + default: + } + switch (eventsDataCase_) { + case 5: + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEvents().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Deprecated: Use `agent_eval_data` instead.
+     * Contains data specific to agent evaluations.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTurnsFieldBuilder(); + internalGetDeveloperInstructionFieldBuilder(); + internalGetAgentConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsBuilder_ != null) { + toolsBuilder_.clear(); + } + if (eventsBuilder_ != null) { + eventsBuilder_.clear(); + } + internalGetMutableAgents().clear(); + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + } else { + turns_ = null; + turnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + developerInstruction_ = null; + if (developerInstructionBuilder_ != null) { + developerInstructionBuilder_.dispose(); + developerInstructionBuilder_ = null; + } + agentConfig_ = null; + if (agentConfigBuilder_ != null) { + agentConfigBuilder_.dispose(); + agentConfigBuilder_ = null; + } + toolsDataCase_ = 0; + toolsData_ = null; + eventsDataCase_ = 0; + eventsData_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result) { + if (turnsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + turns_ = java.util.Collections.unmodifiableList(turns_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.turns_ = turns_; + } else { + result.turns_ = turnsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.agents_ = internalGetAgents().build(AgentsDefaultEntryHolder.defaultEntry); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.developerInstruction_ = + developerInstructionBuilder_ == null + ? developerInstruction_ + : developerInstructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.agentConfig_ = + agentConfigBuilder_ == null ? agentConfig_ : agentConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result) { + result.toolsDataCase_ = toolsDataCase_; + result.toolsData_ = this.toolsData_; + if (toolsDataCase_ == 2 && toolsBuilder_ != null) { + result.toolsData_ = toolsBuilder_.build(); + } + result.eventsDataCase_ = eventsDataCase_; + result.eventsData_ = this.eventsData_; + if (eventsDataCase_ == 5 && eventsBuilder_ != null) { + result.eventsData_ = eventsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance()) return this; + internalGetMutableAgents().mergeFrom(other.internalGetAgents()); + bitField0_ |= 0x00000008; + if (turnsBuilder_ == null) { + if (!other.turns_.isEmpty()) { + if (turns_.isEmpty()) { + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTurnsIsMutable(); + turns_.addAll(other.turns_); + } + onChanged(); + } + } else { + if (!other.turns_.isEmpty()) { + if (turnsBuilder_.isEmpty()) { + turnsBuilder_.dispose(); + turnsBuilder_ = null; + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000010); + turnsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTurnsFieldBuilder() + : null; + } else { + turnsBuilder_.addAllMessages(other.turns_); + } + } + } + if (other.hasDeveloperInstruction()) { + mergeDeveloperInstruction(other.getDeveloperInstruction()); + } + if (other.hasAgentConfig()) { + mergeAgentConfig(other.getAgentConfig()); + } + switch (other.getToolsDataCase()) { + case TOOLS_TEXT: + { + toolsDataCase_ = 1; + toolsData_ = other.toolsData_; + onChanged(); + break; + } + case TOOLS: + { + mergeTools(other.getTools()); + break; + } + case TOOLSDATA_NOT_SET: + { + break; + } + } + switch (other.getEventsDataCase()) { + case EVENTS: + { + mergeEvents(other.getEvents()); + break; + } + case EVENTSDATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + toolsDataCase_ = 1; + toolsData_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetToolsFieldBuilder().getBuilder(), extensionRegistry); + toolsDataCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDeveloperInstructionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetEventsFieldBuilder().getBuilder(), extensionRegistry); + eventsDataCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetAgentConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig> + agents__ = + input.readMessage( + AgentsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAgents() + .ensureBuilderMap() + .put(agents__.getKey(), agents__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 66: + { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.ConversationTurn.parser(), + extensionRegistry); + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(m); + } else { + turnsBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolsDataCase_ = 0; + private java.lang.Object toolsData_; + + public ToolsDataCase getToolsDataCase() { + return ToolsDataCase.forNumber(toolsDataCase_); + } + + public Builder clearToolsData() { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + return this; + } + + private int eventsDataCase_ = 0; + private java.lang.Object eventsData_; + + public EventsDataCase getEventsDataCase() { + return EventsDataCase.forNumber(eventsDataCase_); + } + + public Builder clearEventsData() { + eventsDataCase_ = 0; + eventsData_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return Whether the toolsText field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasToolsText() { + return toolsDataCase_ == 1; + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The toolsText. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getToolsText() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolsDataCase_ == 1) { + toolsData_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The bytes for toolsText. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolsTextBytes() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolsDataCase_ == 1) { + toolsData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @param value The toolsText to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setToolsText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolsDataCase_ = 1; + toolsData_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearToolsText() { + if (toolsDataCase_ == 1) { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @param value The bytes for toolsText to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setToolsTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolsDataCase_ = 1; + toolsData_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder> + toolsBuilder_; + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return Whether the tools field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasTools() { + return toolsDataCase_ == 2; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return The tools. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getTools() { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } else { + if (toolsDataCase_ == 2) { + return toolsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolsData_ = value; + onChanged(); + } else { + toolsBuilder_.setMessage(value); + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools.Builder + builderForValue) { + if (toolsBuilder_ == null) { + toolsData_ = builderForValue.build(); + onChanged(); + } else { + toolsBuilder_.setMessage(builderForValue.build()); + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools value) { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2 + && toolsData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Tools.getDefaultInstance()) { + toolsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Tools) + toolsData_) + .mergeFrom(value) + .buildPartial(); + } else { + toolsData_ = value; + } + onChanged(); + } else { + if (toolsDataCase_ == 2) { + toolsBuilder_.mergeFrom(value); + } else { + toolsBuilder_.setMessage(value); + } + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearTools() { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2) { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + } + } else { + if (toolsDataCase_ == 2) { + toolsDataCase_ = 0; + toolsData_ = null; + } + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder + getToolsBuilder() { + return internalGetToolsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder + getToolsOrBuilder() { + if ((toolsDataCase_ == 2) && (toolsBuilder_ != null)) { + return toolsBuilder_.getMessageOrBuilder(); + } else { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + if (!(toolsDataCase_ == 2)) { + toolsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + toolsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_, + getParentForChildren(), + isClean()); + toolsData_ = null; + } + toolsDataCase_ = 2; + onChanged(); + return toolsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder> + eventsBuilder_; + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return Whether the events field is set. + */ + @java.lang.Override + public boolean hasEvents() { + return eventsDataCase_ == 5; + } + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return The events. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + getEvents() { + if (eventsBuilder_ == null) { + if (eventsDataCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events) + eventsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } else { + if (eventsDataCase_ == 5) { + return eventsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public Builder setEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventsData_ = value; + onChanged(); + } else { + eventsBuilder_.setMessage(value); + } + eventsDataCase_ = 5; + return this; + } + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public Builder setEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events.Builder + builderForValue) { + if (eventsBuilder_ == null) { + eventsData_ = builderForValue.build(); + onChanged(); + } else { + eventsBuilder_.setMessage(builderForValue.build()); + } + eventsDataCase_ = 5; + return this; + } + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public Builder mergeEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events value) { + if (eventsBuilder_ == null) { + if (eventsDataCase_ == 5 + && eventsData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events.getDefaultInstance()) { + eventsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events) + eventsData_) + .mergeFrom(value) + .buildPartial(); + } else { + eventsData_ = value; + } + onChanged(); + } else { + if (eventsDataCase_ == 5) { + eventsBuilder_.mergeFrom(value); + } else { + eventsBuilder_.setMessage(value); + } + } + eventsDataCase_ = 5; + return this; + } + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + if (eventsDataCase_ == 5) { + eventsDataCase_ = 0; + eventsData_ = null; + onChanged(); + } + } else { + if (eventsDataCase_ == 5) { + eventsDataCase_ = 0; + eventsData_ = null; + } + eventsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder + getEventsBuilder() { + return internalGetEventsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder + getEventsOrBuilder() { + if ((eventsDataCase_ == 5) && (eventsBuilder_ != null)) { + return eventsBuilder_.getMessageOrBuilder(); + } else { + if (eventsDataCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events) + eventsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * A list of events.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder> + internalGetEventsFieldBuilder() { + if (eventsBuilder_ == null) { + if (!(eventsDataCase_ == 5)) { + eventsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + eventsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events) + eventsData_, + getParentForChildren(), + isClean()); + eventsData_ = null; + } + eventsDataCase_ = 5; + onChanged(); + return eventsBuilder_; + } + + private static final class AgentsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> { + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig build( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + val) { + if (val + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + val; + } + return ((com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + defaultEntry() { + return AgentsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final AgentsConverter agentsConverter = new AgentsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder> + agents_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder> + internalGetAgents() { + if (agents_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(agentsConverter); + } + return agents_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder> + internalGetMutableAgents() { + if (agents_ == null) { + agents_ = new com.google.protobuf.MapFieldBuilder<>(agentsConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return agents_; + } + + public int getAgentsCount() { + return internalGetAgents().ensureBuilderMap().size(); + } + + /** + * + * + *
+       * Optional. The static Agent Configuration.
+       * This map defines the graph structure of the agent system.
+       * Key: agent_id (matches the `author` field in events).
+       * Value: The static configuration of the agent (tools, instructions,
+       * sub-agents).
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAgents().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgents() { + return getAgentsMap(); + } + + /** + * + * + *
+       * Optional. The static Agent Configuration.
+       * This map defines the graph structure of the agent system.
+       * Key: agent_id (matches the `author` field in events).
+       * Value: The static configuration of the agent (tools, instructions,
+       * sub-agents).
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgentsMap() { + return internalGetAgents().getImmutableMap(); + } + + /** + * + * + *
+       * Optional. The static Agent Configuration.
+       * This map defines the graph structure of the agent system.
+       * Key: agent_id (matches the `author` field in events).
+       * Value: The static configuration of the agent (tools, instructions,
+       * sub-agents).
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig + getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder> + map = internalGetMutableAgents().ensureBuilderMap(); + return map.containsKey(key) ? agentsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+       * Optional. The static Agent Configuration.
+       * This map defines the graph structure of the agent system.
+       * Key: agent_id (matches the `author` field in events).
+       * Value: The static configuration of the agent (tools, instructions,
+       * sub-agents).
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder> + map = internalGetMutableAgents().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return agentsConverter.build(map.get(key)); + } + + public Builder clearAgents() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableAgents().clear(); + return this; + } + + /** + * + * + *
+       * Optional. The static Agent Configuration.
+       * This map defines the graph structure of the agent system.
+       * Key: agent_id (matches the `author` field in events).
+       * Value: The static configuration of the agent (tools, instructions,
+       * sub-agents).
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAgents().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getMutableAgents() { + bitField0_ |= 0x00000008; + return internalGetMutableAgents().ensureMessageMap(); + } + + /** + * + * + *
+       * Optional. The static Agent Configuration.
+       * This map defines the graph structure of the agent system.
+       * Key: agent_id (matches the `author` field in events).
+       * Value: The static configuration of the agent (tools, instructions,
+       * sub-agents).
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAgents( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAgents().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+       * Optional. The static Agent Configuration.
+       * This map defines the graph structure of the agent system.
+       * Key: agent_id (matches the `author` field in events).
+       * Value: The static configuration of the agent (tools, instructions,
+       * sub-agents).
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAgents( + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableAgents().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+       * Optional. The static Agent Configuration.
+       * This map defines the graph structure of the agent system.
+       * Key: agent_id (matches the `author` field in events).
+       * Value: The static configuration of the agent (tools, instructions,
+       * sub-agents).
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + putAgentsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder> + builderMap = internalGetMutableAgents().ensureBuilderMap(); + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + entry = builderMap.get(key); + if (entry == null) { + entry = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .newBuilder(); + builderMap.put(key, entry); + } + if (entry + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) { + entry = + ((com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Builder) + entry; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + turns_ = java.util.Collections.emptyList(); + + private void ensureTurnsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + turns_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn>(turns_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + turnsBuilder_; + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + getTurnsList() { + if (turnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(turns_); + } else { + return turnsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTurnsCount() { + if (turnsBuilder_ == null) { + return turns_.size(); + } else { + return turnsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getTurns(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurns( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.set(index, value); + onChanged(); + } else { + turnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurns( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.set(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(value); + onChanged(); + } else { + turnsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(index, value); + onChanged(); + } else { + turnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTurns( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + values) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, turns_); + onChanged(); + } else { + turnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTurns() { + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + turnsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTurns(int index) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.remove(index); + onChanged(); + } else { + turnsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + getTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder + getTurnsOrBuilder(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + getTurnsOrBuilderList() { + if (turnsBuilder_ != null) { + return turnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(turns_); + } + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + addTurnsBuilder() { + return internalGetTurnsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + addTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. The chronological list of conversation turns.
+       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
+       * Response).
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder> + getTurnsBuilderList() { + return internalGetTurnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + internalGetTurnsFieldBuilder() { + if (turnsBuilder_ == null) { + turnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder>( + turns_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + turns_ = null; + } + return turnsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + developerInstruction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + developerInstructionBuilder_; + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return Whether the developerInstruction field is set. + */ + @java.lang.Deprecated + public boolean hasDeveloperInstruction() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return The developerInstruction. + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDeveloperInstruction() { + if (developerInstructionBuilder_ == null) { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : developerInstruction_; + } else { + return developerInstructionBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (developerInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + developerInstruction_ = value; + } else { + developerInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (developerInstructionBuilder_ == null) { + developerInstruction_ = builderForValue.build(); + } else { + developerInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (developerInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && developerInstruction_ != null + && developerInstruction_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getDeveloperInstructionBuilder().mergeFrom(value); + } else { + developerInstruction_ = value; + } + } else { + developerInstructionBuilder_.mergeFrom(value); + } + if (developerInstruction_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearDeveloperInstruction() { + bitField0_ = (bitField0_ & ~0x00000020); + developerInstruction_ = null; + if (developerInstructionBuilder_ != null) { + developerInstructionBuilder_.dispose(); + developerInstructionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getDeveloperInstructionBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetDeveloperInstructionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder() { + if (developerInstructionBuilder_ != null) { + return developerInstructionBuilder_.getMessageOrBuilder(); + } else { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : developerInstruction_; + } + } + + /** + * + * + *
+       * Optional. Deprecated:  Use `agents.developer_instruction` or
+       * `turns.events.active_instruction` instead.
+       * A field containing instructions from the developer for the agent.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetDeveloperInstructionFieldBuilder() { + if (developerInstructionBuilder_ == null) { + developerInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getDeveloperInstruction(), getParentForChildren(), isClean()); + developerInstruction_ = null; + } + return developerInstructionBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + agentConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder> + agentConfigBuilder_; + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + public boolean hasAgentConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentConfig() { + if (agentConfigBuilder_ == null) { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } else { + return agentConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (agentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentConfig_ = value; + } else { + agentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + builderForValue) { + if (agentConfigBuilder_ == null) { + agentConfig_ = builderForValue.build(); + } else { + agentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (agentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && agentConfig_ != null + && agentConfig_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance()) { + getAgentConfigBuilder().mergeFrom(value); + } else { + agentConfig_ = value; + } + } else { + agentConfigBuilder_.mergeFrom(value); + } + if (agentConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + agentConfig_ = null; + if (agentConfigBuilder_ != null) { + agentConfigBuilder_.dispose(); + agentConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + getAgentConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetAgentConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder() { + if (agentConfigBuilder_ != null) { + return agentConfigBuilder_.getMessageOrBuilder(); + } else { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + } + + /** + * + * + *
+       * Optional. Deprecated: Use `agent_eval_data` instead.
+       * Agent configuration.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder> + internalGetAgentConfigFieldBuilder() { + if (agentConfigBuilder_ == null) { + agentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder>( + getAgentConfig(), getParentForChildren(), isClean()); + agentConfig_ = null; + } + return agentConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeprecatedAgentData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + public interface DeprecatedAgentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1; + * + * @return Whether the toolsText field is set. + */ + boolean hasToolsText(); + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1; + * + * @return The toolsText. + */ + java.lang.String getToolsText(); + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1; + * + * @return The bytes for toolsText. + */ + com.google.protobuf.ByteString getToolsTextBytes(); + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return Whether the tools field is set. + */ + boolean hasTools(); + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return The tools. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools getTools(); + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.ToolsOrBuilder + getToolsOrBuilder(); + + /** + * + * + *
+     * Optional. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + java.lang.String getAgentId(); + + /** + * + * + *
+     * Optional. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + com.google.protobuf.ByteString getAgentIdBytes(); + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent",
+     * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+     * the expected behavior of the agent.
+     * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + java.lang.String getAgentType(); + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent",
+     * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+     * the expected behavior of the agent.
+     * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + com.google.protobuf.ByteString getAgentTypeBytes(); + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+     * Optional. The list of valid agent IDs (names) that this agent can
+     * delegate to. This defines the directed edges in the agent system graph
+     * topology.
+     * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + java.util.List getSubAgentsList(); + + /** + * + * + *
+     * Optional. The list of valid agent IDs (names) that this agent can
+     * delegate to. This defines the directed edges in the agent system graph
+     * topology.
+     * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + int getSubAgentsCount(); + + /** + * + * + *
+     * Optional. The list of valid agent IDs (names) that this agent can
+     * delegate to. This defines the directed edges in the agent system graph
+     * topology.
+     * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + java.lang.String getSubAgents(int index); + + /** + * + * + *
+     * Optional. The list of valid agent IDs (names) that this agent can
+     * delegate to. This defines the directed edges in the agent system graph
+     * topology.
+     * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + com.google.protobuf.ByteString getSubAgentsBytes(int index); + + /** + * + * + *
+     * Optional. Contains instructions from the developer for the agent. Can be
+     * static or a dynamic prompt template used with the
+     * `AgentEvent.state_delta` field.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerInstruction field is set. + */ + boolean hasDeveloperInstruction(); + + /** + * + * + *
+     * Optional. Contains instructions from the developer for the agent. Can be
+     * static or a dynamic prompt template used with the
+     * `AgentEvent.state_delta` field.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerInstruction. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getDeveloperInstruction(); + + /** + * + * + *
+     * Optional. Contains instructions from the developer for the agent. Can be
+     * static or a dynamic prompt template used with the
+     * `AgentEvent.state_delta` field.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.ToolsDataCase + getToolsDataCase(); + } + + /** + * + * + *
+   * Deprecated: Use `google.cloud.aiplatform.master.AgentConfig` in
+   * `agent_eval_data` instead.
+   * Configuration for an Agent.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig} + */ + @java.lang.Deprecated + public static final class DeprecatedAgentConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + DeprecatedAgentConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeprecatedAgentConfig"); + } + + // Use DeprecatedAgentConfig.newBuilder() to construct. + private DeprecatedAgentConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeprecatedAgentConfig() { + agentId_ = ""; + agentType_ = ""; + description_ = ""; + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + .class); + } + + public interface ToolsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolList(); + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getTool(int index); + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolCount(); + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolOrBuilderList(); + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index); + } + + /** + * + * + *
+     * Represents a list of tools for an agent.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools} + */ + public static final class Tools extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + ToolsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Tools"); + } + + // Use Tools.newBuilder() to construct. + private Tools(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Tools() { + tool_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder.class); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tool_; + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolList() { + return tool_; + } + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolOrBuilderList() { + return tool_; + } + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolCount() { + return tool_.size(); + } + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool getTool(int index) { + return tool_.get(index); + } + + /** + * + * + *
+       * Optional. List of tools: each tool can have multiple function
+       * declarations.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index) { + return tool_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < tool_.size(); i++) { + output.writeMessage(1, tool_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tool_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tool_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + obj; + + if (!getToolList().equals(other.getToolList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolCount() > 0) { + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Represents a list of tools for an agent.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolBuilder_ == null) { + tool_ = java.util.Collections.emptyList(); + } else { + tool_ = null; + toolBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + result) { + if (toolBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tool_ = java.util.Collections.unmodifiableList(tool_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tool_ = tool_; + } else { + result.tool_ = toolBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance()) return this; + if (toolBuilder_ == null) { + if (!other.tool_.isEmpty()) { + if (tool_.isEmpty()) { + tool_ = other.tool_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolIsMutable(); + tool_.addAll(other.tool_); + } + onChanged(); + } + } else { + if (!other.tool_.isEmpty()) { + if (toolBuilder_.isEmpty()) { + toolBuilder_.dispose(); + toolBuilder_ = null; + tool_ = other.tool_; + bitField0_ = (bitField0_ & ~0x00000001); + toolBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolFieldBuilder() + : null; + } else { + toolBuilder_.addAllMessages(other.tool_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(m); + } else { + toolBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List tool_ = + java.util.Collections.emptyList(); + + private void ensureToolIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tool_ = new java.util.ArrayList(tool_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + toolBuilder_; + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolList() { + if (toolBuilder_ == null) { + return java.util.Collections.unmodifiableList(tool_); + } else { + return toolBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolCount() { + if (toolBuilder_ == null) { + return tool_.size(); + } else { + return toolBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getTool(int index) { + if (toolBuilder_ == null) { + return tool_.get(index); + } else { + return toolBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTool(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.set(index, value); + onChanged(); + } else { + toolBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTool( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.set(index, builderForValue.build()); + onChanged(); + } else { + toolBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTool(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.add(value); + onChanged(); + } else { + toolBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTool(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.add(index, value); + onChanged(); + } else { + toolBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTool(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(builderForValue.build()); + onChanged(); + } else { + toolBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTool( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(index, builderForValue.build()); + onChanged(); + } else { + toolBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTool( + java.lang.Iterable values) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tool_); + onChanged(); + } else { + toolBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTool() { + if (toolBuilder_ == null) { + tool_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTool(int index) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.remove(index); + onChanged(); + } else { + toolBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolBuilder(int index) { + return internalGetToolFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index) { + if (toolBuilder_ == null) { + return tool_.get(index); + } else { + return toolBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolOrBuilderList() { + if (toolBuilder_ != null) { + return toolBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tool_); + } + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolBuilder() { + return internalGetToolFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolBuilder(int index) { + return internalGetToolFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. List of tools: each tool can have multiple function
+         * declarations.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolBuilderList() { + return internalGetToolFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetToolFieldBuilder() { + if (toolBuilder_ == null) { + toolBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + tool_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tool_ = null; + } + return toolBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig.Tools + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tools parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int toolsDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolsData_; + + public enum ToolsDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOLS_TEXT(1), + TOOLS(2), + TOOLSDATA_NOT_SET(0); + private final int value; + + private ToolsDataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolsDataCase valueOf(int value) { + return forNumber(value); + } + + public static ToolsDataCase forNumber(int value) { + switch (value) { + case 1: + return TOOLS_TEXT; + case 2: + return TOOLS; + case 0: + return TOOLSDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolsDataCase getToolsDataCase() { + return ToolsDataCase.forNumber(toolsDataCase_); + } + + public static final int TOOLS_TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1; + * + * @return Whether the toolsText field is set. + */ + public boolean hasToolsText() { + return toolsDataCase_ == 1; + } + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1; + * + * @return The toolsText. + */ + public java.lang.String getToolsText() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolsDataCase_ == 1) { + toolsData_ = s; + } + return s; + } + } + + /** + * + * + *
+     * A JSON string containing a list of tools available to an agent with
+     * info such as name, description, parameters and required parameters.
+     * 
+ * + * string tools_text = 1; + * + * @return The bytes for toolsText. + */ + public com.google.protobuf.ByteString getToolsTextBytes() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolsDataCase_ == 1) { + toolsData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLS_FIELD_NUMBER = 2; + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return Whether the tools field is set. + */ + @java.lang.Override + public boolean hasTools() { + return toolsDataCase_ == 2; + } + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return The tools. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + getTools() { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + + /** + * + * + *
+     * List of tools.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder + getToolsOrBuilder() { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + + public static final int AGENT_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentId_ = ""; + + /** + * + * + *
+     * Optional. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + @java.lang.Override + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Unique identifier of the agent.
+     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+     * the `sub_agents` field. It must be unique within the `agents` map.
+     * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_TYPE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentType_ = ""; + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent",
+     * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+     * the expected behavior of the agent.
+     * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + @java.lang.Override + public java.lang.String getAgentType() { + java.lang.Object ref = agentType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentType_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The type or class of the agent (e.g., "LlmAgent",
+     * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+     * the expected behavior of the agent.
+     * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentTypeBytes() { + java.lang.Object ref = agentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. A high-level description of the agent's role and
+     * responsibilities. Critical for evaluating if the agent is routing tasks
+     * correctly.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUB_AGENTS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The list of valid agent IDs (names) that this agent can
+     * delegate to. This defines the directed edges in the agent system graph
+     * topology.
+     * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + public com.google.protobuf.ProtocolStringList getSubAgentsList() { + return subAgents_; + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs (names) that this agent can
+     * delegate to. This defines the directed edges in the agent system graph
+     * topology.
+     * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + public int getSubAgentsCount() { + return subAgents_.size(); + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs (names) that this agent can
+     * delegate to. This defines the directed edges in the agent system graph
+     * topology.
+     * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + public java.lang.String getSubAgents(int index) { + return subAgents_.get(index); + } + + /** + * + * + *
+     * Optional. The list of valid agent IDs (names) that this agent can
+     * delegate to. This defines the directed edges in the agent system graph
+     * topology.
+     * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + public com.google.protobuf.ByteString getSubAgentsBytes(int index) { + return subAgents_.getByteString(index); + } + + public static final int DEVELOPER_INSTRUCTION_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + developerInstruction_; + + /** + * + * + *
+     * Optional. Contains instructions from the developer for the agent. Can be
+     * static or a dynamic prompt template used with the
+     * `AgentEvent.state_delta` field.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerInstruction field is set. + */ + @java.lang.Override + public boolean hasDeveloperInstruction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Contains instructions from the developer for the agent. Can be
+     * static or a dynamic prompt template used with the
+     * `AgentEvent.state_delta` field.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerInstruction. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDeveloperInstruction() { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : developerInstruction_; + } + + /** + * + * + *
+     * Optional. Contains instructions from the developer for the agent. Can be
+     * static or a dynamic prompt template used with the
+     * `AgentEvent.state_delta` field.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder() { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : developerInstruction_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (toolsDataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolsData_); + } + if (toolsDataCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + toolsData_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDeveloperInstruction()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, agentType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, description_); + } + for (int i = 0; i < subAgents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, subAgents_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolsDataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolsData_); + } + if (toolsDataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + toolsData_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeveloperInstruction()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, agentType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, description_); + } + { + int dataSize = 0; + for (int i = 0; i < subAgents_.size(); i++) { + dataSize += computeStringSizeNoTag(subAgents_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubAgentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) obj; + + if (!getAgentId().equals(other.getAgentId())) return false; + if (!getAgentType().equals(other.getAgentType())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSubAgentsList().equals(other.getSubAgentsList())) return false; + if (hasDeveloperInstruction() != other.hasDeveloperInstruction()) return false; + if (hasDeveloperInstruction()) { + if (!getDeveloperInstruction().equals(other.getDeveloperInstruction())) return false; + } + if (!getToolsDataCase().equals(other.getToolsDataCase())) return false; + switch (toolsDataCase_) { + case 1: + if (!getToolsText().equals(other.getToolsText())) return false; + break; + case 2: + if (!getTools().equals(other.getTools())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + hash = (37 * hash) + AGENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAgentType().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getSubAgentsCount() > 0) { + hash = (37 * hash) + SUB_AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getSubAgentsList().hashCode(); + } + if (hasDeveloperInstruction()) { + hash = (37 * hash) + DEVELOPER_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperInstruction().hashCode(); + } + switch (toolsDataCase_) { + case 1: + hash = (37 * hash) + TOOLS_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getToolsText().hashCode(); + break; + case 2: + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getTools().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Deprecated: Use `google.cloud.aiplatform.master.AgentConfig` in
+     * `agent_eval_data` instead.
+     * Configuration for an Agent.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeveloperInstructionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsBuilder_ != null) { + toolsBuilder_.clear(); + } + agentId_ = ""; + agentType_ = ""; + description_ = ""; + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + developerInstruction_ = null; + if (developerInstructionBuilder_ != null) { + developerInstructionBuilder_.dispose(); + developerInstructionBuilder_ = null; + } + toolsDataCase_ = 0; + toolsData_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agentId_ = agentId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.agentType_ = agentType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + subAgents_.makeImmutable(); + result.subAgents_ = subAgents_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.developerInstruction_ = + developerInstructionBuilder_ == null + ? developerInstruction_ + : developerInstructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig result) { + result.toolsDataCase_ = toolsDataCase_; + result.toolsData_ = this.toolsData_; + if (toolsDataCase_ == 2 && toolsBuilder_ != null) { + result.toolsData_ = toolsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance()) return this; + if (!other.getAgentId().isEmpty()) { + agentId_ = other.agentId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAgentType().isEmpty()) { + agentType_ = other.agentType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.subAgents_.isEmpty()) { + if (subAgents_.isEmpty()) { + subAgents_ = other.subAgents_; + bitField0_ |= 0x00000020; + } else { + ensureSubAgentsIsMutable(); + subAgents_.addAll(other.subAgents_); + } + onChanged(); + } + if (other.hasDeveloperInstruction()) { + mergeDeveloperInstruction(other.getDeveloperInstruction()); + } + switch (other.getToolsDataCase()) { + case TOOLS_TEXT: + { + toolsDataCase_ = 1; + toolsData_ = other.toolsData_; + onChanged(); + break; + } + case TOOLS: + { + mergeTools(other.getTools()); + break; + } + case TOOLSDATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + toolsDataCase_ = 1; + toolsData_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetToolsFieldBuilder().getBuilder(), extensionRegistry); + toolsDataCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDeveloperInstructionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 26 + case 34: + { + agentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + agentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubAgentsIsMutable(); + subAgents_.add(s); + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolsDataCase_ = 0; + private java.lang.Object toolsData_; + + public ToolsDataCase getToolsDataCase() { + return ToolsDataCase.forNumber(toolsDataCase_); + } + + public Builder clearToolsData() { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1; + * + * @return Whether the toolsText field is set. + */ + @java.lang.Override + public boolean hasToolsText() { + return toolsDataCase_ == 1; + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1; + * + * @return The toolsText. + */ + @java.lang.Override + public java.lang.String getToolsText() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolsDataCase_ == 1) { + toolsData_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1; + * + * @return The bytes for toolsText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsTextBytes() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolsDataCase_ == 1) { + toolsData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1; + * + * @param value The toolsText to set. + * @return This builder for chaining. + */ + public Builder setToolsText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolsDataCase_ = 1; + toolsData_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearToolsText() { + if (toolsDataCase_ == 1) { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * A JSON string containing a list of tools available to an agent with
+       * info such as name, description, parameters and required parameters.
+       * 
+ * + * string tools_text = 1; + * + * @param value The bytes for toolsText to set. + * @return This builder for chaining. + */ + public Builder setToolsTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolsDataCase_ = 1; + toolsData_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder> + toolsBuilder_; + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return Whether the tools field is set. + */ + @java.lang.Override + public boolean hasTools() { + return toolsDataCase_ == 2; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return The tools. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + getTools() { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } else { + if (toolsDataCase_ == 2) { + return toolsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public Builder setTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolsData_ = value; + onChanged(); + } else { + toolsBuilder_.setMessage(value); + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public Builder setTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools.Builder + builderForValue) { + if (toolsBuilder_ == null) { + toolsData_ = builderForValue.build(); + onChanged(); + } else { + toolsBuilder_.setMessage(builderForValue.build()); + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public Builder mergeTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + value) { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2 + && toolsData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools.getDefaultInstance()) { + toolsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig.Tools) + toolsData_) + .mergeFrom(value) + .buildPartial(); + } else { + toolsData_ = value; + } + onChanged(); + } else { + if (toolsDataCase_ == 2) { + toolsBuilder_.mergeFrom(value); + } else { + toolsBuilder_.setMessage(value); + } + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2) { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + } + } else { + if (toolsDataCase_ == 2) { + toolsDataCase_ = 0; + toolsData_ = null; + } + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder + getToolsBuilder() { + return internalGetToolsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder + getToolsOrBuilder() { + if ((toolsDataCase_ == 2) && (toolsBuilder_ != null)) { + return toolsBuilder_.getMessageOrBuilder(); + } else { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * List of tools.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + if (!(toolsDataCase_ == 2)) { + toolsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + toolsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools) + toolsData_, + getParentForChildren(), + isClean()); + toolsData_ = null; + } + toolsDataCase_ = 2; + onChanged(); + return toolsBuilder_; + } + + private java.lang.Object agentId_ = ""; + + /** + * + * + *
+       * Optional. Unique identifier of the agent.
+       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+       * the `sub_agents` field. It must be unique within the `agents` map.
+       * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Unique identifier of the agent.
+       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+       * the `sub_agents` field. It must be unique within the `agents` map.
+       * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Unique identifier of the agent.
+       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+       * the `sub_agents` field. It must be unique within the `agents` map.
+       * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Unique identifier of the agent.
+       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+       * the `sub_agents` field. It must be unique within the `agents` map.
+       * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + agentId_ = getDefaultInstance().getAgentId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Unique identifier of the agent.
+       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+       * the `sub_agents` field. It must be unique within the `agents` map.
+       * 
+ * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object agentType_ = ""; + + /** + * + * + *
+       * Optional. The type or class of the agent (e.g., "LlmAgent",
+       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+       * the expected behavior of the agent.
+       * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + public java.lang.String getAgentType() { + java.lang.Object ref = agentType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The type or class of the agent (e.g., "LlmAgent",
+       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+       * the expected behavior of the agent.
+       * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + public com.google.protobuf.ByteString getAgentTypeBytes() { + java.lang.Object ref = agentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The type or class of the agent (e.g., "LlmAgent",
+       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+       * the expected behavior of the agent.
+       * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The type or class of the agent (e.g., "LlmAgent",
+       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+       * the expected behavior of the agent.
+       * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentType() { + agentType_ = getDefaultInstance().getAgentType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The type or class of the agent (e.g., "LlmAgent",
+       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
+       * the expected behavior of the agent.
+       * 
+ * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+       * Optional. A high-level description of the agent's role and
+       * responsibilities. Critical for evaluating if the agent is routing tasks
+       * correctly.
+       * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. A high-level description of the agent's role and
+       * responsibilities. Critical for evaluating if the agent is routing tasks
+       * correctly.
+       * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. A high-level description of the agent's role and
+       * responsibilities. Critical for evaluating if the agent is routing tasks
+       * correctly.
+       * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A high-level description of the agent's role and
+       * responsibilities. Critical for evaluating if the agent is routing tasks
+       * correctly.
+       * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A high-level description of the agent's role and
+       * responsibilities. Critical for evaluating if the agent is routing tasks
+       * correctly.
+       * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSubAgentsIsMutable() { + if (!subAgents_.isModifiable()) { + subAgents_ = new com.google.protobuf.LazyStringArrayList(subAgents_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + public com.google.protobuf.ProtocolStringList getSubAgentsList() { + subAgents_.makeImmutable(); + return subAgents_; + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + public int getSubAgentsCount() { + return subAgents_.size(); + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + public java.lang.String getSubAgents(int index) { + return subAgents_.get(index); + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + public com.google.protobuf.ByteString getSubAgentsBytes(int index) { + return subAgents_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The subAgents to set. + * @return This builder for chaining. + */ + public Builder setSubAgents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubAgentsIsMutable(); + subAgents_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subAgents to add. + * @return This builder for chaining. + */ + public Builder addSubAgents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubAgentsIsMutable(); + subAgents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The subAgents to add. + * @return This builder for chaining. + */ + public Builder addAllSubAgents(java.lang.Iterable values) { + ensureSubAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subAgents_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubAgents() { + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of valid agent IDs (names) that this agent can
+       * delegate to. This defines the directed edges in the agent system graph
+       * topology.
+       * 
+ * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the subAgents to add. + * @return This builder for chaining. + */ + public Builder addSubAgentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubAgentsIsMutable(); + subAgents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + developerInstruction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + developerInstructionBuilder_; + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerInstruction field is set. + */ + public boolean hasDeveloperInstruction() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerInstruction. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDeveloperInstruction() { + if (developerInstructionBuilder_ == null) { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : developerInstruction_; + } else { + return developerInstructionBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (developerInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + developerInstruction_ = value; + } else { + developerInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (developerInstructionBuilder_ == null) { + developerInstruction_ = builderForValue.build(); + } else { + developerInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (developerInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && developerInstruction_ != null + && developerInstruction_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getDeveloperInstructionBuilder().mergeFrom(value); + } else { + developerInstruction_ = value; + } + } else { + developerInstructionBuilder_.mergeFrom(value); + } + if (developerInstruction_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeveloperInstruction() { + bitField0_ = (bitField0_ & ~0x00000040); + developerInstruction_ = null; + if (developerInstructionBuilder_ != null) { + developerInstructionBuilder_.dispose(); + developerInstructionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getDeveloperInstructionBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetDeveloperInstructionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder() { + if (developerInstructionBuilder_ != null) { + return developerInstructionBuilder_.getMessageOrBuilder(); + } else { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : developerInstruction_; + } + } + + /** + * + * + *
+       * Optional. Contains instructions from the developer for the agent. Can be
+       * static or a dynamic prompt template used with the
+       * `AgentEvent.state_delta` field.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetDeveloperInstructionFieldBuilder() { + if (developerInstructionBuilder_ == null) { + developerInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getDeveloperInstruction(), getParentForChildren(), isClean()); + developerInstruction_ = null; + } + return developerInstructionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeprecatedAgentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PROMPT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt_; + + /** + * + * + *
+   * Optional. Data used to populate placeholder `prompt` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the prompt field is set. + */ + @java.lang.Override + public boolean hasPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Data used to populate placeholder `prompt` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The prompt. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getPrompt() { + return prompt_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : prompt_; + } + + /** + * + * + *
+   * Optional. Data used to populate placeholder `prompt` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getPromptOrBuilder() { + return prompt_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : prompt_; + } + + public static final int RUBRIC_GROUPS_FIELD_NUMBER = 2; + + private static final class RubricGroupsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_RubricGroupsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.RubricGroup.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + rubricGroups_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + internalGetRubricGroups() { + if (rubricGroups_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RubricGroupsDefaultEntryHolder.defaultEntry); + } + return rubricGroups_; + } + + public int getRubricGroupsCount() { + return internalGetRubricGroups().getMap().size(); + } + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRubricGroups(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRubricGroups().getMap().containsKey(key); + } + + /** Use {@link #getRubricGroupsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getRubricGroups() { + return getRubricGroupsMap(); + } + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getRubricGroupsMap() { + return internalGetRubricGroups().getMap(); + } + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.RubricGroup defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetRubricGroups().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetRubricGroups().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RESPONSE_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response_; + + /** + * + * + *
+   * Optional. Data used to populate placeholder `response` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + @java.lang.Override + public boolean hasResponse() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Data used to populate placeholder `response` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getResponse() { + return response_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : response_; + } + + /** + * + * + *
+   * Optional. Data used to populate placeholder `response` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getResponseOrBuilder() { + return response_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : response_; + } + + public static final int REFERENCE_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference_; + + /** + * + * + *
+   * Optional. Data used to populate placeholder `reference` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + @java.lang.Override + public boolean hasReference() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Data used to populate placeholder `reference` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getReference() { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : reference_; + } + + /** + * + * + *
+   * Optional. Data used to populate placeholder `reference` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getReferenceOrBuilder() { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : reference_; + } + + public static final int OTHER_DATA_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance otherData_; + + /** + * + * + *
+   * Optional. Other data used to populate placeholders based on their key.
+   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+   * the value of the field will take precedence over the value in other_data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherData field is set. + */ + @java.lang.Override + public boolean hasOtherData() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Other data used to populate placeholders based on their key.
+   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+   * the value of the field will take precedence over the value in other_data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherData. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance getOtherData() { + return otherData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.getDefaultInstance() + : otherData_; + } + + /** + * + * + *
+   * Optional. Other data used to populate placeholders based on their key.
+   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+   * the value of the field will take precedence over the value in other_data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder + getOtherDataOrBuilder() { + return otherData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.getDefaultInstance() + : otherData_; + } + + public static final int AGENT_DATA_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agentData_; + + /** + * + * + *
+   * Optional. Deprecated: Use `agent_eval_data` instead.
+   * Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return Whether the agentData field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasAgentData() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. Deprecated: Use `agent_eval_data` instead.
+   * Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return The agentData. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData getAgentData() { + return agentData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance() + : agentData_; + } + + /** + * + * + *
+   * Optional. Deprecated: Use `agent_eval_data` instead.
+   * Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder + getAgentDataOrBuilder() { + return agentData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance() + : agentData_; + } + + public static final int AGENT_EVAL_DATA_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.AgentData agentEvalData_; + + /** + * + * + *
+   * Optional. Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentEvalData field is set. + */ + @java.lang.Override + public boolean hasAgentEvalData() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentEvalData. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData getAgentEvalData() { + return agentEvalData_ == null + ? com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance() + : agentEvalData_; + } + + /** + * + * + *
+   * Optional. Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder getAgentEvalDataOrBuilder() { + return agentEvalData_ == null + ? com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance() + : agentEvalData_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrompt()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetRubricGroups(), RubricGroupsDefaultEntryHolder.defaultEntry, 2); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getResponse()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getReference()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getOtherData()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getAgentData()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(7, getAgentEvalData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrompt()); + } + for (java.util.Map.Entry + entry : internalGetRubricGroups().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + rubricGroups__ = + RubricGroupsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rubricGroups__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponse()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReference()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOtherData()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAgentData()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAgentEvalData()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance) obj; + + if (hasPrompt() != other.hasPrompt()) return false; + if (hasPrompt()) { + if (!getPrompt().equals(other.getPrompt())) return false; + } + if (!internalGetRubricGroups().equals(other.internalGetRubricGroups())) return false; + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) return false; + } + if (hasReference() != other.hasReference()) return false; + if (hasReference()) { + if (!getReference().equals(other.getReference())) return false; + } + if (hasOtherData() != other.hasOtherData()) return false; + if (hasOtherData()) { + if (!getOtherData().equals(other.getOtherData())) return false; + } + if (hasAgentData() != other.hasAgentData()) return false; + if (hasAgentData()) { + if (!getAgentData().equals(other.getAgentData())) return false; + } + if (hasAgentEvalData() != other.hasAgentEvalData()) return false; + if (hasAgentEvalData()) { + if (!getAgentEvalData().equals(other.getAgentEvalData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrompt()) { + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + } + if (!internalGetRubricGroups().getMap().isEmpty()) { + hash = (37 * hash) + RUBRIC_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRubricGroups().hashCode(); + } + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasReference()) { + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); + } + if (hasOtherData()) { + hash = (37 * hash) + OTHER_DATA_FIELD_NUMBER; + hash = (53 * hash) + getOtherData().hashCode(); + } + if (hasAgentData()) { + hash = (37 * hash) + AGENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAgentData().hashCode(); + } + if (hasAgentEvalData()) { + hash = (37 * hash) + AGENT_EVAL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAgentEvalData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A single instance to be evaluated.
+   * Instances are used to specify the input data for evaluation, from
+   * simple string comparisons to complex, multi-turn model evaluations
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance) + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetRubricGroups(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableRubricGroups(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.EvaluationInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPromptFieldBuilder(); + internalGetResponseFieldBuilder(); + internalGetReferenceFieldBuilder(); + internalGetOtherDataFieldBuilder(); + internalGetAgentDataFieldBuilder(); + internalGetAgentEvalDataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prompt_ = null; + if (promptBuilder_ != null) { + promptBuilder_.dispose(); + promptBuilder_ = null; + } + internalGetMutableRubricGroups().clear(); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + reference_ = null; + if (referenceBuilder_ != null) { + referenceBuilder_.dispose(); + referenceBuilder_ = null; + } + otherData_ = null; + if (otherDataBuilder_ != null) { + otherDataBuilder_.dispose(); + otherDataBuilder_ = null; + } + agentData_ = null; + if (agentDataBuilder_ != null) { + agentDataBuilder_.dispose(); + agentDataBuilder_ = null; + } + agentEvalData_ = null; + if (agentEvalDataBuilder_ != null) { + agentEvalDataBuilder_.dispose(); + agentEvalDataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EvaluationInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prompt_ = promptBuilder_ == null ? prompt_ : promptBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rubricGroups_ = + internalGetRubricGroups().build(RubricGroupsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reference_ = referenceBuilder_ == null ? reference_ : referenceBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.otherData_ = otherDataBuilder_ == null ? otherData_ : otherDataBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.agentData_ = agentDataBuilder_ == null ? agentData_ : agentDataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.agentEvalData_ = + agentEvalDataBuilder_ == null ? agentEvalData_ : agentEvalDataBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.EvaluationInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluationInstance other) { + if (other == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance()) + return this; + if (other.hasPrompt()) { + mergePrompt(other.getPrompt()); + } + internalGetMutableRubricGroups().mergeFrom(other.internalGetRubricGroups()); + bitField0_ |= 0x00000002; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasReference()) { + mergeReference(other.getReference()); + } + if (other.hasOtherData()) { + mergeOtherData(other.getOtherData()); + } + if (other.hasAgentData()) { + mergeAgentData(other.getAgentData()); + } + if (other.hasAgentEvalData()) { + mergeAgentEvalData(other.getAgentEvalData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetPromptFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + rubricGroups__ = + input.readMessage( + RubricGroupsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRubricGroups() + .ensureBuilderMap() + .put(rubricGroups__.getKey(), rubricGroups__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetOtherDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetAgentDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetAgentEvalDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + promptBuilder_; + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the prompt field is set. + */ + public boolean hasPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The prompt. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getPrompt() { + if (promptBuilder_ == null) { + return prompt_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : prompt_; + } else { + return promptBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrompt( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (promptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + } else { + promptBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrompt( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (promptBuilder_ == null) { + prompt_ = builderForValue.build(); + } else { + promptBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePrompt( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (promptBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && prompt_ != null + && prompt_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getPromptBuilder().mergeFrom(value); + } else { + prompt_ = value; + } + } else { + promptBuilder_.mergeFrom(value); + } + if (prompt_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPrompt() { + bitField0_ = (bitField0_ & ~0x00000001); + prompt_ = null; + if (promptBuilder_ != null) { + promptBuilder_.dispose(); + promptBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getPromptBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetPromptFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getPromptOrBuilder() { + if (promptBuilder_ != null) { + return promptBuilder_.getMessageOrBuilder(); + } else { + return prompt_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : prompt_; + } + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `prompt` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetPromptFieldBuilder() { + if (promptBuilder_ == null) { + promptBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getPrompt(), getParentForChildren(), isClean()); + prompt_ = null; + } + return promptBuilder_; + } + + private static final class RubricGroupsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder, + com.google.cloud.aiplatform.v1beta1.RubricGroup> { + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup build( + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder val) { + if (val instanceof com.google.cloud.aiplatform.v1beta1.RubricGroup) { + return (com.google.cloud.aiplatform.v1beta1.RubricGroup) val; + } + return ((com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + defaultEntry() { + return RubricGroupsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final RubricGroupsConverter rubricGroupsConverter = new RubricGroupsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder, + com.google.cloud.aiplatform.v1beta1.RubricGroup, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder> + rubricGroups_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder, + com.google.cloud.aiplatform.v1beta1.RubricGroup, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder> + internalGetRubricGroups() { + if (rubricGroups_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(rubricGroupsConverter); + } + return rubricGroups_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder, + com.google.cloud.aiplatform.v1beta1.RubricGroup, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder> + internalGetMutableRubricGroups() { + if (rubricGroups_ == null) { + rubricGroups_ = new com.google.protobuf.MapFieldBuilder<>(rubricGroupsConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return rubricGroups_; + } + + public int getRubricGroupsCount() { + return internalGetRubricGroups().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Optional. Named groups of rubrics associated with the prompt.
+     * This is used for rubric-based evaluations where rubrics can be referenced
+     * by a key. The key could represent versions, associated metrics, etc.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRubricGroups(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRubricGroups().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getRubricGroupsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getRubricGroups() { + return getRubricGroupsMap(); + } + + /** + * + * + *
+     * Optional. Named groups of rubrics associated with the prompt.
+     * This is used for rubric-based evaluations where rubrics can be referenced
+     * by a key. The key could represent versions, associated metrics, etc.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getRubricGroupsMap() { + return internalGetRubricGroups().getImmutableMap(); + } + + /** + * + * + *
+     * Optional. Named groups of rubrics associated with the prompt.
+     * This is used for rubric-based evaluations where rubrics can be referenced
+     * by a key. The key could represent versions, associated metrics, etc.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.RubricGroup defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableRubricGroups().ensureBuilderMap(); + return map.containsKey(key) ? rubricGroupsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Optional. Named groups of rubrics associated with the prompt.
+     * This is used for rubric-based evaluations where rubrics can be referenced
+     * by a key. The key could represent versions, associated metrics, etc.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableRubricGroups().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return rubricGroupsConverter.build(map.get(key)); + } + + public Builder clearRubricGroups() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableRubricGroups().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Named groups of rubrics associated with the prompt.
+     * This is used for rubric-based evaluations where rubrics can be referenced
+     * by a key. The key could represent versions, associated metrics, etc.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRubricGroups(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRubricGroups().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableRubricGroups() { + bitField0_ |= 0x00000002; + return internalGetMutableRubricGroups().ensureMessageMap(); + } + + /** + * + * + *
+     * Optional. Named groups of rubrics associated with the prompt.
+     * This is used for rubric-based evaluations where rubrics can be referenced
+     * by a key. The key could represent versions, associated metrics, etc.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putRubricGroups( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.RubricGroup value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableRubricGroups().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Optional. Named groups of rubrics associated with the prompt.
+     * This is used for rubric-based evaluations where rubrics can be referenced
+     * by a key. The key could represent versions, associated metrics, etc.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllRubricGroups( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableRubricGroups().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Optional. Named groups of rubrics associated with the prompt.
+     * This is used for rubric-based evaluations where rubrics can be referenced
+     * by a key. The key could represent versions, associated metrics, etc.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder putRubricGroupsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableRubricGroups().ensureBuilderMap(); + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.aiplatform.v1beta1.RubricGroup.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.aiplatform.v1beta1.RubricGroup) { + entry = ((com.google.cloud.aiplatform.v1beta1.RubricGroup) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder) entry; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + responseBuilder_; + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getResponse() { + if (responseBuilder_ == null) { + return response_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : response_; + } else { + return responseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + } else { + responseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResponse( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (responseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && response_ != null + && response_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getResponseBuilder().mergeFrom(value); + } else { + response_ = value; + } + } else { + responseBuilder_.mergeFrom(value); + } + if (response_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResponse() { + bitField0_ = (bitField0_ & ~0x00000004); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getResponseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : response_; + } + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `response` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + referenceBuilder_; + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + public boolean hasReference() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getReference() { + if (referenceBuilder_ == null) { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : reference_; + } else { + return referenceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReference( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (referenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + } else { + referenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReference( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (referenceBuilder_ == null) { + reference_ = builderForValue.build(); + } else { + referenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReference( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (referenceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && reference_ != null + && reference_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getReferenceBuilder().mergeFrom(value); + } else { + reference_ = value; + } + } else { + referenceBuilder_.mergeFrom(value); + } + if (reference_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReference() { + bitField0_ = (bitField0_ & ~0x00000008); + reference_ = null; + if (referenceBuilder_ != null) { + referenceBuilder_.dispose(); + referenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getReferenceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getReferenceOrBuilder() { + if (referenceBuilder_ != null) { + return referenceBuilder_.getMessageOrBuilder(); + } else { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : reference_; + } + } + + /** + * + * + *
+     * Optional. Data used to populate placeholder `reference` in a metric prompt
+     * template.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetReferenceFieldBuilder() { + if (referenceBuilder_ == null) { + referenceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getReference(), getParentForChildren(), isClean()); + reference_ = null; + } + return referenceBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance otherData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder> + otherDataBuilder_; + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherData field is set. + */ + public boolean hasOtherData() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherData. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance getOtherData() { + if (otherDataBuilder_ == null) { + return otherData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance() + : otherData_; + } else { + return otherDataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOtherData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance value) { + if (otherDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + otherData_ = value; + } else { + otherDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOtherData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder + builderForValue) { + if (otherDataBuilder_ == null) { + otherData_ = builderForValue.build(); + } else { + otherDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOtherData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance value) { + if (otherDataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && otherData_ != null + && otherData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance()) { + getOtherDataBuilder().mergeFrom(value); + } else { + otherData_ = value; + } + } else { + otherDataBuilder_.mergeFrom(value); + } + if (otherData_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOtherData() { + bitField0_ = (bitField0_ & ~0x00000010); + otherData_ = null; + if (otherDataBuilder_ != null) { + otherDataBuilder_.dispose(); + otherDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder + getOtherDataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetOtherDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder + getOtherDataOrBuilder() { + if (otherDataBuilder_ != null) { + return otherDataBuilder_.getMessageOrBuilder(); + } else { + return otherData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance() + : otherData_; + } + } + + /** + * + * + *
+     * Optional. Other data used to populate placeholders based on their key.
+     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+     * the value of the field will take precedence over the value in other_data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder> + internalGetOtherDataFieldBuilder() { + if (otherDataBuilder_ == null) { + otherDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder>( + getOtherData(), getParentForChildren(), isClean()); + otherData_ = null; + } + return otherDataBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agentData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder> + agentDataBuilder_; + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return Whether the agentData field is set. + */ + @java.lang.Deprecated + public boolean hasAgentData() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return The agentData. + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + getAgentData() { + if (agentDataBuilder_ == null) { + return agentData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance() + : agentData_; + } else { + return agentDataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setAgentData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData value) { + if (agentDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentData_ = value; + } else { + agentDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setAgentData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder + builderForValue) { + if (agentDataBuilder_ == null) { + agentData_ = builderForValue.build(); + } else { + agentDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeAgentData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData value) { + if (agentDataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && agentData_ != null + && agentData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance()) { + getAgentDataBuilder().mergeFrom(value); + } else { + agentData_ = value; + } + } else { + agentDataBuilder_.mergeFrom(value); + } + if (agentData_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearAgentData() { + bitField0_ = (bitField0_ & ~0x00000020); + agentData_ = null; + if (agentDataBuilder_ != null) { + agentDataBuilder_.dispose(); + agentDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder + getAgentDataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetAgentDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder + getAgentDataOrBuilder() { + if (agentDataBuilder_ != null) { + return agentDataBuilder_.getMessageOrBuilder(); + } else { + return agentData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance() + : agentData_; + } + } + + /** + * + * + *
+     * Optional. Deprecated: Use `agent_eval_data` instead.
+     * Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder> + internalGetAgentDataFieldBuilder() { + if (agentDataBuilder_ == null) { + agentDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentDataOrBuilder>( + getAgentData(), getParentForChildren(), isClean()); + agentData_ = null; + } + return agentDataBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.AgentData agentEvalData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentData, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder, + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder> + agentEvalDataBuilder_; + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentEvalData field is set. + */ + public boolean hasAgentEvalData() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentEvalData. + */ + public com.google.cloud.aiplatform.v1beta1.AgentData getAgentEvalData() { + if (agentEvalDataBuilder_ == null) { + return agentEvalData_ == null + ? com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance() + : agentEvalData_; + } else { + return agentEvalDataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentEvalData(com.google.cloud.aiplatform.v1beta1.AgentData value) { + if (agentEvalDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentEvalData_ = value; + } else { + agentEvalDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentEvalData( + com.google.cloud.aiplatform.v1beta1.AgentData.Builder builderForValue) { + if (agentEvalDataBuilder_ == null) { + agentEvalData_ = builderForValue.build(); + } else { + agentEvalDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentEvalData(com.google.cloud.aiplatform.v1beta1.AgentData value) { + if (agentEvalDataBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && agentEvalData_ != null + && agentEvalData_ + != com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance()) { + getAgentEvalDataBuilder().mergeFrom(value); + } else { + agentEvalData_ = value; + } + } else { + agentEvalDataBuilder_.mergeFrom(value); + } + if (agentEvalData_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentEvalData() { + bitField0_ = (bitField0_ & ~0x00000040); + agentEvalData_ = null; + if (agentEvalDataBuilder_ != null) { + agentEvalDataBuilder_.dispose(); + agentEvalDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentData.Builder getAgentEvalDataBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetAgentEvalDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder getAgentEvalDataOrBuilder() { + if (agentEvalDataBuilder_ != null) { + return agentEvalDataBuilder_.getMessageOrBuilder(); + } else { + return agentEvalData_ == null + ? com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance() + : agentEvalData_; + } + } + + /** + * + * + *
+     * Optional. Data used for agent evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentData, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder, + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder> + internalGetAgentEvalDataFieldBuilder() { + if (agentEvalDataBuilder_ == null) { + agentEvalDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentData, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder, + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder>( + getAgentEvalData(), getParentForChildren(), isClean()); + agentEvalData_ = null; + } + return agentEvalDataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EvaluationInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstanceOrBuilder.java new file mode 100644 index 000000000000..ae1febcf5fc5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstanceOrBuilder.java @@ -0,0 +1,400 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface EvaluationInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Data used to populate placeholder `prompt` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the prompt field is set. + */ + boolean hasPrompt(); + + /** + * + * + *
+   * Optional. Data used to populate placeholder `prompt` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The prompt. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getPrompt(); + + /** + * + * + *
+   * Optional. Data used to populate placeholder `prompt` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder getPromptOrBuilder(); + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRubricGroupsCount(); + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsRubricGroups(java.lang.String key); + + /** Use {@link #getRubricGroupsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getRubricGroups(); + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getRubricGroupsMap(); + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.RubricGroup defaultValue); + + /** + * + * + *
+   * Optional. Named groups of rubrics associated with the prompt.
+   * This is used for rubric-based evaluations where rubrics can be referenced
+   * by a key. The key could represent versions, associated metrics, etc.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Data used to populate placeholder `response` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + + /** + * + * + *
+   * Optional. Data used to populate placeholder `response` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getResponse(); + + /** + * + * + *
+   * Optional. Data used to populate placeholder `response` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getResponseOrBuilder(); + + /** + * + * + *
+   * Optional. Data used to populate placeholder `reference` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + boolean hasReference(); + + /** + * + * + *
+   * Optional. Data used to populate placeholder `reference` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getReference(); + + /** + * + * + *
+   * Optional. Data used to populate placeholder `reference` in a metric prompt
+   * template.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getReferenceOrBuilder(); + + /** + * + * + *
+   * Optional. Other data used to populate placeholders based on their key.
+   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+   * the value of the field will take precedence over the value in other_data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherData field is set. + */ + boolean hasOtherData(); + + /** + * + * + *
+   * Optional. Other data used to populate placeholders based on their key.
+   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+   * the value of the field will take precedence over the value in other_data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherData. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance getOtherData(); + + /** + * + * + *
+   * Optional. Other data used to populate placeholders based on their key.
+   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
+   * the value of the field will take precedence over the value in other_data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder + getOtherDataOrBuilder(); + + /** + * + * + *
+   * Optional. Deprecated: Use `agent_eval_data` instead.
+   * Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return Whether the agentData field is set. + */ + @java.lang.Deprecated + boolean hasAgentData(); + + /** + * + * + *
+   * Optional. Deprecated: Use `agent_eval_data` instead.
+   * Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return The agentData. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData getAgentData(); + + /** + * + * + *
+   * Optional. Deprecated: Use `agent_eval_data` instead.
+   * Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder + getAgentDataOrBuilder(); + + /** + * + * + *
+   * Optional. Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentEvalData field is set. + */ + boolean hasAgentEvalData(); + + /** + * + * + *
+   * Optional. Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentEvalData. + */ + com.google.cloud.aiplatform.v1beta1.AgentData getAgentEvalData(); + + /** + * + * + *
+   * Optional. Data used for agent evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder getAgentEvalDataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfig.java new file mode 100644 index 000000000000..071f4b9b637c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfig.java @@ -0,0 +1,2009 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Config for parsing LLM responses.
+ * It can be used to parse the LLM response to be evaluated, or the LLM
+ * response from LLM-based metrics/Autoraters.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationParserConfig} + */ +@com.google.protobuf.Generated +public final class EvaluationParserConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + EvaluationParserConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationParserConfig"); + } + + // Use EvaluationParserConfig.newBuilder() to construct. + private EvaluationParserConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EvaluationParserConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.class, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder.class); + } + + public interface CustomCodeParserConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Python function for parsing results. The function should be
+     * defined within this string.
+     *
+     * The function takes a list of strings (LLM responses) and should return
+     * either a list of dictionaries (for rubrics) or a single dictionary
+     * (for a metric result).
+     *
+     * Example function signature:
+     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+     *
+     * When parsing rubrics, return a list of dictionaries, where each
+     * dictionary represents a Rubric.
+     * Example for rubrics:
+     * [
+     * {
+     * "content": {"property": {"description": "The response is
+     * factual."}},
+     * "type": "FACTUALITY",
+     * "importance": "HIGH"
+     * },
+     * {
+     * "content": {"property": {"description": "The response is
+     * fluent."}},
+     * "type": "FLUENCY",
+     * "importance": "MEDIUM"
+     * }
+     * ]
+     *
+     * When parsing critique results, return a dictionary representing a
+     * MetricResult.
+     * Example for a metric result:
+     * {
+     * "score": 0.8,
+     * "explanation": "The model followed most instructions.",
+     * "rubric_verdicts": [...]
+     * }
+     *
+     * ... code for result extraction and aggregation
+     * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the parsingFunction field is set. + */ + boolean hasParsingFunction(); + + /** + * + * + *
+     * Required. Python function for parsing results. The function should be
+     * defined within this string.
+     *
+     * The function takes a list of strings (LLM responses) and should return
+     * either a list of dictionaries (for rubrics) or a single dictionary
+     * (for a metric result).
+     *
+     * Example function signature:
+     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+     *
+     * When parsing rubrics, return a list of dictionaries, where each
+     * dictionary represents a Rubric.
+     * Example for rubrics:
+     * [
+     * {
+     * "content": {"property": {"description": "The response is
+     * factual."}},
+     * "type": "FACTUALITY",
+     * "importance": "HIGH"
+     * },
+     * {
+     * "content": {"property": {"description": "The response is
+     * fluent."}},
+     * "type": "FLUENCY",
+     * "importance": "MEDIUM"
+     * }
+     * ]
+     *
+     * When parsing critique results, return a dictionary representing a
+     * MetricResult.
+     * Example for a metric result:
+     * {
+     * "score": 0.8,
+     * "explanation": "The model followed most instructions.",
+     * "rubric_verdicts": [...]
+     * }
+     *
+     * ... code for result extraction and aggregation
+     * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parsingFunction. + */ + java.lang.String getParsingFunction(); + + /** + * + * + *
+     * Required. Python function for parsing results. The function should be
+     * defined within this string.
+     *
+     * The function takes a list of strings (LLM responses) and should return
+     * either a list of dictionaries (for rubrics) or a single dictionary
+     * (for a metric result).
+     *
+     * Example function signature:
+     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+     *
+     * When parsing rubrics, return a list of dictionaries, where each
+     * dictionary represents a Rubric.
+     * Example for rubrics:
+     * [
+     * {
+     * "content": {"property": {"description": "The response is
+     * factual."}},
+     * "type": "FACTUALITY",
+     * "importance": "HIGH"
+     * },
+     * {
+     * "content": {"property": {"description": "The response is
+     * fluent."}},
+     * "type": "FLUENCY",
+     * "importance": "MEDIUM"
+     * }
+     * ]
+     *
+     * When parsing critique results, return a dictionary representing a
+     * MetricResult.
+     * Example for a metric result:
+     * {
+     * "score": 0.8,
+     * "explanation": "The model followed most instructions.",
+     * "rubric_verdicts": [...]
+     * }
+     *
+     * ... code for result extraction and aggregation
+     * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parsingFunction. + */ + com.google.protobuf.ByteString getParsingFunctionBytes(); + } + + /** + * + * + *
+   * Configuration for parsing the LLM response using custom code.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig} + */ + public static final class CustomCodeParserConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + CustomCodeParserConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomCodeParserConfig"); + } + + // Use CustomCodeParserConfig.newBuilder() to construct. + private CustomCodeParserConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomCodeParserConfig() { + parsingFunction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder.class); + } + + private int bitField0_; + public static final int PARSING_FUNCTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parsingFunction_ = ""; + + /** + * + * + *
+     * Required. Python function for parsing results. The function should be
+     * defined within this string.
+     *
+     * The function takes a list of strings (LLM responses) and should return
+     * either a list of dictionaries (for rubrics) or a single dictionary
+     * (for a metric result).
+     *
+     * Example function signature:
+     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+     *
+     * When parsing rubrics, return a list of dictionaries, where each
+     * dictionary represents a Rubric.
+     * Example for rubrics:
+     * [
+     * {
+     * "content": {"property": {"description": "The response is
+     * factual."}},
+     * "type": "FACTUALITY",
+     * "importance": "HIGH"
+     * },
+     * {
+     * "content": {"property": {"description": "The response is
+     * fluent."}},
+     * "type": "FLUENCY",
+     * "importance": "MEDIUM"
+     * }
+     * ]
+     *
+     * When parsing critique results, return a dictionary representing a
+     * MetricResult.
+     * Example for a metric result:
+     * {
+     * "score": 0.8,
+     * "explanation": "The model followed most instructions.",
+     * "rubric_verdicts": [...]
+     * }
+     *
+     * ... code for result extraction and aggregation
+     * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the parsingFunction field is set. + */ + @java.lang.Override + public boolean hasParsingFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Python function for parsing results. The function should be
+     * defined within this string.
+     *
+     * The function takes a list of strings (LLM responses) and should return
+     * either a list of dictionaries (for rubrics) or a single dictionary
+     * (for a metric result).
+     *
+     * Example function signature:
+     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+     *
+     * When parsing rubrics, return a list of dictionaries, where each
+     * dictionary represents a Rubric.
+     * Example for rubrics:
+     * [
+     * {
+     * "content": {"property": {"description": "The response is
+     * factual."}},
+     * "type": "FACTUALITY",
+     * "importance": "HIGH"
+     * },
+     * {
+     * "content": {"property": {"description": "The response is
+     * fluent."}},
+     * "type": "FLUENCY",
+     * "importance": "MEDIUM"
+     * }
+     * ]
+     *
+     * When parsing critique results, return a dictionary representing a
+     * MetricResult.
+     * Example for a metric result:
+     * {
+     * "score": 0.8,
+     * "explanation": "The model followed most instructions.",
+     * "rubric_verdicts": [...]
+     * }
+     *
+     * ... code for result extraction and aggregation
+     * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parsingFunction. + */ + @java.lang.Override + public java.lang.String getParsingFunction() { + java.lang.Object ref = parsingFunction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parsingFunction_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. Python function for parsing results. The function should be
+     * defined within this string.
+     *
+     * The function takes a list of strings (LLM responses) and should return
+     * either a list of dictionaries (for rubrics) or a single dictionary
+     * (for a metric result).
+     *
+     * Example function signature:
+     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+     *
+     * When parsing rubrics, return a list of dictionaries, where each
+     * dictionary represents a Rubric.
+     * Example for rubrics:
+     * [
+     * {
+     * "content": {"property": {"description": "The response is
+     * factual."}},
+     * "type": "FACTUALITY",
+     * "importance": "HIGH"
+     * },
+     * {
+     * "content": {"property": {"description": "The response is
+     * fluent."}},
+     * "type": "FLUENCY",
+     * "importance": "MEDIUM"
+     * }
+     * ]
+     *
+     * When parsing critique results, return a dictionary representing a
+     * MetricResult.
+     * Example for a metric result:
+     * {
+     * "score": 0.8,
+     * "explanation": "The model followed most instructions.",
+     * "rubric_verdicts": [...]
+     * }
+     *
+     * ... code for result extraction and aggregation
+     * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parsingFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParsingFunctionBytes() { + java.lang.Object ref = parsingFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parsingFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parsingFunction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parsingFunction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig other = + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) obj; + + if (hasParsingFunction() != other.hasParsingFunction()) return false; + if (hasParsingFunction()) { + if (!getParsingFunction().equals(other.getParsingFunction())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasParsingFunction()) { + hash = (37 * hash) + PARSING_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getParsingFunction().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for parsing the LLM response using custom code.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parsingFunction_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig result = + new com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parsingFunction_ = parsingFunction_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance()) return this; + if (other.hasParsingFunction()) { + parsingFunction_ = other.parsingFunction_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parsingFunction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parsingFunction_ = ""; + + /** + * + * + *
+       * Required. Python function for parsing results. The function should be
+       * defined within this string.
+       *
+       * The function takes a list of strings (LLM responses) and should return
+       * either a list of dictionaries (for rubrics) or a single dictionary
+       * (for a metric result).
+       *
+       * Example function signature:
+       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+       *
+       * When parsing rubrics, return a list of dictionaries, where each
+       * dictionary represents a Rubric.
+       * Example for rubrics:
+       * [
+       * {
+       * "content": {"property": {"description": "The response is
+       * factual."}},
+       * "type": "FACTUALITY",
+       * "importance": "HIGH"
+       * },
+       * {
+       * "content": {"property": {"description": "The response is
+       * fluent."}},
+       * "type": "FLUENCY",
+       * "importance": "MEDIUM"
+       * }
+       * ]
+       *
+       * When parsing critique results, return a dictionary representing a
+       * MetricResult.
+       * Example for a metric result:
+       * {
+       * "score": 0.8,
+       * "explanation": "The model followed most instructions.",
+       * "rubric_verdicts": [...]
+       * }
+       *
+       * ... code for result extraction and aggregation
+       * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the parsingFunction field is set. + */ + public boolean hasParsingFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Required. Python function for parsing results. The function should be
+       * defined within this string.
+       *
+       * The function takes a list of strings (LLM responses) and should return
+       * either a list of dictionaries (for rubrics) or a single dictionary
+       * (for a metric result).
+       *
+       * Example function signature:
+       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+       *
+       * When parsing rubrics, return a list of dictionaries, where each
+       * dictionary represents a Rubric.
+       * Example for rubrics:
+       * [
+       * {
+       * "content": {"property": {"description": "The response is
+       * factual."}},
+       * "type": "FACTUALITY",
+       * "importance": "HIGH"
+       * },
+       * {
+       * "content": {"property": {"description": "The response is
+       * fluent."}},
+       * "type": "FLUENCY",
+       * "importance": "MEDIUM"
+       * }
+       * ]
+       *
+       * When parsing critique results, return a dictionary representing a
+       * MetricResult.
+       * Example for a metric result:
+       * {
+       * "score": 0.8,
+       * "explanation": "The model followed most instructions.",
+       * "rubric_verdicts": [...]
+       * }
+       *
+       * ... code for result extraction and aggregation
+       * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The parsingFunction. + */ + public java.lang.String getParsingFunction() { + java.lang.Object ref = parsingFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parsingFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. Python function for parsing results. The function should be
+       * defined within this string.
+       *
+       * The function takes a list of strings (LLM responses) and should return
+       * either a list of dictionaries (for rubrics) or a single dictionary
+       * (for a metric result).
+       *
+       * Example function signature:
+       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+       *
+       * When parsing rubrics, return a list of dictionaries, where each
+       * dictionary represents a Rubric.
+       * Example for rubrics:
+       * [
+       * {
+       * "content": {"property": {"description": "The response is
+       * factual."}},
+       * "type": "FACTUALITY",
+       * "importance": "HIGH"
+       * },
+       * {
+       * "content": {"property": {"description": "The response is
+       * fluent."}},
+       * "type": "FLUENCY",
+       * "importance": "MEDIUM"
+       * }
+       * ]
+       *
+       * When parsing critique results, return a dictionary representing a
+       * MetricResult.
+       * Example for a metric result:
+       * {
+       * "score": 0.8,
+       * "explanation": "The model followed most instructions.",
+       * "rubric_verdicts": [...]
+       * }
+       *
+       * ... code for result extraction and aggregation
+       * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for parsingFunction. + */ + public com.google.protobuf.ByteString getParsingFunctionBytes() { + java.lang.Object ref = parsingFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parsingFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. Python function for parsing results. The function should be
+       * defined within this string.
+       *
+       * The function takes a list of strings (LLM responses) and should return
+       * either a list of dictionaries (for rubrics) or a single dictionary
+       * (for a metric result).
+       *
+       * Example function signature:
+       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+       *
+       * When parsing rubrics, return a list of dictionaries, where each
+       * dictionary represents a Rubric.
+       * Example for rubrics:
+       * [
+       * {
+       * "content": {"property": {"description": "The response is
+       * factual."}},
+       * "type": "FACTUALITY",
+       * "importance": "HIGH"
+       * },
+       * {
+       * "content": {"property": {"description": "The response is
+       * fluent."}},
+       * "type": "FLUENCY",
+       * "importance": "MEDIUM"
+       * }
+       * ]
+       *
+       * When parsing critique results, return a dictionary representing a
+       * MetricResult.
+       * Example for a metric result:
+       * {
+       * "score": 0.8,
+       * "explanation": "The model followed most instructions.",
+       * "rubric_verdicts": [...]
+       * }
+       *
+       * ... code for result extraction and aggregation
+       * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The parsingFunction to set. + * @return This builder for chaining. + */ + public Builder setParsingFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parsingFunction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Python function for parsing results. The function should be
+       * defined within this string.
+       *
+       * The function takes a list of strings (LLM responses) and should return
+       * either a list of dictionaries (for rubrics) or a single dictionary
+       * (for a metric result).
+       *
+       * Example function signature:
+       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+       *
+       * When parsing rubrics, return a list of dictionaries, where each
+       * dictionary represents a Rubric.
+       * Example for rubrics:
+       * [
+       * {
+       * "content": {"property": {"description": "The response is
+       * factual."}},
+       * "type": "FACTUALITY",
+       * "importance": "HIGH"
+       * },
+       * {
+       * "content": {"property": {"description": "The response is
+       * fluent."}},
+       * "type": "FLUENCY",
+       * "importance": "MEDIUM"
+       * }
+       * ]
+       *
+       * When parsing critique results, return a dictionary representing a
+       * MetricResult.
+       * Example for a metric result:
+       * {
+       * "score": 0.8,
+       * "explanation": "The model followed most instructions.",
+       * "rubric_verdicts": [...]
+       * }
+       *
+       * ... code for result extraction and aggregation
+       * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearParsingFunction() { + parsingFunction_ = getDefaultInstance().getParsingFunction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Python function for parsing results. The function should be
+       * defined within this string.
+       *
+       * The function takes a list of strings (LLM responses) and should return
+       * either a list of dictionaries (for rubrics) or a single dictionary
+       * (for a metric result).
+       *
+       * Example function signature:
+       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
+       *
+       * When parsing rubrics, return a list of dictionaries, where each
+       * dictionary represents a Rubric.
+       * Example for rubrics:
+       * [
+       * {
+       * "content": {"property": {"description": "The response is
+       * factual."}},
+       * "type": "FACTUALITY",
+       * "importance": "HIGH"
+       * },
+       * {
+       * "content": {"property": {"description": "The response is
+       * fluent."}},
+       * "type": "FLUENCY",
+       * "importance": "MEDIUM"
+       * }
+       * ]
+       *
+       * When parsing critique results, return a dictionary representing a
+       * MetricResult.
+       * Example for a metric result:
+       * {
+       * "score": 0.8,
+       * "explanation": "The model followed most instructions.",
+       * "rubric_verdicts": [...]
+       * }
+       *
+       * ... code for result extraction and aggregation
+       * 
+ * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for parsingFunction to set. + * @return This builder for chaining. + */ + public Builder setParsingFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parsingFunction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomCodeParserConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int parserCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object parser_; + + public enum ParserCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CUSTOM_CODE_PARSER_CONFIG(2), + PARSER_NOT_SET(0); + private final int value; + + private ParserCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ParserCase valueOf(int value) { + return forNumber(value); + } + + public static ParserCase forNumber(int value) { + switch (value) { + case 2: + return CUSTOM_CODE_PARSER_CONFIG; + case 0: + return PARSER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ParserCase getParserCase() { + return ParserCase.forNumber(parserCase_); + } + + public static final int CUSTOM_CODE_PARSER_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Use custom code to parse the LLM response.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customCodeParserConfig field is set. + */ + @java.lang.Override + public boolean hasCustomCodeParserConfig() { + return parserCase_ == 2; + } + + /** + * + * + *
+   * Optional. Use custom code to parse the LLM response.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customCodeParserConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getCustomCodeParserConfig() { + if (parserCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Use custom code to parse the LLM response.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfigOrBuilder + getCustomCodeParserConfigOrBuilder() { + if (parserCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (parserCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parserCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig other = + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig) obj; + + if (!getParserCase().equals(other.getParserCase())) return false; + switch (parserCase_) { + case 2: + if (!getCustomCodeParserConfig().equals(other.getCustomCodeParserConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (parserCase_) { + case 2: + hash = (37 * hash) + CUSTOM_CODE_PARSER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCustomCodeParserConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Config for parsing LLM responses.
+   * It can be used to parse the LLM response to be evaluated, or the LLM
+   * response from LLM-based metrics/Autoraters.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationParserConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.class, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customCodeParserConfigBuilder_ != null) { + customCodeParserConfigBuilder_.clear(); + } + parserCase_ = 0; + parser_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig build() { + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig result = + new com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig result) { + result.parserCase_ = parserCase_; + result.parser_ = this.parser_; + if (parserCase_ == 2 && customCodeParserConfigBuilder_ != null) { + result.parser_ = customCodeParserConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance()) + return this; + switch (other.getParserCase()) { + case CUSTOM_CODE_PARSER_CONFIG: + { + mergeCustomCodeParserConfig(other.getCustomCodeParserConfig()); + break; + } + case PARSER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage( + internalGetCustomCodeParserConfigFieldBuilder().getBuilder(), + extensionRegistry); + parserCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int parserCase_ = 0; + private java.lang.Object parser_; + + public ParserCase getParserCase() { + return ParserCase.forNumber(parserCase_); + } + + public Builder clearParser() { + parserCase_ = 0; + parser_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfigOrBuilder> + customCodeParserConfigBuilder_; + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customCodeParserConfig field is set. + */ + @java.lang.Override + public boolean hasCustomCodeParserConfig() { + return parserCase_ == 2; + } + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customCodeParserConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getCustomCodeParserConfig() { + if (customCodeParserConfigBuilder_ == null) { + if (parserCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } else { + if (parserCase_ == 2) { + return customCodeParserConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomCodeParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig value) { + if (customCodeParserConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parser_ = value; + onChanged(); + } else { + customCodeParserConfigBuilder_.setMessage(value); + } + parserCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomCodeParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig.Builder + builderForValue) { + if (customCodeParserConfigBuilder_ == null) { + parser_ = builderForValue.build(); + onChanged(); + } else { + customCodeParserConfigBuilder_.setMessage(builderForValue.build()); + } + parserCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomCodeParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig value) { + if (customCodeParserConfigBuilder_ == null) { + if (parserCase_ == 2 + && parser_ + != com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance()) { + parser_ = + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfig) + parser_) + .mergeFrom(value) + .buildPartial(); + } else { + parser_ = value; + } + onChanged(); + } else { + if (parserCase_ == 2) { + customCodeParserConfigBuilder_.mergeFrom(value); + } else { + customCodeParserConfigBuilder_.setMessage(value); + } + } + parserCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomCodeParserConfig() { + if (customCodeParserConfigBuilder_ == null) { + if (parserCase_ == 2) { + parserCase_ = 0; + parser_ = null; + onChanged(); + } + } else { + if (parserCase_ == 2) { + parserCase_ = 0; + parser_ = null; + } + customCodeParserConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig.Builder + getCustomCodeParserConfigBuilder() { + return internalGetCustomCodeParserConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfigOrBuilder + getCustomCodeParserConfigOrBuilder() { + if ((parserCase_ == 2) && (customCodeParserConfigBuilder_ != null)) { + return customCodeParserConfigBuilder_.getMessageOrBuilder(); + } else { + if (parserCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Use custom code to parse the LLM response.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfigOrBuilder> + internalGetCustomCodeParserConfigFieldBuilder() { + if (customCodeParserConfigBuilder_ == null) { + if (!(parserCase_ == 2)) { + parser_ = + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + customCodeParserConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfigOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_, + getParentForChildren(), + isClean()); + parser_ = null; + } + parserCase_ = 2; + onChanged(); + return customCodeParserConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationParserConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfigOrBuilder.java new file mode 100644 index 000000000000..b84c21fc4584 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfigOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface EvaluationParserConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Use custom code to parse the LLM response.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customCodeParserConfig field is set. + */ + boolean hasCustomCodeParserConfig(); + + /** + * + * + *
+   * Optional. Use custom code to parse the LLM response.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customCodeParserConfig. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getCustomCodeParserConfig(); + + /** + * + * + *
+   * Optional. Use custom code to parse the LLM response.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfigOrBuilder + getCustomCodeParserConfigOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.ParserCase getParserCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationRubricProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationRubricProto.java new file mode 100644 index 000000000000..7ca6978dc98d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationRubricProto.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public final class EvaluationRubricProto extends com.google.protobuf.GeneratedFile { + private EvaluationRubricProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationRubricProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Rubric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "7google/cloud/aiplatform/v1beta1/evaluation_rubric.proto\022\037google.cloud.aiplatfo" + + "rm.v1beta1\032\037google/api/field_behavior.proto\"\251\003\n" + + "\006Rubric\022\021\n" + + "\trubric_id\030\001 \001(\t\022@\n" + + "\007content\030\002" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.Rubric.Content\022\021\n" + + "\004type\030\003 \001(\tH\000\210\001\001\022K\n\n" + + "importance\030\004" + + " \001(\01622.google.cloud.aiplatform.v1beta1.Rubric.ImportanceH\001\210\001\001\032\210\001\n" + + "\007Content\022L\n" + + "\010property\030\001 \001(\01328.google.cloud" + + ".aiplatform.v1beta1.Rubric.Content.PropertyH\000\032\037\n" + + "\010Property\022\023\n" + + "\013description\030\001 \001(\tB\016\n" + + "\014content_type\"G\n\n" + + "Importance\022\032\n" + + "\026IMPORTANCE_UNSPECIFIED\020\000\022\010\n" + + "\004HIGH\020\001\022\n\n" + + "\006MEDIUM\020\002\022\007\n" + + "\003LOW\020\003B\007\n" + + "\005_typeB\r\n" + + "\013_importance\"o\n" + + "\013RubricGroup\022\020\n" + + "\010group_id\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\0228\n" + + "\007rubrics\030\003 \003(\0132\'.google.cloud.aiplatform.v1beta1.Rubric\"\211\001\n\r" + + "RubricVerdict\022A\n" + + "\020evaluated_rubric\030\001" + + " \001(\0132\'.google.cloud.aiplatform.v1beta1.Rubric\022\017\n" + + "\007verdict\030\002 \001(\010\022\026\n" + + "\treasoning\030\003 \001(\tH\000\210\001\001B\014\n\n" + + "_reasoningB\354\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\025EvaluationRubricProtoP\001ZCcloud.goo" + + "gle.com/go/aiplatform/apiv1beta1/aiplatf" + + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor, + new java.lang.String[] { + "RubricId", "Content", "Type", "Importance", + }); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor.getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor, + new java.lang.String[] { + "Property", "ContentType", + }); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor.getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor, + new java.lang.String[] { + "Description", + }); + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor, + new java.lang.String[] { + "GroupId", "DisplayName", "Rubrics", + }); + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor, + new java.lang.String[] { + "EvaluatedRubric", "Verdict", "Reasoning", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java index ca31e43062ba..2cf6713a106a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java @@ -41,49 +41,85 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r } static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetOperationMetadata_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetOperationMetadata_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetResponse_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_Metric_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetResponse_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_Metric_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_MetricSource_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_MetricSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_OutputConfig_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_OutputConfig_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_Metric_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_Metric_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluationDataset_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluationDataset_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_MapInstanceEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_MapInstanceEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_RubricGroupsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_RubricGroupsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -92,6 +128,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_MetricResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_MetricResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationDataset_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +180,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ExactMatchInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -164,6 +244,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RougeMetricValue_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RougeMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_CoherenceInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -704,6 +788,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ContentMap_ValuesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ContentMap_ValuesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -718,96 +814,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm.v1beta1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032-google/cloud/aiplatform/v1beta1/content.proto\032(google/cloud/aiplatform/v" - + "1beta1/io.proto\032/google/cloud/aiplatform/v1beta1/operation.proto\032#google/longrun" - + "ning/operations.proto\032\034google/protobuf/struct.proto\032\027google/rpc/status.proto\"w\n" - + " EvaluateDatasetOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.cloud.aiplat" - + "form.v1beta1.GenericOperationMetadata\"\265\001\n" - + "\027EvaluateDatasetResponse\022S\n" - + "\022aggregation_output\030\001" - + " \001(\01322.google.cloud.aiplatform.v1beta1.AggregationOutputB\003\340A\003\022E\n" - + "\013output_info\030\003" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.OutputInfoB\003\340A\003\"D\n\n" - + "OutputInfo\022#\n" - + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000B\021\n" - + "\017output_location\"\251\001\n" - + "\021AggregationOutput\022C\n" - + "\007dataset\030\001" - + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDataset\022O\n" - + "\023aggregation_results\030\002" - + " \003(\01322.google.cloud.aiplatform.v1beta1.AggregationResult\"\260\004\n" - + "\021AggregationResult\022Y\n" - + "\027pointwise_metric_result\030\005 \001(\01326" - + ".google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" - + "\026pairwise_metric_result\030\006" - + " \001(\01325.google.cloud.aiplatform.v1beta1.PairwiseMetricResultH\000\022Z\n" - + "\030exact_match_metric_value\030\007" - + " \001(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueH\000\022M\n" - + "\021bleu_metric_value\030\010" - + " \001(\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueH\000\022O\n" - + "\022rouge_metric_value\030\t" - + " \001(\01321.google.cloud.aiplatform.v1beta1.RougeMetricValueH\000\022U\n" - + "\022aggregation_metric\030\004 \001(\01629.google.cloud" - + ".aiplatform.v1beta1.Metric.AggregationMetricB\024\n" - + "\022aggregation_result\"\372\002\n" - + "\026EvaluateDatasetRequest\022;\n" - + "\010location\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022H\n" - + "\007dataset\030\002" - + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDatasetB\003\340A\002\022=\n" - + "\007metrics\030\003" - + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" - + "output_config\030\004 \001(\0132-.goo" - + "gle.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" - + "\020autorater_config\030\005 \001(\01320.googl" - + "e.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"i\n" - + "\014OutputConfig\022J\n" - + "\017gcs_destination\030\001" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000B\r\n" - + "\013destination\"\335\007\n" - + "\006Metric\022W\n" - + "\026predefined_metric_spec\030\010 \001(\01325." - + "google.cloud.aiplatform.v1beta1.PredefinedMetricSpecH\000\022d\n" - + "\035computation_based_metric_spec\030\t" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecH\000\022T\n" - + "\025llm_based_metric_spec\030\n" - + " \001(\01323.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecH\000\022U\n" - + "\025pointwise_metric_spec\030\002 \001(\01324.goog" - + "le.cloud.aiplatform.v1beta1.PointwiseMetricSpecH\000\022S\n" - + "\024pairwise_metric_spec\030\003 \001(\0132" - + "3.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecH\000\022K\n" - + "\020exact_match_spec\030\004 \001(\013" - + "2/.google.cloud.aiplatform.v1beta1.ExactMatchSpecH\000\022>\n" - + "\tbleu_spec\030\005 \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecH\000\022@\n\n" - + "rouge_spec\030\006 \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecH\000\022[\n" - + "\023aggregation_metrics\030\001" - + " \003(\01629.google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\003\340A\001\"\326\001\n" - + "\021AggregationMetric\022\"\n" - + "\036AGGREGATION_METRIC_UNSPECIFIED\020\000\022\013\n" - + "\007AVERAGE\020\001\022\010\n" - + "\004MODE\020\002\022\026\n" - + "\022STANDARD_DEVIATION\020\003\022\014\n" - + "\010VARIANCE\020\004\022\013\n" - + "\007MINIMUM\020\005\022\013\n" - + "\007MAXIMUM\020\006\022\n\n" - + "\006MEDIAN\020\007\022\022\n" - + "\016PERCENTILE_P90\020\010\022\022\n" - + "\016PERCENTILE_P95\020\t\022\022\n" - + "\016PERCENTILE_P99\020\n" - + "B\r\n" - + "\013metric_spec\"\253\001\n" - + "\021EvaluationDataset\022@\n\n" - + "gcs_source\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022J\n" - + "\017bigquery_source\030\002" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.BigQuerySourceH\000B\010\n" - + "\006source\"\225\001\n" - + "\017AutoraterConfig\022 \n" - + "\016sampling_count\030\001 \001(\005B\003\340A\001H\000\210\001\001\022\036\n" - + "\014flip_enabled\030\002 \001(\010B\003\340A\001H\001\210\001\001\022\034\n" - + "\017autorater_model\030\003 \001(\tB\003\340A\001B\021\n" - + "\017_sampling_countB\017\n\r" - + "_flip_enabled\"\202\031\n" + + ".proto\032-google/cloud/aiplatform/v1beta1/content.proto\032;google/cloud/aiplatform/v" + + "1beta1/evaluation_agent_data.proto\0327google/cloud/aiplatform/v1beta1/evaluation_r" + + "ubric.proto\032(google/cloud/aiplatform/v1beta1/io.proto\032/google/cloud/aiplatform/v" + + "1beta1/operation.proto\032*google/cloud/aiplatform/v1beta1/tool.proto\032#google/longr" + + "unning/operations.proto\032\034google/protobuf" + + "/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\317\032\n" + "\030EvaluateInstancesRequest\022M\n" + "\021exact_match_input\030\002" + " \001(\01320.google.cloud.aiplatform.v1beta1.ExactMatchInputH\000\022@\n\n" @@ -818,150 +830,372 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.aiplatform.v1beta1.FluencyInputH\000\022J\n" + "\017coherence_input\030\006" + " \001(\0132/.google.cloud.aiplatform.v1beta1.CoherenceInputH\000\022D\n" - + "\014safety_input\030\010" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.SafetyInputH\000\022P\n" - + "\022groundedness_input\030\t \001(\013" - + "22.google.cloud.aiplatform.v1beta1.GroundednessInputH\000\022N\n" - + "\021fulfillment_input\030\014 \001(" - + "\01321.google.cloud.aiplatform.v1beta1.FulfillmentInputH\000\022a\n" + + "\014safety_input\030\010 " + + "\001(\0132,.google.cloud.aiplatform.v1beta1.SafetyInputH\000\022P\n" + + "\022groundedness_input\030\t \001(\0132" + + "2.google.cloud.aiplatform.v1beta1.GroundednessInputH\000\022N\n" + + "\021fulfillment_input\030\014 \001(\013" + + "21.google.cloud.aiplatform.v1beta1.FulfillmentInputH\000\022a\n" + "\033summarization_quality_input\030\007" + " \001(\0132:.google.cloud.aiplatform.v1beta1.SummarizationQualityInputH\000\022r\n" - + "$pairwise_summarization_quality_input\030\027 \001(\0132" - + "B.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInputH\000\022i\n" - + "\037summarization_helpfulness_input\030\016 \001(\0132>.google." - + "cloud.aiplatform.v1beta1.SummarizationHelpfulnessInputH\000\022e\n" - + "\035summarization_verbosity_input\030\017 \001(\0132<.google.cloud.aiplatfor" - + "m.v1beta1.SummarizationVerbosityInputH\000\022j\n" + + "$pairwise_summarization_quality_input\030\027 \001(\0132B" + + ".google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInputH\000\022i\n" + + "\037summarization_helpfulness_input\030\016 \001(\0132>.google.c" + + "loud.aiplatform.v1beta1.SummarizationHelpfulnessInputH\000\022e\n" + + "\035summarization_verbosity_input\030\017 \001(\0132<.google.cloud.aiplatform" + + ".v1beta1.SummarizationVerbosityInputH\000\022j\n" + " question_answering_quality_input\030\n" + " \001(\0132>.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInputH\000\022{\n" - + ")pairwise_question_answering_quality_input\030\030 \001(\0132F" - + ".google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInputH\000\022n\n" - + "\"question_answering_relevance_input\030\020 \001(\0132@.g" - + "oogle.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInputH\000\022r\n" - + "$question_answering_helpfulness_input\030\021 \001(\0132B.google." - + "cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInputH\000\022r\n" - + "$question_answering_correctness_input\030\022 \001(\0132B.google.clou" - + "d.aiplatform.v1beta1.QuestionAnsweringCorrectnessInputH\000\022W\n" + + ")pairwise_question_answering_quality_input\030\030 \001(\0132F." + + "google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInputH\000\022n\n" + + "\"question_answering_relevance_input\030\020 \001(\0132@.go" + + "ogle.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInputH\000\022r\n" + + "$question_answering_helpfulness_input\030\021 \001(\0132B.google.c" + + "loud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInputH\000\022r\n" + + "$question_answering_correctness_input\030\022 \001(\0132B.google.cloud" + + ".aiplatform.v1beta1.QuestionAnsweringCorrectnessInputH\000\022W\n" + "\026pointwise_metric_input\030\034" + " \001(\01325.google.cloud.aiplatform.v1beta1.PointwiseMetricInputH\000\022U\n" + "\025pairwise_metric_input\030\035" + " \001(\01324.google.cloud.aiplatform.v1beta1.PairwiseMetricInputH\000\022T\n" - + "\025tool_call_valid_input\030\023 \001(\01323.google.cloud.a" - + "iplatform.v1beta1.ToolCallValidInputH\000\022T\n" - + "\025tool_name_match_input\030\024 \001(\01323.google.c" - + "loud.aiplatform.v1beta1.ToolNameMatchInputH\000\022e\n" - + "\036tool_parameter_key_match_input\030\025" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInputH\000\022c\n" - + "\035tool_parameter_kv_match_input\030\026 \001(\0132:.google.clou" - + "d.aiplatform.v1beta1.ToolParameterKVMatchInputH\000\022B\n" + + "\025tool_call_valid_input\030\023" + + " \001(\01323.google.cloud.aiplatform.v1beta1.ToolCallValidInputH\000\022T\n" + + "\025tool_name_match_input\030\024 \001(\01323.google.cl" + + "oud.aiplatform.v1beta1.ToolNameMatchInputH\000\022e\n" + + "\036tool_parameter_key_match_input\030\025 " + + "\001(\0132;.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInputH\000\022c\n" + + "\035tool_parameter_kv_match_input\030\026 \001(\0132:.google.cloud" + + ".aiplatform.v1beta1.ToolParameterKVMatchInputH\000\022B\n" + "\013comet_input\030\037" + " \001(\0132+.google.cloud.aiplatform.v1beta1.CometInputH\000\022F\n\r" + "metricx_input\030 " + " \001(\0132-.google.cloud.aiplatform.v1beta1.MetricxInputH\000\022b\n" - + "\034trajectory_exact_match_input\030! \001(\0132:.google.clou" - + "d.aiplatform.v1beta1.TrajectoryExactMatchInputH\000\022g\n" + + "\034trajectory_exact_match_input\030! \001(\0132:.google.cloud" + + ".aiplatform.v1beta1.TrajectoryExactMatchInputH\000\022g\n" + "\037trajectory_in_order_match_input\030\"" + " \001(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputH\000\022i\n" - + " trajectory_any_order_match_input\030# \001(\0132=.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputH\000\022_\n" + + " trajectory_any_order_match_input\030# \001(\0132=.goo" + + "gle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputH\000\022_\n" + "\032trajectory_precision_input\030%" + " \001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputH\000\022Y\n" - + "\027trajectory_recall_input\030& \001(\01326.google." - + "cloud.aiplatform.v1beta1.TrajectoryRecallInputH\000\022i\n" + + "\027trajectory_recall_input\030& \001(\01326.google.c" + + "loud.aiplatform.v1beta1.TrajectoryRecallInputH\000\022i\n" + " trajectory_single_tool_use_input\030\'" + " \001(\0132=.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputH\000\022y\n" + "(rubric_based_instruction_following_input\030(" - + " \001(\0132E.google.cloud.aiplatform.v1beta1." - + "RubricBasedInstructionFollowingInputH\000\022;\n" + + " \001(\0132E.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInputH\000\022;\n" + "\010location\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022O\n" + + "!locations.googleapis.com/Location\0228\n" + + "\007metrics\0301 \003(\0132\'.google.cloud.aiplatform.v1beta1.Metric\022J\n" + + "\016metric_sources\0304" + + " \003(\0132-.google.cloud.aiplatform.v1beta1.MetricSourceB\003\340A\001\022E\n" + + "\010instance\0302" + + " \001(\01323.google.cloud.aiplatform.v1beta1.EvaluationInstance\022O\n" + "\020autorater_config\030\036" + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001B\017\n\r" - + "metric_inputs\"\233\031\n" + + "metric_inputs\"\205\t\n" + + "\006Metric\022W\n" + + "\026predefined_metric_spec\030\010" + + " \001(\01325.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecH\000\022d\n" + + "\035computation_based_metric_spec\030\t \001(\0132;.google.cloud.aipl" + + "atform.v1beta1.ComputationBasedMetricSpecH\000\022T\n" + + "\025llm_based_metric_spec\030\n" + + " \001(\01323.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecH\000\022^\n" + + "\032custom_code_execution_spec\030\013" + + " \001(\01328.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecH\000\022U\n" + + "\025pointwise_metric_spec\030\002" + + " \001(\01324.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecH\000\022S\n" + + "\024pairwise_metric_spec\030\003" + + " \001(\01323.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecH\000\022K\n" + + "\020exact_match_spec\030\004" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.ExactMatchSpecH\000\022>\n" + + "\tbleu_spec\030\005 \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecH\000\022@\n\n" + + "rouge_spec\030\006 \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecH\000\022[\n" + + "\023aggregation_metrics\030\001 \003(\01629.goog" + + "le.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\003\340A\001\022F\n" + + "\010metadata\030\r" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.MetricMetadataB\003\340A\001\"\326\001\n" + + "\021AggregationMetric\022\"\n" + + "\036AGGREGATION_METRIC_UNSPECIFIED\020\000\022\013\n" + + "\007AVERAGE\020\001\022\010\n" + + "\004MODE\020\002\022\026\n" + + "\022STANDARD_DEVIATION\020\003\022\014\n" + + "\010VARIANCE\020\004\022\013\n" + + "\007MINIMUM\020\005\022\013\n" + + "\007MAXIMUM\020\006\022\n\n" + + "\006MEDIAN\020\007\022\022\n" + + "\016PERCENTILE_P90\020\010\022\022\n" + + "\016PERCENTILE_P95\020\t\022\022\n" + + "\016PERCENTILE_P99\020\n" + + "B\r\n" + + "\013metric_spec\"\270\002\n" + + "\016MetricMetadata\022\022\n" + + "\005title\030\001 \001(\tB\003\340A\001\022T\n" + + "\013score_range\030\002 \001(\0132:.google.cloud.aip" + + "latform.v1beta1.MetricMetadata.ScoreRangeB\003\340A\001\0224\n" + + "\016other_metadata\030\003" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032\205\001\n\n" + + "ScoreRange\022\025\n" + + "\003min\030\001 \001(\001B\003\340A\002H\000\210\001\001\022\025\n" + + "\003max\030\002 \001(\001B\003\340A\002H\001\210\001\001\022\026\n" + + "\004step\030\003 \001(\001B\003\340A\001H\002\210\001\001\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\001B\006\n" + + "\004_minB\006\n" + + "\004_maxB\007\n" + + "\005_step\"z\n" + + "\014MetricSource\0229\n" + + "\006metric\030\001 \001(\0132\'.google.cloud.aiplatform.v1beta1.MetricH\000\022\036\n" + + "\024metric_resource_name\030\002 \001(\tH\000B\017\n\r" + + "metric_source\"\211\030\n" + + "\022EvaluationInstance\022U\n" + + "\006prompt\030\001 \001(\0132" + + "@.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\003\340A\001\022a\n\r" + + "rubric_groups\030\002 \003(\0132E.google.cloud.aiplatform." + + "v1beta1.EvaluationInstance.RubricGroupsEntryB\003\340A\001\022W\n" + + "\010response\030\003 \001(\0132@.google.clo" + + "ud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\003\340A\001\022X\n" + + "\treference\030\004 \001(\0132@." + + "google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\003\340A\001\022X\n\n" + + "other_data\030\005 \001(\0132?.google.cloud.aiplatform.v1bet" + + "a1.EvaluationInstance.MapInstanceB\003\340A\001\022b\n\n" + + "agent_data\030\006 \001(\0132G.google.cloud.aiplat" + + "form.v1beta1.EvaluationInstance.DeprecatedAgentDataB\005\030\001\340A\001\022H\n" + + "\017agent_eval_data\030\007 " + + "\001(\0132*.google.cloud.aiplatform.v1beta1.AgentDataB\003\340A\001\032\322\001\n" + + "\014InstanceData\022\016\n" + + "\004text\030\001 \001(\tH\000\022]\n" + + "\010contents\030\002 \001(\0132I.google.cloud.a" + + "iplatform.v1beta1.EvaluationInstance.InstanceData.ContentsH\000\032K\n" + + "\010Contents\022?\n" + + "\010contents\030\001" + + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001B\006\n" + + "\004data\032\360\001\n" + + "\013MapInstance\022k\n" + + "\014map_instance\030\001 \003(\0132P.google.cloud.a" + + "iplatform.v1beta1.EvaluationInstance.MapInstance.MapInstanceEntryB\003\340A\001\032t\n" + + "\020MapInstanceEntry\022\013\n" + + "\003key\030\001 \001(\t\022O\n" + + "\005value\030\002 \001(\0132@" + + ".google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData:\0028\001\032\242\013\n" + + "\023DeprecatedAgentData\022\030\n\n" + + "tools_text\030\001 \001(\tB\002\030\001H\000\022b\n" + + "\005tools\030\002 \001(\0132M.google.cloud.aiplatform." + + "v1beta1.EvaluationInstance.DeprecatedAgentData.ToolsB\002\030\001H\000\022`\n" + + "\006events\030\005 \001(\0132N.goo" + + "gle.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.EventsH\001\022h\n" + + "\006agents\030\007 \003(\0132S.google.cloud.aiplatform.v" + + "1beta1.EvaluationInstance.DeprecatedAgentData.AgentsEntryB\003\340A\001\022l\n" + + "\005turns\030\010 \003(\0132X.google.cloud.aiplatform.v1beta1.Evaluati" + + "onInstance.DeprecatedAgentData.ConversationTurnB\003\340A\001\022f\n" + + "\025developer_instruction\030\003 " + + "\001(\0132@.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\005\030\001\340A\001\022d\n" + + "\014agent_config\030\006 \001(\0132I.google.cloud.aiplat" + + "form.v1beta1.EvaluationInstance.DeprecatedAgentConfigB\003\340A\001\032\276\001\n" + + "\020ConversationTurn\022\034\n\n" + + "turn_index\030\001 \001(\005B\003\340A\002H\000\210\001\001\022\024\n" + + "\007turn_id\030\002 \001(\tB\003\340A\001\022g\n" + + "\006events\030\003 \003(\0132R.google.clo" + + "ud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEventB\003\340A\001B\r\n" + + "\013_turn_index\032\233\002\n\n" + + "AgentEvent\022\030\n" + + "\006author\030\001 \001(\tB\003\340A\002H\000\210\001\001\022>\n" + + "\007content\030\002" + + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\002\0223\n\n" + + "event_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0221\n" + + "\013state_delta\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\001\022@\n" + + "\014active_tools\030\005 \003" + + "(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001B\t\n" + + "\007_author\032C\n" + + "\005Tools\022:\n" + + "\004tool\030\001 \003(\013" + + "2%.google.cloud.aiplatform.v1beta1.ToolB\005\030\001\340A\001\032F\n" + + "\006Events\022<\n" + + "\005event\030\001 \003(\0132(.google" + + ".cloud.aiplatform.v1beta1.ContentB\003\340A\001\032x\n" + + "\013AgentsEntry\022\013\n" + + "\003key\030\001 \001(\t\022X\n" + + "\005value\030\002 \001(\0132I.google.cloud.aiplatform.v1beta1.Eval" + + "uationInstance.DeprecatedAgentConfig:\0028\001:\002\030\001B\014\n\n" + + "tools_dataB\r\n" + + "\013events_data\032\255\003\n" + + "\025DeprecatedAgentConfig\022\024\n\n" + + "tools_text\030\001 \001(\tH\000\022`\n" + + "\005tools\030\002 \001(\0132O.google.cloud.aiplatfo" + + "rm.v1beta1.EvaluationInstance.DeprecatedAgentConfig.ToolsH\000\022\025\n" + + "\010agent_id\030\004 \001(\tB\003\340A\001\022\027\n\n" + + "agent_type\030\005 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\006 \001(\tB\003\340A\001\022\027\n\n" + + "sub_agents\030\007 \003(\tB\003\340A\001\022d\n" + + "\025developer_instruction\030\003 \001(\0132@.google.c" + + "loud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\003\340A\001\032A\n" + + "\005Tools\0228\n" + + "\004tool\030\001 " + + "\003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001:\002\030\001B\014\n\n" + + "tools_data\032a\n" + + "\021RubricGroupsEntry\022\013\n" + + "\003key\030\001 \001(\t\022;\n" + + "\005value\030\002 \001(\0132,.goo" + + "gle.cloud.aiplatform.v1beta1.RubricGroup:\0028\001\"\350\001\n" + + "\017AutoraterConfig\022 \n" + + "\016sampling_count\030\001 \001(\005B\003\340A\001H\000\210\001\001\022\036\n" + + "\014flip_enabled\030\002 \001(\010B\003\340A\001H\001\210\001\001\022\034\n" + + "\017autorater_model\030\003 \001(\tB\003\340A\001\022Q\n" + + "\021generation_config\030\004 \001(\01321.google.clo" + + "ud.aiplatform.v1beta1.GenerationConfigB\003\340A\001B\021\n" + + "\017_sampling_countB\017\n\r" + + "_flip_enabled\"\233\031\n" + "\031EvaluateInstancesResponse\022Q\n" + "\023exact_match_results\030\001" + " \001(\01322.google.cloud.aiplatform.v1beta1.ExactMatchResultsH\000\022D\n" + "\014bleu_results\030\002" + " \001(\0132,.google.cloud.aiplatform.v1beta1.BleuResultsH\000\022F\n\r" - + "rouge_results\030\003 " - + "\001(\0132-.google.cloud.aiplatform.v1beta1.RougeResultsH\000\022H\n" - + "\016fluency_result\030\004 \001(\0132..g" - + "oogle.cloud.aiplatform.v1beta1.FluencyResultH\000\022L\n" - + "\020coherence_result\030\005 \001(\01320.googl" - + "e.cloud.aiplatform.v1beta1.CoherenceResultH\000\022F\n\r" - + "safety_result\030\007" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.SafetyResultH\000\022R\n" - + "\023groundedness_result\030\010 \001(\01323.google.cloud" - + ".aiplatform.v1beta1.GroundednessResultH\000\022P\n" - + "\022fulfillment_result\030\013 \001(\01322.google.cl" - + "oud.aiplatform.v1beta1.FulfillmentResultH\000\022c\n" - + "\034summarization_quality_result\030\006 \001(\013" - + "2;.google.cloud.aiplatform.v1beta1.SummarizationQualityResultH\000\022t\n" - + "%pairwise_summarization_quality_result\030\026 \001(\0132C.google." - + "cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResultH\000\022k\n" + + "rouge_results\030\003" + + " \001(\0132-.google.cloud.aiplatform.v1beta1.RougeResultsH\000\022H\n" + + "\016fluency_result\030\004 \001(\0132." + + ".google.cloud.aiplatform.v1beta1.FluencyResultH\000\022L\n" + + "\020coherence_result\030\005 \001(\01320.goo" + + "gle.cloud.aiplatform.v1beta1.CoherenceResultH\000\022F\n\r" + + "safety_result\030\007 \001(\0132-.google.c" + + "loud.aiplatform.v1beta1.SafetyResultH\000\022R\n" + + "\023groundedness_result\030\010 \001(\01323.google.clo" + + "ud.aiplatform.v1beta1.GroundednessResultH\000\022P\n" + + "\022fulfillment_result\030\013 \001(\01322.google." + + "cloud.aiplatform.v1beta1.FulfillmentResultH\000\022c\n" + + "\034summarization_quality_result\030\006 \001" + + "(\0132;.google.cloud.aiplatform.v1beta1.SummarizationQualityResultH\000\022t\n" + + "%pairwise_summarization_quality_result\030\026 \001(\0132C.googl" + + "e.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResultH\000\022k\n" + " summarization_helpfulness_result\030\r" - + " \001(\0132?.google.cloud.a" - + "iplatform.v1beta1.SummarizationHelpfulnessResultH\000\022g\n" + + " \001(\0132?.google.cloud" + + ".aiplatform.v1beta1.SummarizationHelpfulnessResultH\000\022g\n" + "\036summarization_verbosity_result\030\016" + " \001(\0132=.google.cloud.aiplatform.v1beta1.SummarizationVerbosityResultH\000\022l\n" - + "!question_answering_quality_result\030\t \001(\0132?" - + ".google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResultH\000\022}\n" - + "*pairwise_question_answering_quality_result\030\027 \001(\0132G." - + "google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResultH\000\022p\n" - + "#question_answering_relevance_result\030\017 \001(\0132A." - + "google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResultH\000\022t\n" - + "%question_answering_helpfulness_result\030\020 \001(\0132C.goog" - + "le.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResultH\000\022t\n" - + "%question_answering_correctness_result\030\021 \001(\0132C.google" - + ".cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultH\000\022Y\n" + + "!question_answering_quality_result\030\t \001(\013" + + "2?.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResultH\000\022}\n" + + "*pairwise_question_answering_quality_result\030\027 \001(\0132" + + "G.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResultH\000\022p\n" + + "#question_answering_relevance_result\030\017 \001(\0132" + + "A.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResultH\000\022t\n" + + "%question_answering_helpfulness_result\030\020 \001(\0132C.go" + + "ogle.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResultH\000\022t\n" + + "%question_answering_correctness_result\030\021 \001(\0132C.goog" + + "le.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultH\000\022Y\n" + "\027pointwise_metric_result\030\033" + " \001(\01326.google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" - + "\026pairwise_metric_result\030\034 \001(\01325.google.cloud" - + ".aiplatform.v1beta1.PairwiseMetricResultH\000\022X\n" - + "\027tool_call_valid_results\030\022 \001(\01325.go" - + "ogle.cloud.aiplatform.v1beta1.ToolCallValidResultsH\000\022X\n" + + "\026pairwise_metric_result\030\034 \001(\01325.google.clo" + + "ud.aiplatform.v1beta1.PairwiseMetricResultH\000\022X\n" + + "\027tool_call_valid_results\030\022 \001(\01325." + + "google.cloud.aiplatform.v1beta1.ToolCallValidResultsH\000\022X\n" + "\027tool_name_match_results\030\023" + " \001(\01325.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsH\000\022i\n" - + " tool_parameter_key_match_results\030\024 \001(\0132=.google.cloud." - + "aiplatform.v1beta1.ToolParameterKeyMatchResultsH\000\022g\n" + + " tool_parameter_key_match_results\030\024 \001(\0132=.google.clou" + + "d.aiplatform.v1beta1.ToolParameterKeyMatchResultsH\000\022g\n" + "\037tool_parameter_kv_match_results\030\025" + " \001(\0132<.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsH\000\022D\n" + "\014comet_result\030\035" + " \001(\0132,.google.cloud.aiplatform.v1beta1.CometResultH\000\022H\n" + "\016metricx_result\030\036" + " \001(\0132..google.cloud.aiplatform.v1beta1.MetricxResultH\000\022f\n" - + "\036trajectory_exact_match_results\030\037 \001(\0132<.google.cloud.aiplat" - + "form.v1beta1.TrajectoryExactMatchResultsH\000\022k\n" + + "\036trajectory_exact_match_results\030\037 \001(\0132<.google.cloud.aipl" + + "atform.v1beta1.TrajectoryExactMatchResultsH\000\022k\n" + "!trajectory_in_order_match_results\030 " + " \001(\0132>.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsH\000\022m\n" - + "\"trajectory_any_order_match_results\030! \001(\0132?.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsH\000\022c\n" - + "\034trajectory_precision_results\030# \001(\0132;.google.cloud.aipl" - + "atform.v1beta1.TrajectoryPrecisionResultsH\000\022]\n" - + "\031trajectory_recall_results\030$ \001(\01328" - + ".google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsH\000\022m\n" - + "\"trajectory_single_tool_use_results\030% \001(\0132?.google.cloud.ai" - + "platform.v1beta1.TrajectorySingleToolUseResultsH\000\022{\n" - + ")rubric_based_instruction_following_result\030& \001(\0132F.google.cloud.aipl" - + "atform.v1beta1.RubricBasedInstructionFollowingResultH\000\022E\n" - + "\016metric_results\030+ \003(\0132-" - + ".google.cloud.aiplatform.v1beta1.MetricResultB\024\n" - + "\022evaluation_results\"\227\001\n" + + "\"trajectory_any_order_match_results\030! \001(\0132?." + + "google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsH\000\022c\n" + + "\034trajectory_precision_results\030# \001(\0132;.google.cloud.ai" + + "platform.v1beta1.TrajectoryPrecisionResultsH\000\022]\n" + + "\031trajectory_recall_results\030$ \001(\013" + + "28.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsH\000\022m\n" + + "\"trajectory_single_tool_use_results\030% \001(\0132?.google.cloud." + + "aiplatform.v1beta1.TrajectorySingleToolUseResultsH\000\022{\n" + + ")rubric_based_instruction_following_result\030& \001(\0132F.google.cloud.ai" + + "platform.v1beta1.RubricBasedInstructionFollowingResultH\000\022E\n" + + "\016metric_results\030+ \003(\013" + + "2-.google.cloud.aiplatform.v1beta1.MetricResultB\024\n" + + "\022evaluation_results\"\345\001\n" + "\014MetricResult\022\027\n" - + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\035\n" + + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022L\n" + + "\017rubric_verdicts\030\002" + + " \003(\0132..google.cloud.aiplatform.v1beta1.RubricVerdictB\003\340A\003\022\035\n" + "\013explanation\030\003 \001(\tB\003\340A\003H\001\210\001\001\022+\n" + "\005error\030\004" + " \001(\0132\022.google.rpc.StatusB\003\340A\003H\002\210\001\001B\010\n" + "\006_scoreB\016\n" + "\014_explanationB\010\n" - + "\006_error\"s\n" + + "\006_error\"\307\003\n" + + "\036GenerateInstanceRubricsRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022?\n" + + "\010contents\030\002" + + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\002\022e\n" + + "!predefined_rubric_generation_spec\030\004 \001(\01325.google.cloud" + + ".aiplatform.v1beta1.PredefinedMetricSpecB\003\340A\001\022Z\n" + + "\026rubric_generation_spec\030\003 \001(\01325." + + "google.cloud.aiplatform.v1beta1.RubricGenerationSpecB\003\340A\001\022d\n" + + "\014agent_config\030\005 \001(\0132I.google.cloud.aiplatform.v1beta1.Evalua" + + "tionInstance.DeprecatedAgentConfigB\003\340A\001\"j\n" + + "\037GenerateInstanceRubricsResponse\022G\n" + + "\021generated_rubrics\030\001" + + " \003(\0132\'.google.cloud.aiplatform.v1beta1.RubricB\003\340A\003\"\372\002\n" + + "\026EvaluateDatasetRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022H\n" + + "\007dataset\030\002" + + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDatasetB\003\340A\002\022=\n" + + "\007metrics\030\003" + + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" + + "output_config\030\004 \001(\0132-.go" + + "ogle.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" + + "\020autorater_config\030\005 \001(\01320.goog" + + "le.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"i\n" + + "\014OutputConfig\022J\n" + + "\017gcs_destination\030\001" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000B\r\n" + + "\013destination\"\253\001\n" + + "\021EvaluationDataset\022@\n\n" + + "gcs_source\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022J\n" + + "\017bigquery_source\030\002 \001(\0132/.google.cl" + + "oud.aiplatform.v1beta1.BigQuerySourceH\000B\010\n" + + "\006source\"\265\001\n" + + "\027EvaluateDatasetResponse\022S\n" + + "\022aggregation_output\030\001 \001(\01322.google.cloud" + + ".aiplatform.v1beta1.AggregationOutputB\003\340A\003\022E\n" + + "\013output_info\030\003" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.OutputInfoB\003\340A\003\"w\n" + + " EvaluateDatasetOperationMetadata\022S\n" + + "\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"D\n\n" + + "OutputInfo\022#\n" + + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000B\021\n" + + "\017output_location\"\251\001\n" + + "\021AggregationOutput\022C\n" + + "\007dataset\030\001" + + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDataset\022O\n" + + "\023aggregation_results\030\002" + + " \003(\01322.google.cloud.aiplatform.v1beta1.AggregationResult\"\224\005\n" + + "\021AggregationResult\022Y\n" + + "\027pointwise_metric_result\030\005" + + " \001(\01326.google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" + + "\026pairwise_metric_result\030\006 \001(\01325.google.cloud.aip" + + "latform.v1beta1.PairwiseMetricResultH\000\022Z\n" + + "\030exact_match_metric_value\030\007 \001(\01326.googl" + + "e.cloud.aiplatform.v1beta1.ExactMatchMetricValueH\000\022M\n" + + "\021bleu_metric_value\030\010 \001(\01320." + + "google.cloud.aiplatform.v1beta1.BleuMetricValueH\000\022O\n" + + "\022rouge_metric_value\030\t \001(\01321." + + "google.cloud.aiplatform.v1beta1.RougeMetricValueH\000\022b\n" + + "\034custom_code_execution_result\030\n" + + " \001(\0132:.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultH\000\022U\n" + + "\022aggregation_metric\030\004" + + " \001(\01629.google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\024\n" + + "\022aggregation_result\"s\n" + "\024PredefinedMetricSpec\022\035\n" + "\020metric_spec_name\030\001 \001(\tB\003\340A\002\022<\n" + "\026metric_spec_parameters\030\002" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\"\316\002\n" + "\032ComputationBasedMetricSpec\022n\n" - + "\004type\030\001 \001(\0162V.google.cloud.aiplatform.v1beta1.ComputationBasedMetric" - + "Spec.ComputationBasedMetricTypeB\003\340A\002H\000\210\001\001\0225\n\n" + + "\004type\030\001 \001(\0162V.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSp" + + "ec.ComputationBasedMetricTypeB\003\340A\002H\000\210\001\001\0225\n\n" + "parameters\030\002" + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\001\210\001\001\"q\n" + "\032ComputationBasedMetricType\022-\n" @@ -970,27 +1204,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004BLEU\020\002\022\t\n" + "\005ROUGE\020\003B\007\n" + "\005_typeB\r\n" - + "\013_parameters\"\363\003\n" + + "\013_parameters\"\250\005\n" + "\022LLMBasedMetricSpec\022\032\n" - + "\020rubric_group_key\030\004 \001(\tH\000\022b\n" + + "\020rubric_group_key\030\004 \001(\tH\000\022W\n" + + "\026rubric_generation_spec\030\005 \001(\01325.g" + + "oogle.cloud.aiplatform.v1beta1.RubricGenerationSpecH\000\022b\n" + "!predefined_rubric_generation_spec\030\006" + " \001(\01325.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecH\000\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\001\210\001\001\022$\n" + "\022system_instruction\030\002 \001(\tB\003\340A\001H\002\210\001\001\022Z\n" - + "\026judge_autorater_config\030\003 \001(\01320.google.cloud.aiplat" - + "form.v1beta1.AutoraterConfigB\003\340A\001H\003\210\001\001\022<\n" + + "\026judge_autorater_config\030\003 \001(\01320.google.cloud" + + ".aiplatform.v1beta1.AutoraterConfigB\003\340A\001H\003\210\001\001\022<\n" + "\021additional_config\030\007" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\004\210\001\001B\020\n" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\004\210\001\001\022Z\n" + + "\024result_parser_config\030\010 \001(\01327.google.cloud.aiplatf" + + "orm.v1beta1.EvaluationParserConfigB\003\340A\001B\020\n" + "\016rubrics_sourceB\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instructionB\031\n" + "\027_judge_autorater_configB\024\n" - + "\022_additional_config\"\251\001\n" + + "\022_additional_config\"X\n" + + "\027", + "CustomCodeExecutionSpec\022%\n" + + "\023evaluation_function\030\001 \001(\tB\003\340A\002H\000\210\001\001B\026\n" + + "\024_evaluation_function\"\251\001\n" + "\017ExactMatchInput\022I\n" + "\013metric_spec\030\001" + " \001(\0132/.google.cloud.aiplatform.v1beta1.ExactMatchSpecB\003\340A\002\022K\n" - + "\tinstances\030\002" - + " \003(\01323.google.cloud.aiplatform.v1beta1.ExactMatchInstanceB\003\340A\002\"l\n" + + "\tinstances\030\002 \003(\013" + + "23.google.cloud.aiplatform.v1beta1.ExactMatchInstanceB\003\340A\002\"l\n" + "\022ExactMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -998,16 +1240,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_reference\"\020\n" + "\016ExactMatchSpec\"s\n" + "\021ExactMatchResults\022^\n" - + "\031exact_match_metric_values\030\001" - + " \003(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueB\003\340A\003\":\n" + + "\031exact_match_metric_values\030\001 \003" + + "(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueB\003\340A\003\":\n" + "\025ExactMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\227\001\n" + "\tBleuInput\022C\n" - + "\013metric_spec\030\001" - + " \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" - + "\tinstances\030\002 \003(\0132-.g" - + "oogle.cloud.aiplatform.v1beta1.BleuInstanceB\003\340A\002\"f\n" + + "\013metric_spec\030\001 \001(\0132)" + + ".google.cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" + + "\tinstances\030\002" + + " \003(\0132-.google.cloud.aiplatform.v1beta1.BleuInstanceB\003\340A\002\"f\n" + "\014BleuInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -1016,16 +1258,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BleuSpec\022 \n" + "\023use_effective_order\030\001 \001(\010B\003\340A\001\"`\n" + "\013BleuResults\022Q\n" - + "\022bleu_metric_values\030\001 \003(" - + "\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueB\003\340A\003\"4\n" + + "\022bleu_metric_values\030\001 \003(\01320.google." + + "cloud.aiplatform.v1beta1.BleuMetricValueB\003\340A\003\"4\n" + "\017BleuMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\232\001\n\n" + "RougeInput\022D\n" + "\013metric_spec\030\001" + " \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecB\003\340A\002\022F\n" - + "\tinstances\030\002" - + " \003(\0132..google.cloud.aiplatform.v1beta1.RougeInstanceB\003\340A\002\"g\n\r" + + "\tinstances\030\002 " + + "\003(\0132..google.cloud.aiplatform.v1beta1.RougeInstanceB\003\340A\002\"g\n\r" + "RougeInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -1036,16 +1278,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013use_stemmer\030\002 \001(\010B\003\340A\001\022\034\n" + "\017split_summaries\030\003 \001(\010B\003\340A\001\"c\n" + "\014RougeResults\022S\n" - + "\023rouge_metric_values\030\001 \003(\01321.google" - + ".cloud.aiplatform.v1beta1.RougeMetricValueB\003\340A\003\"5\n" + + "\023rouge_metric_values\030\001" + + " \003(\01321.google.cloud.aiplatform.v1beta1.RougeMetricValueB\003\340A\003\"5\n" + "\020RougeMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + + "\006_score\">\n" + + "\031CustomCodeExecutionResult\022\027\n" + + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\245\001\n" + "\016CoherenceInput\022H\n" - + "\013metric_spec\030\001" - + " \001(\0132..google.cloud.aiplatform.v1beta1.CoherenceSpecB\003\340A\002\022I\n" - + "\010instance\030\002" - + " \001(\01322.google.cloud.aiplatform.v1beta1.CoherenceInstanceB\003\340A\002\"@\n" + + "\013metric_spec\030\001 \001(\0132..go" + + "ogle.cloud.aiplatform.v1beta1.CoherenceSpecB\003\340A\002\022I\n" + + "\010instance\030\002 \001(\01322.google.clou" + + "d.aiplatform.v1beta1.CoherenceInstanceB\003\340A\002\"@\n" + "\021CoherenceInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + "\013_prediction\"%\n\r" @@ -1058,8 +1303,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\237\001\n" + "\014FluencyInput\022F\n" - + "\013metric_spec\030\001" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.FluencySpecB\003\340A\002\022G\n" + + "\013metric_spec\030\001 \001(\0132,.google" + + ".cloud.aiplatform.v1beta1.FluencySpecB\003\340A\002\022G\n" + "\010instance\030\002" + " \001(\01320.google.cloud.aiplatform.v1beta1.FluencyInstanceB\003\340A\002\">\n" + "\017FluencyInstance\022\034\n\n" @@ -1074,10 +1319,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\234\001\n" + "\013SafetyInput\022E\n" - + "\013metric_spec\030\001 " - + "\001(\0132+.google.cloud.aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n" - + "\010instance\030\002 \001(\0132/.google" - + ".cloud.aiplatform.v1beta1.SafetyInstanceB\003\340A\002\"=\n" + + "\013metric_spec\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n" + + "\010instance\030\002" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.SafetyInstanceB\003\340A\002\"=\n" + "\016SafetyInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + "\013_prediction\"\"\n\n" @@ -1090,10 +1335,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\256\001\n" + "\021GroundednessInput\022K\n" - + "\013metric_spec\030\001 \001(\01321.google.c" - + "loud.aiplatform.v1beta1.GroundednessSpecB\003\340A\002\022L\n" - + "\010instance\030\002 \001(\01325.google.cloud.a" - + "iplatform.v1beta1.GroundednessInstanceB\003\340A\002\"j\n" + + "\013metric_spec\030\001 \001" + + "(\01321.google.cloud.aiplatform.v1beta1.GroundednessSpecB\003\340A\002\022L\n" + + "\010instance\030\002 \001(\01325.g" + + "oogle.cloud.aiplatform.v1beta1.GroundednessInstanceB\003\340A\002\"j\n" + "\024GroundednessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\031\n" + "\007context\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -1108,10 +1353,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\253\001\n" + "\020FulfillmentInput\022J\n" - + "\013metric_spec\030\001 " - + "\001(\01320.google.cloud.aiplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n" - + "\010instance\030\002 \001(\01324.g" - + "oogle.cloud.aiplatform.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" + + "\013metric_spec\030\001" + + " \001(\01320.google.cloud.aiplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n" + + "\010instance\030\002" + + " \001(\01324.google.cloud.aiplatform.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" + "\023FulfillmentInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\035\n" + "\013instruction\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -1126,18 +1371,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\306\001\n" + "\031SummarizationQualityInput\022S\n" - + "\013metric_spec\030\001 \001(\01329.google.c" - + "loud.aiplatform.v1beta1.SummarizationQualitySpecB\003\340A\002\022T\n" - + "\010instance\030\002 \001(\0132=.google" - + ".cloud.aiplatform.v1beta1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + + "\013metric_spec\030\001 \001" + + "(\01329.google.cloud.aiplatform.v1beta1.SummarizationQualitySpecB\003\340A\002\022T\n" + + "\010instance\030\002" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + "\034SummarizationQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" + "\007context\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n" + "\013instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n" - + "\013_predictionB\014\n\n" - + "_referenceB\n" + + "\013_predictionB\014\n" + "\n" + + "_referenceB\n\n" + "\010_contextB\016\n" + "\014_instruction\"L\n" + "\030SummarizationQualitySpec\022\032\n\r" @@ -1150,10 +1395,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!PairwiseSummarizationQualityInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.cloud.aipl" - + "atform.v1beta1.PairwiseSummarizationQualitySpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.google." - + "cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstanceB\003\340A\002\"\223\002\n" + + "\013metric_spec\030\001 \001(\0132A.goog" + + "le.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.cloud.aiplatform.v1beta1.Pa" + + "irwiseSummarizationQualityInstanceB\003\340A\002\"\223\002\n" + "$PairwiseSummarizationQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n" + "\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n" @@ -1169,16 +1414,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\272\001\n" + "\"PairwiseSummarizationQualityResult\022M\n" - + "\017pairwise_choice\030\001" - + " \001(\0162/.google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + + "\017pairwise_choice\030\001 \001(\0162/.google.clo" + + "ud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" + "\013_confidence\"\322\001\n" + "\035SummarizationHelpfulnessInput\022W\n" - + "\013metric_spec\030\001 \001(\0132=.goo" - + "gle.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpecB\003\340A\002\022X\n" - + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform.v1beta1.Summa", - "rizationHelpfulnessInstanceB\003\340A\002\"\320\001\n" + + "\013metric_spec\030\001" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpecB\003\340A\002\022X\n" + + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform." + + "v1beta1.SummarizationHelpfulnessInstanceB\003\340A\002\"\320\001\n" + " SummarizationHelpfulnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1198,15 +1443,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\314\001\n" + "\033SummarizationVerbosityInput\022U\n" - + "\013metric_spec\030\001 \001(\0132" - + ";.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpecB\003\340A\002\022V\n" - + "\010instance\030\002 " - + "\001(\0132?.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstanceB\003\340A\002\"\316\001\n" + + "\013metric_spec\030\001 \001(\0132;.google.cloud.aiplatform.v" + + "1beta1.SummarizationVerbositySpecB\003\340A\002\022V\n" + + "\010instance\030\002 \001(\0132?.google.cloud.aiplatfo" + + "rm.v1beta1.SummarizationVerbosityInstanceB\003\340A\002\"\316\001\n" + "\036SummarizationVerbosityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" + "\007context\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n" - + "\013instruction\030\004 \001(\tB\003\340A\001H\003\210\001\001B\r\n" + + "\013instruction\030\004 \001(\tB\003\340A\001H\003\210\001\001B\r" + + "\n" + "\013_predictionB\014\n\n" + "_referenceB\n\n" + "\010_contextB\016\n" @@ -1221,10 +1467,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\322\001\n" + "\035QuestionAnsweringQualityInput\022W\n" - + "\013metric_spec\030\001 \001(\0132=.g" - + "oogle.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpecB\003\340A\002\022X\n" - + "\010instance\030\002 \001" - + "(\0132A.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstanceB\003\340A\002\"\320\001\n" + + "\013metric_spec\030\001" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpecB\003\340A\002\022X\n" + + "\010instance\030\002 \001(\0132A.google.cloud.aiplatfor" + + "m.v1beta1.QuestionAnsweringQualityInstanceB\003\340A\002\"\320\001\n" + " QuestionAnsweringQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1234,8 +1480,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_referenceB\n\n" + "\010_contextB\016\n" + "\014_instruction\"P\n" - + "\034QuestionAnsweringQualitySpec\022\032\n" - + "\r" + + "\034QuestionAnsweringQualitySpec\022\032\n\r" + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\212\001\n" + "\036QuestionAnsweringQualityResult\022\027\n" @@ -1245,10 +1490,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\352\001\n" + "%PairwiseQuestionAnsweringQualityInput\022_\n" - + "\013metric_spec\030\001 \001(\0132E.google.cloud.aiplatform.v1" - + "beta1.PairwiseQuestionAnsweringQualitySpecB\003\340A\002\022`\n" - + "\010instance\030\002 \001(\0132I.google.cloud" - + ".aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstanceB\003\340A\002\"\227\002\n" + + "\013metric_spec\030\001 \001(\0132E.google.cloud." + + "aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpecB\003\340A\002\022`\n" + + "\010instance\030\002 \001(\0132I.google.cloud.aiplatform.v1beta1.Pairwis" + + "eQuestionAnsweringQualityInstanceB\003\340A\002\"\227\002\n" + "(PairwiseQuestionAnsweringQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n" + "\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n" @@ -1264,16 +1509,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\276\001\n" + "&PairwiseQuestionAnsweringQualityResult\022M\n" - + "\017pairwise_choice\030\001 \001(\0162/.google.cloud" - + ".aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + + "\017pairwise_choice\030\001 \001(\0162/" + + ".google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" + "\013_confidence\"\330\001\n" + "\037QuestionAnsweringRelevanceInput\022Y\n" - + "\013metric_spec\030\001" - + " \001(\0132?.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpecB\003\340A\002\022Z\n" - + "\010instance\030\002 \001(\0132C.google.cloud.aiplatfor" - + "m.v1beta1.QuestionAnsweringRelevanceInstanceB\003\340A\002\"\322\001\n" + + "\013metric_spec\030\001 \001(\0132?.google.cloud.aipl" + + "atform.v1beta1.QuestionAnsweringRelevanceSpecB\003\340A\002\022Z\n" + + "\010instance\030\002 \001(\0132C.google.cl" + + "oud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstanceB\003\340A\002\"\322\001\n" + "\"QuestionAnsweringRelevanceInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1293,10 +1538,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!QuestionAnsweringHelpfulnessInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.cl" - + "oud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E" - + ".google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstanceB\003\340A\002\"\324\001\n" + + "\013metric_spec\030\001 \001(" + + "\0132A.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.cloud.aiplatform.v1" + + "beta1.QuestionAnsweringHelpfulnessInstanceB\003\340A\002\"\324\001\n" + "$QuestionAnsweringHelpfulnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1313,13 +1558,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n" - + "\006_scoreB\r\n" + + "\006_scoreB\r" + + "\n" + "\013_confidence\"\336\001\n" + "!QuestionAnsweringCorrectnessInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.cloud.aipla" - + "tform.v1beta1.QuestionAnsweringCorrectnessSpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.google.c" - + "loud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstanceB\003\340A\002\"\324\001\n" + + "\013metric_spec\030\001 \001(\0132A.googl" + + "e.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.cloud.aiplatform.v1beta1.Que" + + "stionAnsweringCorrectnessInstanceB\003\340A\002\"\324\001\n" + "$QuestionAnsweringCorrectnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1339,20 +1585,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\267\001\n" + "\024PointwiseMetricInput\022N\n" - + "\013metric_spec\030\001 \001(\01324." - + "google.cloud.aiplatform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n" - + "\010instance\030\002 \001(\01328.goo" - + "gle.cloud.aiplatform.v1beta1.PointwiseMetricInstanceB\003\340A\002\"\213\001\n" + + "\013metric_spec\030\001" + + " \001(\01324.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n" + + "\010instance\030\002" + + " \001(\01328.google.cloud.aiplatform.v1beta1.PointwiseMetricInstanceB\003\340A\002\"\213\001\n" + "\027PointwiseMetricInstance\022\027\n\r" + "json_instance\030\001 \001(\tH\000\022K\n" - + "\024content_map_instance\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + + "\024content_map_instance\030\002 \001(\0132+.goog" + + "le.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + "\010instance\"\374\001\n" + "\023PointwiseMetricSpec\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001\022$\n" + "\022system_instruction\030\002 \001(\tB\003\340A\001H\001\210\001\001\022c\n" - + "\033custom_output_format_config\030\003 \001(\01329.google.cloud.aipl" - + "atform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + + "\033custom_output_format_config\030\003 \001(\01329.goog" + + "le.cloud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instruction\"[\n" + "\030CustomOutputFormatConfig\022 \n" @@ -1360,47 +1606,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033custom_output_format_config\"\237\001\n" + "\025PointwiseMetricResult\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" - + "\013explanation\030\002 \001(\tB\003\340A\003\022I\n\r" + + "\013explanation\030\002 \001(\tB\003\340A\003\022I\n" + + "\r" + "custom_output\030\003" + " \001(\0132-.google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003B\010\n" + "\006_score\"g\n" + "\014CustomOutput\022F\n" - + "\013raw_outputs\030\001" - + " \001(\0132*.google.cloud.aiplatform.v1beta1.RawOutputB\003\340A\003H\000B\017\n" - + "\r" + + "\013raw_outputs\030\001 \001(\0132" + + "*.google.cloud.aiplatform.v1beta1.RawOutputB\003\340A\003H\000B\017\n\r" + "custom_output\"$\n" + "\tRawOutput\022\027\n\n" + "raw_output\030\001 \003(\tB\003\340A\003\"\264\001\n" + "\023PairwiseMetricInput\022M\n" - + "\013metric_spec\030\001" - + " \001(\01323.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecB\003\340A\002\022N\n" - + "\010instance\030\002" - + " \001(\01327.google.cloud.aiplatform.v1beta1.PairwiseMetricInstanceB\003\340A\002\"\212\001\n" + + "\013metric_spec\030\001 \001(\01323.google." + + "cloud.aiplatform.v1beta1.PairwiseMetricSpecB\003\340A\002\022N\n" + + "\010instance\030\002 \001(\01327.google.clou" + + "d.aiplatform.v1beta1.PairwiseMetricInstanceB\003\340A\002\"\212\001\n" + "\026PairwiseMetricInstance\022\027\n\r" + "json_instance\030\001 \001(\tH\000\022K\n" - + "\024content_map_instance\030\002 \001(\0132+." - + "google.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + + "\024content_map_instance\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + "\010instance\"\322\002\n" + "\022PairwiseMetricSpec\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001\022*\n" + "\035candidate_response_field_name\030\002 \001(\tB\003\340A\001\022)\n" + "\034baseline_response_field_name\030\003 \001(\tB\003\340A\001\022$\n" + "\022system_instruction\030\004 \001(\tB\003\340A\001H\001\210\001\001\022c\n" - + "\033custom_output_format_config\030\005 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + + "\033custom_output_format_config\030\005 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instruction\"\312\001\n" + "\024PairwiseMetricResult\022M\n" + "\017pairwise_choice\030\001" + " \001(\0162/.google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022I\n\r" - + "custom_output\030\003 \001(\0132-.google." - + "cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003\"\262\001\n" + + "custom_output\030\003 " + + "\001(\0132-.google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003\"\262\001\n" + "\022ToolCallValidInput\022L\n" + "\013metric_spec\030\001" + " \001(\01322.google.cloud.aiplatform.v1beta1.ToolCallValidSpecB\003\340A\002\022N\n" - + "\tinstances\030\002 \003" - + "(\01326.google.cloud.aiplatform.v1beta1.ToolCallValidInstanceB\003\340A\002\"\023\n" + + "\tinstances\030\002" + + " \003(\01326.google.cloud.aiplatform.v1beta1.ToolCallValidInstanceB\003\340A\002\"\023\n" + "\021ToolCallValidSpec\"o\n" + "\025ToolCallValidInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1408,16 +1654,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"}\n" + "\024ToolCallValidResults\022e\n" - + "\035tool_call_valid_metric_values\030\001 \003(\01329.google.cloud.aipl" - + "atform.v1beta1.ToolCallValidMetricValueB\003\340A\003\"=\n" + + "\035tool_call_valid_metric_values\030\001 \003(\01329.goog" + + "le.cloud.aiplatform.v1beta1.ToolCallValidMetricValueB\003\340A\003\"=\n" + "\030ToolCallValidMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\262\001\n" + "\022ToolNameMatchInput\022L\n" - + "\013metric_spec\030\001 \001(\01322.google" - + ".cloud.aiplatform.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n" - + "\tinstances\030\002 \003(\01326.google.clo" - + "ud.aiplatform.v1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n" + + "\013metric_spec\030\001" + + " \001(\01322.google.cloud.aiplatform.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n" + + "\tinstances\030\002 \003(\013" + + "26.google.cloud.aiplatform.v1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n" + "\021ToolNameMatchSpec\"o\n" + "\025ToolNameMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1425,16 +1671,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"}\n" + "\024ToolNameMatchResults\022e\n" - + "\035tool_name_match_metric_values\030\001" - + " \003(\01329.google.cloud.aiplatform.v1beta1.ToolNameMatchMetricValueB\003\340A\003\"=\n" + + "\035tool_name_match_metric_values\030\001 \003(\01329.google.cloud.aiplat" + + "form.v1beta1.ToolNameMatchMetricValueB\003\340A\003\"=\n" + "\030ToolNameMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\312\001\n" + "\032ToolParameterKeyMatchInput\022T\n" - + "\013metric_spec\030\001 \001(\0132:.google.cloud." - + "aiplatform.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n" - + "\tinstances\030\002 \003(\0132>.google.cl" - + "oud.aiplatform.v1beta1.ToolParameterKeyMatchInstanceB\003\340A\002\"\033\n" + + "\013metric_spec\030\001 \001(\0132:." + + "google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n" + + "\tinstances\030\002 \003(" + + "\0132>.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInstanceB\003\340A\002\"\033\n" + "\031ToolParameterKeyMatchSpec\"w\n" + "\035ToolParameterKeyMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1442,17 +1688,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"\226\001\n" + "\034ToolParameterKeyMatchResults\022v\n" - + "&tool_parameter_key_match_metric_values\030\001" - + " \003(\0132A.google.cloud.aiplatform.v1bet" - + "a1.ToolParameterKeyMatchMetricValueB\003\340A\003\"E\n" + + "&tool_parameter_key_match_metric_values\030\001 \003(\0132A.google.cloud.aip" + + "latform.v1beta1.ToolParameterKeyMatchMetricValueB\003\340A\003\"E\n" + " ToolParameterKeyMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\307\001\n" + "\031ToolParameterKVMatchInput\022S\n" - + "\013metric_spec\030\001 \001" - + "(\01329.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpecB\003\340A\002\022U\n" - + "\tinstances\030\002" - + " \003(\0132=.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInstanceB\003\340A\002\"@\n" + + "\013metric_spec\030\001 \001(\01329.google.cloud.aiplatfor" + + "m.v1beta1.ToolParameterKVMatchSpecB\003\340A\002\022U\n" + + "\tinstances\030\002 \003(\0132=.google.cloud.aiplat" + + "form.v1beta1.ToolParameterKVMatchInstanceB\003\340A\002\"@\n" + "\030ToolParameterKVMatchSpec\022$\n" + "\027use_strict_string_match\030\001 \001(\010B\003\340A\001\"v\n" + "\034ToolParameterKVMatchInstance\022\034\n\n" @@ -1461,19 +1706,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"\223\001\n" + "\033ToolParameterKVMatchResults\022t\n" - + "%tool_parameter_kv_match_metric_values\030\001 \003(\0132@.google.cloud.aiplat" - + "form.v1beta1.ToolParameterKVMatchMetricValueB\003\340A\003\"D\n" + + "%tool_parameter_kv_match_metric_values\030\001 \003(\0132@.google" + + ".cloud.aiplatform.v1beta1.ToolParameterKVMatchMetricValueB\003\340A\003\"D\n" + "\037ToolParameterKVMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\231\001\n\n" + "CometInput\022D\n" - + "\013metric_spec\030\001 \001(\0132*.go" - + "ogle.cloud.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n" - + "\010instance\030\002" - + " \001(\0132..google.cloud.aiplatform.v1beta1.CometInstanceB\003\340A\002\"\354\001\n" + + "\013metric_spec\030\001" + + " \001(\0132*.google.cloud.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n" + + "\010instance\030\002 \001(\0132..go" + + "ogle.cloud.aiplatform.v1beta1.CometInstanceB\003\340A\002\"\354\001\n" + "\tCometSpec\022R\n" - + "\007version\030\001 \001(\01627.google.clou" - + "d.aiplatform.v1beta1.CometSpec.CometVersionB\003\340A\002H\000\210\001\001\022\034\n" + + "\007version\030\001 \001(\0162" + + "7.google.cloud.aiplatform.v1beta1.CometSpec.CometVersionB\003\340A\002H\000\210\001\001\022\034\n" + "\017source_language\030\002 \001(\tB\003\340A\001\022\034\n" + "\017target_language\030\003 \001(\tB\003\340A\001\"C\n" + "\014CometVersion\022\035\n" @@ -1491,13 +1736,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\237\001\n" + "\014MetricxInput\022F\n" - + "\013metric_spec\030\001" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.MetricxSpecB\003\340A\002\022G\n" - + "\010instance\030\002" - + " \001(\01320.google.cloud.aiplatform.v1beta1.MetricxInstanceB\003\340A\002\"\240\002\n" + + "\013metric_spec\030\001 \001(\0132," + + ".google.cloud.aiplatform.v1beta1.MetricxSpecB\003\340A\002\022G\n" + + "\010instance\030\002 \001(\01320.google.clo" + + "ud.aiplatform.v1beta1.MetricxInstanceB\003\340A\002\"\240\002\n" + "\013MetricxSpec\022V\n" - + "\007version\030\001 \001(\0162;.google.cloud.ai" - + "platform.v1beta1.MetricxSpec.MetricxVersionB\003\340A\002H\000\210\001\001\022\034\n" + + "\007version\030\001 \001(\0162;.go" + + "ogle.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersionB\003\340A\002H\000\210\001\001\022\034\n" + "\017source_language\030\002 \001(\tB\003\340A\001\022\034\n" + "\017target_language\030\003 \001(\tB\003\340A\001\"q\n" + "\016MetricxVersion\022\037\n" @@ -1509,7 +1754,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017MetricxInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\030\n" - + "\006source\030\003 \001(\tB\003\340A\001H\002\210\001\001B\r\n" + + "\006source\030\003 \001(\tB\003\340A\001H\002\210\001\001B\r" + + "\n" + "\013_predictionB\014\n\n" + "_referenceB\t\n" + "\007_source\"2\n\r" @@ -1517,178 +1763,199 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\347\001\n" + "$RubricBasedInstructionFollowingInput\022^\n" - + "\013metric_spec\030\001 \001(\0132D.google.cloud.aipla" - + "tform.v1beta1.RubricBasedInstructionFollowingSpecB\003\340A\002\022_\n" - + "\010instance\030\002 \001(\0132H.googl" - + "e.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInstanceB\003\340A\002\"S\n" + + "\013metric_spec\030\001 \001(\0132D.googl" + + "e.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingSpecB\003\340A\002\022_\n" + + "\010instance\030\002 \001(\0132H.google.cloud.aiplatform.v1beta1." + + "RubricBasedInstructionFollowingInstanceB\003\340A\002\"S\n" + "\'RubricBasedInstructionFollowingInstance\022\034\n\r" + "json_instance\030\001 \001(\tB\003\340A\002H\000B\n\n" + "\010instance\"%\n" + "#RubricBasedInstructionFollowingSpec\"\247\001\n" + "%RubricBasedInstructionFollowingResult\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022[\n" - + "\027rubric_critique_results\030\002" - + " \003(\01325.google.cloud.aiplatform.v1beta1.RubricCritiqueResultB\003\340A\003B\010\n" + + "\027rubric_critique_results\030\002 \003(\01325.google.cl" + + "oud.aiplatform.v1beta1.RubricCritiqueResultB\003\340A\003B\010\n" + "\006_score\"A\n" + "\024RubricCritiqueResult\022\023\n" + "\006rubric\030\001 \001(\tB\003\340A\003\022\024\n" + "\007verdict\030\002 \001(\010B\003\340A\003\"\307\001\n" + "\031TrajectoryExactMatchInput\022S\n" - + "\013metric_spec\030\001 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecB\003\340A\002\022U\n" - + "\tinstances\030\002" - + " \003(\0132=.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceB\003\340A\002\"\032\n" + + "\013metric_spec\030\001 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.TrajectoryExactMatchSpecB\003\340A\002\022U\n" + + "\tinstances\030\002 \003(\0132=.google.cloud.aipla" + + "tform.v1beta1.TrajectoryExactMatchInstanceB\003\340A\002\"\032\n" + "\030TrajectoryExactMatchSpec\"\372\001\n" + "\034TrajectoryExactMatchInstance\022S\n" - + "\024predicted_trajectory\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\0132+.google.cloud.aiplat", + "form.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002 \001(\0132+.google.cloud.a" + + "iplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\222\001\n" + "\033TrajectoryExactMatchResults\022s\n" - + "$trajectory_exact_match_metric_values\030\001 \003(\0132@.goog" - + "le.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueB\003\340A\003\"D\n" + + "$trajectory_exact_match_metric_values\030\001" + + " \003(\0132@.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueB\003\340A\003\"D\n" + "\037TrajectoryExactMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\315\001\n" + "\033TrajectoryInOrderMatchInput\022U\n" - + "\013metric_spec\030\001 \001(\0132;.google.clo" - + "ud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecB\003\340A\002\022W\n" - + "\tinstances\030\002 \003(\0132?.googl" - + "e.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceB\003\340A\002\"\034\n" + + "\013metric_spec\030\001 \001(\013" + + "2;.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecB\003\340A\002\022W\n" + + "\tinstances\030\002" + + " \003(\0132?.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceB\003\340A\002\"\034\n" + "\032TrajectoryInOrderMatchSpec\"\374\001\n" + "\036TrajectoryInOrderMatchInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+." - + "google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001" - + "(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\231\001\n" + "\035TrajectoryInOrderMatchResults\022x\n" - + "\'trajectory_in_order_match_metric_values\030\001 \003(\0132B.google." - + "cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueB\003\340A\003\"F\n" + + "\'trajectory_in_order_match_metric_values\030\001 " + + "\003(\0132B.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueB\003\340A\003\"F\n" + "!TrajectoryInOrderMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\320\001\n" + "\034TrajectoryAnyOrderMatchInput\022V\n" - + "\013metric_spec\030\001 \001(\0132<.google.c" - + "loud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecB\003\340A\002\022X\n" - + "\tinstances\030\002 \003(\0132@.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceB\003\340A\002\"\035\n" + + "\013metric_spec\030\001 \001" + + "(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecB\003\340A\002\022X\n" + + "\tinstances\030\002 \003(\0132@.google.cloud.aiplatform.v1bet" + + "a1.TrajectoryAnyOrderMatchInstanceB\003\340A\002\"\035\n" + "\033TrajectoryAnyOrderMatchSpec\"\375\001\n" + "\037TrajectoryAnyOrderMatchInstance\022S\n" - + "\024predicted_trajectory\030\001 " - + "\001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + "\024reference_trajectory\030\002" + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\234\001\n" + "\036TrajectoryAnyOrderMatchResults\022z\n" - + "(trajectory_any_order_match_metric_values\030\001 \003(\0132C" - + ".google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueB\003\340A\003\"G\n" + + "(trajectory_any_order_match_metric_values\030\001" + + " \003(\0132C.google.cloud.aiplatform.v1" + + "beta1.TrajectoryAnyOrderMatchMetricValueB\003\340A\003\"G\n" + "\"TrajectoryAnyOrderMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\304\001\n" + "\030TrajectoryPrecisionInput\022R\n" - + "\013metric_spec\030\001 \001(\01328.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecB\003\340A\002\022T\n" - + "\tinstances\030\002 \003(\0132<." - + "google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceB\003\340A\002\"\031\n" + + "\013metric_spec\030\001" + + " \001(\01328.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecB\003\340A\002\022T\n" + + "\tinstances\030\002" + + " \003(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceB\003\340A\002\"\031\n" + "\027TrajectoryPrecisionSpec\"\371\001\n" + "\033TrajectoryPrecisionInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+.goog" - + "le.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001(\0132+" - + ".google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\216\001\n" + "\032TrajectoryPrecisionResults\022p\n" - + "\"trajectory_precision_metric_values\030\001 \003(\0132?.google.cloud.aiplat" - + "form.v1beta1.TrajectoryPrecisionMetricValueB\003\340A\003\"C\n" + + "\"trajectory_precision_metric_values\030\001 \003(\0132?.google" + + ".cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueB\003\340A\003\"C\n" + "\036TrajectoryPrecisionMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\273\001\n" + "\025TrajectoryRecallInput\022O\n" + "\013metric_spec\030\001" + " \001(\01325.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecB\003\340A\002\022Q\n" - + "\tinstances\030\002 " - + "\003(\01329.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceB\003\340A\002\"\026\n" + + "\tinstances\030\002 \003(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.TrajectoryRecallInstanceB\003\340A\002\"\026\n" + "\024TrajectoryRecallSpec\"\366\001\n" + "\030TrajectoryRecallInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+.google." - + "cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001(\0132+.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" - + "\025_predicted_trajectoryB\027\n" + + "\024predicted_trajectory\030\001 " + + "\001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\205\001\n" + "\027TrajectoryRecallResults\022j\n" - + "\037trajectory_recall_metric_values\030\001" - + " \003(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueB\003\340A\003\"@\n" + + "\037trajectory_recall_metric_values\030\001 \003(\0132<.google.cloud.ai" + + "platform.v1beta1.TrajectoryRecallMetricValueB\003\340A\003\"@\n" + "\033TrajectoryRecallMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\320\001\n" + "\034TrajectorySingleToolUseInput\022V\n" - + "\013metric_spec\030\001 \001(\0132<.g" - + "oogle.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecB\003\340A\002\022X\n" - + "\tinstances\030\002 \003" - + "(\0132@.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceB\003\340A\002\"H\n" + + "\013metric_spec\030\001" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecB\003\340A\002\022X\n" + + "\tinstances\030\002 \003(\0132@.google.cloud.aiplatfor" + + "m.v1beta1.TrajectorySingleToolUseInstanceB\003\340A\002\"H\n" + "\033TrajectorySingleToolUseSpec\022\033\n" + "\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001B\014\n\n" + "_tool_name\"\217\001\n" + "\037TrajectorySingleToolUseInstance\022S\n" - + "\024predicted_trajectory\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\0132+.google.clou" + + "d.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001B\027\n" + "\025_predicted_trajectory\"\234\001\n" + "\036TrajectorySingleToolUseResults\022z\n" - + "(trajectory_single_tool_use_metric_values\030\001 \003(\0132C.google.cloud.aiplat" - + "form.v1beta1.TrajectorySingleToolUseMetricValueB\003\340A\003\"G\n" + + "(trajectory_single_tool_use_metric_values\030\001 \003(\0132C.google" + + ".cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueB\003\340A\003\"G\n" + "\"TrajectorySingleToolUseMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"P\n\n" + "Trajectory\022B\n\n" - + "tool_calls\030\001 \003(\0132" - + ").google.cloud.aiplatform.v1beta1.ToolCallB\003\340A\002\"b\n" + + "tool_calls\030\001" + + " \003(\0132).google.cloud.aiplatform.v1beta1.ToolCallB\003\340A\002\"b\n" + "\010ToolCall\022\033\n" + "\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\034\n\n" + "tool_input\030\002 \001(\tB\003\340A\001H\001\210\001\001B\014\n\n" + "_tool_nameB\r\n" + "\013_tool_input\"\214\002\n\n" + "ContentMap\022L\n" - + "\006values\030\001 \003(\01327.google.cloud.aiplat" - + "form.v1beta1.ContentMap.ValuesEntryB\003\340A\001\032K\n" + + "\006values\030\001 \003(\01327.google" + + ".cloud.aiplatform.v1beta1.ContentMap.ValuesEntryB\003\340A\001\032K\n" + "\010Contents\022?\n" - + "\010contents\030\001" - + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\032c\n" + + "\010contents\030\001 " + + "\003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\032c\n" + "\013ValuesEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\013" - + "24.google.cloud.aiplatform.v1beta1.ContentMap.Contents:\0028\001*W\n" + + "\005value\030\002" + + " \001(\01324.google.cloud.aiplatform.v1beta1.ContentMap.Contents:\0028\001\"\357\001\n" + + "\026EvaluationParserConfig\022x\n" + + "\031custom_code_parser_config\030\002 \001(\0132N.google.cloud.aiplatform." + + "v1beta1.EvaluationParserConfig.CustomCodeParserConfigB\003\340A\001H\000\032Q\n" + + "\026CustomCodeParserConfig\022\"\n" + + "\020parsing_function\030\001 \001(\tB\003\340A\002H\000\210\001\001B\023\n" + + "\021_parsing_functionB\010\n" + + "\006parser\"\221\003\n" + + "\024RubricGenerationSpec\022\027\n" + + "\017prompt_template\030\001 \001(\t\022K\n" + + "\014model_config\030\004 \001(\01320.google.cloud" + + ".aiplatform.v1beta1.AutoraterConfigH\000\210\001\001\022d\n" + + "\023rubric_content_type\030\005 \001(\0162G.google.c" + + "loud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType\022!\n" + + "\024rubric_type_ontology\030\006 \003(\tB\003\340A\001\"y\n" + + "\021RubricContentType\022#\n" + + "\037RUBRIC_CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010PROPERTY\020\001\022\026\n" + + "\022NL_QUESTION_ANSWER\020\002\022\031\n" + + "\025PYTHON_CODE_ASSERTION\020\003B\017\n\r" + + "_model_config*W\n" + "\016PairwiseChoice\022\037\n" + "\033PAIRWISE_CHOICE_UNSPECIFIED\020\000\022\014\n" + "\010BASELINE\020\001\022\r\n" + "\tCANDIDATE\020\002\022\007\n" - + "\003TIE\020\0032\352\004\n" + + "\003TIE\020\0032\377\006\n" + "\021EvaluationService\022\364\001\n" - + "\021EvaluateInstances\0229.google.cloud.aiplatform.v1beta1.EvaluateInstan" - + "cesRequest\032:.google.cloud.aiplatform.v1b" - + "eta1.EvaluateInstancesResponse\"h\202\323\344\223\002b\"<" - + "/v1beta1/{location=projects/*/locations/" - + "*}:evaluateInstances:\001*Z\037\"\032/v1beta1:evaluateInstances:\001*\022\216\002\n" - + "\017EvaluateDataset\0227.google.cloud.aiplatform.v1beta1.EvaluateD" - + "atasetRequest\032\035.google.longrunning.Operation\"\242\001\312A;\n" - + "\027EvaluateDatasetResponse\022 Eva" - + "luateDatasetOperationMetadata\202\323\344\223\002^\":/v1" - + "beta1/{location=projects/*/locations/*}:" - + "evaluateDataset:\001*Z\035\"\030/v1beta1:evaluateD" - + "ataset:\001*\032M\312A\031aiplatform.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-platformB\355\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\026EvaluationServiceProtoP\001ZCclou" - + "d.google.com/go/aiplatform/apiv1beta1/ai" - + "platformpb;aiplatformpb\252\002\037Google.Cloud.A" - + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" - + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform:", - ":V1beta1b\006proto3" + + "\021EvaluateInstances\0229.google.cloud.aiplatform.v1b" + + "eta1.EvaluateInstancesRequest\032:.google.cloud.aiplatform.v1beta1.EvaluateInstance" + + "sResponse\"h\202\323\344\223\002b\" + * Request message for EvaluationService.GenerateInstanceRubrics. + * + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest} + */ +@com.google.protobuf.Generated +public final class GenerateInstanceRubricsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + GenerateInstanceRubricsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateInstanceRubricsRequest"); + } + + // Use GenerateInstanceRubricsRequest.newBuilder() to construct. + private GenerateInstanceRubricsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateInstanceRubricsRequest() { + location_ = ""; + contents_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.class, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.Builder.class); + } + + private int bitField0_; + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
+   * Required. The resource name of the Location to generate rubrics from.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the Location to generate rubrics from.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List contents_; + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getContentsList() { + return contents_; + } + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getContentsOrBuilderList() { + return contents_; + } + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getContentsCount() { + return contents_.size(); + } + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + return contents_.get(index); + } + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { + return contents_.get(index); + } + + public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefinedRubricGenerationSpec_; + + /** + * + * + *
+   * Optional. Specification for using the rubric generation configs of a
+   * pre-defined metric, e.g. "generic_quality_v1" and
+   * "instruction_following_v1". Some of the configs may be only used in rubric
+   * generation and not supporting evaluation, e.g.
+   * "fully_customized_generic_quality_v1". If this field is set, the
+   * `rubric_generation_spec` field will be ignored.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasPredefinedRubricGenerationSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Specification for using the rubric generation configs of a
+   * pre-defined metric, e.g. "generic_quality_v1" and
+   * "instruction_following_v1". Some of the configs may be only used in rubric
+   * generation and not supporting evaluation, e.g.
+   * "fully_customized_generic_quality_v1". If this field is set, the
+   * `rubric_generation_spec` field will be ignored.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedRubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + getPredefinedRubricGenerationSpec() { + return predefinedRubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance() + : predefinedRubricGenerationSpec_; + } + + /** + * + * + *
+   * Optional. Specification for using the rubric generation configs of a
+   * pre-defined metric, e.g. "generic_quality_v1" and
+   * "instruction_following_v1". Some of the configs may be only used in rubric
+   * generation and not supporting evaluation, e.g.
+   * "fully_customized_generic_quality_v1". If this field is set, the
+   * `rubric_generation_spec` field will be ignored.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder() { + return predefinedRubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance() + : predefinedRubricGenerationSpec_; + } + + public static final int RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubricGenerationSpec_; + + /** + * + * + *
+   * Optional. Specification for how the rubrics should be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasRubricGenerationSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Specification for how the rubrics should be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec() { + return rubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance() + : rubricGenerationSpec_; + } + + /** + * + * + *
+   * Optional. Specification for how the rubrics should be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder() { + return rubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance() + : rubricGenerationSpec_; + } + + public static final int AGENT_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agentConfig_; + + /** + * + * + *
+   * Optional. Agent configuration, required for agent-based rubric generation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + @java.lang.Override + public boolean hasAgentConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Agent configuration, required for agent-based rubric generation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentConfig() { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + + /** + * + * + *
+   * Optional. Agent configuration, required for agent-based rubric generation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder() { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + for (int i = 0; i < contents_.size(); i++) { + output.writeMessage(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getRubricGenerationSpec()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getPredefinedRubricGenerationSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getAgentConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + for (int i = 0; i < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRubricGenerationSpec()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getPredefinedRubricGenerationSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAgentConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest other = + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (!getContentsList().equals(other.getContentsList())) return false; + if (hasPredefinedRubricGenerationSpec() != other.hasPredefinedRubricGenerationSpec()) + return false; + if (hasPredefinedRubricGenerationSpec()) { + if (!getPredefinedRubricGenerationSpec().equals(other.getPredefinedRubricGenerationSpec())) + return false; + } + if (hasRubricGenerationSpec() != other.hasRubricGenerationSpec()) return false; + if (hasRubricGenerationSpec()) { + if (!getRubricGenerationSpec().equals(other.getRubricGenerationSpec())) return false; + } + if (hasAgentConfig() != other.hasAgentConfig()) return false; + if (hasAgentConfig()) { + if (!getAgentConfig().equals(other.getAgentConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + if (getContentsCount() > 0) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContentsList().hashCode(); + } + if (hasPredefinedRubricGenerationSpec()) { + hash = (37 * hash) + PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPredefinedRubricGenerationSpec().hashCode(); + } + if (hasRubricGenerationSpec()) { + hash = (37 * hash) + RUBRIC_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getRubricGenerationSpec().hashCode(); + } + if (hasAgentConfig()) { + hash = (37 * hash) + AGENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for EvaluationService.GenerateInstanceRubrics.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.class, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentsFieldBuilder(); + internalGetPredefinedRubricGenerationSpecFieldBuilder(); + internalGetRubricGenerationSpecFieldBuilder(); + internalGetAgentConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + } else { + contents_ = null; + contentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + predefinedRubricGenerationSpec_ = null; + if (predefinedRubricGenerationSpecBuilder_ != null) { + predefinedRubricGenerationSpecBuilder_.dispose(); + predefinedRubricGenerationSpecBuilder_ = null; + } + rubricGenerationSpec_ = null; + if (rubricGenerationSpecBuilder_ != null) { + rubricGenerationSpecBuilder_.dispose(); + rubricGenerationSpecBuilder_ = null; + } + agentConfig_ = null; + if (agentConfigBuilder_ != null) { + agentConfigBuilder_.dispose(); + agentConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest build() { + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest result = + new com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest result) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predefinedRubricGenerationSpec_ = + predefinedRubricGenerationSpecBuilder_ == null + ? predefinedRubricGenerationSpec_ + : predefinedRubricGenerationSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.rubricGenerationSpec_ = + rubricGenerationSpecBuilder_ == null + ? rubricGenerationSpec_ + : rubricGenerationSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.agentConfig_ = + agentConfigBuilder_ == null ? agentConfig_ : agentConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + .getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000002); + contentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetContentsFieldBuilder() + : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + if (other.hasPredefinedRubricGenerationSpec()) { + mergePredefinedRubricGenerationSpec(other.getPredefinedRubricGenerationSpec()); + } + if (other.hasRubricGenerationSpec()) { + mergeRubricGenerationSpec(other.getRubricGenerationSpec()); + } + if (other.hasAgentConfig()) { + mergeAgentConfig(other.getAgentConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), extensionRegistry); + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(m); + } else { + contentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRubricGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetPredefinedRubricGenerationSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetAgentConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object location_ = ""; + + /** + * + * + *
+     * Required. The resource name of the Location to generate rubrics from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the Location to generate rubrics from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the Location to generate rubrics from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the Location to generate rubrics from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the Location to generate rubrics from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List contents_ = + java.util.Collections.emptyList(); + + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + contents_ = new java.util.ArrayList(contents_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentsBuilder_; + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.set(index, value); + onChanged(); + } else { + contentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.set(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContents(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(value); + onChanged(); + } else { + contentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(index, value); + onChanged(); + } else { + contentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContents( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllContents( + java.lang.Iterable values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentsBuilder(int index) { + return internalGetContentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder() { + return internalGetContentsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(int index) { + return internalGetContentsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The prompt to generate rubrics from.
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContentsBuilderList() { + return internalGetContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + contents_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + predefinedRubricGenerationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder> + predefinedRubricGenerationSpecBuilder_; + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + public boolean hasPredefinedRubricGenerationSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedRubricGenerationSpec. + */ + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + getPredefinedRubricGenerationSpec() { + if (predefinedRubricGenerationSpecBuilder_ == null) { + return predefinedRubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance() + : predefinedRubricGenerationSpec_; + } else { + return predefinedRubricGenerationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec value) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predefinedRubricGenerationSpec_ = value; + } else { + predefinedRubricGenerationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder builderForValue) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + predefinedRubricGenerationSpec_ = builderForValue.build(); + } else { + predefinedRubricGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec value) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && predefinedRubricGenerationSpec_ != null + && predefinedRubricGenerationSpec_ + != com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance()) { + getPredefinedRubricGenerationSpecBuilder().mergeFrom(value); + } else { + predefinedRubricGenerationSpec_ = value; + } + } else { + predefinedRubricGenerationSpecBuilder_.mergeFrom(value); + } + if (predefinedRubricGenerationSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPredefinedRubricGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + predefinedRubricGenerationSpec_ = null; + if (predefinedRubricGenerationSpecBuilder_ != null) { + predefinedRubricGenerationSpecBuilder_.dispose(); + predefinedRubricGenerationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder + getPredefinedRubricGenerationSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPredefinedRubricGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder() { + if (predefinedRubricGenerationSpecBuilder_ != null) { + return predefinedRubricGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + return predefinedRubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance() + : predefinedRubricGenerationSpec_; + } + } + + /** + * + * + *
+     * Optional. Specification for using the rubric generation configs of a
+     * pre-defined metric, e.g. "generic_quality_v1" and
+     * "instruction_following_v1". Some of the configs may be only used in rubric
+     * generation and not supporting evaluation, e.g.
+     * "fully_customized_generic_quality_v1". If this field is set, the
+     * `rubric_generation_spec` field will be ignored.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder> + internalGetPredefinedRubricGenerationSpecFieldBuilder() { + if (predefinedRubricGenerationSpecBuilder_ == null) { + predefinedRubricGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder>( + getPredefinedRubricGenerationSpec(), getParentForChildren(), isClean()); + predefinedRubricGenerationSpec_ = null; + } + return predefinedRubricGenerationSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubricGenerationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder> + rubricGenerationSpecBuilder_; + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rubricGenerationSpec field is set. + */ + public boolean hasRubricGenerationSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rubricGenerationSpec. + */ + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec() { + if (rubricGenerationSpecBuilder_ == null) { + return rubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance() + : rubricGenerationSpec_; + } else { + return rubricGenerationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec value) { + if (rubricGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rubricGenerationSpec_ = value; + } else { + rubricGenerationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder builderForValue) { + if (rubricGenerationSpecBuilder_ == null) { + rubricGenerationSpec_ = builderForValue.build(); + } else { + rubricGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec value) { + if (rubricGenerationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && rubricGenerationSpec_ != null + && rubricGenerationSpec_ + != com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance()) { + getRubricGenerationSpecBuilder().mergeFrom(value); + } else { + rubricGenerationSpec_ = value; + } + } else { + rubricGenerationSpecBuilder_.mergeFrom(value); + } + if (rubricGenerationSpec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRubricGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + rubricGenerationSpec_ = null; + if (rubricGenerationSpecBuilder_ != null) { + rubricGenerationSpecBuilder_.dispose(); + rubricGenerationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder + getRubricGenerationSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetRubricGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder() { + if (rubricGenerationSpecBuilder_ != null) { + return rubricGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + return rubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance() + : rubricGenerationSpec_; + } + } + + /** + * + * + *
+     * Optional. Specification for how the rubrics should be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder> + internalGetRubricGenerationSpecFieldBuilder() { + if (rubricGenerationSpecBuilder_ == null) { + rubricGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder>( + getRubricGenerationSpec(), getParentForChildren(), isClean()); + rubricGenerationSpec_ = null; + } + return rubricGenerationSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + agentConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder> + agentConfigBuilder_; + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + public boolean hasAgentConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentConfig() { + if (agentConfigBuilder_ == null) { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } else { + return agentConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (agentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentConfig_ = value; + } else { + agentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + builderForValue) { + if (agentConfigBuilder_ == null) { + agentConfig_ = builderForValue.build(); + } else { + agentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (agentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && agentConfig_ != null + && agentConfig_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance()) { + getAgentConfigBuilder().mergeFrom(value); + } else { + agentConfig_ = value; + } + } else { + agentConfigBuilder_.mergeFrom(value); + } + if (agentConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + agentConfig_ = null; + if (agentConfigBuilder_ != null) { + agentConfigBuilder_.dispose(); + agentConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + getAgentConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetAgentConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder() { + if (agentConfigBuilder_ != null) { + return agentConfigBuilder_.getMessageOrBuilder(); + } else { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + } + + /** + * + * + *
+     * Optional. Agent configuration, required for agent-based rubric generation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder> + internalGetAgentConfigFieldBuilder() { + if (agentConfigBuilder_ == null) { + agentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder>( + getAgentConfig(), getParentForChildren(), isClean()); + agentConfig_ = null; + } + return agentConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + private static final com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateInstanceRubricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsRequestOrBuilder.java new file mode 100644 index 000000000000..e56c804f1dee --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsRequestOrBuilder.java @@ -0,0 +1,288 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface GenerateInstanceRubricsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to generate rubrics from.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
+   * Required. The resource name of the Location to generate rubrics from.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getContentsList(); + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.Content getContents(int index); + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getContentsCount(); + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getContentsOrBuilderList(); + + /** + * + * + *
+   * Required. The prompt to generate rubrics from.
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Specification for using the rubric generation configs of a
+   * pre-defined metric, e.g. "generic_quality_v1" and
+   * "instruction_following_v1". Some of the configs may be only used in rubric
+   * generation and not supporting evaluation, e.g.
+   * "fully_customized_generic_quality_v1". If this field is set, the
+   * `rubric_generation_spec` field will be ignored.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + boolean hasPredefinedRubricGenerationSpec(); + + /** + * + * + *
+   * Optional. Specification for using the rubric generation configs of a
+   * pre-defined metric, e.g. "generic_quality_v1" and
+   * "instruction_following_v1". Some of the configs may be only used in rubric
+   * generation and not supporting evaluation, e.g.
+   * "fully_customized_generic_quality_v1". If this field is set, the
+   * `rubric_generation_spec` field will be ignored.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedRubricGenerationSpec. + */ + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getPredefinedRubricGenerationSpec(); + + /** + * + * + *
+   * Optional. Specification for using the rubric generation configs of a
+   * pre-defined metric, e.g. "generic_quality_v1" and
+   * "instruction_following_v1". Some of the configs may be only used in rubric
+   * generation and not supporting evaluation, e.g.
+   * "fully_customized_generic_quality_v1". If this field is set, the
+   * `rubric_generation_spec` field will be ignored.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder(); + + /** + * + * + *
+   * Optional. Specification for how the rubrics should be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rubricGenerationSpec field is set. + */ + boolean hasRubricGenerationSpec(); + + /** + * + * + *
+   * Optional. Specification for how the rubrics should be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rubricGenerationSpec. + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec(); + + /** + * + * + *
+   * Optional. Specification for how the rubrics should be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder(); + + /** + * + * + *
+   * Optional. Agent configuration, required for agent-based rubric generation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + boolean hasAgentConfig(); + + /** + * + * + *
+   * Optional. Agent configuration, required for agent-based rubric generation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig getAgentConfig(); + + /** + * + * + *
+   * Optional. Agent configuration, required for agent-based rubric generation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponse.java new file mode 100644 index 000000000000..e6fd4c58bff5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponse.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for EvaluationService.GenerateInstanceRubrics.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse} + */ +@com.google.protobuf.Generated +public final class GenerateInstanceRubricsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + GenerateInstanceRubricsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateInstanceRubricsResponse"); + } + + // Use GenerateInstanceRubricsResponse.newBuilder() to construct. + private GenerateInstanceRubricsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateInstanceRubricsResponse() { + generatedRubrics_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.class, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.Builder.class); + } + + public static final int GENERATED_RUBRICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List generatedRubrics_; + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getGeneratedRubricsList() { + return generatedRubrics_; + } + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getGeneratedRubricsOrBuilderList() { + return generatedRubrics_; + } + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getGeneratedRubricsCount() { + return generatedRubrics_.size(); + } + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getGeneratedRubrics(int index) { + return generatedRubrics_.get(index); + } + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getGeneratedRubricsOrBuilder( + int index) { + return generatedRubrics_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < generatedRubrics_.size(); i++) { + output.writeMessage(1, generatedRubrics_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < generatedRubrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, generatedRubrics_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse other = + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) obj; + + if (!getGeneratedRubricsList().equals(other.getGeneratedRubricsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGeneratedRubricsCount() > 0) { + hash = (37 * hash) + GENERATED_RUBRICS_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedRubricsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for EvaluationService.GenerateInstanceRubrics.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.class, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (generatedRubricsBuilder_ == null) { + generatedRubrics_ = java.util.Collections.emptyList(); + } else { + generatedRubrics_ = null; + generatedRubricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse build() { + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse result = + new com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse result) { + if (generatedRubricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + generatedRubrics_ = java.util.Collections.unmodifiableList(generatedRubrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.generatedRubrics_ = generatedRubrics_; + } else { + result.generatedRubrics_ = generatedRubricsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + .getDefaultInstance()) return this; + if (generatedRubricsBuilder_ == null) { + if (!other.generatedRubrics_.isEmpty()) { + if (generatedRubrics_.isEmpty()) { + generatedRubrics_ = other.generatedRubrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.addAll(other.generatedRubrics_); + } + onChanged(); + } + } else { + if (!other.generatedRubrics_.isEmpty()) { + if (generatedRubricsBuilder_.isEmpty()) { + generatedRubricsBuilder_.dispose(); + generatedRubricsBuilder_ = null; + generatedRubrics_ = other.generatedRubrics_; + bitField0_ = (bitField0_ & ~0x00000001); + generatedRubricsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGeneratedRubricsFieldBuilder() + : null; + } else { + generatedRubricsBuilder_.addAllMessages(other.generatedRubrics_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.Rubric m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Rubric.parser(), extensionRegistry); + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(m); + } else { + generatedRubricsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List generatedRubrics_ = + java.util.Collections.emptyList(); + + private void ensureGeneratedRubricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + generatedRubrics_ = + new java.util.ArrayList(generatedRubrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + generatedRubricsBuilder_; + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getGeneratedRubricsList() { + if (generatedRubricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(generatedRubrics_); + } else { + return generatedRubricsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getGeneratedRubricsCount() { + if (generatedRubricsBuilder_ == null) { + return generatedRubrics_.size(); + } else { + return generatedRubricsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Rubric getGeneratedRubrics(int index) { + if (generatedRubricsBuilder_ == null) { + return generatedRubrics_.get(index); + } else { + return generatedRubricsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGeneratedRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (generatedRubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.set(index, value); + onChanged(); + } else { + generatedRubricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGeneratedRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.set(index, builderForValue.build()); + onChanged(); + } else { + generatedRubricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addGeneratedRubrics(com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (generatedRubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(value); + onChanged(); + } else { + generatedRubricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addGeneratedRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (generatedRubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(index, value); + onChanged(); + } else { + generatedRubricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addGeneratedRubrics( + com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(builderForValue.build()); + onChanged(); + } else { + generatedRubricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addGeneratedRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(index, builderForValue.build()); + onChanged(); + } else { + generatedRubricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllGeneratedRubrics( + java.lang.Iterable values) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, generatedRubrics_); + onChanged(); + } else { + generatedRubricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGeneratedRubrics() { + if (generatedRubricsBuilder_ == null) { + generatedRubrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + generatedRubricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeGeneratedRubrics(int index) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.remove(index); + onChanged(); + } else { + generatedRubricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder getGeneratedRubricsBuilder( + int index) { + return internalGetGeneratedRubricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getGeneratedRubricsOrBuilder( + int index) { + if (generatedRubricsBuilder_ == null) { + return generatedRubrics_.get(index); + } else { + return generatedRubricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getGeneratedRubricsOrBuilderList() { + if (generatedRubricsBuilder_ != null) { + return generatedRubricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(generatedRubrics_); + } + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder addGeneratedRubricsBuilder() { + return internalGetGeneratedRubricsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder addGeneratedRubricsBuilder( + int index) { + return internalGetGeneratedRubricsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. A list of generated rubrics.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getGeneratedRubricsBuilderList() { + return internalGetGeneratedRubricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + internalGetGeneratedRubricsFieldBuilder() { + if (generatedRubricsBuilder_ == null) { + generatedRubricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder>( + generatedRubrics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + generatedRubrics_ = null; + } + return generatedRubricsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + private static final com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateInstanceRubricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponseOrBuilder.java new file mode 100644 index 000000000000..1a840792a30e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponseOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface GenerateInstanceRubricsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getGeneratedRubricsList(); + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.Rubric getGeneratedRubrics(int index); + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getGeneratedRubricsCount(); + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getGeneratedRubricsOrBuilderList(); + + /** + * + * + *
+   * Output only. A list of generated rubrics.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getGeneratedRubricsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..7fa4eb632e9a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequest.java @@ -0,0 +1,622 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for GetOnlineEvaluator.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class GetOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + GetOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetOnlineEvaluatorRequest"); + } + + // Use GetOnlineEvaluatorRequest.newBuilder() to construct. + private GetOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetOnlineEvaluatorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to retrieve.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to retrieve.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for GetOnlineEvaluator.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to retrieve.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to retrieve.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to retrieve.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to retrieve.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to retrieve.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOnlineEvaluatorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..8d83ffbf369e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface GetOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to retrieve.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to retrieve.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java index 885e9eeb039f..fe0300d75378 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java @@ -82,6 +82,7 @@ public enum RubricsSourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RUBRIC_GROUP_KEY(4), + RUBRIC_GENERATION_SPEC(5), PREDEFINED_RUBRIC_GENERATION_SPEC(6), RUBRICSSOURCE_NOT_SET(0); private final int value; @@ -104,6 +105,8 @@ public static RubricsSourceCase forNumber(int value) { switch (value) { case 4: return RUBRIC_GROUP_KEY; + case 5: + return RUBRIC_GENERATION_SPEC; case 6: return PREDEFINED_RUBRIC_GENERATION_SPEC; case 0: @@ -198,6 +201,61 @@ public com.google.protobuf.ByteString getRubricGroupKeyBytes() { } } + public static final int RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Dynamically generate rubrics using this specification.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * @return Whether the rubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasRubricGenerationSpec() { + return rubricsSourceCase_ == 5; + } + + /** + * + * + *
+   * Dynamically generate rubrics using this specification.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * @return The rubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec() { + if (rubricsSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + + /** + * + * + *
+   * Dynamically generate rubrics using this specification.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder() { + if (rubricsSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 6; /** @@ -520,6 +578,66 @@ public com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder() { : additionalConfig_; } + public static final int RESULT_PARSER_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig resultParserConfig_; + + /** + * + * + *
+   * Optional. The parser config for the metric result.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resultParserConfig field is set. + */ + @java.lang.Override + public boolean hasResultParserConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. The parser config for the metric result.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resultParserConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getResultParserConfig() { + return resultParserConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance() + : resultParserConfig_; + } + + /** + * + * + *
+   * Optional. The parser config for the metric result.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder + getResultParserConfigOrBuilder() { + return resultParserConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance() + : resultParserConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -546,6 +664,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (rubricsSourceCase_ == 4) { com.google.protobuf.GeneratedMessage.writeString(output, 4, rubricsSource_); } + if (rubricsSourceCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_); + } if (rubricsSourceCase_ == 6) { output.writeMessage( 6, (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_); @@ -553,6 +675,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getAdditionalConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getResultParserConfig()); + } getUnknownFields().writeTo(output); } @@ -575,6 +700,11 @@ public int getSerializedSize() { if (rubricsSourceCase_ == 4) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, rubricsSource_); } + if (rubricsSourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_); + } if (rubricsSourceCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -583,6 +713,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAdditionalConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getResultParserConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -615,11 +748,18 @@ public boolean equals(final java.lang.Object obj) { if (hasAdditionalConfig()) { if (!getAdditionalConfig().equals(other.getAdditionalConfig())) return false; } + if (hasResultParserConfig() != other.hasResultParserConfig()) return false; + if (hasResultParserConfig()) { + if (!getResultParserConfig().equals(other.getResultParserConfig())) return false; + } if (!getRubricsSourceCase().equals(other.getRubricsSourceCase())) return false; switch (rubricsSourceCase_) { case 4: if (!getRubricGroupKey().equals(other.getRubricGroupKey())) return false; break; + case 5: + if (!getRubricGenerationSpec().equals(other.getRubricGenerationSpec())) return false; + break; case 6: if (!getPredefinedRubricGenerationSpec().equals(other.getPredefinedRubricGenerationSpec())) return false; @@ -654,11 +794,19 @@ public int hashCode() { hash = (37 * hash) + ADDITIONAL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAdditionalConfig().hashCode(); } + if (hasResultParserConfig()) { + hash = (37 * hash) + RESULT_PARSER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getResultParserConfig().hashCode(); + } switch (rubricsSourceCase_) { case 4: hash = (37 * hash) + RUBRIC_GROUP_KEY_FIELD_NUMBER; hash = (53 * hash) + getRubricGroupKey().hashCode(); break; + case 5: + hash = (37 * hash) + RUBRIC_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getRubricGenerationSpec().hashCode(); + break; case 6: hash = (37 * hash) + PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPredefinedRubricGenerationSpec().hashCode(); @@ -810,6 +958,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetJudgeAutoraterConfigFieldBuilder(); internalGetAdditionalConfigFieldBuilder(); + internalGetResultParserConfigFieldBuilder(); } } @@ -817,6 +966,9 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (rubricGenerationSpecBuilder_ != null) { + rubricGenerationSpecBuilder_.clear(); + } if (predefinedRubricGenerationSpecBuilder_ != null) { predefinedRubricGenerationSpecBuilder_.clear(); } @@ -832,6 +984,11 @@ public Builder clear() { additionalConfigBuilder_.dispose(); additionalConfigBuilder_ = null; } + resultParserConfig_ = null; + if (resultParserConfigBuilder_ != null) { + resultParserConfigBuilder_.dispose(); + resultParserConfigBuilder_ = null; + } rubricsSourceCase_ = 0; rubricsSource_ = null; return this; @@ -872,32 +1029,42 @@ public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.metricPromptTemplate_ = metricPromptTemplate_; to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.systemInstruction_ = systemInstruction_; to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.judgeAutoraterConfig_ = judgeAutoraterConfigBuilder_ == null ? judgeAutoraterConfig_ : judgeAutoraterConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.additionalConfig_ = additionalConfigBuilder_ == null ? additionalConfig_ : additionalConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.resultParserConfig_ = + resultParserConfigBuilder_ == null + ? resultParserConfig_ + : resultParserConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec result) { result.rubricsSourceCase_ = rubricsSourceCase_; result.rubricsSource_ = this.rubricsSource_; + if (rubricsSourceCase_ == 5 && rubricGenerationSpecBuilder_ != null) { + result.rubricsSource_ = rubricGenerationSpecBuilder_.build(); + } if (rubricsSourceCase_ == 6 && predefinedRubricGenerationSpecBuilder_ != null) { result.rubricsSource_ = predefinedRubricGenerationSpecBuilder_.build(); } @@ -918,12 +1085,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec return this; if (other.hasMetricPromptTemplate()) { metricPromptTemplate_ = other.metricPromptTemplate_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasSystemInstruction()) { systemInstruction_ = other.systemInstruction_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasJudgeAutoraterConfig()) { @@ -932,6 +1099,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec if (other.hasAdditionalConfig()) { mergeAdditionalConfig(other.getAdditionalConfig()); } + if (other.hasResultParserConfig()) { + mergeResultParserConfig(other.getResultParserConfig()); + } switch (other.getRubricsSourceCase()) { case RUBRIC_GROUP_KEY: { @@ -940,6 +1110,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec onChanged(); break; } + case RUBRIC_GENERATION_SPEC: + { + mergeRubricGenerationSpec(other.getRubricGenerationSpec()); + break; + } case PREDEFINED_RUBRIC_GENERATION_SPEC: { mergePredefinedRubricGenerationSpec(other.getPredefinedRubricGenerationSpec()); @@ -979,20 +1154,20 @@ public Builder mergeFrom( case 10: { metricPromptTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { systemInstruction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { input.readMessage( internalGetJudgeAutoraterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -1002,6 +1177,13 @@ public Builder mergeFrom( rubricsSource_ = s; break; } // case 34 + case 42: + { + input.readMessage( + internalGetRubricGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + rubricsSourceCase_ = 5; + break; + } // case 42 case 50: { input.readMessage( @@ -1014,9 +1196,16 @@ public Builder mergeFrom( { input.readMessage( internalGetAdditionalConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + input.readMessage( + internalGetResultParserConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1195,6 +1384,239 @@ public Builder setRubricGroupKeyBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder> + rubricGenerationSpecBuilder_; + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * + * @return Whether the rubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasRubricGenerationSpec() { + return rubricsSourceCase_ == 5; + } + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * + * @return The rubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec() { + if (rubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } else { + if (rubricsSourceCase_ == 5) { + return rubricGenerationSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public Builder setRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec value) { + if (rubricGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rubricsSource_ = value; + onChanged(); + } else { + rubricGenerationSpecBuilder_.setMessage(value); + } + rubricsSourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public Builder setRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder builderForValue) { + if (rubricGenerationSpecBuilder_ == null) { + rubricsSource_ = builderForValue.build(); + onChanged(); + } else { + rubricGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + rubricsSourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public Builder mergeRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec value) { + if (rubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 5 + && rubricsSource_ + != com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance()) { + rubricsSource_ = + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_) + .mergeFrom(value) + .buildPartial(); + } else { + rubricsSource_ = value; + } + onChanged(); + } else { + if (rubricsSourceCase_ == 5) { + rubricGenerationSpecBuilder_.mergeFrom(value); + } else { + rubricGenerationSpecBuilder_.setMessage(value); + } + } + rubricsSourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public Builder clearRubricGenerationSpec() { + if (rubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 5) { + rubricsSourceCase_ = 0; + rubricsSource_ = null; + onChanged(); + } + } else { + if (rubricsSourceCase_ == 5) { + rubricsSourceCase_ = 0; + rubricsSource_ = null; + } + rubricGenerationSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder + getRubricGenerationSpecBuilder() { + return internalGetRubricGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder() { + if ((rubricsSourceCase_ == 5) && (rubricGenerationSpecBuilder_ != null)) { + return rubricGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + if (rubricsSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Dynamically generate rubrics using this specification.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder> + internalGetRubricGenerationSpecFieldBuilder() { + if (rubricGenerationSpecBuilder_ == null) { + if (!(rubricsSourceCase_ == 5)) { + rubricsSource_ = + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + rubricGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_, + getParentForChildren(), + isClean()); + rubricsSource_ = null; + } + rubricsSourceCase_ = 5; + onChanged(); + return rubricGenerationSpecBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, @@ -1453,7 +1875,7 @@ public Builder clearPredefinedRubricGenerationSpec() { * @return Whether the metricPromptTemplate field is set. */ public boolean hasMetricPromptTemplate() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1522,7 +1944,7 @@ public Builder setMetricPromptTemplate(java.lang.String value) { throw new NullPointerException(); } metricPromptTemplate_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1541,7 +1963,7 @@ public Builder setMetricPromptTemplate(java.lang.String value) { */ public Builder clearMetricPromptTemplate() { metricPromptTemplate_ = getDefaultInstance().getMetricPromptTemplate(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1565,7 +1987,7 @@ public Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); metricPromptTemplate_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1585,7 +2007,7 @@ public Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value * @return Whether the systemInstruction field is set. */ public boolean hasSystemInstruction() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1654,7 +2076,7 @@ public Builder setSystemInstruction(java.lang.String value) { throw new NullPointerException(); } systemInstruction_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1673,7 +2095,7 @@ public Builder setSystemInstruction(java.lang.String value) { */ public Builder clearSystemInstruction() { systemInstruction_ = getDefaultInstance().getSystemInstruction(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1697,7 +2119,7 @@ public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); systemInstruction_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1723,7 +2145,7 @@ public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { * @return Whether the judgeAutoraterConfig field is set. */ public boolean hasJudgeAutoraterConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1770,7 +2192,7 @@ public Builder setJudgeAutoraterConfig( } else { judgeAutoraterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1793,7 +2215,7 @@ public Builder setJudgeAutoraterConfig( } else { judgeAutoraterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1812,7 +2234,7 @@ public Builder setJudgeAutoraterConfig( public Builder mergeJudgeAutoraterConfig( com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { if (judgeAutoraterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && judgeAutoraterConfig_ != null && judgeAutoraterConfig_ != com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) { @@ -1824,7 +2246,7 @@ public Builder mergeJudgeAutoraterConfig( judgeAutoraterConfigBuilder_.mergeFrom(value); } if (judgeAutoraterConfig_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1842,7 +2264,7 @@ public Builder mergeJudgeAutoraterConfig( * */ public Builder clearJudgeAutoraterConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); judgeAutoraterConfig_ = null; if (judgeAutoraterConfigBuilder_ != null) { judgeAutoraterConfigBuilder_.dispose(); @@ -1865,7 +2287,7 @@ public Builder clearJudgeAutoraterConfig() { */ public com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder getJudgeAutoraterConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetJudgeAutoraterConfigFieldBuilder().getBuilder(); } @@ -1941,7 +2363,7 @@ public Builder clearJudgeAutoraterConfig() { * @return Whether the additionalConfig field is set. */ public boolean hasAdditionalConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1987,7 +2409,7 @@ public Builder setAdditionalConfig(com.google.protobuf.Struct value) { } else { additionalConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2009,7 +2431,7 @@ public Builder setAdditionalConfig(com.google.protobuf.Struct.Builder builderFor } else { additionalConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2027,7 +2449,7 @@ public Builder setAdditionalConfig(com.google.protobuf.Struct.Builder builderFor */ public Builder mergeAdditionalConfig(com.google.protobuf.Struct value) { if (additionalConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && additionalConfig_ != null && additionalConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { getAdditionalConfigBuilder().mergeFrom(value); @@ -2038,7 +2460,7 @@ public Builder mergeAdditionalConfig(com.google.protobuf.Struct value) { additionalConfigBuilder_.mergeFrom(value); } if (additionalConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2056,7 +2478,7 @@ public Builder mergeAdditionalConfig(com.google.protobuf.Struct value) { * */ public Builder clearAdditionalConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); additionalConfig_ = null; if (additionalConfigBuilder_ != null) { additionalConfigBuilder_.dispose(); @@ -2078,7 +2500,7 @@ public Builder clearAdditionalConfig() { * */ public com.google.protobuf.Struct.Builder getAdditionalConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetAdditionalConfigFieldBuilder().getBuilder(); } @@ -2132,6 +2554,225 @@ public com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder() { return additionalConfigBuilder_; } + private com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig resultParserConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder> + resultParserConfigBuilder_; + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resultParserConfig field is set. + */ + public boolean hasResultParserConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resultParserConfig. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getResultParserConfig() { + if (resultParserConfigBuilder_ == null) { + return resultParserConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance() + : resultParserConfig_; + } else { + return resultParserConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResultParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig value) { + if (resultParserConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resultParserConfig_ = value; + } else { + resultParserConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResultParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder builderForValue) { + if (resultParserConfigBuilder_ == null) { + resultParserConfig_ = builderForValue.build(); + } else { + resultParserConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResultParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig value) { + if (resultParserConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && resultParserConfig_ != null + && resultParserConfig_ + != com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .getDefaultInstance()) { + getResultParserConfigBuilder().mergeFrom(value); + } else { + resultParserConfig_ = value; + } + } else { + resultParserConfigBuilder_.mergeFrom(value); + } + if (resultParserConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResultParserConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + resultParserConfig_ = null; + if (resultParserConfigBuilder_ != null) { + resultParserConfigBuilder_.dispose(); + resultParserConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder + getResultParserConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetResultParserConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder + getResultParserConfigOrBuilder() { + if (resultParserConfigBuilder_ != null) { + return resultParserConfigBuilder_.getMessageOrBuilder(); + } else { + return resultParserConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance() + : resultParserConfig_; + } + } + + /** + * + * + *
+     * Optional. The parser config for the metric result.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder> + internalGetResultParserConfigFieldBuilder() { + if (resultParserConfigBuilder_ == null) { + resultParserConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder>( + getResultParserConfig(), getParentForChildren(), isClean()); + resultParserConfig_ = null; + } + return resultParserConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java index 59c842a2103b..d57434e6347e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java @@ -68,6 +68,44 @@ public interface LLMBasedMetricSpecOrBuilder */ com.google.protobuf.ByteString getRubricGroupKeyBytes(); + /** + * + * + *
+   * Dynamically generate rubrics using this specification.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * @return Whether the rubricGenerationSpec field is set. + */ + boolean hasRubricGenerationSpec(); + + /** + * + * + *
+   * Dynamically generate rubrics using this specification.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * @return The rubricGenerationSpec. + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec(); + + /** + * + * + *
+   * Dynamically generate rubrics using this specification.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder(); + /** * * @@ -279,5 +317,49 @@ public interface LLMBasedMetricSpecOrBuilder */ com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder(); + /** + * + * + *
+   * Optional. The parser config for the metric result.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resultParserConfig field is set. + */ + boolean hasResultParserConfig(); + + /** + * + * + *
+   * Optional. The parser config for the metric result.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resultParserConfig. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getResultParserConfig(); + + /** + * + * + *
+   * Optional. The parser config for the metric result.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder + getResultParserConfigOrBuilder(); + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.RubricsSourceCase getRubricsSourceCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequest.java new file mode 100644 index 000000000000..1cbacdb5d64f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequest.java @@ -0,0 +1,1406 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for ListOnlineEvaluators.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest} + */ +@com.google.protobuf.Generated +public final class ListOnlineEvaluatorsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + ListOnlineEvaluatorsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListOnlineEvaluatorsRequest"); + } + + // Use ListOnlineEvaluatorsRequest.newBuilder() to construct. + private ListOnlineEvaluatorsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListOnlineEvaluatorsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource of the OnlineEvaluators to list.
+   * Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource of the OnlineEvaluators to list.
+   * Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of OnlineEvaluators to return. The service may
+   * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
+   * will be returned. The maximum value is 100; values above 100 will be
+   * coerced to 100. Based on aip.dev/158.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * Based on aip.dev/158.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * Based on aip.dev/158.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Standard list filter.
+   * Supported fields:
+   * * `create_time`
+   * * `update_time`
+   * * `agent_resource`
+   * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+   * where the timestamp is in RFC 3339 format)
+   * Based on aip.dev/160.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Standard list filter.
+   * Supported fields:
+   * * `create_time`
+   * * `update_time`
+   * * `agent_resource`
+   * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+   * where the timestamp is in RFC 3339 format)
+   * Based on aip.dev/160.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by. The default sorting
+   * order is ascending. Use "desc" after a field name for descending. Supported
+   * fields:
+   * * `create_time`
+   * * `update_time`
+   *
+   * Example: `create_time desc`.
+   * Based on aip.dev/132.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by. The default sorting
+   * order is ascending. Use "desc" after a field name for descending. Supported
+   * fields:
+   * * `create_time`
+   * * `update_time`
+   *
+   * Example: `create_time desc`.
+   * Based on aip.dev/132.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ListOnlineEvaluators.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource of the OnlineEvaluators to list.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource of the OnlineEvaluators to list.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource of the OnlineEvaluators to list.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource of the OnlineEvaluators to list.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource of the OnlineEvaluators to list.
+     * Format: projects/{project}/locations/{location}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of OnlineEvaluators to return. The service may
+     * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
+     * will be returned. The maximum value is 100; values above 100 will be
+     * coerced to 100. Based on aip.dev/158.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of OnlineEvaluators to return. The service may
+     * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
+     * will be returned. The maximum value is 100; values above 100 will be
+     * coerced to 100. Based on aip.dev/158.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of OnlineEvaluators to return. The service may
+     * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
+     * will be returned. The maximum value is 100; values above 100 will be
+     * coerced to 100. Based on aip.dev/158.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * Based on aip.dev/158.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * Based on aip.dev/158.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * Based on aip.dev/158.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * Based on aip.dev/158.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * Based on aip.dev/158.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Standard list filter.
+     * Supported fields:
+     * * `create_time`
+     * * `update_time`
+     * * `agent_resource`
+     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+     * where the timestamp is in RFC 3339 format)
+     * Based on aip.dev/160.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Standard list filter.
+     * Supported fields:
+     * * `create_time`
+     * * `update_time`
+     * * `agent_resource`
+     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+     * where the timestamp is in RFC 3339 format)
+     * Based on aip.dev/160.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Standard list filter.
+     * Supported fields:
+     * * `create_time`
+     * * `update_time`
+     * * `agent_resource`
+     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+     * where the timestamp is in RFC 3339 format)
+     * Based on aip.dev/160.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Standard list filter.
+     * Supported fields:
+     * * `create_time`
+     * * `update_time`
+     * * `agent_resource`
+     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+     * where the timestamp is in RFC 3339 format)
+     * Based on aip.dev/160.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Standard list filter.
+     * Supported fields:
+     * * `create_time`
+     * * `update_time`
+     * * `agent_resource`
+     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+     * where the timestamp is in RFC 3339 format)
+     * Based on aip.dev/160.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by. The default sorting
+     * order is ascending. Use "desc" after a field name for descending. Supported
+     * fields:
+     * * `create_time`
+     * * `update_time`
+     *
+     * Example: `create_time desc`.
+     * Based on aip.dev/132.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by. The default sorting
+     * order is ascending. Use "desc" after a field name for descending. Supported
+     * fields:
+     * * `create_time`
+     * * `update_time`
+     *
+     * Example: `create_time desc`.
+     * Based on aip.dev/132.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by. The default sorting
+     * order is ascending. Use "desc" after a field name for descending. Supported
+     * fields:
+     * * `create_time`
+     * * `update_time`
+     *
+     * Example: `create_time desc`.
+     * Based on aip.dev/132.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by. The default sorting
+     * order is ascending. Use "desc" after a field name for descending. Supported
+     * fields:
+     * * `create_time`
+     * * `update_time`
+     *
+     * Example: `create_time desc`.
+     * Based on aip.dev/132.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by. The default sorting
+     * order is ascending. Use "desc" after a field name for descending. Supported
+     * fields:
+     * * `create_time`
+     * * `update_time`
+     *
+     * Example: `create_time desc`.
+     * Based on aip.dev/132.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOnlineEvaluatorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequestOrBuilder.java new file mode 100644 index 000000000000..d037774dadad --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequestOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ListOnlineEvaluatorsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource of the OnlineEvaluators to list.
+   * Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource of the OnlineEvaluators to list.
+   * Format: projects/{project}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of OnlineEvaluators to return. The service may
+   * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
+   * will be returned. The maximum value is 100; values above 100 will be
+   * coerced to 100. Based on aip.dev/158.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * Based on aip.dev/158.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * Based on aip.dev/158.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Standard list filter.
+   * Supported fields:
+   * * `create_time`
+   * * `update_time`
+   * * `agent_resource`
+   * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+   * where the timestamp is in RFC 3339 format)
+   * Based on aip.dev/160.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Standard list filter.
+   * Supported fields:
+   * * `create_time`
+   * * `update_time`
+   * * `agent_resource`
+   * Example: `create_time>"2026-01-01T00:00:00-04:00"`
+   * where the timestamp is in RFC 3339 format)
+   * Based on aip.dev/160.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by. The default sorting
+   * order is ascending. Use "desc" after a field name for descending. Supported
+   * fields:
+   * * `create_time`
+   * * `update_time`
+   *
+   * Example: `create_time desc`.
+   * Based on aip.dev/132.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by. The default sorting
+   * order is ascending. Use "desc" after a field name for descending. Supported
+   * fields:
+   * * `create_time`
+   * * `update_time`
+   *
+   * Example: `create_time desc`.
+   * Based on aip.dev/132.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponse.java new file mode 100644 index 000000000000..c18282e45624 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponse.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for ListOnlineEvaluators.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse} + */ +@com.google.protobuf.Generated +public final class ListOnlineEvaluatorsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + ListOnlineEvaluatorsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListOnlineEvaluatorsResponse"); + } + + // Use ListOnlineEvaluatorsResponse.newBuilder() to construct. + private ListOnlineEvaluatorsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListOnlineEvaluatorsResponse() { + onlineEvaluators_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.Builder.class); + } + + public static final int ONLINE_EVALUATORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List onlineEvaluators_; + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public java.util.List + getOnlineEvaluatorsList() { + return onlineEvaluators_; + } + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public java.util.List + getOnlineEvaluatorsOrBuilderList() { + return onlineEvaluators_; + } + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public int getOnlineEvaluatorsCount() { + return onlineEvaluators_.size(); + } + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluators(int index) { + return onlineEvaluators_.get(index); + } + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder getOnlineEvaluatorsOrBuilder( + int index) { + return onlineEvaluators_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token to retrieve the next page. Absence of this field indicates there
+   * are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token to retrieve the next page. Absence of this field indicates there
+   * are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < onlineEvaluators_.size(); i++) { + output.writeMessage(1, onlineEvaluators_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < onlineEvaluators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, onlineEvaluators_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) obj; + + if (!getOnlineEvaluatorsList().equals(other.getOnlineEvaluatorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOnlineEvaluatorsCount() > 0) { + hash = (37 * hash) + ONLINE_EVALUATORS_FIELD_NUMBER; + hash = (53 * hash) + getOnlineEvaluatorsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ListOnlineEvaluators.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (onlineEvaluatorsBuilder_ == null) { + onlineEvaluators_ = java.util.Collections.emptyList(); + } else { + onlineEvaluators_ = null; + onlineEvaluatorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse result) { + if (onlineEvaluatorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + onlineEvaluators_ = java.util.Collections.unmodifiableList(onlineEvaluators_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.onlineEvaluators_ = onlineEvaluators_; + } else { + result.onlineEvaluators_ = onlineEvaluatorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.getDefaultInstance()) + return this; + if (onlineEvaluatorsBuilder_ == null) { + if (!other.onlineEvaluators_.isEmpty()) { + if (onlineEvaluators_.isEmpty()) { + onlineEvaluators_ = other.onlineEvaluators_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.addAll(other.onlineEvaluators_); + } + onChanged(); + } + } else { + if (!other.onlineEvaluators_.isEmpty()) { + if (onlineEvaluatorsBuilder_.isEmpty()) { + onlineEvaluatorsBuilder_.dispose(); + onlineEvaluatorsBuilder_ = null; + onlineEvaluators_ = other.onlineEvaluators_; + bitField0_ = (bitField0_ & ~0x00000001); + onlineEvaluatorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetOnlineEvaluatorsFieldBuilder() + : null; + } else { + onlineEvaluatorsBuilder_.addAllMessages(other.onlineEvaluators_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.parser(), + extensionRegistry); + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(m); + } else { + onlineEvaluatorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List onlineEvaluators_ = + java.util.Collections.emptyList(); + + private void ensureOnlineEvaluatorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + onlineEvaluators_ = + new java.util.ArrayList( + onlineEvaluators_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + onlineEvaluatorsBuilder_; + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public java.util.List + getOnlineEvaluatorsList() { + if (onlineEvaluatorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(onlineEvaluators_); + } else { + return onlineEvaluatorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public int getOnlineEvaluatorsCount() { + if (onlineEvaluatorsBuilder_ == null) { + return onlineEvaluators_.size(); + } else { + return onlineEvaluatorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluators(int index) { + if (onlineEvaluatorsBuilder_ == null) { + return onlineEvaluators_.get(index); + } else { + return onlineEvaluatorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder setOnlineEvaluators( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.set(index, value); + onChanged(); + } else { + onlineEvaluatorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder setOnlineEvaluators( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.set(index, builderForValue.build()); + onChanged(); + } else { + onlineEvaluatorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addOnlineEvaluators(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(value); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addOnlineEvaluators( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(index, value); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(builderForValue.build()); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addOnlineEvaluators( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(index, builderForValue.build()); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addAllOnlineEvaluators( + java.lang.Iterable values) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, onlineEvaluators_); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder clearOnlineEvaluators() { + if (onlineEvaluatorsBuilder_ == null) { + onlineEvaluators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + onlineEvaluatorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder removeOnlineEvaluators(int index) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.remove(index); + onChanged(); + } else { + onlineEvaluatorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder getOnlineEvaluatorsBuilder( + int index) { + return internalGetOnlineEvaluatorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorsOrBuilder(int index) { + if (onlineEvaluatorsBuilder_ == null) { + return onlineEvaluators_.get(index); + } else { + return onlineEvaluatorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public java.util.List + getOnlineEvaluatorsOrBuilderList() { + if (onlineEvaluatorsBuilder_ != null) { + return onlineEvaluatorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(onlineEvaluators_); + } + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder + addOnlineEvaluatorsBuilder() { + return internalGetOnlineEvaluatorsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder addOnlineEvaluatorsBuilder( + int index) { + return internalGetOnlineEvaluatorsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of OnlineEvaluators matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public java.util.List + getOnlineEvaluatorsBuilderList() { + return internalGetOnlineEvaluatorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + internalGetOnlineEvaluatorsFieldBuilder() { + if (onlineEvaluatorsBuilder_ == null) { + onlineEvaluatorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder>( + onlineEvaluators_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + onlineEvaluators_ = null; + } + return onlineEvaluatorsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token to retrieve the next page. Absence of this field indicates there
+     * are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token to retrieve the next page. Absence of this field indicates there
+     * are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token to retrieve the next page. Absence of this field indicates there
+     * are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to retrieve the next page. Absence of this field indicates there
+     * are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to retrieve the next page. Absence of this field indicates there
+     * are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOnlineEvaluatorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponseOrBuilder.java new file mode 100644 index 000000000000..6d2c0ca96179 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ListOnlineEvaluatorsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + java.util.List getOnlineEvaluatorsList(); + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluators(int index); + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + int getOnlineEvaluatorsCount(); + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + java.util.List + getOnlineEvaluatorsOrBuilderList(); + + /** + * + * + *
+   * A list of OnlineEvaluators matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder getOnlineEvaluatorsOrBuilder( + int index); + + /** + * + * + *
+   * A token to retrieve the next page. Absence of this field indicates there
+   * are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token to retrieve the next page. Absence of this field indicates there
+   * are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java index 9baeab5f790b..6a7aa59852da 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java @@ -427,6 +427,7 @@ private AggregationMetric(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Metric.AggregationMetric) } + private int bitField0_; private int metricSpecCase_ = 0; @SuppressWarnings("serial") @@ -439,6 +440,7 @@ public enum MetricSpecCase PREDEFINED_METRIC_SPEC(8), COMPUTATION_BASED_METRIC_SPEC(9), LLM_BASED_METRIC_SPEC(10), + CUSTOM_CODE_EXECUTION_SPEC(11), POINTWISE_METRIC_SPEC(2), PAIRWISE_METRIC_SPEC(3), EXACT_MATCH_SPEC(4), @@ -469,6 +471,8 @@ public static MetricSpecCase forNumber(int value) { return COMPUTATION_BASED_METRIC_SPEC; case 10: return LLM_BASED_METRIC_SPEC; + case 11: + return CUSTOM_CODE_EXECUTION_SPEC; case 2: return POINTWISE_METRIC_SPEC; case 3: @@ -667,6 +671,64 @@ public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec getLlmBasedMetricS return com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); } + public static final int CUSTOM_CODE_EXECUTION_SPEC_FIELD_NUMBER = 11; + + /** + * + * + *
+   * Spec for Custom Code Execution metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return Whether the customCodeExecutionSpec field is set. + */ + @java.lang.Override + public boolean hasCustomCodeExecutionSpec() { + return metricSpecCase_ == 11; + } + + /** + * + * + *
+   * Spec for Custom Code Execution metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return The customCodeExecutionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getCustomCodeExecutionSpec() { + if (metricSpecCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + + /** + * + * + *
+   * Spec for Custom Code Execution metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder + getCustomCodeExecutionSpecOrBuilder() { + if (metricSpecCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + public static final int POINTWISE_METRIC_SPEC_FIELD_NUMBER = 2; /** @@ -1056,6 +1118,68 @@ public int getAggregationMetricsValue(int index) { private int aggregationMetricsMemoizedSerializedSize; + public static final int METADATA_FIELD_NUMBER = 13; + private com.google.cloud.aiplatform.v1beta1.MetricMetadata metadata_; + + /** + * + * + *
+   * Optional. Metadata about the metric, used for visualization and
+   * organization.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Metadata about the metric, used for visualization and
+   * organization.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
+   * Optional. Metadata about the metric, used for visualization and
+   * organization.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance() + : metadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1104,6 +1228,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metricSpecCase_ == 10) { output.writeMessage(10, (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_); } + if (metricSpecCase_ == 11) { + output.writeMessage( + 11, (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(13, getMetadata()); + } getUnknownFields().writeTo(output); } @@ -1167,6 +1298,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_); } + if (metricSpecCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1184,6 +1323,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.Metric) obj; if (!aggregationMetrics_.equals(other.aggregationMetrics_)) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } if (!getMetricSpecCase().equals(other.getMetricSpecCase())) return false; switch (metricSpecCase_) { case 8: @@ -1196,6 +1339,9 @@ public boolean equals(final java.lang.Object obj) { case 10: if (!getLlmBasedMetricSpec().equals(other.getLlmBasedMetricSpec())) return false; break; + case 11: + if (!getCustomCodeExecutionSpec().equals(other.getCustomCodeExecutionSpec())) return false; + break; case 2: if (!getPointwiseMetricSpec().equals(other.getPointwiseMetricSpec())) return false; break; @@ -1229,6 +1375,10 @@ public int hashCode() { hash = (37 * hash) + AGGREGATION_METRICS_FIELD_NUMBER; hash = (53 * hash) + aggregationMetrics_.hashCode(); } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } switch (metricSpecCase_) { case 8: hash = (37 * hash) + PREDEFINED_METRIC_SPEC_FIELD_NUMBER; @@ -1242,6 +1392,10 @@ public int hashCode() { hash = (37 * hash) + LLM_BASED_METRIC_SPEC_FIELD_NUMBER; hash = (53 * hash) + getLlmBasedMetricSpec().hashCode(); break; + case 11: + hash = (37 * hash) + CUSTOM_CODE_EXECUTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCustomCodeExecutionSpec().hashCode(); + break; case 2: hash = (37 * hash) + POINTWISE_METRIC_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPointwiseMetricSpec().hashCode(); @@ -1395,10 +1549,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1beta1.Metric.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } } @java.lang.Override @@ -1414,6 +1577,9 @@ public Builder clear() { if (llmBasedMetricSpecBuilder_ != null) { llmBasedMetricSpecBuilder_.clear(); } + if (customCodeExecutionSpecBuilder_ != null) { + customCodeExecutionSpecBuilder_.clear(); + } if (pointwiseMetricSpecBuilder_ != null) { pointwiseMetricSpecBuilder_.clear(); } @@ -1430,6 +1596,11 @@ public Builder clear() { rougeSpecBuilder_.clear(); } aggregationMetrics_ = emptyIntList(); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } metricSpecCase_ = 0; metricSpec_ = null; return this; @@ -1469,10 +1640,16 @@ public com.google.cloud.aiplatform.v1beta1.Metric buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Metric result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { aggregationMetrics_.makeImmutable(); result.aggregationMetrics_ = aggregationMetrics_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Metric result) { @@ -1487,6 +1664,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Metric resul if (metricSpecCase_ == 10 && llmBasedMetricSpecBuilder_ != null) { result.metricSpec_ = llmBasedMetricSpecBuilder_.build(); } + if (metricSpecCase_ == 11 && customCodeExecutionSpecBuilder_ != null) { + result.metricSpec_ = customCodeExecutionSpecBuilder_.build(); + } if (metricSpecCase_ == 2 && pointwiseMetricSpecBuilder_ != null) { result.metricSpec_ = pointwiseMetricSpecBuilder_.build(); } @@ -1520,13 +1700,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Metric other) { if (aggregationMetrics_.isEmpty()) { aggregationMetrics_ = other.aggregationMetrics_; aggregationMetrics_.makeImmutable(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } else { ensureAggregationMetricsIsMutable(); aggregationMetrics_.addAll(other.aggregationMetrics_); } onChanged(); } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } switch (other.getMetricSpecCase()) { case PREDEFINED_METRIC_SPEC: { @@ -1543,6 +1726,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Metric other) { mergeLlmBasedMetricSpec(other.getLlmBasedMetricSpec()); break; } + case CUSTOM_CODE_EXECUTION_SPEC: + { + mergeCustomCodeExecutionSpec(other.getCustomCodeExecutionSpec()); + break; + } case POINTWISE_METRIC_SPEC: { mergePointwiseMetricSpec(other.getPointwiseMetricSpec()); @@ -1674,6 +1862,21 @@ public Builder mergeFrom( metricSpecCase_ = 10; break; } // case 82 + case 90: + { + input.readMessage( + internalGetCustomCodeExecutionSpecFieldBuilder().getBuilder(), + extensionRegistry); + metricSpecCase_ = 11; + break; + } // case 90 + case 106: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2407,6 +2610,250 @@ public Builder clearLlmBasedMetricSpec() { return llmBasedMetricSpecBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder> + customCodeExecutionSpecBuilder_; + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return Whether the customCodeExecutionSpec field is set. + */ + @java.lang.Override + public boolean hasCustomCodeExecutionSpec() { + return metricSpecCase_ == 11; + } + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return The customCodeExecutionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec + getCustomCodeExecutionSpec() { + if (customCodeExecutionSpecBuilder_ == null) { + if (metricSpecCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } else { + if (metricSpecCase_ == 11) { + return customCodeExecutionSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public Builder setCustomCodeExecutionSpec( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec value) { + if (customCodeExecutionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + onChanged(); + } else { + customCodeExecutionSpecBuilder_.setMessage(value); + } + metricSpecCase_ = 11; + return this; + } + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public Builder setCustomCodeExecutionSpec( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder builderForValue) { + if (customCodeExecutionSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + onChanged(); + } else { + customCodeExecutionSpecBuilder_.setMessage(builderForValue.build()); + } + metricSpecCase_ = 11; + return this; + } + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public Builder mergeCustomCodeExecutionSpec( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec value) { + if (customCodeExecutionSpecBuilder_ == null) { + if (metricSpecCase_ == 11 + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec + .getDefaultInstance()) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + metricSpec_ = value; + } + onChanged(); + } else { + if (metricSpecCase_ == 11) { + customCodeExecutionSpecBuilder_.mergeFrom(value); + } else { + customCodeExecutionSpecBuilder_.setMessage(value); + } + } + metricSpecCase_ = 11; + return this; + } + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public Builder clearCustomCodeExecutionSpec() { + if (customCodeExecutionSpecBuilder_ == null) { + if (metricSpecCase_ == 11) { + metricSpecCase_ = 0; + metricSpec_ = null; + onChanged(); + } + } else { + if (metricSpecCase_ == 11) { + metricSpecCase_ = 0; + metricSpec_ = null; + } + customCodeExecutionSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder + getCustomCodeExecutionSpecBuilder() { + return internalGetCustomCodeExecutionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder + getCustomCodeExecutionSpecOrBuilder() { + if ((metricSpecCase_ == 11) && (customCodeExecutionSpecBuilder_ != null)) { + return customCodeExecutionSpecBuilder_.getMessageOrBuilder(); + } else { + if (metricSpecCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Spec for Custom Code Execution metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder> + internalGetCustomCodeExecutionSpecFieldBuilder() { + if (customCodeExecutionSpecBuilder_ == null) { + if (!(metricSpecCase_ == 11)) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + customCodeExecutionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_, + getParentForChildren(), + isClean()); + metricSpec_ = null; + } + metricSpecCase_ = 11; + onChanged(); + return customCodeExecutionSpecBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec, com.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.Builder, @@ -3516,7 +3963,7 @@ private void ensureAggregationMetricsIsMutable() { if (!aggregationMetrics_.isModifiable()) { aggregationMetrics_ = makeMutableCopy(aggregationMetrics_); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } /** @@ -3666,7 +4113,7 @@ public Builder addAllAggregationMetrics( */ public Builder clearAggregationMetrics() { aggregationMetrics_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3773,6 +4220,229 @@ public Builder addAllAggregationMetricsValue(java.lang.Iterable + metadataBuilder_; + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetadata(com.google.cloud.aiplatform.v1beta1.MetricMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetadata( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.MetricMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000400); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
+     * Optional. Metadata about the metric, used for visualization and
+     * organization.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Metric) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadata.java new file mode 100644 index 000000000000..33ec327fb99c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadata.java @@ -0,0 +1,2342 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Metadata about the metric, used for visualization and organization.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricMetadata} + */ +@com.google.protobuf.Generated +public final class MetricMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricMetadata) + MetricMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MetricMetadata"); + } + + // Use MetricMetadata.newBuilder() to construct. + private MetricMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetricMetadata() { + title_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.class, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder.class); + } + + public interface ScoreRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The minimum value of the score range (inclusive).
+     * 
+ * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the min field is set. + */ + boolean hasMin(); + + /** + * + * + *
+     * Required. The minimum value of the score range (inclusive).
+     * 
+ * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The min. + */ + double getMin(); + + /** + * + * + *
+     * Required. The maximum value of the score range (inclusive).
+     * 
+ * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the max field is set. + */ + boolean hasMax(); + + /** + * + * + *
+     * Required. The maximum value of the score range (inclusive).
+     * 
+ * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The max. + */ + double getMax(); + + /** + * + * + *
+     * Optional. The distance between discrete steps in the range.
+     * If unset, the range is assumed to be continuous.
+     * 
+ * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the step field is set. + */ + boolean hasStep(); + + /** + * + * + *
+     * Optional. The distance between discrete steps in the range.
+     * If unset, the range is assumed to be continuous.
+     * 
+ * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The step. + */ + double getStep(); + + /** + * + * + *
+     * Optional. The description of the score explaining the directionality etc.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+     * Optional. The description of the score explaining the directionality etc.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + } + + /** + * + * + *
+   * The range of possible scores for this metric, used for plotting.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange} + */ + public static final class ScoreRange extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + ScoreRangeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScoreRange"); + } + + // Use ScoreRange.newBuilder() to construct. + private ScoreRange(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScoreRange() { + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.class, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder.class); + } + + private int bitField0_; + public static final int MIN_FIELD_NUMBER = 1; + private double min_ = 0D; + + /** + * + * + *
+     * Required. The minimum value of the score range (inclusive).
+     * 
+ * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the min field is set. + */ + @java.lang.Override + public boolean hasMin() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The minimum value of the score range (inclusive).
+     * 
+ * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 2; + private double max_ = 0D; + + /** + * + * + *
+     * Required. The maximum value of the score range (inclusive).
+     * 
+ * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the max field is set. + */ + @java.lang.Override + public boolean hasMax() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The maximum value of the score range (inclusive).
+     * 
+ * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + + public static final int STEP_FIELD_NUMBER = 3; + private double step_ = 0D; + + /** + * + * + *
+     * Optional. The distance between discrete steps in the range.
+     * If unset, the range is assumed to be continuous.
+     * 
+ * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the step field is set. + */ + @java.lang.Override + public boolean hasStep() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The distance between discrete steps in the range.
+     * If unset, the range is assumed to be continuous.
+     * 
+ * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The step. + */ + @java.lang.Override + public double getStep() { + return step_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The description of the score explaining the directionality etc.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The description of the score explaining the directionality etc.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, min_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, max_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, step_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, step_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange other = + (com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) obj; + + if (hasMin() != other.hasMin()) return false; + if (hasMin()) { + if (java.lang.Double.doubleToLongBits(getMin()) + != java.lang.Double.doubleToLongBits(other.getMin())) return false; + } + if (hasMax() != other.hasMax()) return false; + if (hasMax()) { + if (java.lang.Double.doubleToLongBits(getMax()) + != java.lang.Double.doubleToLongBits(other.getMax())) return false; + } + if (hasStep() != other.hasStep()) return false; + if (hasStep()) { + if (java.lang.Double.doubleToLongBits(getStep()) + != java.lang.Double.doubleToLongBits(other.getStep())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMin()) { + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMin())); + } + if (hasMax()) { + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMax())); + } + if (hasStep()) { + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getStep())); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The range of possible scores for this metric, used for plotting.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.class, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + min_ = 0D; + max_ = 0D; + step_ = 0D; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange build() { + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange result = + new com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.min_ = min_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.max_ = max_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.step_ = step_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange other) { + if (other + == com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance()) + return this; + if (other.hasMin()) { + setMin(other.getMin()); + } + if (other.hasMax()) { + setMax(other.getMax()); + } + if (other.hasStep()) { + setStep(other.getStep()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + min_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + max_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: + { + step_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double min_; + + /** + * + * + *
+       * Required. The minimum value of the score range (inclusive).
+       * 
+ * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the min field is set. + */ + @java.lang.Override + public boolean hasMin() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Required. The minimum value of the score range (inclusive).
+       * 
+ * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + + /** + * + * + *
+       * Required. The minimum value of the score range (inclusive).
+       * 
+ * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(double value) { + + min_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The minimum value of the score range (inclusive).
+       * 
+ * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMin() { + bitField0_ = (bitField0_ & ~0x00000001); + min_ = 0D; + onChanged(); + return this; + } + + private double max_; + + /** + * + * + *
+       * Required. The maximum value of the score range (inclusive).
+       * 
+ * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the max field is set. + */ + @java.lang.Override + public boolean hasMax() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Required. The maximum value of the score range (inclusive).
+       * 
+ * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + + /** + * + * + *
+       * Required. The maximum value of the score range (inclusive).
+       * 
+ * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(double value) { + + max_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The maximum value of the score range (inclusive).
+       * 
+ * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMax() { + bitField0_ = (bitField0_ & ~0x00000002); + max_ = 0D; + onChanged(); + return this; + } + + private double step_; + + /** + * + * + *
+       * Optional. The distance between discrete steps in the range.
+       * If unset, the range is assumed to be continuous.
+       * 
+ * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the step field is set. + */ + @java.lang.Override + public boolean hasStep() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. The distance between discrete steps in the range.
+       * If unset, the range is assumed to be continuous.
+       * 
+ * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The step. + */ + @java.lang.Override + public double getStep() { + return step_; + } + + /** + * + * + *
+       * Optional. The distance between discrete steps in the range.
+       * If unset, the range is assumed to be continuous.
+       * 
+ * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(double value) { + + step_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The distance between discrete steps in the range.
+       * If unset, the range is assumed to be continuous.
+       * 
+ * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + bitField0_ = (bitField0_ & ~0x00000004); + step_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+       * Optional. The description of the score explaining the directionality etc.
+       * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The description of the score explaining the directionality etc.
+       * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The description of the score explaining the directionality etc.
+       * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The description of the score explaining the directionality etc.
+       * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The description of the score explaining the directionality etc.
+       * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + private static final com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScoreRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+   * Optional. The user-friendly name for the metric. If not set for a
+   * registered metric, it will default to the metric's display name.
+   * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The user-friendly name for the metric. If not set for a
+   * registered metric, it will default to the metric's display name.
+   * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_RANGE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange scoreRange_; + + /** + * + * + *
+   * Optional. The range of possible scores for this metric, used for plotting.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreRange field is set. + */ + @java.lang.Override + public boolean hasScoreRange() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The range of possible scores for this metric, used for plotting.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreRange. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange getScoreRange() { + return scoreRange_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance() + : scoreRange_; + } + + /** + * + * + *
+   * Optional. The range of possible scores for this metric, used for plotting.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder + getScoreRangeOrBuilder() { + return scoreRange_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance() + : scoreRange_; + } + + public static final int OTHER_METADATA_FIELD_NUMBER = 3; + private com.google.protobuf.Struct otherMetadata_; + + /** + * + * + *
+   * Optional. Flexible metadata for user-defined attributes.
+   * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherMetadata field is set. + */ + @java.lang.Override + public boolean hasOtherMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Flexible metadata for user-defined attributes.
+   * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherMetadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getOtherMetadata() { + return otherMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : otherMetadata_; + } + + /** + * + * + *
+   * Optional. Flexible metadata for user-defined attributes.
+   * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getOtherMetadataOrBuilder() { + return otherMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : otherMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getScoreRange()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getOtherMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScoreRange()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOtherMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.MetricMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricMetadata other = + (com.google.cloud.aiplatform.v1beta1.MetricMetadata) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (hasScoreRange() != other.hasScoreRange()) return false; + if (hasScoreRange()) { + if (!getScoreRange().equals(other.getScoreRange())) return false; + } + if (hasOtherMetadata() != other.hasOtherMetadata()) return false; + if (hasOtherMetadata()) { + if (!getOtherMetadata().equals(other.getOtherMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (hasScoreRange()) { + hash = (37 * hash) + SCORE_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getScoreRange().hashCode(); + } + if (hasOtherMetadata()) { + hash = (37 * hash) + OTHER_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getOtherMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.MetricMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata about the metric, used for visualization and organization.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricMetadata) + com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.class, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScoreRangeFieldBuilder(); + internalGetOtherMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + scoreRange_ = null; + if (scoreRangeBuilder_ != null) { + scoreRangeBuilder_.dispose(); + scoreRangeBuilder_ = null; + } + otherMetadata_ = null; + if (otherMetadataBuilder_ != null) { + otherMetadataBuilder_.dispose(); + otherMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata build() { + com.google.cloud.aiplatform.v1beta1.MetricMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricMetadata result = + new com.google.cloud.aiplatform.v1beta1.MetricMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scoreRange_ = scoreRangeBuilder_ == null ? scoreRange_ : scoreRangeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.otherMetadata_ = + otherMetadataBuilder_ == null ? otherMetadata_ : otherMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MetricMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricMetadata other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasScoreRange()) { + mergeScoreRange(other.getScoreRange()); + } + if (other.hasOtherMetadata()) { + mergeOtherMetadata(other.getOtherMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetScoreRangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOtherMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object title_ = ""; + + /** + * + * + *
+     * Optional. The user-friendly name for the metric. If not set for a
+     * registered metric, it will default to the metric's display name.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The user-friendly name for the metric. If not set for a
+     * registered metric, it will default to the metric's display name.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The user-friendly name for the metric. If not set for a
+     * registered metric, it will default to the metric's display name.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-friendly name for the metric. If not set for a
+     * registered metric, it will default to the metric's display name.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-friendly name for the metric. If not set for a
+     * registered metric, it will default to the metric's display name.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange scoreRange_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder> + scoreRangeBuilder_; + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreRange field is set. + */ + public boolean hasScoreRange() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreRange. + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange getScoreRange() { + if (scoreRangeBuilder_ == null) { + return scoreRange_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance() + : scoreRange_; + } else { + return scoreRangeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScoreRange( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange value) { + if (scoreRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scoreRange_ = value; + } else { + scoreRangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScoreRange( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder builderForValue) { + if (scoreRangeBuilder_ == null) { + scoreRange_ = builderForValue.build(); + } else { + scoreRangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScoreRange( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange value) { + if (scoreRangeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && scoreRange_ != null + && scoreRange_ + != com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + .getDefaultInstance()) { + getScoreRangeBuilder().mergeFrom(value); + } else { + scoreRange_ = value; + } + } else { + scoreRangeBuilder_.mergeFrom(value); + } + if (scoreRange_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScoreRange() { + bitField0_ = (bitField0_ & ~0x00000002); + scoreRange_ = null; + if (scoreRangeBuilder_ != null) { + scoreRangeBuilder_.dispose(); + scoreRangeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder + getScoreRangeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetScoreRangeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder + getScoreRangeOrBuilder() { + if (scoreRangeBuilder_ != null) { + return scoreRangeBuilder_.getMessageOrBuilder(); + } else { + return scoreRange_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance() + : scoreRange_; + } + } + + /** + * + * + *
+     * Optional. The range of possible scores for this metric, used for plotting.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder> + internalGetScoreRangeFieldBuilder() { + if (scoreRangeBuilder_ == null) { + scoreRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder>( + getScoreRange(), getParentForChildren(), isClean()); + scoreRange_ = null; + } + return scoreRangeBuilder_; + } + + private com.google.protobuf.Struct otherMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + otherMetadataBuilder_; + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherMetadata field is set. + */ + public boolean hasOtherMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherMetadata. + */ + public com.google.protobuf.Struct getOtherMetadata() { + if (otherMetadataBuilder_ == null) { + return otherMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : otherMetadata_; + } else { + return otherMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOtherMetadata(com.google.protobuf.Struct value) { + if (otherMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + otherMetadata_ = value; + } else { + otherMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOtherMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (otherMetadataBuilder_ == null) { + otherMetadata_ = builderForValue.build(); + } else { + otherMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOtherMetadata(com.google.protobuf.Struct value) { + if (otherMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && otherMetadata_ != null + && otherMetadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOtherMetadataBuilder().mergeFrom(value); + } else { + otherMetadata_ = value; + } + } else { + otherMetadataBuilder_.mergeFrom(value); + } + if (otherMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOtherMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + otherMetadata_ = null; + if (otherMetadataBuilder_ != null) { + otherMetadataBuilder_.dispose(); + otherMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getOtherMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOtherMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getOtherMetadataOrBuilder() { + if (otherMetadataBuilder_ != null) { + return otherMetadataBuilder_.getMessageOrBuilder(); + } else { + return otherMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : otherMetadata_; + } + } + + /** + * + * + *
+     * Optional. Flexible metadata for user-defined attributes.
+     * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetOtherMetadataFieldBuilder() { + if (otherMetadataBuilder_ == null) { + otherMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOtherMetadata(), getParentForChildren(), isClean()); + otherMetadata_ = null; + } + return otherMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.MetricMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricMetadata) + private static final com.google.cloud.aiplatform.v1beta1.MetricMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadataOrBuilder.java new file mode 100644 index 000000000000..af6c1c15fa3c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadataOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface MetricMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The user-friendly name for the metric. If not set for a
+   * registered metric, it will default to the metric's display name.
+   * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+   * Optional. The user-friendly name for the metric. If not set for a
+   * registered metric, it will default to the metric's display name.
+   * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Optional. The range of possible scores for this metric, used for plotting.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreRange field is set. + */ + boolean hasScoreRange(); + + /** + * + * + *
+   * Optional. The range of possible scores for this metric, used for plotting.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreRange. + */ + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange getScoreRange(); + + /** + * + * + *
+   * Optional. The range of possible scores for this metric, used for plotting.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder getScoreRangeOrBuilder(); + + /** + * + * + *
+   * Optional. Flexible metadata for user-defined attributes.
+   * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherMetadata field is set. + */ + boolean hasOtherMetadata(); + + /** + * + * + *
+   * Optional. Flexible metadata for user-defined attributes.
+   * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherMetadata. + */ + com.google.protobuf.Struct getOtherMetadata(); + + /** + * + * + *
+   * Optional. Flexible metadata for user-defined attributes.
+   * 
+ * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getOtherMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java index 006c928faa18..dda4891f8cc9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java @@ -145,6 +145,47 @@ public interface MetricOrBuilder */ com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder getLlmBasedMetricSpecOrBuilder(); + /** + * + * + *
+   * Spec for Custom Code Execution metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return Whether the customCodeExecutionSpec field is set. + */ + boolean hasCustomCodeExecutionSpec(); + + /** + * + * + *
+   * Spec for Custom Code Execution metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return The customCodeExecutionSpec. + */ + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getCustomCodeExecutionSpec(); + + /** + * + * + *
+   * Spec for Custom Code Execution metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder + getCustomCodeExecutionSpecOrBuilder(); + /** * * @@ -409,5 +450,51 @@ public interface MetricOrBuilder */ int getAggregationMetricsValue(int index); + /** + * + * + *
+   * Optional. Metadata about the metric, used for visualization and
+   * organization.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+   * Optional. Metadata about the metric, used for visualization and
+   * organization.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + com.google.cloud.aiplatform.v1beta1.MetricMetadata getMetadata(); + + /** + * + * + *
+   * Optional. Metadata about the metric, used for visualization and
+   * organization.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder getMetadataOrBuilder(); + com.google.cloud.aiplatform.v1beta1.Metric.MetricSpecCase getMetricSpecCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java index d485627df291..3b0cca8c212c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java @@ -52,6 +52,7 @@ private MetricResult(com.google.protobuf.GeneratedMessage.Builder builder) { } private MetricResult() { + rubricVerdicts_ = java.util.Collections.emptyList(); explanation_ = ""; } @@ -108,6 +109,93 @@ public float getScore() { return score_; } + public static final int RUBRIC_VERDICTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rubricVerdicts_; + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getRubricVerdictsList() { + return rubricVerdicts_; + } + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRubricVerdictsOrBuilderList() { + return rubricVerdicts_; + } + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRubricVerdictsCount() { + return rubricVerdicts_.size(); + } + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict getRubricVerdicts(int index) { + return rubricVerdicts_.get(index); + } + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder getRubricVerdictsOrBuilder( + int index) { + return rubricVerdicts_.get(index); + } + public static final int EXPLANATION_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -246,6 +334,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, score_); } + for (int i = 0; i < rubricVerdicts_.size(); i++) { + output.writeMessage(2, rubricVerdicts_.get(i)); + } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, explanation_); } @@ -264,6 +355,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } + for (int i = 0; i < rubricVerdicts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rubricVerdicts_.get(i)); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, explanation_); } @@ -291,6 +385,7 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Float.floatToIntBits(getScore()) != java.lang.Float.floatToIntBits(other.getScore())) return false; } + if (!getRubricVerdictsList().equals(other.getRubricVerdictsList())) return false; if (hasExplanation() != other.hasExplanation()) return false; if (hasExplanation()) { if (!getExplanation().equals(other.getExplanation())) return false; @@ -314,6 +409,10 @@ public int hashCode() { hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); } + if (getRubricVerdictsCount() > 0) { + hash = (37 * hash) + RUBRIC_VERDICTS_FIELD_NUMBER; + hash = (53 * hash) + getRubricVerdictsList().hashCode(); + } if (hasExplanation()) { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); @@ -463,6 +562,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRubricVerdictsFieldBuilder(); internalGetErrorFieldBuilder(); } } @@ -472,6 +572,13 @@ public Builder clear() { super.clear(); bitField0_ = 0; score_ = 0F; + if (rubricVerdictsBuilder_ == null) { + rubricVerdicts_ = java.util.Collections.emptyList(); + } else { + rubricVerdicts_ = null; + rubricVerdictsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); explanation_ = ""; error_ = null; if (errorBuilder_ != null) { @@ -505,6 +612,7 @@ public com.google.cloud.aiplatform.v1beta1.MetricResult build() { public com.google.cloud.aiplatform.v1beta1.MetricResult buildPartial() { com.google.cloud.aiplatform.v1beta1.MetricResult result = new com.google.cloud.aiplatform.v1beta1.MetricResult(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -512,6 +620,19 @@ public com.google.cloud.aiplatform.v1beta1.MetricResult buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.MetricResult result) { + if (rubricVerdictsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rubricVerdicts_ = java.util.Collections.unmodifiableList(rubricVerdicts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rubricVerdicts_ = rubricVerdicts_; + } else { + result.rubricVerdicts_ = rubricVerdictsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; @@ -519,11 +640,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricResult resu result.score_ = score_; to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.explanation_ = explanation_; to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000004; } @@ -546,9 +667,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricResult other) if (other.hasScore()) { setScore(other.getScore()); } + if (rubricVerdictsBuilder_ == null) { + if (!other.rubricVerdicts_.isEmpty()) { + if (rubricVerdicts_.isEmpty()) { + rubricVerdicts_ = other.rubricVerdicts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.addAll(other.rubricVerdicts_); + } + onChanged(); + } + } else { + if (!other.rubricVerdicts_.isEmpty()) { + if (rubricVerdictsBuilder_.isEmpty()) { + rubricVerdictsBuilder_.dispose(); + rubricVerdictsBuilder_ = null; + rubricVerdicts_ = other.rubricVerdicts_; + bitField0_ = (bitField0_ & ~0x00000002); + rubricVerdictsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRubricVerdictsFieldBuilder() + : null; + } else { + rubricVerdictsBuilder_.addAllMessages(other.rubricVerdicts_); + } + } + } if (other.hasExplanation()) { explanation_ = other.explanation_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasError()) { @@ -586,16 +734,30 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 13 + case 18: + { + com.google.cloud.aiplatform.v1beta1.RubricVerdict m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.RubricVerdict.parser(), + extensionRegistry); + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(m); + } else { + rubricVerdictsBuilder_.addMessage(m); + } + break; + } // case 18 case 26: { explanation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -693,6 +855,421 @@ public Builder clearScore() { return this; } + private java.util.List rubricVerdicts_ = + java.util.Collections.emptyList(); + + private void ensureRubricVerdictsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rubricVerdicts_ = + new java.util.ArrayList( + rubricVerdicts_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricVerdict, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder, + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder> + rubricVerdictsBuilder_; + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRubricVerdictsList() { + if (rubricVerdictsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rubricVerdicts_); + } else { + return rubricVerdictsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRubricVerdictsCount() { + if (rubricVerdictsBuilder_ == null) { + return rubricVerdicts_.size(); + } else { + return rubricVerdictsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdict getRubricVerdicts(int index) { + if (rubricVerdictsBuilder_ == null) { + return rubricVerdicts_.get(index); + } else { + return rubricVerdictsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRubricVerdicts( + int index, com.google.cloud.aiplatform.v1beta1.RubricVerdict value) { + if (rubricVerdictsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.set(index, value); + onChanged(); + } else { + rubricVerdictsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRubricVerdicts( + int index, com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder builderForValue) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.set(index, builderForValue.build()); + onChanged(); + } else { + rubricVerdictsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRubricVerdicts(com.google.cloud.aiplatform.v1beta1.RubricVerdict value) { + if (rubricVerdictsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(value); + onChanged(); + } else { + rubricVerdictsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRubricVerdicts( + int index, com.google.cloud.aiplatform.v1beta1.RubricVerdict value) { + if (rubricVerdictsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(index, value); + onChanged(); + } else { + rubricVerdictsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRubricVerdicts( + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder builderForValue) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(builderForValue.build()); + onChanged(); + } else { + rubricVerdictsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRubricVerdicts( + int index, com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder builderForValue) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(index, builderForValue.build()); + onChanged(); + } else { + rubricVerdictsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRubricVerdicts( + java.lang.Iterable values) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rubricVerdicts_); + onChanged(); + } else { + rubricVerdictsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRubricVerdicts() { + if (rubricVerdictsBuilder_ == null) { + rubricVerdicts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rubricVerdictsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRubricVerdicts(int index) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.remove(index); + onChanged(); + } else { + rubricVerdictsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder getRubricVerdictsBuilder( + int index) { + return internalGetRubricVerdictsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder getRubricVerdictsOrBuilder( + int index) { + if (rubricVerdictsBuilder_ == null) { + return rubricVerdicts_.get(index); + } else { + return rubricVerdictsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRubricVerdictsOrBuilderList() { + if (rubricVerdictsBuilder_ != null) { + return rubricVerdictsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rubricVerdicts_); + } + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder addRubricVerdictsBuilder() { + return internalGetRubricVerdictsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.RubricVerdict.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder addRubricVerdictsBuilder( + int index) { + return internalGetRubricVerdictsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.RubricVerdict.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. For rubric-based metrics, the verdicts for each rubric.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRubricVerdictsBuilderList() { + return internalGetRubricVerdictsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricVerdict, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder, + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder> + internalGetRubricVerdictsFieldBuilder() { + if (rubricVerdictsBuilder_ == null) { + rubricVerdictsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricVerdict, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder, + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder>( + rubricVerdicts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + rubricVerdicts_ = null; + } + return rubricVerdictsBuilder_; + } + private java.lang.Object explanation_ = ""; /** @@ -707,7 +1284,7 @@ public Builder clearScore() { * @return Whether the explanation field is set. */ public boolean hasExplanation() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -773,7 +1350,7 @@ public Builder setExplanation(java.lang.String value) { throw new NullPointerException(); } explanation_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -791,7 +1368,7 @@ public Builder setExplanation(java.lang.String value) { */ public Builder clearExplanation() { explanation_ = getDefaultInstance().getExplanation(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -814,7 +1391,7 @@ public Builder setExplanationBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); explanation_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -837,7 +1414,7 @@ public Builder setExplanationBytes(com.google.protobuf.ByteString value) { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -879,7 +1456,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -900,7 +1477,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -917,7 +1494,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -928,7 +1505,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -945,7 +1522,7 @@ public Builder mergeError(com.google.rpc.Status value) { * */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -966,7 +1543,7 @@ public Builder clearError() { * */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return internalGetErrorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java index 8700bbfa7f8b..14832996c87b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java @@ -54,6 +54,72 @@ public interface MetricResultOrBuilder */ float getScore(); + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRubricVerdictsList(); + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricVerdict getRubricVerdicts(int index); + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRubricVerdictsCount(); + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRubricVerdictsOrBuilderList(); + + /** + * + * + *
+   * Output only. For rubric-based metrics, the verdicts for each rubric.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder getRubricVerdictsOrBuilder(int index); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSource.java new file mode 100644 index 000000000000..1d9ce4ec5f7f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSource.java @@ -0,0 +1,1035 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The metric source used for evaluation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricSource} + */ +@com.google.protobuf.Generated +public final class MetricSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricSource) + MetricSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MetricSource"); + } + + // Use MetricSource.newBuilder() to construct. + private MetricSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetricSource() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricSource.class, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder.class); + } + + private int metricSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object metricSource_; + + public enum MetricSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + METRIC(1), + METRIC_RESOURCE_NAME(2), + METRICSOURCE_NOT_SET(0); + private final int value; + + private MetricSourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MetricSourceCase valueOf(int value) { + return forNumber(value); + } + + public static MetricSourceCase forNumber(int value) { + switch (value) { + case 1: + return METRIC; + case 2: + return METRIC_RESOURCE_NAME; + case 0: + return METRICSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MetricSourceCase getMetricSourceCase() { + return MetricSourceCase.forNumber(metricSourceCase_); + } + + public static final int METRIC_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Inline metric config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return metricSourceCase_ == 1; + } + + /** + * + * + *
+   * Inline metric config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Metric getMetric() { + if (metricSourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_; + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + + /** + * + * + *
+   * Inline metric config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricOrBuilder() { + if (metricSourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_; + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + + public static final int METRIC_RESOURCE_NAME_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Resource name for registered metric.
+   * 
+ * + * string metric_resource_name = 2; + * + * @return Whether the metricResourceName field is set. + */ + public boolean hasMetricResourceName() { + return metricSourceCase_ == 2; + } + + /** + * + * + *
+   * Resource name for registered metric.
+   * 
+ * + * string metric_resource_name = 2; + * + * @return The metricResourceName. + */ + public java.lang.String getMetricResourceName() { + java.lang.Object ref = ""; + if (metricSourceCase_ == 2) { + ref = metricSource_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (metricSourceCase_ == 2) { + metricSource_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Resource name for registered metric.
+   * 
+ * + * string metric_resource_name = 2; + * + * @return The bytes for metricResourceName. + */ + public com.google.protobuf.ByteString getMetricResourceNameBytes() { + java.lang.Object ref = ""; + if (metricSourceCase_ == 2) { + ref = metricSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (metricSourceCase_ == 2) { + metricSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (metricSourceCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_); + } + if (metricSourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, metricSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metricSourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_); + } + if (metricSourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, metricSource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.MetricSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricSource other = + (com.google.cloud.aiplatform.v1beta1.MetricSource) obj; + + if (!getMetricSourceCase().equals(other.getMetricSourceCase())) return false; + switch (metricSourceCase_) { + case 1: + if (!getMetric().equals(other.getMetric())) return false; + break; + case 2: + if (!getMetricResourceName().equals(other.getMetricResourceName())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (metricSourceCase_) { + case 1: + hash = (37 * hash) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + break; + case 2: + hash = (37 * hash) + METRIC_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricResourceName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.MetricSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The metric source used for evaluation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricSource) + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricSource.class, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (metricBuilder_ != null) { + metricBuilder_.clear(); + } + metricSourceCase_ = 0; + metricSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource build() { + com.google.cloud.aiplatform.v1beta1.MetricSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricSource result = + new com.google.cloud.aiplatform.v1beta1.MetricSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricSource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.MetricSource result) { + result.metricSourceCase_ = metricSourceCase_; + result.metricSource_ = this.metricSource_; + if (metricSourceCase_ == 1 && metricBuilder_ != null) { + result.metricSource_ = metricBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MetricSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()) + return this; + switch (other.getMetricSourceCase()) { + case METRIC: + { + mergeMetric(other.getMetric()); + break; + } + case METRIC_RESOURCE_NAME: + { + metricSourceCase_ = 2; + metricSource_ = other.metricSource_; + onChanged(); + break; + } + case METRICSOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetMetricFieldBuilder().getBuilder(), extensionRegistry); + metricSourceCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + metricSourceCase_ = 2; + metricSource_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int metricSourceCase_ = 0; + private java.lang.Object metricSource_; + + public MetricSourceCase getMetricSourceCase() { + return MetricSourceCase.forNumber(metricSourceCase_); + } + + public Builder clearMetricSource() { + metricSourceCase_ = 0; + metricSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder> + metricBuilder_; + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return metricSourceCase_ == 1; + } + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Metric getMetric() { + if (metricBuilder_ == null) { + if (metricSourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_; + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } else { + if (metricSourceCase_ == 1) { + return metricBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public Builder setMetric(com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSource_ = value; + onChanged(); + } else { + metricBuilder_.setMessage(value); + } + metricSourceCase_ = 1; + return this; + } + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public Builder setMetric(com.google.cloud.aiplatform.v1beta1.Metric.Builder builderForValue) { + if (metricBuilder_ == null) { + metricSource_ = builderForValue.build(); + onChanged(); + } else { + metricBuilder_.setMessage(builderForValue.build()); + } + metricSourceCase_ = 1; + return this; + } + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public Builder mergeMetric(com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricBuilder_ == null) { + if (metricSourceCase_ == 1 + && metricSource_ != com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance()) { + metricSource_ = + com.google.cloud.aiplatform.v1beta1.Metric.newBuilder( + (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_) + .mergeFrom(value) + .buildPartial(); + } else { + metricSource_ = value; + } + onChanged(); + } else { + if (metricSourceCase_ == 1) { + metricBuilder_.mergeFrom(value); + } else { + metricBuilder_.setMessage(value); + } + } + metricSourceCase_ = 1; + return this; + } + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public Builder clearMetric() { + if (metricBuilder_ == null) { + if (metricSourceCase_ == 1) { + metricSourceCase_ = 0; + metricSource_ = null; + onChanged(); + } + } else { + if (metricSourceCase_ == 1) { + metricSourceCase_ = 0; + metricSource_ = null; + } + metricBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Metric.Builder getMetricBuilder() { + return internalGetMetricFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricOrBuilder() { + if ((metricSourceCase_ == 1) && (metricBuilder_ != null)) { + return metricBuilder_.getMessageOrBuilder(); + } else { + if (metricSourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_; + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Inline metric config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder> + internalGetMetricFieldBuilder() { + if (metricBuilder_ == null) { + if (!(metricSourceCase_ == 1)) { + metricSource_ = com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + metricBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_, + getParentForChildren(), + isClean()); + metricSource_ = null; + } + metricSourceCase_ = 1; + onChanged(); + return metricBuilder_; + } + + /** + * + * + *
+     * Resource name for registered metric.
+     * 
+ * + * string metric_resource_name = 2; + * + * @return Whether the metricResourceName field is set. + */ + @java.lang.Override + public boolean hasMetricResourceName() { + return metricSourceCase_ == 2; + } + + /** + * + * + *
+     * Resource name for registered metric.
+     * 
+ * + * string metric_resource_name = 2; + * + * @return The metricResourceName. + */ + @java.lang.Override + public java.lang.String getMetricResourceName() { + java.lang.Object ref = ""; + if (metricSourceCase_ == 2) { + ref = metricSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (metricSourceCase_ == 2) { + metricSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Resource name for registered metric.
+     * 
+ * + * string metric_resource_name = 2; + * + * @return The bytes for metricResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricResourceNameBytes() { + java.lang.Object ref = ""; + if (metricSourceCase_ == 2) { + ref = metricSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (metricSourceCase_ == 2) { + metricSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Resource name for registered metric.
+     * 
+ * + * string metric_resource_name = 2; + * + * @param value The metricResourceName to set. + * @return This builder for chaining. + */ + public Builder setMetricResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricSourceCase_ = 2; + metricSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource name for registered metric.
+     * 
+ * + * string metric_resource_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearMetricResourceName() { + if (metricSourceCase_ == 2) { + metricSourceCase_ = 0; + metricSource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Resource name for registered metric.
+     * 
+ * + * string metric_resource_name = 2; + * + * @param value The bytes for metricResourceName to set. + * @return This builder for chaining. + */ + public Builder setMetricResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricSourceCase_ = 2; + metricSource_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.MetricSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricSource) + private static final com.google.cloud.aiplatform.v1beta1.MetricSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSourceOrBuilder.java new file mode 100644 index 000000000000..5d6dbd9773d4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSourceOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface MetricSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Inline metric config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return Whether the metric field is set. + */ + boolean hasMetric(); + + /** + * + * + *
+   * Inline metric config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return The metric. + */ + com.google.cloud.aiplatform.v1beta1.Metric getMetric(); + + /** + * + * + *
+   * Inline metric config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricOrBuilder(); + + /** + * + * + *
+   * Resource name for registered metric.
+   * 
+ * + * string metric_resource_name = 2; + * + * @return Whether the metricResourceName field is set. + */ + boolean hasMetricResourceName(); + + /** + * + * + *
+   * Resource name for registered metric.
+   * 
+ * + * string metric_resource_name = 2; + * + * @return The metricResourceName. + */ + java.lang.String getMetricResourceName(); + + /** + * + * + *
+   * Resource name for registered metric.
+   * 
+ * + * string metric_resource_name = 2; + * + * @return The bytes for metricResourceName. + */ + com.google.protobuf.ByteString getMetricResourceNameBytes(); + + com.google.cloud.aiplatform.v1beta1.MetricSource.MetricSourceCase getMetricSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java index 334de9d471f8..d7844f8ca699 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java @@ -321,7 +321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023artifact_output_uri\030\002 \001(\tB\003\340A\003\022\035\n" + "\020image_output_uri\030\003 \001(\tB\003\340A\003\"\"\n" + " UpdateExplanationDatasetResponse\"\025\n" - + "\023ExportModelResponse\"\305\002\n" + + "\023ExportModelResponse\"\352\002\n" + "\020CopyModelRequest\022\027\n" + "\010model_id\030\004 \001(\tB\003\340A\001H\000\022?\n" + "\014parent_model\030\005 \001(\tB\'\340A\001\372A!\n" @@ -331,11 +331,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014source_model\030\002 \001(\tB\'\340A\002\372A!\n" + "\037aiplatform.googleapis.com/Model\022H\n" + "\017encryption_spec\030\003 \001(\0132/." - + "google.cloud.aiplatform.v1beta1.EncryptionSpecB\023\n" + + "google.cloud.aiplatform.v1beta1.EncryptionSpec\022#\n" + + "\026custom_service_account\030\007 \001(\tB\003\340A\001B\023\n" + "\021destination_model\"q\n" + "\032CopyModelOperationMetadata\022S\n" - + "\020generic_metadata\030\001 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"g\n" + + "\020generic_metadata\030\001 \001(\013" + + "29.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"g\n" + "\021CopyModelResponse\0223\n" + "\005model\030\001 \001(\tB$\372A!\n" + "\037aiplatform.googleapis.com/Model\022\035\n" @@ -343,20 +344,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ImportModelEvaluationRequest\0227\n" + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037aiplatform.googleapis.com/Model\022O\n" - + "\020model_evaluation\030\002 " - + "\001(\01320.google.cloud.aiplatform.v1beta1.ModelEvaluationB\003\340A\002\"\311\001\n" + + "\020model_evaluation\030\002 \001(\013" + + "20.google.cloud.aiplatform.v1beta1.ModelEvaluationB\003\340A\002\"\311\001\n" + "\'BatchImportModelEvaluationSlicesRequest\022A\n" + "\006parent\030\001 \001(\tB1\340A\002\372A+\n" + ")aiplatform.googleapis.com/ModelEvaluation\022[\n" - + "\027model_evaluation_slices\030\002 \003" - + "(\01325.google.cloud.aiplatform.v1beta1.ModelEvaluationSliceB\003\340A\002\"Y\n" + + "\027model_evaluation_slices\030\002 \003(\0132" + + "5.google.cloud.aiplatform.v1beta1.ModelEvaluationSliceB\003\340A\002\"Y\n" + "(BatchImportModelEvaluationSlicesResponse\022-\n" + " imported_model_evaluation_slices\030\001 \003(\tB\003\340A\003\"\312\001\n" + "&BatchImportEvaluatedAnnotationsRequest\022F\n" + "\006parent\030\001 \001(\tB6\340A\002\372A0\n" + ".aiplatform.googleapis.com/ModelEvaluationSlice\022X\n" - + "\025evaluated_annotations\030\002 \003(\01324.google.cloud.aipla" - + "tform.v1beta1.EvaluatedAnnotationB\003\340A\002\"\\\n" + + "\025evaluated_annotations\030\002" + + " \003(\01324.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationB\003\340A\002\"\\\n" + "\'BatchImportEvaluatedAnnotationsResponse\0221\n" + "$imported_evaluated_annotations_count\030\001 \001(\005B\003\340A\003\"\\\n" + "\031GetModelEvaluationRequest\022?\n" @@ -370,8 +371,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\004 \001(\t\022-\n" + "\tread_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\204\001\n" + "\034ListModelEvaluationsResponse\022K\n" - + "\021model_evaluations\030\001 \003(\01320." - + "google.cloud.aiplatform.v1beta1.ModelEvaluation\022\027\n" + + "\021model_evaluations\030\001 \003(\01320.goo" + + "gle.cloud.aiplatform.v1beta1.ModelEvaluation\022\027\n" + "\017next_page_token\030\002 \001(\t\"f\n" + "\036GetModelEvaluationSliceRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" @@ -395,10 +396,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020check_user_quota\030\004 \001(\010B\003\340A\001\"\240\006\n" + "\025RecommendSpecResponse\022\027\n\n" + "base_model\030\001 \001(\tB\003\340A\003\022c\n" - + "\017recommendations\030\003 \003(\0132E.google.clo" - + "ud.aiplatform.v1beta1.RecommendSpecResponse.RecommendationB\003\340A\003\022g\n" - + "\005specs\030\002 \003(\0132S.google.cloud.aiplatform.v1beta1.Recomme" - + "ndSpecResponse.MachineAndModelContainerSpecB\003\340A\003\032\271\001\n" + + "\017recommendations\030\003 \003(\0132E.google.cloud." + + "aiplatform.v1beta1.RecommendSpecResponse.RecommendationB\003\340A\003\022g\n" + + "\005specs\030\002 \003(\0132S.google.cloud.aiplatform.v1beta1.RecommendS" + + "pecResponse.MachineAndModelContainerSpecB\003\340A\003\032\271\001\n" + "\034MachineAndModelContainerSpec\022G\n" + "\014machine_spec\030\001" + " \001(\0132,.google.cloud.aiplatform.v1beta1.MachineSpecB\003\340A\003\022P\n" @@ -406,113 +407,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01323.google.cloud.aiplatform.v1beta1.ModelContainerSpecB\003\340A\003\032\343\002\n" + "\016Recommendation\022\016\n" + "\006region\030\001 \001(\t\022f\n" - + "\004spec\030\002 \001(\0132S.google.cloud.aiplatform.v1beta1." - + "RecommendSpecResponse.MachineAndModelContainerSpecB\003\340A\003\022o\n" - + "\020user_quota_state\030\003 \001(\0162P.google.cloud.aiplatform.v1beta1.Reco" - + "mmendSpecResponse.Recommendation.QuotaStateB\003\340A\003\"h\n\n" + + "\004spec\030\002 \001(\0132S.google.cloud.aiplatform.v1beta1.Rec" + + "ommendSpecResponse.MachineAndModelContainerSpecB\003\340A\003\022o\n" + + "\020user_quota_state\030\003 \001(\0162P.google.cloud.aiplatform.v1beta1.Recomme" + + "ndSpecResponse.Recommendation.QuotaStateB\003\340A\003\"h\n\n" + "QuotaState\022\033\n" + "\027QUOTA_STATE_UNSPECIFIED\020\000\022\036\n" + "\032QUOTA_STATE_USER_HAS_QUOTA\020\001\022\035\n" + "\031QUOTA_STATE_NO_USER_QUOTA\020\0022\314%\n" + "\014ModelService\022\352\001\n" - + "\013UploadModel\0223.google.clo" - + "ud.aiplatform.v1beta1.UploadModelRequest\032\035.google.longrunning.Operation\"\206\001\312A3\n" - + "\023UploadModelResponse\022\034UploadModelOperation" - + "Metadata\332A\014parent,model\202\323\344\223\002;\"6/v1beta1/" - + "{parent=projects/*/locations/*}/models:upload:\001*\022\244\001\n" - + "\010GetModel\0220.google.cloud.aiplatform.v1beta1.GetModelRequest\032&.google" - + ".cloud.aiplatform.v1beta1.Model\">\332A\004name" - + "\202\323\344\223\0021\022//v1beta1/{name=projects/*/locations/*/models/*}\022\267\001\n\n" - + "ListModels\0222.google.cloud.aiplatform.v1beta1.ListModelsReque" - + "st\0323.google.cloud.aiplatform.v1beta1.Lis" - + "tModelsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1bet" - + "a1/{parent=projects/*/locations/*}/models\022\327\001\n" - + "\021ListModelVersions\0229.google.cloud.aiplatform.v1beta1.ListModelVersionsReque" - + "st\032:.google.cloud.aiplatform.v1beta1.Lis" - + "tModelVersionsResponse\"K\332A\004name\202\323\344\223\002>\02225/v1beta1/{model.name=projects/*/locations/*/models/*}:\005model\022\252\002\n" - + "\030UpdateExplanationDataset\022@.google.cloud.aiplat" - + "form.v1beta1.UpdateExplanationDatasetReq" - + "uest\032\035.google.longrunning.Operation\"\254\001\312AM\n" - + " UpdateExplanationDatasetResponse\022)UpdateExplanationDatasetOperationMetadata\332A" - + "\005model\202\323\344\223\002N\"I/v1beta1/{model=projects/*" - + "/locations/*/models/*}:updateExplanationDataset:\001*\022\324\001\n" - + "\013DeleteModel\0223.google.clou" - + "d.aiplatform.v1beta1.DeleteModelRequest\032\035.google.longrunning.Operation\"q\312A0\n" - + "\025google.protobuf.Empty\022\027DeleteOperationMetad" - + "ata\332A\004name\202\323\344\223\0021*//v1beta1/{name=projects/*/locations/*/models/*}\022\360\001\n" - + "\022DeleteModelVersion\022:.google.cloud.aiplatform.v1bet" - + "a1.DeleteModelVersionRequest\032\035.google.longrunning.Operation\"\177\312A0\n" - + "\025google.protobuf.Empty\022\027DeleteOperationMetadata\332A\004name\202" - + "\323\344\223\002?*=/v1beta1/{name=projects/*/locations/*/models/*}:deleteVersion\022\341\001\n" - + "\023MergeVersionAliases\022;.google.cloud.aiplatform.v" - + "1beta1.MergeVersionAliasesRequest\032&.goog" - + "le.cloud.aiplatform.v1beta1.Model\"e\332A\024na" - + "me,version_aliases\202\323\344\223\002H\"C/v1beta1/{name" - + "=projects/*/locations/*/models/*}:mergeVersionAliases:\001*\022\360\001\n" - + "\013ExportModel\0223.google.cloud.aiplatform.v1beta1.ExportModelRe" - + "quest\032\035.google.longrunning.Operation\"\214\001\312A3\n" - + "\023ExportModelResponse\022\034ExportModelOper" - + "ationMetadata\332A\022name,output_config\202\323\344\223\002;" - + "\"6/v1beta1/{name=projects/*/locations/*/models/*}:export:\001*\022\347\001\n" - + "\tCopyModel\0221.google.cloud.aiplatform.v1beta1.CopyModelReq" - + "uest\032\035.google.longrunning.Operation\"\207\001\312A/\n" - + "\021CopyModelResponse\022\032CopyModelOperation" - + "Metadata\332A\023parent,source_model\202\323\344\223\0029\"4/v" - + "1beta1/{parent=projects/*/locations/*}/models:copy:\001*\022\363\001\n" - + "\025ImportModelEvaluation\022=.google.cloud.aiplatform.v1beta1.Import" - + "ModelEvaluationRequest\0320.google.cloud.ai" - + "platform.v1beta1.ModelEvaluation\"i\332A\027par" - + "ent,model_evaluation\202\323\344\223\002I\"D/v1beta1/{pa" - + "rent=projects/*/locations/*/models/*}/evaluations:import:\001*\022\267\002\n" - + " BatchImportModelEvaluationSlices\022H.google.cloud.aiplatfo" - + "rm.v1beta1.BatchImportModelEvaluationSlicesRequest\032I.google.cloud.aiplatform.v1b" - + "eta1.BatchImportModelEvaluationSlicesRes" - + "ponse\"~\332A\036parent,model_evaluation_slices" - + "\202\323\344\223\002W\"R/v1beta1/{parent=projects/*/loca" - + "tions/*/models/*/evaluations/*}/slices:batchImport:\001*\022\264\002\n" - + "\037BatchImportEvaluatedAnnotations\022G.google.cloud.aiplatform.v1be" - + "ta1.BatchImportEvaluatedAnnotationsRequest\032H.google.cloud.aiplatform.v1beta1.Bat" - + "chImportEvaluatedAnnotationsResponse\"~\332A" - + "\034parent,evaluated_annotations\202\323\344\223\002Y\"T/v1" - + "beta1/{parent=projects/*/locations/*/mod" - + "els/*/evaluations/*/slices/*}:batchImport:\001*\022\320\001\n" - + "\022GetModelEvaluation\022:.google.cloud.aiplatform.v1beta1.GetModelEvaluation" - + "Request\0320.google.cloud.aiplatform.v1beta" - + "1.ModelEvaluation\"L\332A\004name\202\323\344\223\002?\022=/v1bet" - + "a1/{name=projects/*/locations/*/models/*/evaluations/*}\022\343\001\n" - + "\024ListModelEvaluations\022<.google.cloud.aiplatform.v1beta1.ListM" - + "odelEvaluationsRequest\032=.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRes" - + "ponse\"N\332A\006parent\202\323\344\223\002?\022=/v1beta1/{parent" - + "=projects/*/locations/*/models/*}/evaluations\022\350\001\n" - + "\027GetModelEvaluationSlice\022?.google.cloud.aiplatform.v1beta1.GetModelEval" - + "uationSliceRequest\0325.google.cloud.aiplat" - + "form.v1beta1.ModelEvaluationSlice\"U\332A\004na" - + "me\202\323\344\223\002H\022F/v1beta1/{name=projects/*/loca" - + "tions/*/models/*/evaluations/*/slices/*}\022\373\001\n" - + "\031ListModelEvaluationSlices\022A.google.cloud.aiplatform.v1beta1.ListModelEvalua" - + "tionSlicesRequest\032B.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRes" - + "ponse\"W\332A\006parent\202\323\344\223\002H\022F/v1beta1/{parent" - + "=projects/*/locations/*/models/*/evaluations/*}/slices\022\301\001\n\r" - + "RecommendSpec\0225.google.cloud.aiplatform.v1beta1.RecommendSpec" - + "Request\0326.google.cloud.aiplatform.v1beta" - + "1.RecommendSpecResponse\"A\202\323\344\223\002;\"6/v1beta" - + "1/{parent=projects/*/locations/*}:recomm" - + "endSpec:\001*\032M\312A\031aiplatform.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud-platformB\350\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\021ModelServiceProtoP\001ZCcloud.go" - + "ogle.com/go/aiplatform/apiv1beta1/aiplat" - + "formpb;aiplatformpb\252\002\037Google.Cloud.AIPla" - + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" - + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "\013UploadModel\0223.google.cloud." + + "aiplatform.v1beta1.UploadModelRequest\032\035.google.longrunning.Operation\"\206\001\312A3\n" + + "\023UploadModelResponse\022\034UploadModelOperationMet" + + "adata\332A\014parent,model\202\323\344\223\002;\"6/v1beta1/{pa" + + "rent=projects/*/locations/*}/models:upload:\001*\022\244\001\n" + + "\010GetModel\0220.google.cloud.aiplatform.v1beta1.GetModelRequest\032&.google.cl" + + "oud.aiplatform.v1beta1.Model\">\332A\004name\202\323\344" + + "\223\0021\022//v1beta1/{name=projects/*/locations/*/models/*}\022\267\001\n\n" + + "ListModels\0222.google.cloud.aiplatform.v1beta1.ListModelsRequest\032" + + "3.google.cloud.aiplatform.v1beta1.ListMo" + + "delsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1beta1/" + + "{parent=projects/*/locations/*}/models\022\327\001\n" + + "\021ListModelVersions\0229.google.cloud.aipl" + + "atform.v1beta1.ListModelVersionsRequest\032:.google.cloud.aiplatform.v1beta1.ListMo" + + "delVersionsResponse\"K\332A\004name\202\323\344\223\002>\02225/v1beta1/{model.name=projects/*/locations/*/models/*}:\005model\022\252\002\n" + + "\030UpdateExplanationDataset\022@.google.cloud.aiplatfor" + + "m.v1beta1.UpdateExplanationDatasetRequest\032\035.google.longrunning.Operation\"\254\001\312AM\n" + + " UpdateExplanationDatasetResponse\022)Update" + + "ExplanationDatasetOperationMetadata\332A\005mo" + + "del\202\323\344\223\002N\"I/v1beta1/{model=projects/*/lo" + + "cations/*/models/*}:updateExplanationDataset:\001*\022\324\001\n" + + "\013DeleteModel\0223.google.cloud.a" + + "iplatform.v1beta1.DeleteModelRequest\032\035.google.longrunning.Operation\"q\312A0\n" + + "\025google.protobuf.Empty\022\027DeleteOperationMetadata" + + "\332A\004name\202\323\344\223\0021*//v1beta1/{name=projects/*/locations/*/models/*}\022\360\001\n" + + "\022DeleteModelVersion\022:.google.cloud.aiplatform.v1beta1." + + "DeleteModelVersionRequest\032\035.google.longrunning.Operation\"\177\312A0\n" + + "\025google.protobuf.Empty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223" + + "\002?*=/v1beta1/{name=projects/*/locations/*/models/*}:deleteVersion\022\341\001\n" + + "\023MergeVersionAliases\022;.google.cloud.aiplatform.v1be" + + "ta1.MergeVersionAliasesRequest\032&.google." + + "cloud.aiplatform.v1beta1.Model\"e\332A\024name," + + "version_aliases\202\323\344\223\002H\"C/v1beta1/{name=pr" + + "ojects/*/locations/*/models/*}:mergeVersionAliases:\001*\022\360\001\n" + + "\013ExportModel\0223.google.c" + + "loud.aiplatform.v1beta1.ExportModelRequest\032\035.google.longrunning.Operation\"\214\001\312A3\n" + + "\023ExportModelResponse\022\034ExportModelOperati" + + "onMetadata\332A\022name,output_config\202\323\344\223\002;\"6/" + + "v1beta1/{name=projects/*/locations/*/models/*}:export:\001*\022\347\001\n" + + "\tCopyModel\0221.google." + + "cloud.aiplatform.v1beta1.CopyModelRequest\032\035.google.longrunning.Operation\"\207\001\312A/\n" + + "\021CopyModelResponse\022\032CopyModelOperationMet" + + "adata\332A\023parent,source_model\202\323\344\223\0029\"4/v1be" + + "ta1/{parent=projects/*/locations/*}/models:copy:\001*\022\363\001\n" + + "\025ImportModelEvaluation\022=.google.cloud.aiplatform.v1beta1.ImportMod" + + "elEvaluationRequest\0320.google.cloud.aipla" + + "tform.v1beta1.ModelEvaluation\"i\332A\027parent" + + ",model_evaluation\202\323\344\223\002I\"D/v1beta1/{paren" + + "t=projects/*/locations/*/models/*}/evaluations:import:\001*\022\267\002\n" + + " BatchImportModelEvaluationSlices\022H.google.cloud.aiplatform." + + "v1beta1.BatchImportModelEvaluationSlicesRequest\032I.google.cloud.aiplatform.v1beta" + + "1.BatchImportModelEvaluationSlicesRespon" + + "se\"~\332A\036parent,model_evaluation_slices\202\323\344" + + "\223\002W\"R/v1beta1/{parent=projects/*/locatio" + + "ns/*/models/*/evaluations/*}/slices:batchImport:\001*\022\264\002\n" + + "\037BatchImportEvaluatedAnnotations\022G.google.cloud.aiplatform.v1beta1" + + ".BatchImportEvaluatedAnnotationsRequest\032H.google.cloud.aiplatform.v1beta1.BatchI" + + "mportEvaluatedAnnotationsResponse\"~\332A\034pa" + + "rent,evaluated_annotations\202\323\344\223\002Y\"T/v1bet" + + "a1/{parent=projects/*/locations/*/models" + + "/*/evaluations/*/slices/*}:batchImport:\001*\022\320\001\n" + + "\022GetModelEvaluation\022:.google.cloud.aiplatform.v1beta1.GetModelEvaluationReq" + + "uest\0320.google.cloud.aiplatform.v1beta1.M" + + "odelEvaluation\"L\332A\004name\202\323\344\223\002?\022=/v1beta1/" + + "{name=projects/*/locations/*/models/*/evaluations/*}\022\343\001\n" + + "\024ListModelEvaluations\022<.google.cloud.aiplatform.v1beta1.ListMode" + + "lEvaluationsRequest\032=.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRespon" + + "se\"N\332A\006parent\202\323\344\223\002?\022=/v1beta1/{parent=pr" + + "ojects/*/locations/*/models/*}/evaluations\022\350\001\n" + + "\027GetModelEvaluationSlice\022?.google.cloud.aiplatform.v1beta1.GetModelEvaluat" + + "ionSliceRequest\0325.google.cloud.aiplatfor" + + "m.v1beta1.ModelEvaluationSlice\"U\332A\004name\202" + + "\323\344\223\002H\022F/v1beta1/{name=projects/*/locatio" + + "ns/*/models/*/evaluations/*/slices/*}\022\373\001\n" + + "\031ListModelEvaluationSlices\022A.google.cloud.aiplatform.v1beta1.ListModelEvaluatio" + + "nSlicesRequest\032B.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRespon" + + "se\"W\332A\006parent\202\323\344\223\002H\022F/v1beta1/{parent=pr" + + "ojects/*/locations/*/models/*/evaluations/*}/slices\022\301\001\n\r" + + "RecommendSpec\0225.google.cloud.aiplatform.v1beta1.RecommendSpecReq" + + "uest\0326.google.cloud.aiplatform.v1beta1.R" + + "ecommendSpecResponse\"A\202\323\344\223\002;\"6/v1beta1/{" + + "parent=projects/*/locations/*}:recommend" + + "Spec:\001*\032M\312A\031aiplatform.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-platformB\350\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\021ModelServiceProtoP\001ZCcloud.googl" + + "e.com/go/aiplatform/apiv1beta1/aiplatfor" + + "mpb;aiplatformpb\252\002\037Google.Cloud.AIPlatfo" + + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b" + + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -728,6 +729,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "SourceModel", "EncryptionSpec", + "CustomServiceAccount", "DestinationModel", }); internal_static_google_cloud_aiplatform_v1beta1_CopyModelOperationMetadata_descriptor = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluator.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluator.java new file mode 100644 index 000000000000..1b4ac8652256 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluator.java @@ -0,0 +1,12680 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * An OnlineEvaluator contains the configuration for an Online Evaluation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator} + */ +@com.google.protobuf.Generated +public final class OnlineEvaluator extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + OnlineEvaluatorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OnlineEvaluator"); + } + + // Use OnlineEvaluator.newBuilder() to construct. + private OnlineEvaluator(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OnlineEvaluator() { + name_ = ""; + agentResource_ = ""; + metricSources_ = java.util.Collections.emptyList(); + state_ = 0; + stateDetails_ = java.util.Collections.emptyList(); + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder.class); + } + + /** + * + * + *
+   * The state of the OnlineEvaluator.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Indicates that the OnlineEvaluator is active.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * Indicates that the OnlineEvaluator is suspended. In this state, the
+     * OnlineEvaluator will not evaluate any samples.
+     * 
+ * + * SUSPENDED = 2; + */ + SUSPENDED(2), + /** + * + * + *
+     * Indicates that the OnlineEvaluator is in a failed state.
+     *
+     * This can happen if, for example, the `log_view` or `trace_view` set on
+     * the `CloudObservability` does not exist.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + /** + * + * + *
+     * Indicates that the OnlineEvaluator is in a warning state.
+     * This can happen if, for example, some of the metrics in the
+     * `metric_sources` are invalid. Evaluation will still run with the
+     * remaining valid metrics.
+     * 
+ * + * WARNING = 4; + */ + WARNING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Indicates that the OnlineEvaluator is active.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
+     * Indicates that the OnlineEvaluator is suspended. In this state, the
+     * OnlineEvaluator will not evaluate any samples.
+     * 
+ * + * SUSPENDED = 2; + */ + public static final int SUSPENDED_VALUE = 2; + + /** + * + * + *
+     * Indicates that the OnlineEvaluator is in a failed state.
+     *
+     * This can happen if, for example, the `log_view` or `trace_view` set on
+     * the `CloudObservability` does not exist.
+     * 
+ * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + /** + * + * + *
+     * Indicates that the OnlineEvaluator is in a warning state.
+     * This can happen if, for example, some of the metrics in the
+     * `metric_sources` are invalid. Evaluation will still run with the
+     * remaining valid metrics.
+     * 
+ * + * WARNING = 4; + */ + public static final int WARNING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SUSPENDED; + case 3: + return FAILED; + case 4: + return WARNING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.State) + } + + public interface CloudObservabilityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Scope online evaluation to single traces.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return Whether the traceScope field is set. + */ + boolean hasTraceScope(); + + /** + * + * + *
+     * Scope online evaluation to single traces.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return The traceScope. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getTraceScope(); + + /** + * + * + *
+     * Scope online evaluation to single traces.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScopeOrBuilder + getTraceScopeOrBuilder(); + + /** + * + * + *
+     * Data source follows OpenTelemetry convention.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return Whether the openTelemetry field is set. + */ + boolean hasOpenTelemetry(); + + /** + * + * + *
+     * Data source follows OpenTelemetry convention.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return The openTelemetry. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getOpenTelemetry(); + + /** + * + * + *
+     * Data source follows OpenTelemetry convention.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetryOrBuilder + getOpenTelemetryOrBuilder(); + + /** + * + * + *
+     * Optional. Optional log view that will be used to query logs.
+     * If empty, the `_Default` view will be used.
+     * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logView. + */ + java.lang.String getLogView(); + + /** + * + * + *
+     * Optional. Optional log view that will be used to query logs.
+     * If empty, the `_Default` view will be used.
+     * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for logView. + */ + com.google.protobuf.ByteString getLogViewBytes(); + + /** + * + * + *
+     * Optional. Optional trace view that will be used to query traces.
+     * If empty, the `_Default` view will be used.
+     *
+     * NOTE: This field is not supported yet and will be ignored if set.
+     * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The traceView. + */ + java.lang.String getTraceView(); + + /** + * + * + *
+     * Optional. Optional trace view that will be used to query traces.
+     * If empty, the `_Default` view will be used.
+     *
+     * NOTE: This field is not supported yet and will be ignored if set.
+     * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for traceView. + */ + com.google.protobuf.ByteString getTraceViewBytes(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.EvalScopeCase + getEvalScopeCase(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.ConventionCase + getConventionCase(); + } + + /** + * + * + *
+   * Data source for the OnlineEvaluator, based on GCP Observability stack
+   * (Cloud Trace & Cloud Logging).
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability} + */ + public static final class CloudObservability extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + CloudObservabilityOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudObservability"); + } + + // Use CloudObservability.newBuilder() to construct. + private CloudObservability(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudObservability() { + logView_ = ""; + traceView_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder.class); + } + + public interface NumericPredicateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The comparison operator to apply.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonOperator. + */ + int getComparisonOperatorValue(); + + /** + * + * + *
+       * Required. The comparison operator to apply.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonOperator. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + getComparisonOperator(); + + /** + * + * + *
+       * Required. The value to compare against.
+       * 
+ * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + float getValue(); + } + + /** + * + * + *
+     * Defines a predicate for filtering based on a numeric value.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate} + */ + public static final class NumericPredicate extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + NumericPredicateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NumericPredicate"); + } + + // Use NumericPredicate.newBuilder() to construct. + private NumericPredicate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NumericPredicate() { + comparisonOperator_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder.class); + } + + /** + * + * + *
+       * Comparison operators for numeric predicates.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator} + */ + public enum ComparisonOperator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Unspecified comparison operator. This value should not be used.
+         * 
+ * + * COMPARISON_OPERATOR_UNSPECIFIED = 0; + */ + COMPARISON_OPERATOR_UNSPECIFIED(0), + /** + * + * + *
+         * Less than.
+         * 
+ * + * LESS = 1; + */ + LESS(1), + /** + * + * + *
+         * Less than or equal to.
+         * 
+ * + * LESS_OR_EQUAL = 2; + */ + LESS_OR_EQUAL(2), + /** + * + * + *
+         * Equal to.
+         * 
+ * + * EQUAL = 3; + */ + EQUAL(3), + /** + * + * + *
+         * Not equal to.
+         * 
+ * + * NOT_EQUAL = 4; + */ + NOT_EQUAL(4), + /** + * + * + *
+         * Greater than or equal to.
+         * 
+ * + * GREATER_OR_EQUAL = 5; + */ + GREATER_OR_EQUAL(5), + /** + * + * + *
+         * Greater than.
+         * 
+ * + * GREATER = 6; + */ + GREATER(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComparisonOperator"); + } + + /** + * + * + *
+         * Unspecified comparison operator. This value should not be used.
+         * 
+ * + * COMPARISON_OPERATOR_UNSPECIFIED = 0; + */ + public static final int COMPARISON_OPERATOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+         * Less than.
+         * 
+ * + * LESS = 1; + */ + public static final int LESS_VALUE = 1; + + /** + * + * + *
+         * Less than or equal to.
+         * 
+ * + * LESS_OR_EQUAL = 2; + */ + public static final int LESS_OR_EQUAL_VALUE = 2; + + /** + * + * + *
+         * Equal to.
+         * 
+ * + * EQUAL = 3; + */ + public static final int EQUAL_VALUE = 3; + + /** + * + * + *
+         * Not equal to.
+         * 
+ * + * NOT_EQUAL = 4; + */ + public static final int NOT_EQUAL_VALUE = 4; + + /** + * + * + *
+         * Greater than or equal to.
+         * 
+ * + * GREATER_OR_EQUAL = 5; + */ + public static final int GREATER_OR_EQUAL_VALUE = 5; + + /** + * + * + *
+         * Greater than.
+         * 
+ * + * GREATER = 6; + */ + public static final int GREATER_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ComparisonOperator valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ComparisonOperator forNumber(int value) { + switch (value) { + case 0: + return COMPARISON_OPERATOR_UNSPECIFIED; + case 1: + return LESS; + case 2: + return LESS_OR_EQUAL; + case 3: + return EQUAL; + case 4: + return NOT_EQUAL; + case 5: + return GREATER_OR_EQUAL; + case 6: + return GREATER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComparisonOperator findValueByNumber(int number) { + return ComparisonOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ComparisonOperator[] VALUES = values(); + + public static ComparisonOperator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ComparisonOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator) + } + + public static final int COMPARISON_OPERATOR_FIELD_NUMBER = 1; + private int comparisonOperator_ = 0; + + /** + * + * + *
+       * Required. The comparison operator to apply.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonOperator. + */ + @java.lang.Override + public int getComparisonOperatorValue() { + return comparisonOperator_; + } + + /** + * + * + *
+       * Required. The comparison operator to apply.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonOperator. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + getComparisonOperator() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + result = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.forNumber(comparisonOperator_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private float value_ = 0F; + + /** + * + * + *
+       * Required. The value to compare against.
+       * 
+ * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public float getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (comparisonOperator_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.COMPARISON_OPERATOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, comparisonOperator_); + } + if (java.lang.Float.floatToRawIntBits(value_) != 0) { + output.writeFloat(2, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (comparisonOperator_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.COMPARISON_OPERATOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, comparisonOperator_); + } + if (java.lang.Float.floatToRawIntBits(value_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + obj; + + if (comparisonOperator_ != other.comparisonOperator_) return false; + if (java.lang.Float.floatToIntBits(getValue()) + != java.lang.Float.floatToIntBits(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COMPARISON_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + comparisonOperator_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getValue()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Defines a predicate for filtering based on a numeric value.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + comparisonOperator_ = 0; + value_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.comparisonOperator_ = comparisonOperator_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance()) return this; + if (other.comparisonOperator_ != 0) { + setComparisonOperatorValue(other.getComparisonOperatorValue()); + } + if (java.lang.Float.floatToRawIntBits(other.getValue()) != 0) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + comparisonOperator_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + value_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int comparisonOperator_ = 0; + + /** + * + * + *
+         * Required. The comparison operator to apply.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonOperator. + */ + @java.lang.Override + public int getComparisonOperatorValue() { + return comparisonOperator_; + } + + /** + * + * + *
+         * Required. The comparison operator to apply.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for comparisonOperator to set. + * @return This builder for chaining. + */ + public Builder setComparisonOperatorValue(int value) { + comparisonOperator_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The comparison operator to apply.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonOperator. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator + getComparisonOperator() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + result = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.forNumber(comparisonOperator_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Required. The comparison operator to apply.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The comparisonOperator to set. + * @return This builder for chaining. + */ + public Builder setComparisonOperator( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + comparisonOperator_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The comparison operator to apply.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearComparisonOperator() { + bitField0_ = (bitField0_ & ~0x00000001); + comparisonOperator_ = 0; + onChanged(); + return this; + } + + private float value_; + + /** + * + * + *
+         * Required. The value to compare against.
+         * 
+ * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public float getValue() { + return value_; + } + + /** + * + * + *
+         * Required. The value to compare against.
+         * 
+ * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(float value) { + + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The value to compare against.
+         * 
+ * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericPredicate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TraceScopeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + getFilterList(); + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate + getFilter(int index); + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilterCount(); + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder> + getFilterOrBuilderList(); + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder + getFilterOrBuilder(int index); + } + + /** + * + * + *
+     * If chosen, the online evaluator will evaluate single traces matching
+     * specified `filter`.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope} + */ + public static final class TraceScope extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + TraceScopeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TraceScope"); + } + + // Use TraceScope.newBuilder() to construct. + private TraceScope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TraceScope() { + filter_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder.class); + } + + public interface PredicateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Filter on the duration of a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return Whether the duration field is set. + */ + boolean hasDuration(); + + /** + * + * + *
+         * Filter on the duration of a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return The duration. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + getDuration(); + + /** + * + * + *
+         * Filter on the duration of a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getDurationOrBuilder(); + + /** + * + * + *
+         * Filter on the total token usage within a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return Whether the totalTokenUsage field is set. + */ + boolean hasTotalTokenUsage(); + + /** + * + * + *
+         * Filter on the total token usage within a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return The totalTokenUsage. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + getTotalTokenUsage(); + + /** + * + * + *
+         * Filter on the total token usage within a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getTotalTokenUsageOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate + .PredicateCase + getPredicateCase(); + } + + /** + * + * + *
+       * Defines a single filter predicate.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate} + */ + public static final class Predicate extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + PredicateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Predicate"); + } + + // Use Predicate.newBuilder() to construct. + private Predicate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Predicate() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder.class); + } + + private int predicateCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object predicate_; + + public enum PredicateCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DURATION(1), + TOTAL_TOKEN_USAGE(2), + PREDICATE_NOT_SET(0); + private final int value; + + private PredicateCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PredicateCase valueOf(int value) { + return forNumber(value); + } + + public static PredicateCase forNumber(int value) { + switch (value) { + case 1: + return DURATION; + case 2: + return TOTAL_TOKEN_USAGE; + case 0: + return PREDICATE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PredicateCase getPredicateCase() { + return PredicateCase.forNumber(predicateCase_); + } + + public static final int DURATION_FIELD_NUMBER = 1; + + /** + * + * + *
+         * Filter on the duration of a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return predicateCase_ == 1; + } + + /** + * + * + *
+         * Filter on the duration of a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return The duration. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getDuration() { + if (predicateCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + /** + * + * + *
+         * Filter on the duration of a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getDurationOrBuilder() { + if (predicateCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + public static final int TOTAL_TOKEN_USAGE_FIELD_NUMBER = 2; + + /** + * + * + *
+         * Filter on the total token usage within a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return Whether the totalTokenUsage field is set. + */ + @java.lang.Override + public boolean hasTotalTokenUsage() { + return predicateCase_ == 2; + } + + /** + * + * + *
+         * Filter on the total token usage within a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return The totalTokenUsage. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getTotalTokenUsage() { + if (predicateCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + /** + * + * + *
+         * Filter on the total token usage within a trace.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getTotalTokenUsageOrBuilder() { + if (predicateCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (predicateCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_); + } + if (predicateCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (predicateCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_); + } + if (predicateCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate) + obj; + + if (!getPredicateCase().equals(other.getPredicateCase())) return false; + switch (predicateCase_) { + case 1: + if (!getDuration().equals(other.getDuration())) return false; + break; + case 2: + if (!getTotalTokenUsage().equals(other.getTotalTokenUsage())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (predicateCase_) { + case 1: + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + break; + case 2: + hash = (37 * hash) + TOTAL_TOKEN_USAGE_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenUsage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Defines a single filter predicate.
+         * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (durationBuilder_ != null) { + durationBuilder_.clear(); + } + if (totalTokenUsageBuilder_ != null) { + totalTokenUsageBuilder_.clear(); + } + predicateCase_ = 0; + predicate_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + result) { + result.predicateCase_ = predicateCase_; + result.predicate_ = this.predicate_; + if (predicateCase_ == 1 && durationBuilder_ != null) { + result.predicate_ = durationBuilder_.build(); + } + if (predicateCase_ == 2 && totalTokenUsageBuilder_ != null) { + result.predicate_ = totalTokenUsageBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.getDefaultInstance()) return this; + switch (other.getPredicateCase()) { + case DURATION: + { + mergeDuration(other.getDuration()); + break; + } + case TOTAL_TOKEN_USAGE: + { + mergeTotalTokenUsage(other.getTotalTokenUsage()); + break; + } + case PREDICATE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetDurationFieldBuilder().getBuilder(), extensionRegistry); + predicateCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTotalTokenUsageFieldBuilder().getBuilder(), extensionRegistry); + predicateCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int predicateCase_ = 0; + private java.lang.Object predicate_; + + public PredicateCase getPredicateCase() { + return PredicateCase.forNumber(predicateCase_); + } + + public Builder clearPredicate() { + predicateCase_ = 0; + predicate_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder> + durationBuilder_; + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return predicateCase_ == 1; + } + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return The duration. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getDuration() { + if (durationBuilder_ == null) { + if (predicateCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } else { + if (predicateCase_ == 1) { + return durationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + } + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public Builder setDuration( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predicate_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + predicateCase_ = 1; + return this; + } + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public Builder setDuration( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder + builderForValue) { + if (durationBuilder_ == null) { + predicate_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + predicateCase_ = 1; + return this; + } + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public Builder mergeDuration( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + value) { + if (durationBuilder_ == null) { + if (predicateCase_ == 1 + && predicate_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance()) { + predicate_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_) + .mergeFrom(value) + .buildPartial(); + } else { + predicate_ = value; + } + onChanged(); + } else { + if (predicateCase_ == 1) { + durationBuilder_.mergeFrom(value); + } else { + durationBuilder_.setMessage(value); + } + } + predicateCase_ = 1; + return this; + } + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + if (predicateCase_ == 1) { + predicateCase_ = 0; + predicate_ = null; + onChanged(); + } + } else { + if (predicateCase_ == 1) { + predicateCase_ = 0; + predicate_ = null; + } + durationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder + getDurationBuilder() { + return internalGetDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getDurationOrBuilder() { + if ((predicateCase_ == 1) && (durationBuilder_ != null)) { + return durationBuilder_.getMessageOrBuilder(); + } else { + if (predicateCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + } + + /** + * + * + *
+           * Filter on the duration of a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder> + internalGetDurationFieldBuilder() { + if (durationBuilder_ == null) { + if (!(predicateCase_ == 1)) { + predicate_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_, + getParentForChildren(), + isClean()); + predicate_ = null; + } + predicateCase_ = 1; + onChanged(); + return durationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder> + totalTokenUsageBuilder_; + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return Whether the totalTokenUsage field is set. + */ + @java.lang.Override + public boolean hasTotalTokenUsage() { + return predicateCase_ == 2; + } + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return The totalTokenUsage. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getTotalTokenUsage() { + if (totalTokenUsageBuilder_ == null) { + if (predicateCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } else { + if (predicateCase_ == 2) { + return totalTokenUsageBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + } + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public Builder setTotalTokenUsage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + value) { + if (totalTokenUsageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predicate_ = value; + onChanged(); + } else { + totalTokenUsageBuilder_.setMessage(value); + } + predicateCase_ = 2; + return this; + } + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public Builder setTotalTokenUsage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder + builderForValue) { + if (totalTokenUsageBuilder_ == null) { + predicate_ = builderForValue.build(); + onChanged(); + } else { + totalTokenUsageBuilder_.setMessage(builderForValue.build()); + } + predicateCase_ = 2; + return this; + } + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public Builder mergeTotalTokenUsage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + value) { + if (totalTokenUsageBuilder_ == null) { + if (predicateCase_ == 2 + && predicate_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance()) { + predicate_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_) + .mergeFrom(value) + .buildPartial(); + } else { + predicate_ = value; + } + onChanged(); + } else { + if (predicateCase_ == 2) { + totalTokenUsageBuilder_.mergeFrom(value); + } else { + totalTokenUsageBuilder_.setMessage(value); + } + } + predicateCase_ = 2; + return this; + } + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public Builder clearTotalTokenUsage() { + if (totalTokenUsageBuilder_ == null) { + if (predicateCase_ == 2) { + predicateCase_ = 0; + predicate_ = null; + onChanged(); + } + } else { + if (predicateCase_ == 2) { + predicateCase_ = 0; + predicate_ = null; + } + totalTokenUsageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder + getTotalTokenUsageBuilder() { + return internalGetTotalTokenUsageFieldBuilder().getBuilder(); + } + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getTotalTokenUsageOrBuilder() { + if ((predicateCase_ == 2) && (totalTokenUsageBuilder_ != null)) { + return totalTokenUsageBuilder_.getMessageOrBuilder(); + } else { + if (predicateCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + } + + /** + * + * + *
+           * Filter on the total token usage within a trace.
+           * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder> + internalGetTotalTokenUsageFieldBuilder() { + if (totalTokenUsageBuilder_ == null) { + if (!(predicateCase_ == 2)) { + predicate_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + totalTokenUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_, + getParentForChildren(), + isClean()); + predicate_ = null; + } + predicateCase_ = 2; + onChanged(); + return totalTokenUsageBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Predicate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FILTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + filter_; + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + getFilterList() { + return filter_; + } + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder> + getFilterOrBuilderList() { + return filter_; + } + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilterCount() { + return filter_.size(); + } + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + getFilter(int index) { + return filter_.get(index); + } + + /** + * + * + *
+       * Optional. A list of predicates to filter traces. Multiple predicates
+       * are combined using AND.
+       *
+       * The maximum number of predicates is 10.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder + getFilterOrBuilder(int index) { + return filter_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < filter_.size(); i++) { + output.writeMessage(1, filter_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < filter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, filter_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) obj; + + if (!getFilterList().equals(other.getFilterList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFilterCount() > 0) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilterList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * If chosen, the online evaluator will evaluate single traces matching
+       * specified `filter`.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filterBuilder_ == null) { + filter_ = java.util.Collections.emptyList(); + } else { + filter_ = null; + filterBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + result) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filter_ = java.util.Collections.unmodifiableList(filter_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance()) return this; + if (filterBuilder_ == null) { + if (!other.filter_.isEmpty()) { + if (filter_.isEmpty()) { + filter_ = other.filter_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterIsMutable(); + filter_.addAll(other.filter_); + } + onChanged(); + } + } else { + if (!other.filter_.isEmpty()) { + if (filterBuilder_.isEmpty()) { + filterBuilder_.dispose(); + filterBuilder_ = null; + filter_ = other.filter_; + bitField0_ = (bitField0_ & ~0x00000001); + filterBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFilterFieldBuilder() + : null; + } else { + filterBuilder_.addAllMessages(other.filter_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator + .CloudObservability.TraceScope.Predicate.parser(), + extensionRegistry); + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.add(m); + } else { + filterBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + filter_ = java.util.Collections.emptyList(); + + private void ensureFilterIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filter_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate>(filter_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder> + filterBuilder_; + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + getFilterList() { + if (filterBuilder_ == null) { + return java.util.Collections.unmodifiableList(filter_); + } else { + return filterBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilterCount() { + if (filterBuilder_ == null) { + return filter_.size(); + } else { + return filterBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + getFilter(int index) { + if (filterBuilder_ == null) { + return filter_.get(index); + } else { + return filterBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilter( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.set(index, value); + onChanged(); + } else { + filterBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilter( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.set(index, builderForValue.build()); + onChanged(); + } else { + filterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFilter( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.add(value); + onChanged(); + } else { + filterBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFilter( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.add(index, value); + onChanged(); + } else { + filterBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFilter( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.add(builderForValue.build()); + onChanged(); + } else { + filterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFilter( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.add(index, builderForValue.build()); + onChanged(); + } else { + filterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFilter( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate> + values) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filter_); + onChanged(); + } else { + filterBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFilter(int index) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.remove(index); + onChanged(); + } else { + filterBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + getFilterBuilder(int index) { + return internalGetFilterFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder + getFilterOrBuilder(int index) { + if (filterBuilder_ == null) { + return filter_.get(index); + } else { + return filterBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.PredicateOrBuilder> + getFilterOrBuilderList() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filter_); + } + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + addFilterBuilder() { + return internalGetFilterFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + addFilterBuilder(int index) { + return internalGetFilterFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. A list of predicates to filter traces. Multiple predicates
+         * are combined using AND.
+         *
+         * The maximum number of predicates is 10.
+         * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder> + getFilterBuilderList() { + return internalGetFilterFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder> + internalGetFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.PredicateOrBuilder>( + filter_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TraceScope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpenTelemetryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. Defines which version OTel Semantic Convention the data
+       * follows. Can be "1.39.0" or newer.
+       * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The semconvVersion. + */ + java.lang.String getSemconvVersion(); + + /** + * + * + *
+       * Required. Defines which version OTel Semantic Convention the data
+       * follows. Can be "1.39.0" or newer.
+       * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for semconvVersion. + */ + com.google.protobuf.ByteString getSemconvVersionBytes(); + } + + /** + * + * + *
+     * Configuration for data source following OpenTelemetry.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry} + */ + public static final class OpenTelemetry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + OpenTelemetryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenTelemetry"); + } + + // Use OpenTelemetry.newBuilder() to construct. + private OpenTelemetry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenTelemetry() { + semconvVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder.class); + } + + public static final int SEMCONV_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object semconvVersion_ = ""; + + /** + * + * + *
+       * Required. Defines which version OTel Semantic Convention the data
+       * follows. Can be "1.39.0" or newer.
+       * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The semconvVersion. + */ + @java.lang.Override + public java.lang.String getSemconvVersion() { + java.lang.Object ref = semconvVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + semconvVersion_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. Defines which version OTel Semantic Convention the data
+       * follows. Can be "1.39.0" or newer.
+       * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for semconvVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSemconvVersionBytes() { + java.lang.Object ref = semconvVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + semconvVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(semconvVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, semconvVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(semconvVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, semconvVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + obj; + + if (!getSemconvVersion().equals(other.getSemconvVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEMCONV_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSemconvVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Configuration for data source following OpenTelemetry.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + semconvVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.semconvVersion_ = semconvVersion_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance()) return this; + if (!other.getSemconvVersion().isEmpty()) { + semconvVersion_ = other.semconvVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + semconvVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object semconvVersion_ = ""; + + /** + * + * + *
+         * Required. Defines which version OTel Semantic Convention the data
+         * follows. Can be "1.39.0" or newer.
+         * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The semconvVersion. + */ + public java.lang.String getSemconvVersion() { + java.lang.Object ref = semconvVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + semconvVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. Defines which version OTel Semantic Convention the data
+         * follows. Can be "1.39.0" or newer.
+         * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for semconvVersion. + */ + public com.google.protobuf.ByteString getSemconvVersionBytes() { + java.lang.Object ref = semconvVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + semconvVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. Defines which version OTel Semantic Convention the data
+         * follows. Can be "1.39.0" or newer.
+         * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The semconvVersion to set. + * @return This builder for chaining. + */ + public Builder setSemconvVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + semconvVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Defines which version OTel Semantic Convention the data
+         * follows. Can be "1.39.0" or newer.
+         * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSemconvVersion() { + semconvVersion_ = getDefaultInstance().getSemconvVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Defines which version OTel Semantic Convention the data
+         * follows. Can be "1.39.0" or newer.
+         * 
+ * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for semconvVersion to set. + * @return This builder for chaining. + */ + public Builder setSemconvVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + semconvVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenTelemetry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int evalScopeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evalScope_; + + public enum EvalScopeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TRACE_SCOPE(3), + EVALSCOPE_NOT_SET(0); + private final int value; + + private EvalScopeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvalScopeCase valueOf(int value) { + return forNumber(value); + } + + public static EvalScopeCase forNumber(int value) { + switch (value) { + case 3: + return TRACE_SCOPE; + case 0: + return EVALSCOPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvalScopeCase getEvalScopeCase() { + return EvalScopeCase.forNumber(evalScopeCase_); + } + + private int conventionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object convention_; + + public enum ConventionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OPEN_TELEMETRY(4), + CONVENTION_NOT_SET(0); + private final int value; + + private ConventionCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConventionCase valueOf(int value) { + return forNumber(value); + } + + public static ConventionCase forNumber(int value) { + switch (value) { + case 4: + return OPEN_TELEMETRY; + case 0: + return CONVENTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConventionCase getConventionCase() { + return ConventionCase.forNumber(conventionCase_); + } + + public static final int TRACE_SCOPE_FIELD_NUMBER = 3; + + /** + * + * + *
+     * Scope online evaluation to single traces.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return Whether the traceScope field is set. + */ + @java.lang.Override + public boolean hasTraceScope() { + return evalScopeCase_ == 3; + } + + /** + * + * + *
+     * Scope online evaluation to single traces.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return The traceScope. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getTraceScope() { + if (evalScopeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + evalScope_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + + /** + * + * + *
+     * Scope online evaluation to single traces.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder + getTraceScopeOrBuilder() { + if (evalScopeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + evalScope_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + + public static final int OPEN_TELEMETRY_FIELD_NUMBER = 4; + + /** + * + * + *
+     * Data source follows OpenTelemetry convention.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return Whether the openTelemetry field is set. + */ + @java.lang.Override + public boolean hasOpenTelemetry() { + return conventionCase_ == 4; + } + + /** + * + * + *
+     * Data source follows OpenTelemetry convention.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return The openTelemetry. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getOpenTelemetry() { + if (conventionCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .getDefaultInstance(); + } + + /** + * + * + *
+     * Data source follows OpenTelemetry convention.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder + getOpenTelemetryOrBuilder() { + if (conventionCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .getDefaultInstance(); + } + + public static final int LOG_VIEW_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object logView_ = ""; + + /** + * + * + *
+     * Optional. Optional log view that will be used to query logs.
+     * If empty, the `_Default` view will be used.
+     * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logView. + */ + @java.lang.Override + public java.lang.String getLogView() { + java.lang.Object ref = logView_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logView_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Optional log view that will be used to query logs.
+     * If empty, the `_Default` view will be used.
+     * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for logView. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogViewBytes() { + java.lang.Object ref = logView_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logView_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRACE_VIEW_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object traceView_ = ""; + + /** + * + * + *
+     * Optional. Optional trace view that will be used to query traces.
+     * If empty, the `_Default` view will be used.
+     *
+     * NOTE: This field is not supported yet and will be ignored if set.
+     * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The traceView. + */ + @java.lang.Override + public java.lang.String getTraceView() { + java.lang.Object ref = traceView_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + traceView_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Optional trace view that will be used to query traces.
+     * If empty, the `_Default` view will be used.
+     *
+     * NOTE: This field is not supported yet and will be ignored if set.
+     * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for traceView. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTraceViewBytes() { + java.lang.Object ref = traceView_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + traceView_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logView_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, logView_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(traceView_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, traceView_); + } + if (evalScopeCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + evalScope_); + } + if (conventionCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + convention_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logView_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, logView_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(traceView_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, traceView_); + } + if (evalScopeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + evalScope_); + } + if (conventionCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) obj; + + if (!getLogView().equals(other.getLogView())) return false; + if (!getTraceView().equals(other.getTraceView())) return false; + if (!getEvalScopeCase().equals(other.getEvalScopeCase())) return false; + switch (evalScopeCase_) { + case 3: + if (!getTraceScope().equals(other.getTraceScope())) return false; + break; + case 0: + default: + } + if (!getConventionCase().equals(other.getConventionCase())) return false; + switch (conventionCase_) { + case 4: + if (!getOpenTelemetry().equals(other.getOpenTelemetry())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOG_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getLogView().hashCode(); + hash = (37 * hash) + TRACE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getTraceView().hashCode(); + switch (evalScopeCase_) { + case 3: + hash = (37 * hash) + TRACE_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getTraceScope().hashCode(); + break; + case 0: + default: + } + switch (conventionCase_) { + case 4: + hash = (37 * hash) + OPEN_TELEMETRY_FIELD_NUMBER; + hash = (53 * hash) + getOpenTelemetry().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (traceScopeBuilder_ != null) { + traceScopeBuilder_.clear(); + } + if (openTelemetryBuilder_ != null) { + openTelemetryBuilder_.clear(); + } + logView_ = ""; + traceView_ = ""; + evalScopeCase_ = 0; + evalScope_ = null; + conventionCase_ = 0; + convention_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.logView_ = logView_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.traceView_ = traceView_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability result) { + result.evalScopeCase_ = evalScopeCase_; + result.evalScope_ = this.evalScope_; + if (evalScopeCase_ == 3 && traceScopeBuilder_ != null) { + result.evalScope_ = traceScopeBuilder_.build(); + } + result.conventionCase_ = conventionCase_; + result.convention_ = this.convention_; + if (conventionCase_ == 4 && openTelemetryBuilder_ != null) { + result.convention_ = openTelemetryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance()) return this; + if (!other.getLogView().isEmpty()) { + logView_ = other.logView_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTraceView().isEmpty()) { + traceView_ = other.traceView_; + bitField0_ |= 0x00000008; + onChanged(); + } + switch (other.getEvalScopeCase()) { + case TRACE_SCOPE: + { + mergeTraceScope(other.getTraceScope()); + break; + } + case EVALSCOPE_NOT_SET: + { + break; + } + } + switch (other.getConventionCase()) { + case OPEN_TELEMETRY: + { + mergeOpenTelemetry(other.getOpenTelemetry()); + break; + } + case CONVENTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + logView_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + traceView_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetTraceScopeFieldBuilder().getBuilder(), extensionRegistry); + evalScopeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetOpenTelemetryFieldBuilder().getBuilder(), extensionRegistry); + conventionCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int evalScopeCase_ = 0; + private java.lang.Object evalScope_; + + public EvalScopeCase getEvalScopeCase() { + return EvalScopeCase.forNumber(evalScopeCase_); + } + + public Builder clearEvalScope() { + evalScopeCase_ = 0; + evalScope_ = null; + onChanged(); + return this; + } + + private int conventionCase_ = 0; + private java.lang.Object convention_; + + public ConventionCase getConventionCase() { + return ConventionCase.forNumber(conventionCase_); + } + + public Builder clearConvention() { + conventionCase_ = 0; + convention_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder> + traceScopeBuilder_; + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return Whether the traceScope field is set. + */ + @java.lang.Override + public boolean hasTraceScope() { + return evalScopeCase_ == 3; + } + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return The traceScope. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getTraceScope() { + if (traceScopeBuilder_ == null) { + if (evalScopeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope) + evalScope_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } else { + if (evalScopeCase_ == 3) { + return traceScopeBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public Builder setTraceScope( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope value) { + if (traceScopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evalScope_ = value; + onChanged(); + } else { + traceScopeBuilder_.setMessage(value); + } + evalScopeCase_ = 3; + return this; + } + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public Builder setTraceScope( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Builder + builderForValue) { + if (traceScopeBuilder_ == null) { + evalScope_ = builderForValue.build(); + onChanged(); + } else { + traceScopeBuilder_.setMessage(builderForValue.build()); + } + evalScopeCase_ = 3; + return this; + } + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public Builder mergeTraceScope( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope value) { + if (traceScopeBuilder_ == null) { + if (evalScopeCase_ == 3 + && evalScope_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.getDefaultInstance()) { + evalScope_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope) + evalScope_) + .mergeFrom(value) + .buildPartial(); + } else { + evalScope_ = value; + } + onChanged(); + } else { + if (evalScopeCase_ == 3) { + traceScopeBuilder_.mergeFrom(value); + } else { + traceScopeBuilder_.setMessage(value); + } + } + evalScopeCase_ = 3; + return this; + } + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public Builder clearTraceScope() { + if (traceScopeBuilder_ == null) { + if (evalScopeCase_ == 3) { + evalScopeCase_ = 0; + evalScope_ = null; + onChanged(); + } + } else { + if (evalScopeCase_ == 3) { + evalScopeCase_ = 0; + evalScope_ = null; + } + traceScopeBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder + getTraceScopeBuilder() { + return internalGetTraceScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder + getTraceScopeOrBuilder() { + if ((evalScopeCase_ == 3) && (traceScopeBuilder_ != null)) { + return traceScopeBuilder_.getMessageOrBuilder(); + } else { + if (evalScopeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope) + evalScope_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Scope online evaluation to single traces.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder> + internalGetTraceScopeFieldBuilder() { + if (traceScopeBuilder_ == null) { + if (!(evalScopeCase_ == 3)) { + evalScope_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + traceScopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope) + evalScope_, + getParentForChildren(), + isClean()); + evalScope_ = null; + } + evalScopeCase_ = 3; + onChanged(); + return traceScopeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder> + openTelemetryBuilder_; + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return Whether the openTelemetry field is set. + */ + @java.lang.Override + public boolean hasOpenTelemetry() { + return conventionCase_ == 4; + } + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return The openTelemetry. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getOpenTelemetry() { + if (openTelemetryBuilder_ == null) { + if (conventionCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance(); + } else { + if (conventionCase_ == 4) { + return openTelemetryBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public Builder setOpenTelemetry( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + value) { + if (openTelemetryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + convention_ = value; + onChanged(); + } else { + openTelemetryBuilder_.setMessage(value); + } + conventionCase_ = 4; + return this; + } + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public Builder setOpenTelemetry( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder + builderForValue) { + if (openTelemetryBuilder_ == null) { + convention_ = builderForValue.build(); + onChanged(); + } else { + openTelemetryBuilder_.setMessage(builderForValue.build()); + } + conventionCase_ = 4; + return this; + } + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public Builder mergeOpenTelemetry( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + value) { + if (openTelemetryBuilder_ == null) { + if (conventionCase_ == 4 + && convention_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance()) { + convention_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_) + .mergeFrom(value) + .buildPartial(); + } else { + convention_ = value; + } + onChanged(); + } else { + if (conventionCase_ == 4) { + openTelemetryBuilder_.mergeFrom(value); + } else { + openTelemetryBuilder_.setMessage(value); + } + } + conventionCase_ = 4; + return this; + } + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public Builder clearOpenTelemetry() { + if (openTelemetryBuilder_ == null) { + if (conventionCase_ == 4) { + conventionCase_ = 0; + convention_ = null; + onChanged(); + } + } else { + if (conventionCase_ == 4) { + conventionCase_ = 0; + convention_ = null; + } + openTelemetryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder + getOpenTelemetryBuilder() { + return internalGetOpenTelemetryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder + getOpenTelemetryOrBuilder() { + if ((conventionCase_ == 4) && (openTelemetryBuilder_ != null)) { + return openTelemetryBuilder_.getMessageOrBuilder(); + } else { + if (conventionCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Data source follows OpenTelemetry convention.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder> + internalGetOpenTelemetryFieldBuilder() { + if (openTelemetryBuilder_ == null) { + if (!(conventionCase_ == 4)) { + convention_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .getDefaultInstance(); + } + openTelemetryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_, + getParentForChildren(), + isClean()); + convention_ = null; + } + conventionCase_ = 4; + onChanged(); + return openTelemetryBuilder_; + } + + private java.lang.Object logView_ = ""; + + /** + * + * + *
+       * Optional. Optional log view that will be used to query logs.
+       * If empty, the `_Default` view will be used.
+       * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logView. + */ + public java.lang.String getLogView() { + java.lang.Object ref = logView_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logView_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Optional log view that will be used to query logs.
+       * If empty, the `_Default` view will be used.
+       * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for logView. + */ + public com.google.protobuf.ByteString getLogViewBytes() { + java.lang.Object ref = logView_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logView_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Optional log view that will be used to query logs.
+       * If empty, the `_Default` view will be used.
+       * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The logView to set. + * @return This builder for chaining. + */ + public Builder setLogView(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logView_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional log view that will be used to query logs.
+       * If empty, the `_Default` view will be used.
+       * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLogView() { + logView_ = getDefaultInstance().getLogView(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional log view that will be used to query logs.
+       * If empty, the `_Default` view will be used.
+       * 
+ * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for logView to set. + * @return This builder for chaining. + */ + public Builder setLogViewBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logView_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object traceView_ = ""; + + /** + * + * + *
+       * Optional. Optional trace view that will be used to query traces.
+       * If empty, the `_Default` view will be used.
+       *
+       * NOTE: This field is not supported yet and will be ignored if set.
+       * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The traceView. + */ + public java.lang.String getTraceView() { + java.lang.Object ref = traceView_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + traceView_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Optional trace view that will be used to query traces.
+       * If empty, the `_Default` view will be used.
+       *
+       * NOTE: This field is not supported yet and will be ignored if set.
+       * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for traceView. + */ + public com.google.protobuf.ByteString getTraceViewBytes() { + java.lang.Object ref = traceView_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + traceView_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Optional trace view that will be used to query traces.
+       * If empty, the `_Default` view will be used.
+       *
+       * NOTE: This field is not supported yet and will be ignored if set.
+       * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The traceView to set. + * @return This builder for chaining. + */ + public Builder setTraceView(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + traceView_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional trace view that will be used to query traces.
+       * If empty, the `_Default` view will be used.
+       *
+       * NOTE: This field is not supported yet and will be ignored if set.
+       * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTraceView() { + traceView_ = getDefaultInstance().getTraceView(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional trace view that will be used to query traces.
+       * If empty, the `_Default` view will be used.
+       *
+       * NOTE: This field is not supported yet and will be ignored if set.
+       * 
+ * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for traceView to set. + * @return This builder for chaining. + */ + public Builder setTraceViewBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + traceView_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudObservability parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Random sampling method.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return Whether the randomSampling field is set. + */ + boolean hasRandomSampling(); + + /** + * + * + *
+     * Random sampling method.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return The randomSampling. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling getRandomSampling(); + + /** + * + * + *
+     * Random sampling method.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder + getRandomSamplingOrBuilder(); + + /** + * + * + *
+     * Optional. The maximum number of evaluations to perform per run.
+     * If set to 0, the number is unbounded.
+     * 
+ * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEvaluatedSamplesPerRun. + */ + long getMaxEvaluatedSamplesPerRun(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.SamplingMethodCase + getSamplingMethodCase(); + } + + /** + * + * + *
+   * Configuration for sampling behavior of the OnlineEvaluator.
+   * The OnlineEvaluator runs at a fixed interval of 10 minutes.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config} + */ + public static final class Config extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + ConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Config"); + } + + // Use Config.newBuilder() to construct. + private Config(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Config() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder.class); + } + + public interface RandomSamplingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The percentage of traces to sample for evaluation.
+       * Must be an integer between `1` and `100`.
+       * 
+ * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The percentage. + */ + int getPercentage(); + } + + /** + * + * + *
+     * Configuration for random sampling.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling} + */ + public static final class RandomSampling extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + RandomSamplingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RandomSampling"); + } + + // Use RandomSampling.newBuilder() to construct. + private RandomSampling(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RandomSampling() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder + .class); + } + + public static final int PERCENTAGE_FIELD_NUMBER = 1; + private int percentage_ = 0; + + /** + * + * + *
+       * Required. The percentage of traces to sample for evaluation.
+       * Must be an integer between `1` and `100`.
+       * 
+ * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The percentage. + */ + @java.lang.Override + public int getPercentage() { + return percentage_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (percentage_ != 0) { + output.writeInt32(1, percentage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (percentage_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, percentage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) obj; + + if (getPercentage() != other.getPercentage()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getPercentage(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Configuration for random sampling.
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + percentage_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.percentage_ = percentage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance()) return this; + if (other.getPercentage() != 0) { + setPercentage(other.getPercentage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + percentage_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int percentage_; + + /** + * + * + *
+         * Required. The percentage of traces to sample for evaluation.
+         * Must be an integer between `1` and `100`.
+         * 
+ * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The percentage. + */ + @java.lang.Override + public int getPercentage() { + return percentage_; + } + + /** + * + * + *
+         * Required. The percentage of traces to sample for evaluation.
+         * Must be an integer between `1` and `100`.
+         * 
+ * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The percentage to set. + * @return This builder for chaining. + */ + public Builder setPercentage(int value) { + + percentage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The percentage of traces to sample for evaluation.
+         * Must be an integer between `1` and `100`.
+         * 
+ * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPercentage() { + bitField0_ = (bitField0_ & ~0x00000001); + percentage_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RandomSampling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int samplingMethodCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object samplingMethod_; + + public enum SamplingMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RANDOM_SAMPLING(2), + SAMPLINGMETHOD_NOT_SET(0); + private final int value; + + private SamplingMethodCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SamplingMethodCase valueOf(int value) { + return forNumber(value); + } + + public static SamplingMethodCase forNumber(int value) { + switch (value) { + case 2: + return RANDOM_SAMPLING; + case 0: + return SAMPLINGMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SamplingMethodCase getSamplingMethodCase() { + return SamplingMethodCase.forNumber(samplingMethodCase_); + } + + public static final int RANDOM_SAMPLING_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Random sampling method.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return Whether the randomSampling field is set. + */ + @java.lang.Override + public boolean hasRandomSampling() { + return samplingMethodCase_ == 2; + } + + /** + * + * + *
+     * Random sampling method.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return The randomSampling. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getRandomSampling() { + if (samplingMethodCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + + /** + * + * + *
+     * Random sampling method.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder + getRandomSamplingOrBuilder() { + if (samplingMethodCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + + public static final int MAX_EVALUATED_SAMPLES_PER_RUN_FIELD_NUMBER = 1; + private long maxEvaluatedSamplesPerRun_ = 0L; + + /** + * + * + *
+     * Optional. The maximum number of evaluations to perform per run.
+     * If set to 0, the number is unbounded.
+     * 
+ * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEvaluatedSamplesPerRun. + */ + @java.lang.Override + public long getMaxEvaluatedSamplesPerRun() { + return maxEvaluatedSamplesPerRun_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (maxEvaluatedSamplesPerRun_ != 0L) { + output.writeInt64(1, maxEvaluatedSamplesPerRun_); + } + if (samplingMethodCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxEvaluatedSamplesPerRun_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxEvaluatedSamplesPerRun_); + } + if (samplingMethodCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) obj; + + if (getMaxEvaluatedSamplesPerRun() != other.getMaxEvaluatedSamplesPerRun()) return false; + if (!getSamplingMethodCase().equals(other.getSamplingMethodCase())) return false; + switch (samplingMethodCase_) { + case 2: + if (!getRandomSampling().equals(other.getRandomSampling())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_EVALUATED_SAMPLES_PER_RUN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxEvaluatedSamplesPerRun()); + switch (samplingMethodCase_) { + case 2: + hash = (37 * hash) + RANDOM_SAMPLING_FIELD_NUMBER; + hash = (53 * hash) + getRandomSampling().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for sampling behavior of the OnlineEvaluator.
+     * The OnlineEvaluator runs at a fixed interval of 10 minutes.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (randomSamplingBuilder_ != null) { + randomSamplingBuilder_.clear(); + } + maxEvaluatedSamplesPerRun_ = 0L; + samplingMethodCase_ = 0; + samplingMethod_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxEvaluatedSamplesPerRun_ = maxEvaluatedSamplesPerRun_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config result) { + result.samplingMethodCase_ = samplingMethodCase_; + result.samplingMethod_ = this.samplingMethod_; + if (samplingMethodCase_ == 2 && randomSamplingBuilder_ != null) { + result.samplingMethod_ = randomSamplingBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance()) + return this; + if (other.getMaxEvaluatedSamplesPerRun() != 0L) { + setMaxEvaluatedSamplesPerRun(other.getMaxEvaluatedSamplesPerRun()); + } + switch (other.getSamplingMethodCase()) { + case RANDOM_SAMPLING: + { + mergeRandomSampling(other.getRandomSampling()); + break; + } + case SAMPLINGMETHOD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxEvaluatedSamplesPerRun_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetRandomSamplingFieldBuilder().getBuilder(), extensionRegistry); + samplingMethodCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int samplingMethodCase_ = 0; + private java.lang.Object samplingMethod_; + + public SamplingMethodCase getSamplingMethodCase() { + return SamplingMethodCase.forNumber(samplingMethodCase_); + } + + public Builder clearSamplingMethod() { + samplingMethodCase_ = 0; + samplingMethod_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder> + randomSamplingBuilder_; + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return Whether the randomSampling field is set. + */ + @java.lang.Override + public boolean hasRandomSampling() { + return samplingMethodCase_ == 2; + } + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return The randomSampling. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getRandomSampling() { + if (randomSamplingBuilder_ == null) { + if (samplingMethodCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } else { + if (samplingMethodCase_ == 2) { + return randomSamplingBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public Builder setRandomSampling( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling value) { + if (randomSamplingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + samplingMethod_ = value; + onChanged(); + } else { + randomSamplingBuilder_.setMessage(value); + } + samplingMethodCase_ = 2; + return this; + } + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public Builder setRandomSampling( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder + builderForValue) { + if (randomSamplingBuilder_ == null) { + samplingMethod_ = builderForValue.build(); + onChanged(); + } else { + randomSamplingBuilder_.setMessage(builderForValue.build()); + } + samplingMethodCase_ = 2; + return this; + } + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public Builder mergeRandomSampling( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling value) { + if (randomSamplingBuilder_ == null) { + if (samplingMethodCase_ == 2 + && samplingMethod_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance()) { + samplingMethod_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + samplingMethod_ = value; + } + onChanged(); + } else { + if (samplingMethodCase_ == 2) { + randomSamplingBuilder_.mergeFrom(value); + } else { + randomSamplingBuilder_.setMessage(value); + } + } + samplingMethodCase_ = 2; + return this; + } + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public Builder clearRandomSampling() { + if (randomSamplingBuilder_ == null) { + if (samplingMethodCase_ == 2) { + samplingMethodCase_ = 0; + samplingMethod_ = null; + onChanged(); + } + } else { + if (samplingMethodCase_ == 2) { + samplingMethodCase_ = 0; + samplingMethod_ = null; + } + randomSamplingBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder + getRandomSamplingBuilder() { + return internalGetRandomSamplingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder + getRandomSamplingOrBuilder() { + if ((samplingMethodCase_ == 2) && (randomSamplingBuilder_ != null)) { + return randomSamplingBuilder_.getMessageOrBuilder(); + } else { + if (samplingMethodCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Random sampling method.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder> + internalGetRandomSamplingFieldBuilder() { + if (randomSamplingBuilder_ == null) { + if (!(samplingMethodCase_ == 2)) { + samplingMethod_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + randomSamplingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config + .RandomSamplingOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_, + getParentForChildren(), + isClean()); + samplingMethod_ = null; + } + samplingMethodCase_ = 2; + onChanged(); + return randomSamplingBuilder_; + } + + private long maxEvaluatedSamplesPerRun_; + + /** + * + * + *
+       * Optional. The maximum number of evaluations to perform per run.
+       * If set to 0, the number is unbounded.
+       * 
+ * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEvaluatedSamplesPerRun. + */ + @java.lang.Override + public long getMaxEvaluatedSamplesPerRun() { + return maxEvaluatedSamplesPerRun_; + } + + /** + * + * + *
+       * Optional. The maximum number of evaluations to perform per run.
+       * If set to 0, the number is unbounded.
+       * 
+ * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxEvaluatedSamplesPerRun to set. + * @return This builder for chaining. + */ + public Builder setMaxEvaluatedSamplesPerRun(long value) { + + maxEvaluatedSamplesPerRun_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The maximum number of evaluations to perform per run.
+       * If set to 0, the number is unbounded.
+       * 
+ * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxEvaluatedSamplesPerRun() { + bitField0_ = (bitField0_ & ~0x00000002); + maxEvaluatedSamplesPerRun_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Config parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StateDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Human-readable message describing the state of the
+     * OnlineEvaluator.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+     * Output only. Human-readable message describing the state of the
+     * OnlineEvaluator.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + } + + /** + * + * + *
+   * Contains additional information about the state of the OnlineEvaluator.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails} + */ + public static final class StateDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + StateDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StateDetails"); + } + + // Use StateDetails.newBuilder() to construct. + private StateDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StateDetails() { + message_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+     * Output only. Human-readable message describing the state of the
+     * OnlineEvaluator.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. Human-readable message describing the state of the
+     * OnlineEvaluator.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Contains additional information about the state of the OnlineEvaluator.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + .getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object message_ = ""; + + /** + * + * + *
+       * Output only. Human-readable message describing the state of the
+       * OnlineEvaluator.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. Human-readable message describing the state of the
+       * OnlineEvaluator.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. Human-readable message describing the state of the
+       * OnlineEvaluator.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Human-readable message describing the state of the
+       * OnlineEvaluator.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Human-readable message describing the state of the
+       * OnlineEvaluator.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int dataSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object dataSource_; + + public enum DataSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_OBSERVABILITY(4), + DATASOURCE_NOT_SET(0); + private final int value; + + private DataSourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataSourceCase valueOf(int value) { + return forNumber(value); + } + + public static DataSourceCase forNumber(int value) { + switch (value) { + case 4: + return CLOUD_OBSERVABILITY; + case 0: + return DATASOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataSourceCase getDataSourceCase() { + return DataSourceCase.forNumber(dataSourceCase_); + } + + public static final int CLOUD_OBSERVABILITY_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Data source for the OnlineEvaluator, based on GCP Observability stack
+   * (Cloud Trace & Cloud Logging).
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return Whether the cloudObservability field is set. + */ + @java.lang.Override + public boolean hasCloudObservability() { + return dataSourceCase_ == 4; + } + + /** + * + * + *
+   * Data source for the OnlineEvaluator, based on GCP Observability stack
+   * (Cloud Trace & Cloud Logging).
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return The cloudObservability. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getCloudObservability() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + + /** + * + * + *
+   * Data source for the OnlineEvaluator, based on GCP Observability stack
+   * (Cloud Trace & Cloud Logging).
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder + getCloudObservabilityOrBuilder() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name of the OnlineEvaluator.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. The resource name of the OnlineEvaluator.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_RESOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentResource_ = ""; + + /** + * + * + *
+   * Required. Immutable. The name of the agent that the OnlineEvaluator
+   * evaluates periodically. This value is used to filter the traces with a
+   * matching cloud.resource_id and link the evaluation results with relevant
+   * dashboards/UIs.
+   *
+   * This field is immutable. Once set, it cannot be changed.
+   * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The agentResource. + */ + @java.lang.Override + public java.lang.String getAgentResource() { + java.lang.Object ref = agentResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentResource_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. The name of the agent that the OnlineEvaluator
+   * evaluates periodically. This value is used to filter the traces with a
+   * matching cloud.resource_id and link the evaluation results with relevant
+   * dashboards/UIs.
+   *
+   * This field is immutable. Once set, it cannot be changed.
+   * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for agentResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentResourceBytes() { + java.lang.Object ref = agentResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRIC_SOURCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List metricSources_; + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getMetricSourcesList() { + return metricSources_; + } + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getMetricSourcesOrBuilderList() { + return metricSources_; + } + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getMetricSourcesCount() { + return metricSources_.size(); + } + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index) { + return metricSources_.get(index); + } + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder( + int index) { + return metricSources_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config_; + + /** + * + * + *
+   * Required. Configuration for the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Configuration for the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getConfig() { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance() + : config_; + } + + /** + * + * + *
+   * Required. Configuration for the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder getConfigOrBuilder() { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance() + : config_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State getState() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State result = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.forNumber(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.UNRECOGNIZED + : result; + } + + public static final int STATE_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + stateDetails_; + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getStateDetailsList() { + return stateDetails_; + } + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + getStateDetailsOrBuilderList() { + return stateDetails_; + } + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getStateDetailsCount() { + return stateDetails_.size(); + } + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails getStateDetails( + int index) { + return stateDetails_.get(index); + } + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder + getStateDetailsOrBuilder(int index) { + return stateDetails_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. Human-readable name for the `OnlineEvaluator`.
+   *
+   * The name doesn't have to be unique.
+   *
+   * The name can consist of any UTF-8 characters. The maximum length is `63`
+   * characters. If the display name exceeds max characters, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Human-readable name for the `OnlineEvaluator`.
+   *
+   * The name doesn't have to be unique.
+   *
+   * The name can consist of any UTF-8 characters. The maximum length is `63`
+   * characters. If the display name exceeds max characters, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentResource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agentResource_); + } + for (int i = 0; i < metricSources_.size(); i++) { + output.writeMessage(3, metricSources_.get(i)); + } + if (dataSourceCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) dataSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getConfig()); + } + if (state_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, displayName_); + } + for (int i = 0; i < stateDetails_.size(); i++) { + output.writeMessage(10, stateDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentResource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agentResource_); + } + for (int i = 0; i < metricSources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metricSources_.get(i)); + } + if (dataSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) dataSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfig()); + } + if (state_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, displayName_); + } + for (int i = 0; i < stateDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, stateDetails_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAgentResource().equals(other.getAgentResource())) return false; + if (!getMetricSourcesList().equals(other.getMetricSourcesList())) return false; + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (state_ != other.state_) return false; + if (!getStateDetailsList().equals(other.getStateDetailsList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDataSourceCase().equals(other.getDataSourceCase())) return false; + switch (dataSourceCase_) { + case 4: + if (!getCloudObservability().equals(other.getCloudObservability())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AGENT_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getAgentResource().hashCode(); + if (getMetricSourcesCount() > 0) { + hash = (37 * hash) + METRIC_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getMetricSourcesList().hashCode(); + } + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getStateDetailsCount() > 0) { + hash = (37 * hash) + STATE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getStateDetailsList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + switch (dataSourceCase_) { + case 4: + hash = (37 * hash) + CLOUD_OBSERVABILITY_FIELD_NUMBER; + hash = (53 * hash) + getCloudObservability().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * An OnlineEvaluator contains the configuration for an Online Evaluation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetricSourcesFieldBuilder(); + internalGetConfigFieldBuilder(); + internalGetStateDetailsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudObservabilityBuilder_ != null) { + cloudObservabilityBuilder_.clear(); + } + name_ = ""; + agentResource_ = ""; + if (metricSourcesBuilder_ == null) { + metricSources_ = java.util.Collections.emptyList(); + } else { + metricSources_ = null; + metricSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + state_ = 0; + if (stateDetailsBuilder_ == null) { + stateDetails_ = java.util.Collections.emptyList(); + } else { + stateDetails_ = null; + stateDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + displayName_ = ""; + dataSourceCase_ = 0; + dataSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result) { + if (metricSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + metricSources_ = java.util.Collections.unmodifiableList(metricSources_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.metricSources_ = metricSources_; + } else { + result.metricSources_ = metricSourcesBuilder_.build(); + } + if (stateDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + stateDetails_ = java.util.Collections.unmodifiableList(stateDetails_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.stateDetails_ = stateDetails_; + } else { + result.stateDetails_ = stateDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agentResource_ = agentResource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.displayName_ = displayName_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result) { + result.dataSourceCase_ = dataSourceCase_; + result.dataSource_ = this.dataSource_; + if (dataSourceCase_ == 4 && cloudObservabilityBuilder_ != null) { + result.dataSource_ = cloudObservabilityBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.OnlineEvaluator) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator other) { + if (other == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAgentResource().isEmpty()) { + agentResource_ = other.agentResource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (metricSourcesBuilder_ == null) { + if (!other.metricSources_.isEmpty()) { + if (metricSources_.isEmpty()) { + metricSources_ = other.metricSources_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMetricSourcesIsMutable(); + metricSources_.addAll(other.metricSources_); + } + onChanged(); + } + } else { + if (!other.metricSources_.isEmpty()) { + if (metricSourcesBuilder_.isEmpty()) { + metricSourcesBuilder_.dispose(); + metricSourcesBuilder_ = null; + metricSources_ = other.metricSources_; + bitField0_ = (bitField0_ & ~0x00000008); + metricSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricSourcesFieldBuilder() + : null; + } else { + metricSourcesBuilder_.addAllMessages(other.metricSources_); + } + } + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (stateDetailsBuilder_ == null) { + if (!other.stateDetails_.isEmpty()) { + if (stateDetails_.isEmpty()) { + stateDetails_ = other.stateDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureStateDetailsIsMutable(); + stateDetails_.addAll(other.stateDetails_); + } + onChanged(); + } + } else { + if (!other.stateDetails_.isEmpty()) { + if (stateDetailsBuilder_.isEmpty()) { + stateDetailsBuilder_.dispose(); + stateDetailsBuilder_ = null; + stateDetails_ = other.stateDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + stateDetailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetStateDetailsFieldBuilder() + : null; + } else { + stateDetailsBuilder_.addAllMessages(other.stateDetails_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000200; + onChanged(); + } + switch (other.getDataSourceCase()) { + case CLOUD_OBSERVABILITY: + { + mergeCloudObservability(other.getCloudObservability()); + break; + } + case DATASOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + agentResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.MetricSource m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetricSource.parser(), + extensionRegistry); + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(m); + } else { + metricSourcesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCloudObservabilityFieldBuilder().getBuilder(), extensionRegistry); + dataSourceCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.parser(), + extensionRegistry); + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.add(m); + } else { + stateDetailsBuilder_.addMessage(m); + } + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int dataSourceCase_ = 0; + private java.lang.Object dataSource_; + + public DataSourceCase getDataSourceCase() { + return DataSourceCase.forNumber(dataSourceCase_); + } + + public Builder clearDataSource() { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder> + cloudObservabilityBuilder_; + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return Whether the cloudObservability field is set. + */ + @java.lang.Override + public boolean hasCloudObservability() { + return dataSourceCase_ == 4; + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return The cloudObservability. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getCloudObservability() { + if (cloudObservabilityBuilder_ == null) { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } else { + if (dataSourceCase_ == 4) { + return cloudObservabilityBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public Builder setCloudObservability( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability value) { + if (cloudObservabilityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + cloudObservabilityBuilder_.setMessage(value); + } + dataSourceCase_ = 4; + return this; + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public Builder setCloudObservability( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder + builderForValue) { + if (cloudObservabilityBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + cloudObservabilityBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 4; + return this; + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public Builder mergeCloudObservability( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability value) { + if (cloudObservabilityBuilder_ == null) { + if (dataSourceCase_ == 4 + && dataSource_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance()) { + dataSource_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 4) { + cloudObservabilityBuilder_.mergeFrom(value); + } else { + cloudObservabilityBuilder_.setMessage(value); + } + } + dataSourceCase_ = 4; + return this; + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public Builder clearCloudObservability() { + if (cloudObservabilityBuilder_ == null) { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + } + cloudObservabilityBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder + getCloudObservabilityBuilder() { + return internalGetCloudObservabilityFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder + getCloudObservabilityOrBuilder() { + if ((dataSourceCase_ == 4) && (cloudObservabilityBuilder_ != null)) { + return cloudObservabilityBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Data source for the OnlineEvaluator, based on GCP Observability stack
+     * (Cloud Trace & Cloud Logging).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder> + internalGetCloudObservabilityFieldBuilder() { + if (cloudObservabilityBuilder_ == null) { + if (!(dataSourceCase_ == 4)) { + dataSource_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + cloudObservabilityBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 4; + onChanged(); + return cloudObservabilityBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the OnlineEvaluator.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. The resource name of the OnlineEvaluator.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. The resource name of the OnlineEvaluator.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name of the OnlineEvaluator.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name of the OnlineEvaluator.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object agentResource_ = ""; + + /** + * + * + *
+     * Required. Immutable. The name of the agent that the OnlineEvaluator
+     * evaluates periodically. This value is used to filter the traces with a
+     * matching cloud.resource_id and link the evaluation results with relevant
+     * dashboards/UIs.
+     *
+     * This field is immutable. Once set, it cannot be changed.
+     * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The agentResource. + */ + public java.lang.String getAgentResource() { + java.lang.Object ref = agentResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The name of the agent that the OnlineEvaluator
+     * evaluates periodically. This value is used to filter the traces with a
+     * matching cloud.resource_id and link the evaluation results with relevant
+     * dashboards/UIs.
+     *
+     * This field is immutable. Once set, it cannot be changed.
+     * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for agentResource. + */ + public com.google.protobuf.ByteString getAgentResourceBytes() { + java.lang.Object ref = agentResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The name of the agent that the OnlineEvaluator
+     * evaluates periodically. This value is used to filter the traces with a
+     * matching cloud.resource_id and link the evaluation results with relevant
+     * dashboards/UIs.
+     *
+     * This field is immutable. Once set, it cannot be changed.
+     * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The agentResource to set. + * @return This builder for chaining. + */ + public Builder setAgentResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentResource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The name of the agent that the OnlineEvaluator
+     * evaluates periodically. This value is used to filter the traces with a
+     * matching cloud.resource_id and link the evaluation results with relevant
+     * dashboards/UIs.
+     *
+     * This field is immutable. Once set, it cannot be changed.
+     * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearAgentResource() { + agentResource_ = getDefaultInstance().getAgentResource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The name of the agent that the OnlineEvaluator
+     * evaluates periodically. This value is used to filter the traces with a
+     * matching cloud.resource_id and link the evaluation results with relevant
+     * dashboards/UIs.
+     *
+     * This field is immutable. Once set, it cannot be changed.
+     * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for agentResource to set. + * @return This builder for chaining. + */ + public Builder setAgentResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentResource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List metricSources_ = + java.util.Collections.emptyList(); + + private void ensureMetricSourcesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + metricSources_ = + new java.util.ArrayList( + metricSources_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder> + metricSourcesBuilder_; + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getMetricSourcesList() { + if (metricSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricSources_); + } else { + return metricSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getMetricSourcesCount() { + if (metricSourcesBuilder_ == null) { + return metricSources_.size(); + } else { + return metricSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index) { + if (metricSourcesBuilder_ == null) { + return metricSources_.get(index); + } else { + return metricSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.set(index, value); + onChanged(); + } else { + metricSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.set(index, builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetricSources(com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.add(value); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.add(index, value); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetricSources( + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(index, builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllMetricSources( + java.lang.Iterable values) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricSources_); + onChanged(); + } else { + metricSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSources() { + if (metricSourcesBuilder_ == null) { + metricSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + metricSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeMetricSources(int index) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.remove(index); + onChanged(); + } else { + metricSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder getMetricSourcesBuilder( + int index) { + return internalGetMetricSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder( + int index) { + if (metricSourcesBuilder_ == null) { + return metricSources_.get(index); + } else { + return metricSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMetricSourcesOrBuilderList() { + if (metricSourcesBuilder_ != null) { + return metricSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricSources_); + } + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder addMetricSourcesBuilder() { + return internalGetMetricSourcesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder addMetricSourcesBuilder( + int index) { + return internalGetMetricSourcesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of metric sources to be used for evaluating samples.
+     * At least one MetricSource must be provided.
+     * Right now, only predefined metrics and registered metrics are supported.
+     *
+     * Every registered metric must have `display_name` (or `title`) and
+     * `score_range` defined. Otherwise, the evaluations will fail.
+     *
+     * The maximum number of `metric_sources` is 25.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMetricSourcesBuilderList() { + return internalGetMetricSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder> + internalGetMetricSourcesFieldBuilder() { + if (metricSourcesBuilder_ == null) { + metricSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder>( + metricSources_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + metricSources_ = null; + } + return metricSourcesBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder> + configBuilder_; + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && config_ != null + && config_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config + .getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder getConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance() + : config_; + } + } + + /** + * + * + *
+     * Required. Configuration for the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder> + internalGetConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State getState() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State result = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.forNumber(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the OnlineEvaluator.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List + stateDetails_ = java.util.Collections.emptyList(); + + private void ensureStateDetailsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + stateDetails_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails>(stateDetails_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + stateDetailsBuilder_; + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStateDetailsList() { + if (stateDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stateDetails_); + } else { + return stateDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getStateDetailsCount() { + if (stateDetailsBuilder_ == null) { + return stateDetails_.size(); + } else { + return stateDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails getStateDetails( + int index) { + if (stateDetailsBuilder_ == null) { + return stateDetails_.get(index); + } else { + return stateDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateDetails( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails value) { + if (stateDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateDetailsIsMutable(); + stateDetails_.set(index, value); + onChanged(); + } else { + stateDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateDetails( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder builderForValue) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + stateDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateDetails( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails value) { + if (stateDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateDetailsIsMutable(); + stateDetails_.add(value); + onChanged(); + } else { + stateDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateDetails( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails value) { + if (stateDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateDetailsIsMutable(); + stateDetails_.add(index, value); + onChanged(); + } else { + stateDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateDetails( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder builderForValue) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.add(builderForValue.build()); + onChanged(); + } else { + stateDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateDetails( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder builderForValue) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + stateDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllStateDetails( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails> + values) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateDetails_); + onChanged(); + } else { + stateDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStateDetails() { + if (stateDetailsBuilder_ == null) { + stateDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + stateDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeStateDetails(int index) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.remove(index); + onChanged(); + } else { + stateDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder + getStateDetailsBuilder(int index) { + return internalGetStateDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder + getStateDetailsOrBuilder(int index) { + if (stateDetailsBuilder_ == null) { + return stateDetails_.get(index); + } else { + return stateDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + getStateDetailsOrBuilderList() { + if (stateDetailsBuilder_ != null) { + return stateDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stateDetails_); + } + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder + addStateDetailsBuilder() { + return internalGetStateDetailsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + .getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder + addStateDetailsBuilder(int index) { + return internalGetStateDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + .getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Contains additional information about the state of the
+     * OnlineEvaluator. This is used to provide more details in the event of a
+     * failure.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStateDetailsBuilderList() { + return internalGetStateDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + internalGetStateDetailsFieldBuilder() { + if (stateDetailsBuilder_ == null) { + stateDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder>( + stateDetails_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + stateDetails_ = null; + } + return stateDetailsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp when the OnlineEvaluator was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. Human-readable name for the `OnlineEvaluator`.
+     *
+     * The name doesn't have to be unique.
+     *
+     * The name can consist of any UTF-8 characters. The maximum length is `63`
+     * characters. If the display name exceeds max characters, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Human-readable name for the `OnlineEvaluator`.
+     *
+     * The name doesn't have to be unique.
+     *
+     * The name can consist of any UTF-8 characters. The maximum length is `63`
+     * characters. If the display name exceeds max characters, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Human-readable name for the `OnlineEvaluator`.
+     *
+     * The name doesn't have to be unique.
+     *
+     * The name can consist of any UTF-8 characters. The maximum length is `63`
+     * characters. If the display name exceeds max characters, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Human-readable name for the `OnlineEvaluator`.
+     *
+     * The name doesn't have to be unique.
+     *
+     * The name can consist of any UTF-8 characters. The maximum length is `63`
+     * characters. If the display name exceeds max characters, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Human-readable name for the `OnlineEvaluator`.
+     *
+     * The name doesn't have to be unique.
+     *
+     * The name can consist of any UTF-8 characters. The maximum length is `63`
+     * characters. If the display name exceeds max characters, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnlineEvaluator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java new file mode 100644 index 000000000000..9d9bd02400ae --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class OnlineEvaluatorName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ONLINE_EVALUATOR = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/onlineEvaluators/{online_evaluator}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String onlineEvaluator; + + @Deprecated + protected OnlineEvaluatorName() { + project = null; + location = null; + onlineEvaluator = null; + } + + private OnlineEvaluatorName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + onlineEvaluator = Preconditions.checkNotNull(builder.getOnlineEvaluator()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOnlineEvaluator() { + return onlineEvaluator; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OnlineEvaluatorName of(String project, String location, String onlineEvaluator) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOnlineEvaluator(onlineEvaluator) + .build(); + } + + public static String format(String project, String location, String onlineEvaluator) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOnlineEvaluator(onlineEvaluator) + .build() + .toString(); + } + + public static OnlineEvaluatorName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ONLINE_EVALUATOR.validatedMatch( + formattedString, "OnlineEvaluatorName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("online_evaluator")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (OnlineEvaluatorName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ONLINE_EVALUATOR.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (onlineEvaluator != null) { + fieldMapBuilder.put("online_evaluator", onlineEvaluator); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ONLINE_EVALUATOR.instantiate( + "project", project, "location", location, "online_evaluator", onlineEvaluator); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OnlineEvaluatorName that = ((OnlineEvaluatorName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.onlineEvaluator, that.onlineEvaluator); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(onlineEvaluator); + return h; + } + + /** Builder for projects/{project}/locations/{location}/onlineEvaluators/{online_evaluator}. */ + public static class Builder { + private String project; + private String location; + private String onlineEvaluator; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOnlineEvaluator() { + return onlineEvaluator; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOnlineEvaluator(String onlineEvaluator) { + this.onlineEvaluator = onlineEvaluator; + return this; + } + + private Builder(OnlineEvaluatorName onlineEvaluatorName) { + this.project = onlineEvaluatorName.project; + this.location = onlineEvaluatorName.location; + this.onlineEvaluator = onlineEvaluatorName.onlineEvaluator; + } + + public OnlineEvaluatorName build() { + return new OnlineEvaluatorName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorOrBuilder.java new file mode 100644 index 000000000000..e783b6eefcff --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorOrBuilder.java @@ -0,0 +1,516 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface OnlineEvaluatorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Data source for the OnlineEvaluator, based on GCP Observability stack
+   * (Cloud Trace & Cloud Logging).
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return Whether the cloudObservability field is set. + */ + boolean hasCloudObservability(); + + /** + * + * + *
+   * Data source for the OnlineEvaluator, based on GCP Observability stack
+   * (Cloud Trace & Cloud Logging).
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return The cloudObservability. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability getCloudObservability(); + + /** + * + * + *
+   * Data source for the OnlineEvaluator, based on GCP Observability stack
+   * (Cloud Trace & Cloud Logging).
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder + getCloudObservabilityOrBuilder(); + + /** + * + * + *
+   * Identifier. The resource name of the OnlineEvaluator.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the OnlineEvaluator.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. The name of the agent that the OnlineEvaluator
+   * evaluates periodically. This value is used to filter the traces with a
+   * matching cloud.resource_id and link the evaluation results with relevant
+   * dashboards/UIs.
+   *
+   * This field is immutable. Once set, it cannot be changed.
+   * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The agentResource. + */ + java.lang.String getAgentResource(); + + /** + * + * + *
+   * Required. Immutable. The name of the agent that the OnlineEvaluator
+   * evaluates periodically. This value is used to filter the traces with a
+   * matching cloud.resource_id and link the evaluation results with relevant
+   * dashboards/UIs.
+   *
+   * This field is immutable. Once set, it cannot be changed.
+   * 
+ * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for agentResource. + */ + com.google.protobuf.ByteString getAgentResourceBytes(); + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getMetricSourcesList(); + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index); + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getMetricSourcesCount(); + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getMetricSourcesOrBuilderList(); + + /** + * + * + *
+   * Required. A list of metric sources to be used for evaluating samples.
+   * At least one MetricSource must be provided.
+   * Right now, only predefined metrics and registered metrics are supported.
+   *
+   * Every registered metric must have `display_name` (or `title`) and
+   * `score_range` defined. Otherwise, the evaluations will fail.
+   *
+   * The maximum number of `metric_sources` is 25.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder(int index); + + /** + * + * + *
+   * Required. Configuration for the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
+   * Required. Configuration for the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getConfig(); + + /** + * + * + *
+   * Required. Configuration for the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Output only. The state of the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the OnlineEvaluator.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State getState(); + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getStateDetailsList(); + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails getStateDetails(int index); + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getStateDetailsCount(); + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + getStateDetailsOrBuilderList(); + + /** + * + * + *
+   * Output only. Contains additional information about the state of the
+   * OnlineEvaluator. This is used to provide more details in the event of a
+   * failure.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder + getStateDetailsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the OnlineEvaluator was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Human-readable name for the `OnlineEvaluator`.
+   *
+   * The name doesn't have to be unique.
+   *
+   * The name can consist of any UTF-8 characters. The maximum length is `63`
+   * characters. If the display name exceeds max characters, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. Human-readable name for the `OnlineEvaluator`.
+   *
+   * The name doesn't have to be unique.
+   *
+   * The name can consist of any UTF-8 characters. The maximum length is `63`
+   * characters. If the display name exceeds max characters, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.DataSourceCase getDataSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorProto.java new file mode 100644 index 000000000000..0970a1e95632 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorProto.java @@ -0,0 +1,279 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public final class OnlineEvaluatorProto extends com.google.protobuf.GeneratedFile { + private OnlineEvaluatorProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OnlineEvaluatorProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "6google/cloud/aiplatform/v1beta1/online_evaluator.proto\022\037google.cloud.aiplatfor" + + "m.v1beta1\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\0328google/cl" + + "oud/aiplatform/v1beta1/evaluation_servic" + + "e.proto\032\037google/protobuf/timestamp.proto\"\232\021\n" + + "\017OnlineEvaluator\022b\n" + + "\023cloud_observability\030\004 \001(\0132C.google.cloud.aiplatform.v1be" + + "ta1.OnlineEvaluator.CloudObservabilityH\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\016agent_resource\030\002 \001(\tB\006\340A\002\340A\005\022J\n" + + "\016metric_sources\030\003 \003(\0132-.go" + + "ogle.cloud.aiplatform.v1beta1.MetricSourceB\003\340A\002\022L\n" + + "\006config\030\005 \001(\01327.google.cloud.a" + + "iplatform.v1beta1.OnlineEvaluator.ConfigB\003\340A\002\022J\n" + + "\005state\030\006 \001(\01626.google.cloud.aipl" + + "atform.v1beta1.OnlineEvaluator.StateB\003\340A\003\022Y\n\r" + + "state_details\030\n" + + " \003(\0132=.google.cloud." + + "aiplatform.v1beta1.OnlineEvaluator.StateDetailsB\003\340A\003\0224\n" + + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" + + "\014display_name\030\t \001(\tB\003\340A\001\032\244\010\n" + + "\022CloudObservability\022e\n" + + "\013trace_scope\030\003 \001(\0132N.google" + + ".cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScopeH\000\022k\n" + + "\016open_telemetry\030\004 \001(\0132Q.google.cloud.aiplatf" + + "orm.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetryH\001\022\025\n" + + "\010log_view\030\001 \001(\tB\003\340A\001\022\027\n\n" + + "trace_view\030\002 \001(\tB\003\340A\001\032\310\002\n" + + "\020NumericPredicate\022\211\001\n" + + "\023comparison_operator\030\001 \001(\0162g.google.cloud.aiplatform.v1beta1.Onli" + + "neEvaluator.CloudObservability.NumericPredicate.ComparisonOperatorB\003\340A\002\022\022\n" + + "\005value\030\002 \001(\002B\003\340A\002\"\223\001\n" + + "\022ComparisonOperator\022#\n" + + "\037COMPARISON_OPERATOR_UNSPECIFIED\020\000\022\010\n" + + "\004LESS\020\001\022\021\n\r" + + "LESS_OR_EQUAL\020\002\022\t\n" + + "\005EQUAL\020\003\022\r\n" + + "\tNOT_EQUAL\020\004\022\024\n" + + "\020GREATER_OR_EQUAL\020\005\022\013\n" + + "\007GREATER\020\006\032\363\002\n\n" + + "TraceScope\022m\n" + + "\006filter\030\001 \003(\0132X.google.cloud.aiplatform.v1beta1.OnlineEvaluat" + + "or.CloudObservability.TraceScope.PredicateB\003\340A\001\032\365\001\n" + + "\tPredicate\022h\n" + + "\010duration\030\001 \001(\0132T.google.cloud.aiplatform.v1beta1.Online" + + "Evaluator.CloudObservability.NumericPredicateH\000\022q\n" + + "\021total_token_usage\030\002 \001(\0132T.google.cloud.aiplatform.v1beta1.OnlineEvalu" + + "ator.CloudObservability.NumericPredicateH\000B\013\n" + + "\tpredicate\032-\n\r" + + "OpenTelemetry\022\034\n" + + "\017semconv_version\030\001 \001(\tB\003\340A\002B\014\n\n" + + "eval_scopeB\014\n\n" + + "convention\032\325\001\n" + + "\006Config\022a\n" + + "\017random_sampling\030\002 \001(\0132F.google.cloud.aiplatform.v1beta1" + + ".OnlineEvaluator.Config.RandomSamplingH\000\022*\n" + + "\035max_evaluated_samples_per_run\030\001 \001(\003B\003\340A\001\032)\n" + + "\016RandomSampling\022\027\n\n" + + "percentage\030\001 \001(\005B\003\340A\002B\021\n" + + "\017sampling_method\032$\n" + + "\014StateDetails\022\024\n" + + "\007message\030\001 \001(\tB\003\340A\003\"R\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\r\n" + + "\tSUSPENDED\020\002\022\n\n" + + "\006FAILED\020\003\022\013\n" + + "\007WARNING\020\004:\237\001\352A\233\001\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\022K" + + "projects/{project}/locations/{location}/" + + "onlineEvaluators/{online_evaluator}*\020onlineEvaluators2\017onlineEvaluatorB\r\n" + + "\013data_sourceB\353\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\024OnlineEvaluatorProtoP\001ZCcloud.goo" + + "gle.com/go/aiplatform/apiv1beta1/aiplatf" + + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor, + new java.lang.String[] { + "CloudObservability", + "Name", + "AgentResource", + "MetricSources", + "Config", + "State", + "StateDetails", + "CreateTime", + "UpdateTime", + "DisplayName", + "DataSource", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor.getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor, + new java.lang.String[] { + "TraceScope", "OpenTelemetry", "LogView", "TraceView", "EvalScope", "Convention", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor + .getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor, + new java.lang.String[] { + "ComparisonOperator", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor + .getNestedType(1); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor, + new java.lang.String[] { + "Filter", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor + .getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor, + new java.lang.String[] { + "Duration", "TotalTokenUsage", "Predicate", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor + .getNestedType(2); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor, + new java.lang.String[] { + "SemconvVersion", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor.getNestedType(1); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor, + new java.lang.String[] { + "RandomSampling", "MaxEvaluatedSamplesPerRun", "SamplingMethod", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor + .getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor, + new java.lang.String[] { + "Percentage", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor.getNestedType(2); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor, + new java.lang.String[] { + "Message", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceProto.java new file mode 100644 index 000000000000..11ef6aa7419e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceProto.java @@ -0,0 +1,344 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public final class OnlineEvaluatorServiceProto extends com.google.protobuf.GeneratedFile { + private OnlineEvaluatorServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OnlineEvaluatorServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ">google/cloud/aiplatform/v1beta1/online_evaluator_service.proto\022\037google.cloud.a" + + "iplatform.v1beta1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0326google/cloud/aiplatform/v1beta1/online_evaluator.proto\032/google/clo" + + "ud/aiplatform/v1beta1/operation.proto\032#g" + + "oogle/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\"\252\001\n" + + "\034CreateOnlineEvaluatorRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022O\n" + + "\020online_evaluator\030\002" + + " \001(\01320.google.cloud.aiplatform.v1beta1.OnlineEvaluatorB\003\340A\002\"}\n" + + "&CreateOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\\\n" + + "\031GetOnlineEvaluatorRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\"\245\001\n" + + "\034UpdateOnlineEvaluatorRequest\022O\n" + + "\020online_evaluator\030\001 \001(\01320.google." + + "cloud.aiplatform.v1beta1.OnlineEvaluatorB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"}\n" + + "&UpdateOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"_\n" + + "\034DeleteOnlineEvaluatorRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\"}\n" + + "&DeleteOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001 \001(\01329.google" + + ".cloud.aiplatform.v1beta1.GenericOperationMetadata\"\275\001\n" + + "\033ListOnlineEvaluatorsRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)aiplatform.googleapis.com/OnlineEvaluator\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\204\001\n" + + "\034ListOnlineEvaluatorsResponse\022K\n" + + "\021online_evaluators\030\001" + + " \003(\01320.google.cloud.aiplatform.v1beta1.OnlineEvaluator\022\027\n" + + "\017next_page_token\030\002 \001(\t\"a\n" + + "\036ActivateOnlineEvaluatorRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\"\177\n" + + "(ActivateOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001 \001(\01329.google.clou" + + "d.aiplatform.v1beta1.GenericOperationMetadata\"`\n" + + "\035SuspendOnlineEvaluatorRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\"~\n" + + "\'SuspendOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata2\231\017\n" + + "\026OnlineEvaluatorService\022\241\002\n" + + "\025CreateOnlineEvaluator\022=.google.cloud.aiplatform.v1beta1.C" + + "reateOnlineEvaluatorRequest\032\035.google.longrunning.Operation\"\251\001\312A9\n" + + "\017OnlineEvaluator\022&CreateOnlineEvaluatorOperationMetadat" + + "a\332A\027parent,online_evaluator\202\323\344\223\002M\"9/v1be" + + "ta1/{parent=projects/*/locations/*}/onlineEvaluators:\020online_evaluator\022\314\001\n" + + "\022GetOnlineEvaluator\022:.google.cloud.aiplatform." + + "v1beta1.GetOnlineEvaluatorRequest\0320.google.cloud.aiplatform.v1beta1.OnlineEvalua" + + "tor\"H\332A\004name\202\323\344\223\002;\0229/v1beta1/{name=proje" + + "cts/*/locations/*/onlineEvaluators/*}\022\267\002\n" + + "\025UpdateOnlineEvaluator\022=.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorR" + + "equest\032\035.google.longrunning.Operation\"\277\001\312A9\n" + + "\017OnlineEvaluator\022&UpdateOnlineEvalua" + + "torOperationMetadata\332A\034online_evaluator," + + "update_mask\202\323\344\223\002^2J/v1beta1/{online_eval" + + "uator.name=projects/*/locations/*/onlineEvaluators/*}:\020online_evaluator\022\202\002\n" + + "\025DeleteOnlineEvaluator\022=.google.cloud.aiplatf" + + "orm.v1beta1.DeleteOnlineEvaluatorRequest\032\035.google.longrunning.Operation\"\212\001\312A?\n" + + "\025google.protobuf.Empty\022&DeleteOnlineEvalua" + + "torOperationMetadata\332A\004name\202\323\344\223\002;*9/v1be" + + "ta1/{name=projects/*/locations/*/onlineEvaluators/*}\022\337\001\n" + + "\024ListOnlineEvaluators\022<.google.cloud.aiplatform.v1beta1.ListOnli" + + "neEvaluatorsRequest\032=.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRespon" + + "se\"J\332A\006parent\202\323\344\223\002;\0229/v1beta1/{parent=pr" + + "ojects/*/locations/*}/onlineEvaluators\022\216\002\n" + + "\027ActivateOnlineEvaluator\022?.google.cloud.aiplatform.v1beta1.ActivateOnlineEvalu" + + "atorRequest\032\035.google.longrunning.Operation\"\222\001\312A;\n" + + "\017OnlineEvaluator\022(ActivateOnlin" + + "eEvaluatorOperationMetadata\332A\004name\202\323\344\223\002G" + + "\"B/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}:activate:\001*\022\212\002\n" + + "\026SuspendOnlineEvaluator\022>.google.cloud.aiplat" + + "form.v1beta1.SuspendOnlineEvaluatorRequest\032\035.google.longrunning.Operation\"\220\001\312A:\n" + + "\017OnlineEvaluator\022\'SuspendOnlineEvaluator" + + "OperationMetadata\332A\004name\202\323\344\223\002F\"A/v1beta1" + + "/{name=projects/*/locations/*/onlineEval" + + "uators/*}:suspend:\001*\032M\312A\031aiplatform.goog" + + "leapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\362\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\033OnlineEvaluatorServ" + + "iceProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb\252" + + "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog" + + "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Parent", "OnlineEvaluator", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "OnlineEvaluator", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor, + new java.lang.String[] { + "OnlineEvaluators", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java index c5b8c0ec76d8..b3064d68df64 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java @@ -52,6 +52,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -67,41 +79,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/httpbody.proto\032\031google/api/resou" - + "rce.proto\032\034google/protobuf/struct.proto\"" - + "\246\001\n\033QueryReasoningEngineRequest\022?\n\004name\030" - + "\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.com" - + "/ReasoningEngine\022+\n\005input\030\002 \001(\0132\027.google" - + ".protobuf.StructB\003\340A\001\022\031\n\014class_method\030\003 " - + "\001(\tB\003\340A\001\"F\n\034QueryReasoningEngineResponse" - + "\022&\n\006output\030\001 \001(\0132\026.google.protobuf.Value" - + "\"\254\001\n!StreamQueryReasoningEngineRequest\022?" - + "\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googlea" - + "pis.com/ReasoningEngine\022+\n\005input\030\002 \001(\0132\027" - + ".google.protobuf.StructB\003\340A\001\022\031\n\014class_me" - + "thod\030\003 \001(\tB\003\340A\0012\204\005\n\037ReasoningEngineExecu" - + "tionService\022\216\002\n\024QueryReasoningEngine\022<.g" - + "oogle.cloud.aiplatform.v1beta1.QueryReas" - + "oningEngineRequest\032=.google.cloud.aiplat" - + "form.v1beta1.QueryReasoningEngineRespons" - + "e\"y\202\323\344\223\002s\"?/v1beta1/{name=projects/*/loc" - + "ations/*/reasoningEngines/*}:query:\001*Z-\"" - + "(/v1beta1/{name=reasoningEngines/*}:quer" - + "y:\001*\022\200\002\n\032StreamQueryReasoningEngine\022B.go" - + "ogle.cloud.aiplatform.v1beta1.StreamQuer" - + "yReasoningEngineRequest\032\024.google.api.Htt" - + "pBody\"\205\001\202\323\344\223\002\177\"E/v1beta1/{name=projects/" - + "*/locations/*/reasoningEngines/*}:stream" - + "Query:\001*Z3\"./v1beta1/{name=reasoningEngi" - + "nes/*}:streamQuery:\001*0\001\032M\312A\031aiplatform.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\373\001\n#com.google.cl" - + "oud.aiplatform.v1beta1B$ReasoningEngineE" - + "xecutionServiceProtoP\001ZCcloud.google.com" - + "/go/aiplatform/apiv1beta1/aiplatformpb;a" - + "iplatformpb\252\002\037Google.Cloud.AIPlatform.V1" - + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" - + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" - + "oto3" + + "rce.proto\032/google/cloud/aiplatform/v1bet" + + "a1/operation.proto\032#google/longrunning/o" + + "perations.proto\032\034google/protobuf/struct." + + "proto\"\246\001\n\033QueryReasoningEngineRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleap" + + "is.com/ReasoningEngine\022+\n\005input\030\002 \001(\0132\027." + + "google.protobuf.StructB\003\340A\001\022\031\n\014class_met" + + "hod\030\003 \001(\tB\003\340A\001\"F\n\034QueryReasoningEngineRe" + + "sponse\022&\n\006output\030\001 \001(\0132\026.google.protobuf" + + ".Value\"\254\001\n!StreamQueryReasoningEngineReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.g" + + "oogleapis.com/ReasoningEngine\022+\n\005input\030\002" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022\031\n\014cl" + + "ass_method\030\003 \001(\tB\003\340A\001\"\234\001\n AsyncQueryReas" + + "oningEngineRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)aiplatform.googleapis.com/ReasoningEng" + + "ine\022\032\n\rinput_gcs_uri\030\002 \001(\tB\003\340A\001\022\033\n\016outpu" + + "t_gcs_uri\030\003 \001(\tB\003\340A\001\"\201\001\n*AsyncQueryReaso" + + "ningEngineOperationMetadata\022S\n\020generic_m" + + "etadata\030\001 \001(\01329.google.cloud.aiplatform." + + "v1beta1.GenericOperationMetadata\";\n!Asyn" + + "cQueryReasoningEngineResponse\022\026\n\016output_" + + "gcs_uri\030\001 \001(\t2\334\007\n\037ReasoningEngineExecuti" + + "onService\022\216\002\n\024QueryReasoningEngine\022<.goo" + + "gle.cloud.aiplatform.v1beta1.QueryReason" + + "ingEngineRequest\032=.google.cloud.aiplatfo" + + "rm.v1beta1.QueryReasoningEngineResponse\"" + + "y\202\323\344\223\002s\"?/v1beta1/{name=projects/*/locat" + + "ions/*/reasoningEngines/*}:query:\001*Z-\"(/" + + "v1beta1/{name=reasoningEngines/*}:query:" + + "\001*\022\200\002\n\032StreamQueryReasoningEngine\022B.goog" + + "le.cloud.aiplatform.v1beta1.StreamQueryR" + + "easoningEngineRequest\032\024.google.api.HttpB" + + "ody\"\205\001\202\323\344\223\002\177\"E/v1beta1/{name=projects/*/" + + "locations/*/reasoningEngines/*}:streamQu" + + "ery:\001*Z3\"./v1beta1/{name=reasoningEngine" + + "s/*}:streamQuery:\001*0\001\022\325\002\n\031AsyncQueryReas" + + "oningEngine\022A.google.cloud.aiplatform.v1" + + "beta1.AsyncQueryReasoningEngineRequest\032\035" + + ".google.longrunning.Operation\"\325\001\312AO\n!Asy" + + "ncQueryReasoningEngineResponse\022*AsyncQue" + + "ryReasoningEngineOperationMetadata\202\323\344\223\002}" + + "\"D/v1beta1/{name=projects/*/locations/*/" + + "reasoningEngines/*}:asyncQuery:\001*Z2\"-/v1" + + "beta1/{name=reasoningEngines/*}:asyncQue" + + "ry:\001*\032M\312A\031aiplatform.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\373\001\n#com.google.cloud.aiplatform.v1b" + + "eta1B$ReasoningEngineExecutionServicePro" + + "toP\001ZCcloud.google.com/go/aiplatform/api" + + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog" + + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo" + + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::A" + + "IPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -112,6 +143,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.HttpBodyProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_QueryReasoningEngineRequest_descriptor = @@ -138,12 +171,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Input", "ClassMethod", }); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Name", "InputGcsUri", "OutputGcsUri", + }); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor, + new java.lang.String[] { + "OutputGcsUri", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.HttpBodyProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -152,6 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java index a998d8af8e0e..c359c3281c7a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java @@ -244,7 +244,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder getVertexRagS * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=473 + * google/cloud/aiplatform/v1beta1/tool.proto;l=510 * @return The disableAttribution. */ @java.lang.Override @@ -1124,7 +1124,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder getVertexRagSt * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=473 + * google/cloud/aiplatform/v1beta1/tool.proto;l=510 * @return The disableAttribution. */ @java.lang.Override @@ -1145,7 +1145,7 @@ public boolean getDisableAttribution() { * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=473 + * google/cloud/aiplatform/v1beta1/tool.proto;l=510 * @param value The disableAttribution to set. * @return This builder for chaining. */ @@ -1170,7 +1170,7 @@ public Builder setDisableAttribution(boolean value) { * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=473 + * google/cloud/aiplatform/v1beta1/tool.proto;l=510 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java index 9c8e8c0dd680..dd40e518c0b3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java @@ -115,7 +115,7 @@ public interface RetrievalOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=473 + * google/cloud/aiplatform/v1beta1/tool.proto;l=510 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Rubric.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Rubric.java new file mode 100644 index 000000000000..a6d12bb28804 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Rubric.java @@ -0,0 +1,3002 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Message representing a single testable criterion for evaluation.
+ * One input prompt could have multiple rubrics.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric} + */ +@com.google.protobuf.Generated +public final class Rubric extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Rubric) + RubricOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Rubric"); + } + + // Use Rubric.newBuilder() to construct. + private Rubric(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Rubric() { + rubricId_ = ""; + type_ = ""; + importance_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder.class); + } + + /** + * + * + *
+   * Importance level of the rubric.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Rubric.Importance} + */ + public enum Importance implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Importance is not specified.
+     * 
+ * + * IMPORTANCE_UNSPECIFIED = 0; + */ + IMPORTANCE_UNSPECIFIED(0), + /** + * + * + *
+     * High importance.
+     * 
+ * + * HIGH = 1; + */ + HIGH(1), + /** + * + * + *
+     * Medium importance.
+     * 
+ * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
+     * Low importance.
+     * 
+ * + * LOW = 3; + */ + LOW(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Importance"); + } + + /** + * + * + *
+     * Importance is not specified.
+     * 
+ * + * IMPORTANCE_UNSPECIFIED = 0; + */ + public static final int IMPORTANCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * High importance.
+     * 
+ * + * HIGH = 1; + */ + public static final int HIGH_VALUE = 1; + + /** + * + * + *
+     * Medium importance.
+     * 
+ * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + + /** + * + * + *
+     * Low importance.
+     * 
+ * + * LOW = 3; + */ + public static final int LOW_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Importance valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Importance forNumber(int value) { + switch (value) { + case 0: + return IMPORTANCE_UNSPECIFIED; + case 1: + return HIGH; + case 2: + return MEDIUM; + case 3: + return LOW; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Importance findValueByNumber(int number) { + return Importance.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Rubric.getDescriptor().getEnumTypes().get(0); + } + + private static final Importance[] VALUES = values(); + + public static Importance valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Importance(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Rubric.Importance) + } + + public interface ContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Rubric.Content) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Evaluation criteria based on a specific property.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + + /** + * + * + *
+     * Evaluation criteria based on a specific property.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return The property. + */ + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property getProperty(); + + /** + * + * + *
+     * Evaluation criteria based on a specific property.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder getPropertyOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.Rubric.Content.ContentTypeCase getContentTypeCase(); + } + + /** + * + * + *
+   * Content of the rubric, defining the testable criteria.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric.Content} + */ + public static final class Content extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Rubric.Content) + ContentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Content"); + } + + // Use Content.newBuilder() to construct. + private Content(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Content() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder.class); + } + + public interface PropertyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Description of the property being evaluated.
+       * Example: "The model's response is grammatically correct."
+       * 
+ * + * string description = 1; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+       * Description of the property being evaluated.
+       * Example: "The model's response is grammatically correct."
+       * 
+ * + * string description = 1; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + } + + /** + * + * + *
+     * Defines criteria based on a specific property.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric.Content.Property} + */ + public static final class Property extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + PropertyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Property"); + } + + // Use Property.newBuilder() to construct. + private Property(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Property() { + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder.class); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+       * Description of the property being evaluated.
+       * Example: "The model's response is grammatically correct."
+       * 
+ * + * string description = 1; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+       * Description of the property being evaluated.
+       * Example: "The model's response is grammatically correct."
+       * 
+ * + * string description = 1; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property other = + (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) obj; + + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Defines criteria based on a specific property.
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric.Content.Property} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property build() { + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property buildPartial() { + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property result = + new com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property other) { + if (other + == com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance()) + return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object description_ = ""; + + /** + * + * + *
+         * Description of the property being evaluated.
+         * Example: "The model's response is grammatically correct."
+         * 
+ * + * string description = 1; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Description of the property being evaluated.
+         * Example: "The model's response is grammatically correct."
+         * 
+ * + * string description = 1; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Description of the property being evaluated.
+         * Example: "The model's response is grammatically correct."
+         * 
+ * + * string description = 1; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Description of the property being evaluated.
+         * Example: "The model's response is grammatically correct."
+         * 
+ * + * string description = 1; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Description of the property being evaluated.
+         * Example: "The model's response is grammatically correct."
+         * 
+ * + * string description = 1; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + private static final com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property(); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int contentTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object contentType_; + + public enum ContentTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PROPERTY(1), + CONTENTTYPE_NOT_SET(0); + private final int value; + + private ContentTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContentTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ContentTypeCase forNumber(int value) { + switch (value) { + case 1: + return PROPERTY; + case 0: + return CONTENTTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ContentTypeCase getContentTypeCase() { + return ContentTypeCase.forNumber(contentTypeCase_); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Evaluation criteria based on a specific property.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return contentTypeCase_ == 1; + } + + /** + * + * + *
+     * Evaluation criteria based on a specific property.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return The property. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property getProperty() { + if (contentTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_; + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + + /** + * + * + *
+     * Evaluation criteria based on a specific property.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder + getPropertyOrBuilder() { + if (contentTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_; + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (contentTypeCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (contentTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Rubric.Content)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Rubric.Content other = + (com.google.cloud.aiplatform.v1beta1.Rubric.Content) obj; + + if (!getContentTypeCase().equals(other.getContentTypeCase())) return false; + switch (contentTypeCase_) { + case 1: + if (!getProperty().equals(other.getProperty())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (contentTypeCase_) { + case 1: + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Rubric.Content prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Content of the rubric, defining the testable criteria.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric.Content} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Rubric.Content) + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Rubric.Content.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (propertyBuilder_ != null) { + propertyBuilder_.clear(); + } + contentTypeCase_ = 0; + contentType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content build() { + com.google.cloud.aiplatform.v1beta1.Rubric.Content result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content buildPartial() { + com.google.cloud.aiplatform.v1beta1.Rubric.Content result = + new com.google.cloud.aiplatform.v1beta1.Rubric.Content(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Rubric.Content result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Rubric.Content result) { + result.contentTypeCase_ = contentTypeCase_; + result.contentType_ = this.contentType_; + if (contentTypeCase_ == 1 && propertyBuilder_ != null) { + result.contentType_ = propertyBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Rubric.Content) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Rubric.Content) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Rubric.Content other) { + if (other == com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance()) + return this; + switch (other.getContentTypeCase()) { + case PROPERTY: + { + mergeProperty(other.getProperty()); + break; + } + case CONTENTTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetPropertyFieldBuilder().getBuilder(), extensionRegistry); + contentTypeCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int contentTypeCase_ = 0; + private java.lang.Object contentType_; + + public ContentTypeCase getContentTypeCase() { + return ContentTypeCase.forNumber(contentTypeCase_); + } + + public Builder clearContentType() { + contentTypeCase_ = 0; + contentType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder> + propertyBuilder_; + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return contentTypeCase_ == 1; + } + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return The property. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property getProperty() { + if (propertyBuilder_ == null) { + if (contentTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_; + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } else { + if (contentTypeCase_ == 1) { + return propertyBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public Builder setProperty( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentType_ = value; + onChanged(); + } else { + propertyBuilder_.setMessage(value); + } + contentTypeCase_ = 1; + return this; + } + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public Builder setProperty( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + contentType_ = builderForValue.build(); + onChanged(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + contentTypeCase_ = 1; + return this; + } + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public Builder mergeProperty( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property value) { + if (propertyBuilder_ == null) { + if (contentTypeCase_ == 1 + && contentType_ + != com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + .getDefaultInstance()) { + contentType_ = + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.newBuilder( + (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_) + .mergeFrom(value) + .buildPartial(); + } else { + contentType_ = value; + } + onChanged(); + } else { + if (contentTypeCase_ == 1) { + propertyBuilder_.mergeFrom(value); + } else { + propertyBuilder_.setMessage(value); + } + } + contentTypeCase_ = 1; + return this; + } + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public Builder clearProperty() { + if (propertyBuilder_ == null) { + if (contentTypeCase_ == 1) { + contentTypeCase_ = 0; + contentType_ = null; + onChanged(); + } + } else { + if (contentTypeCase_ == 1) { + contentTypeCase_ = 0; + contentType_ = null; + } + propertyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder + getPropertyBuilder() { + return internalGetPropertyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder + getPropertyOrBuilder() { + if ((contentTypeCase_ == 1) && (propertyBuilder_ != null)) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + if (contentTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_; + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Evaluation criteria based on a specific property.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder> + internalGetPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + if (!(contentTypeCase_ == 1)) { + contentType_ = + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_, + getParentForChildren(), + isClean()); + contentType_ = null; + } + contentTypeCase_ = 1; + onChanged(); + return propertyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Rubric.Content) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Rubric.Content) + private static final com.google.cloud.aiplatform.v1beta1.Rubric.Content DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Rubric.Content(); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RUBRIC_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object rubricId_ = ""; + + /** + * + * + *
+   * Unique identifier for the rubric.
+   * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+   * 
+ * + * string rubric_id = 1; + * + * @return The rubricId. + */ + @java.lang.Override + public java.lang.String getRubricId() { + java.lang.Object ref = rubricId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rubricId_ = s; + return s; + } + } + + /** + * + * + *
+   * Unique identifier for the rubric.
+   * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+   * 
+ * + * string rubric_id = 1; + * + * @return The bytes for rubricId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRubricIdBytes() { + java.lang.Object ref = rubricId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rubricId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Rubric.Content content_; + + /** + * + * + *
+   * Required. The actual testable criteria for the rubric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The actual testable criteria for the rubric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance() + : content_; + } + + /** + * + * + *
+   * Required. The actual testable criteria for the rubric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance() + : content_; + } + + public static final int TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Optional. A type designator for the rubric, which can inform how it's
+   * evaluated or interpreted by systems or users.
+   * It's recommended to use consistent, well-defined, upper snake_case strings.
+   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+   * "INSTRUCTION_ADHERENCE".
+   * 
+ * + * optional string type = 3; + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. A type designator for the rubric, which can inform how it's
+   * evaluated or interpreted by systems or users.
+   * It's recommended to use consistent, well-defined, upper snake_case strings.
+   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+   * "INSTRUCTION_ADHERENCE".
+   * 
+ * + * optional string type = 3; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A type designator for the rubric, which can inform how it's
+   * evaluated or interpreted by systems or users.
+   * It's recommended to use consistent, well-defined, upper snake_case strings.
+   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+   * "INSTRUCTION_ADHERENCE".
+   * 
+ * + * optional string type = 3; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMPORTANCE_FIELD_NUMBER = 4; + private int importance_ = 0; + + /** + * + * + *
+   * Optional. The relative importance of this rubric.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return Whether the importance field is set. + */ + @java.lang.Override + public boolean hasImportance() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The relative importance of this rubric.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The enum numeric value on the wire for importance. + */ + @java.lang.Override + public int getImportanceValue() { + return importance_; + } + + /** + * + * + *
+   * Optional. The relative importance of this rubric.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The importance. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Importance getImportance() { + com.google.cloud.aiplatform.v1beta1.Rubric.Importance result = + com.google.cloud.aiplatform.v1beta1.Rubric.Importance.forNumber(importance_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Importance.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rubricId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, rubricId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, type_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, importance_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rubricId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, rubricId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, type_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, importance_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Rubric)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Rubric other = + (com.google.cloud.aiplatform.v1beta1.Rubric) obj; + + if (!getRubricId().equals(other.getRubricId())) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType().equals(other.getType())) return false; + } + if (hasImportance() != other.hasImportance()) return false; + if (hasImportance()) { + if (importance_ != other.importance_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RUBRIC_ID_FIELD_NUMBER; + hash = (53 * hash) + getRubricId().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasImportance()) { + hash = (37 * hash) + IMPORTANCE_FIELD_NUMBER; + hash = (53 * hash) + importance_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Rubric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message representing a single testable criterion for evaluation.
+   * One input prompt could have multiple rubrics.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Rubric) + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Rubric.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rubricId_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + type_ = ""; + importance_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric build() { + com.google.cloud.aiplatform.v1beta1.Rubric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric buildPartial() { + com.google.cloud.aiplatform.v1beta1.Rubric result = + new com.google.cloud.aiplatform.v1beta1.Rubric(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Rubric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rubricId_ = rubricId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.importance_ = importance_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Rubric) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Rubric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Rubric other) { + if (other == com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()) return this; + if (!other.getRubricId().isEmpty()) { + rubricId_ = other.rubricId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasType()) { + type_ = other.type_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasImportance()) { + setImportanceValue(other.getImportanceValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + rubricId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + importance_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object rubricId_ = ""; + + /** + * + * + *
+     * Unique identifier for the rubric.
+     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+     * 
+ * + * string rubric_id = 1; + * + * @return The rubricId. + */ + public java.lang.String getRubricId() { + java.lang.Object ref = rubricId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rubricId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Unique identifier for the rubric.
+     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+     * 
+ * + * string rubric_id = 1; + * + * @return The bytes for rubricId. + */ + public com.google.protobuf.ByteString getRubricIdBytes() { + java.lang.Object ref = rubricId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rubricId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Unique identifier for the rubric.
+     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+     * 
+ * + * string rubric_id = 1; + * + * @param value The rubricId to set. + * @return This builder for chaining. + */ + public Builder setRubricId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rubricId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unique identifier for the rubric.
+     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+     * 
+ * + * string rubric_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearRubricId() { + rubricId_ = getDefaultInstance().getRubricId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Unique identifier for the rubric.
+     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+     * 
+ * + * string rubric_id = 1; + * + * @param value The bytes for rubricId to set. + * @return This builder for chaining. + */ + public Builder setRubricIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rubricId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Rubric.Content content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Rubric.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public Builder setContent( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1beta1.Rubric.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ + != com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
+     * Required. The actual testable criteria for the rubric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * Optional. A type designator for the rubric, which can inform how it's
+     * evaluated or interpreted by systems or users.
+     * It's recommended to use consistent, well-defined, upper snake_case strings.
+     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+     * "INSTRUCTION_ADHERENCE".
+     * 
+ * + * optional string type = 3; + * + * @return Whether the type field is set. + */ + public boolean hasType() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. A type designator for the rubric, which can inform how it's
+     * evaluated or interpreted by systems or users.
+     * It's recommended to use consistent, well-defined, upper snake_case strings.
+     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+     * "INSTRUCTION_ADHERENCE".
+     * 
+ * + * optional string type = 3; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A type designator for the rubric, which can inform how it's
+     * evaluated or interpreted by systems or users.
+     * It's recommended to use consistent, well-defined, upper snake_case strings.
+     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+     * "INSTRUCTION_ADHERENCE".
+     * 
+ * + * optional string type = 3; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A type designator for the rubric, which can inform how it's
+     * evaluated or interpreted by systems or users.
+     * It's recommended to use consistent, well-defined, upper snake_case strings.
+     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+     * "INSTRUCTION_ADHERENCE".
+     * 
+ * + * optional string type = 3; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A type designator for the rubric, which can inform how it's
+     * evaluated or interpreted by systems or users.
+     * It's recommended to use consistent, well-defined, upper snake_case strings.
+     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+     * "INSTRUCTION_ADHERENCE".
+     * 
+ * + * optional string type = 3; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A type designator for the rubric, which can inform how it's
+     * evaluated or interpreted by systems or users.
+     * It's recommended to use consistent, well-defined, upper snake_case strings.
+     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+     * "INSTRUCTION_ADHERENCE".
+     * 
+ * + * optional string type = 3; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int importance_ = 0; + + /** + * + * + *
+     * Optional. The relative importance of this rubric.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return Whether the importance field is set. + */ + @java.lang.Override + public boolean hasImportance() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The relative importance of this rubric.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The enum numeric value on the wire for importance. + */ + @java.lang.Override + public int getImportanceValue() { + return importance_; + } + + /** + * + * + *
+     * Optional. The relative importance of this rubric.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @param value The enum numeric value on the wire for importance to set. + * @return This builder for chaining. + */ + public Builder setImportanceValue(int value) { + importance_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The relative importance of this rubric.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The importance. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Importance getImportance() { + com.google.cloud.aiplatform.v1beta1.Rubric.Importance result = + com.google.cloud.aiplatform.v1beta1.Rubric.Importance.forNumber(importance_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Importance.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The relative importance of this rubric.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @param value The importance to set. + * @return This builder for chaining. + */ + public Builder setImportance(com.google.cloud.aiplatform.v1beta1.Rubric.Importance value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + importance_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The relative importance of this rubric.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return This builder for chaining. + */ + public Builder clearImportance() { + bitField0_ = (bitField0_ & ~0x00000008); + importance_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Rubric) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Rubric) + private static final com.google.cloud.aiplatform.v1beta1.Rubric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Rubric(); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rubric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpec.java new file mode 100644 index 000000000000..5b6dde15c918 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpec.java @@ -0,0 +1,1646 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Specification for how rubrics should be generated.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricGenerationSpec} + */ +@com.google.protobuf.Generated +public final class RubricGenerationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + RubricGenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RubricGenerationSpec"); + } + + // Use RubricGenerationSpec.newBuilder() to construct. + private RubricGenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RubricGenerationSpec() { + promptTemplate_ = ""; + rubricContentType_ = 0; + rubricTypeOntology_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.class, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder.class); + } + + /** + * + * + *
+   * Specifies the type of rubric content to generate.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType} + */ + public enum RubricContentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The content type to generate is not specified.
+     * 
+ * + * RUBRIC_CONTENT_TYPE_UNSPECIFIED = 0; + */ + RUBRIC_CONTENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Generate rubrics based on properties.
+     * 
+ * + * PROPERTY = 1; + */ + PROPERTY(1), + /** + * + * + *
+     * Generate rubrics in an NL question answer format.
+     * 
+ * + * NL_QUESTION_ANSWER = 2; + */ + NL_QUESTION_ANSWER(2), + /** + * + * + *
+     * Generate rubrics in a unit test format.
+     * 
+ * + * PYTHON_CODE_ASSERTION = 3; + */ + PYTHON_CODE_ASSERTION(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RubricContentType"); + } + + /** + * + * + *
+     * The content type to generate is not specified.
+     * 
+ * + * RUBRIC_CONTENT_TYPE_UNSPECIFIED = 0; + */ + public static final int RUBRIC_CONTENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Generate rubrics based on properties.
+     * 
+ * + * PROPERTY = 1; + */ + public static final int PROPERTY_VALUE = 1; + + /** + * + * + *
+     * Generate rubrics in an NL question answer format.
+     * 
+ * + * NL_QUESTION_ANSWER = 2; + */ + public static final int NL_QUESTION_ANSWER_VALUE = 2; + + /** + * + * + *
+     * Generate rubrics in a unit test format.
+     * 
+ * + * PYTHON_CODE_ASSERTION = 3; + */ + public static final int PYTHON_CODE_ASSERTION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RubricContentType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RubricContentType forNumber(int value) { + switch (value) { + case 0: + return RUBRIC_CONTENT_TYPE_UNSPECIFIED; + case 1: + return PROPERTY; + case 2: + return NL_QUESTION_ANSWER; + case 3: + return PYTHON_CODE_ASSERTION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RubricContentType findValueByNumber(int number) { + return RubricContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RubricContentType[] VALUES = values(); + + public static RubricContentType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RubricContentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType) + } + + private int bitField0_; + public static final int PROMPT_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object promptTemplate_ = ""; + + /** + * + * + *
+   * Template for the prompt used to generate rubrics.
+   * The details should be updated based on the most-recent recipe requirements.
+   * 
+ * + * string prompt_template = 1; + * + * @return The promptTemplate. + */ + @java.lang.Override + public java.lang.String getPromptTemplate() { + java.lang.Object ref = promptTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + promptTemplate_ = s; + return s; + } + } + + /** + * + * + *
+   * Template for the prompt used to generate rubrics.
+   * The details should be updated based on the most-recent recipe requirements.
+   * 
+ * + * string prompt_template = 1; + * + * @return The bytes for promptTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptTemplateBytes() { + java.lang.Object ref = promptTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + promptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig modelConfig_; + + /** + * + * + *
+   * Configuration for the model used in rubric generation.
+   * Configs including sampling count and base model can be specified here.
+   * Flipping is not supported for rubric generation.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return Whether the modelConfig field is set. + */ + @java.lang.Override + public boolean hasModelConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Configuration for the model used in rubric generation.
+   * Configs including sampling count and base model can be specified here.
+   * Flipping is not supported for rubric generation.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return The modelConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getModelConfig() { + return modelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : modelConfig_; + } + + /** + * + * + *
+   * Configuration for the model used in rubric generation.
+   * Configs including sampling count and base model can be specified here.
+   * Flipping is not supported for rubric generation.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder getModelConfigOrBuilder() { + return modelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : modelConfig_; + } + + public static final int RUBRIC_CONTENT_TYPE_FIELD_NUMBER = 5; + private int rubricContentType_ = 0; + + /** + * + * + *
+   * The type of rubric content to be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The enum numeric value on the wire for rubricContentType. + */ + @java.lang.Override + public int getRubricContentTypeValue() { + return rubricContentType_; + } + + /** + * + * + *
+   * The type of rubric content to be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The rubricContentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType + getRubricContentType() { + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType result = + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType.forNumber( + rubricContentType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType.UNRECOGNIZED + : result; + } + + public static final int RUBRIC_TYPE_ONTOLOGY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList rubricTypeOntology_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. An optional, pre-defined list of allowed types for generated
+   * rubrics. If this field is provided, it implies `include_rubric_type` should
+   * be true, and the generated rubric types should be chosen from this
+   * ontology.
+   * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the rubricTypeOntology. + */ + public com.google.protobuf.ProtocolStringList getRubricTypeOntologyList() { + return rubricTypeOntology_; + } + + /** + * + * + *
+   * Optional. An optional, pre-defined list of allowed types for generated
+   * rubrics. If this field is provided, it implies `include_rubric_type` should
+   * be true, and the generated rubric types should be chosen from this
+   * ontology.
+   * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of rubricTypeOntology. + */ + public int getRubricTypeOntologyCount() { + return rubricTypeOntology_.size(); + } + + /** + * + * + *
+   * Optional. An optional, pre-defined list of allowed types for generated
+   * rubrics. If this field is provided, it implies `include_rubric_type` should
+   * be true, and the generated rubric types should be chosen from this
+   * ontology.
+   * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The rubricTypeOntology at the given index. + */ + public java.lang.String getRubricTypeOntology(int index) { + return rubricTypeOntology_.get(index); + } + + /** + * + * + *
+   * Optional. An optional, pre-defined list of allowed types for generated
+   * rubrics. If this field is provided, it implies `include_rubric_type` should
+   * be true, and the generated rubric types should be chosen from this
+   * ontology.
+   * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rubricTypeOntology at the given index. + */ + public com.google.protobuf.ByteString getRubricTypeOntologyBytes(int index) { + return rubricTypeOntology_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(promptTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, promptTemplate_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getModelConfig()); + } + if (rubricContentType_ + != com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType + .RUBRIC_CONTENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, rubricContentType_); + } + for (int i = 0; i < rubricTypeOntology_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, rubricTypeOntology_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(promptTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, promptTemplate_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModelConfig()); + } + if (rubricContentType_ + != com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType + .RUBRIC_CONTENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, rubricContentType_); + } + { + int dataSize = 0; + for (int i = 0; i < rubricTypeOntology_.size(); i++) { + dataSize += computeStringSizeNoTag(rubricTypeOntology_.getRaw(i)); + } + size += dataSize; + size += 1 * getRubricTypeOntologyList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec other = + (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) obj; + + if (!getPromptTemplate().equals(other.getPromptTemplate())) return false; + if (hasModelConfig() != other.hasModelConfig()) return false; + if (hasModelConfig()) { + if (!getModelConfig().equals(other.getModelConfig())) return false; + } + if (rubricContentType_ != other.rubricContentType_) return false; + if (!getRubricTypeOntologyList().equals(other.getRubricTypeOntologyList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROMPT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getPromptTemplate().hashCode(); + if (hasModelConfig()) { + hash = (37 * hash) + MODEL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelConfig().hashCode(); + } + hash = (37 * hash) + RUBRIC_CONTENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + rubricContentType_; + if (getRubricTypeOntologyCount() > 0) { + hash = (37 * hash) + RUBRIC_TYPE_ONTOLOGY_FIELD_NUMBER; + hash = (53 * hash) + getRubricTypeOntologyList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Specification for how rubrics should be generated.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricGenerationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.class, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTemplate_ = ""; + modelConfig_ = null; + if (modelConfigBuilder_ != null) { + modelConfigBuilder_.dispose(); + modelConfigBuilder_ = null; + } + rubricContentType_ = 0; + rubricTypeOntology_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec build() { + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec result = + new com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTemplate_ = promptTemplate_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelConfig_ = + modelConfigBuilder_ == null ? modelConfig_ : modelConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rubricContentType_ = rubricContentType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + rubricTypeOntology_.makeImmutable(); + result.rubricTypeOntology_ = rubricTypeOntology_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance()) + return this; + if (!other.getPromptTemplate().isEmpty()) { + promptTemplate_ = other.promptTemplate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasModelConfig()) { + mergeModelConfig(other.getModelConfig()); + } + if (other.rubricContentType_ != 0) { + setRubricContentTypeValue(other.getRubricContentTypeValue()); + } + if (!other.rubricTypeOntology_.isEmpty()) { + if (rubricTypeOntology_.isEmpty()) { + rubricTypeOntology_ = other.rubricTypeOntology_; + bitField0_ |= 0x00000008; + } else { + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.addAll(other.rubricTypeOntology_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + promptTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + input.readMessage( + internalGetModelConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 40: + { + rubricContentType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 40 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object promptTemplate_ = ""; + + /** + * + * + *
+     * Template for the prompt used to generate rubrics.
+     * The details should be updated based on the most-recent recipe requirements.
+     * 
+ * + * string prompt_template = 1; + * + * @return The promptTemplate. + */ + public java.lang.String getPromptTemplate() { + java.lang.Object ref = promptTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + promptTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Template for the prompt used to generate rubrics.
+     * The details should be updated based on the most-recent recipe requirements.
+     * 
+ * + * string prompt_template = 1; + * + * @return The bytes for promptTemplate. + */ + public com.google.protobuf.ByteString getPromptTemplateBytes() { + java.lang.Object ref = promptTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + promptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Template for the prompt used to generate rubrics.
+     * The details should be updated based on the most-recent recipe requirements.
+     * 
+ * + * string prompt_template = 1; + * + * @param value The promptTemplate to set. + * @return This builder for chaining. + */ + public Builder setPromptTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + promptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Template for the prompt used to generate rubrics.
+     * The details should be updated based on the most-recent recipe requirements.
+     * 
+ * + * string prompt_template = 1; + * + * @return This builder for chaining. + */ + public Builder clearPromptTemplate() { + promptTemplate_ = getDefaultInstance().getPromptTemplate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Template for the prompt used to generate rubrics.
+     * The details should be updated based on the most-recent recipe requirements.
+     * 
+ * + * string prompt_template = 1; + * + * @param value The bytes for promptTemplate to set. + * @return This builder for chaining. + */ + public Builder setPromptTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + promptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig modelConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + modelConfigBuilder_; + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return Whether the modelConfig field is set. + */ + public boolean hasModelConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return The modelConfig. + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getModelConfig() { + if (modelConfigBuilder_ == null) { + return modelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : modelConfig_; + } else { + return modelConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public Builder setModelConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (modelConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelConfig_ = value; + } else { + modelConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public Builder setModelConfig( + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder builderForValue) { + if (modelConfigBuilder_ == null) { + modelConfig_ = builderForValue.build(); + } else { + modelConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public Builder mergeModelConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (modelConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && modelConfig_ != null + && modelConfig_ + != com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) { + getModelConfigBuilder().mergeFrom(value); + } else { + modelConfig_ = value; + } + } else { + modelConfigBuilder_.mergeFrom(value); + } + if (modelConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public Builder clearModelConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + modelConfig_ = null; + if (modelConfigBuilder_ != null) { + modelConfigBuilder_.dispose(); + modelConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder getModelConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetModelConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder getModelConfigOrBuilder() { + if (modelConfigBuilder_ != null) { + return modelConfigBuilder_.getMessageOrBuilder(); + } else { + return modelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : modelConfig_; + } + } + + /** + * + * + *
+     * Configuration for the model used in rubric generation.
+     * Configs including sampling count and base model can be specified here.
+     * Flipping is not supported for rubric generation.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + internalGetModelConfigFieldBuilder() { + if (modelConfigBuilder_ == null) { + modelConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder>( + getModelConfig(), getParentForChildren(), isClean()); + modelConfig_ = null; + } + return modelConfigBuilder_; + } + + private int rubricContentType_ = 0; + + /** + * + * + *
+     * The type of rubric content to be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The enum numeric value on the wire for rubricContentType. + */ + @java.lang.Override + public int getRubricContentTypeValue() { + return rubricContentType_; + } + + /** + * + * + *
+     * The type of rubric content to be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @param value The enum numeric value on the wire for rubricContentType to set. + * @return This builder for chaining. + */ + public Builder setRubricContentTypeValue(int value) { + rubricContentType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of rubric content to be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The rubricContentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType + getRubricContentType() { + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType result = + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType.forNumber( + rubricContentType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The type of rubric content to be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @param value The rubricContentType to set. + * @return This builder for chaining. + */ + public Builder setRubricContentType( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + rubricContentType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of rubric content to be generated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearRubricContentType() { + bitField0_ = (bitField0_ & ~0x00000004); + rubricContentType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList rubricTypeOntology_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRubricTypeOntologyIsMutable() { + if (!rubricTypeOntology_.isModifiable()) { + rubricTypeOntology_ = new com.google.protobuf.LazyStringArrayList(rubricTypeOntology_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the rubricTypeOntology. + */ + public com.google.protobuf.ProtocolStringList getRubricTypeOntologyList() { + rubricTypeOntology_.makeImmutable(); + return rubricTypeOntology_; + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of rubricTypeOntology. + */ + public int getRubricTypeOntologyCount() { + return rubricTypeOntology_.size(); + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The rubricTypeOntology at the given index. + */ + public java.lang.String getRubricTypeOntology(int index) { + return rubricTypeOntology_.get(index); + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rubricTypeOntology at the given index. + */ + public com.google.protobuf.ByteString getRubricTypeOntologyBytes(int index) { + return rubricTypeOntology_.getByteString(index); + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The rubricTypeOntology to set. + * @return This builder for chaining. + */ + public Builder setRubricTypeOntology(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The rubricTypeOntology to add. + * @return This builder for chaining. + */ + public Builder addRubricTypeOntology(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The rubricTypeOntology to add. + * @return This builder for chaining. + */ + public Builder addAllRubricTypeOntology(java.lang.Iterable values) { + ensureRubricTypeOntologyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rubricTypeOntology_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRubricTypeOntology() { + rubricTypeOntology_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional, pre-defined list of allowed types for generated
+     * rubrics. If this field is provided, it implies `include_rubric_type` should
+     * be true, and the generated rubric types should be chosen from this
+     * ontology.
+     * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the rubricTypeOntology to add. + * @return This builder for chaining. + */ + public Builder addRubricTypeOntologyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + private static final com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RubricGenerationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpecOrBuilder.java new file mode 100644 index 000000000000..c795ae839129 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpecOrBuilder.java @@ -0,0 +1,199 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface RubricGenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Template for the prompt used to generate rubrics.
+   * The details should be updated based on the most-recent recipe requirements.
+   * 
+ * + * string prompt_template = 1; + * + * @return The promptTemplate. + */ + java.lang.String getPromptTemplate(); + + /** + * + * + *
+   * Template for the prompt used to generate rubrics.
+   * The details should be updated based on the most-recent recipe requirements.
+   * 
+ * + * string prompt_template = 1; + * + * @return The bytes for promptTemplate. + */ + com.google.protobuf.ByteString getPromptTemplateBytes(); + + /** + * + * + *
+   * Configuration for the model used in rubric generation.
+   * Configs including sampling count and base model can be specified here.
+   * Flipping is not supported for rubric generation.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return Whether the modelConfig field is set. + */ + boolean hasModelConfig(); + + /** + * + * + *
+   * Configuration for the model used in rubric generation.
+   * Configs including sampling count and base model can be specified here.
+   * Flipping is not supported for rubric generation.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return The modelConfig. + */ + com.google.cloud.aiplatform.v1beta1.AutoraterConfig getModelConfig(); + + /** + * + * + *
+   * Configuration for the model used in rubric generation.
+   * Configs including sampling count and base model can be specified here.
+   * Flipping is not supported for rubric generation.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder getModelConfigOrBuilder(); + + /** + * + * + *
+   * The type of rubric content to be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The enum numeric value on the wire for rubricContentType. + */ + int getRubricContentTypeValue(); + + /** + * + * + *
+   * The type of rubric content to be generated.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The rubricContentType. + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType getRubricContentType(); + + /** + * + * + *
+   * Optional. An optional, pre-defined list of allowed types for generated
+   * rubrics. If this field is provided, it implies `include_rubric_type` should
+   * be true, and the generated rubric types should be chosen from this
+   * ontology.
+   * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the rubricTypeOntology. + */ + java.util.List getRubricTypeOntologyList(); + + /** + * + * + *
+   * Optional. An optional, pre-defined list of allowed types for generated
+   * rubrics. If this field is provided, it implies `include_rubric_type` should
+   * be true, and the generated rubric types should be chosen from this
+   * ontology.
+   * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of rubricTypeOntology. + */ + int getRubricTypeOntologyCount(); + + /** + * + * + *
+   * Optional. An optional, pre-defined list of allowed types for generated
+   * rubrics. If this field is provided, it implies `include_rubric_type` should
+   * be true, and the generated rubric types should be chosen from this
+   * ontology.
+   * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The rubricTypeOntology at the given index. + */ + java.lang.String getRubricTypeOntology(int index); + + /** + * + * + *
+   * Optional. An optional, pre-defined list of allowed types for generated
+   * rubrics. If this field is provided, it implies `include_rubric_type` should
+   * be true, and the generated rubric types should be chosen from this
+   * ontology.
+   * 
+ * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rubricTypeOntology at the given index. + */ + com.google.protobuf.ByteString getRubricTypeOntologyBytes(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroup.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroup.java new file mode 100644 index 000000000000..5f1f54e171f4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroup.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A group of rubrics, used for grouping rubrics based on a metric or a version.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricGroup} + */ +@com.google.protobuf.Generated +public final class RubricGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RubricGroup) + RubricGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RubricGroup"); + } + + // Use RubricGroup.newBuilder() to construct. + private RubricGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RubricGroup() { + groupId_ = ""; + displayName_ = ""; + rubrics_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricGroup.class, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder.class); + } + + public static final int GROUP_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupId_ = ""; + + /** + * + * + *
+   * Unique identifier for the group.
+   * 
+ * + * string group_id = 1; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } + } + + /** + * + * + *
+   * Unique identifier for the group.
+   * 
+ * + * string group_id = 1; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Human-readable name for the group. This should be unique
+   * within a given context if used for display or selection.
+   * Example: "Instruction Following V1", "Content Quality - Summarization
+   * Task".
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Human-readable name for the group. This should be unique
+   * within a given context if used for display or selection.
+   * Example: "Instruction Following V1", "Content Quality - Summarization
+   * Task".
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUBRICS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List rubrics_; + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public java.util.List getRubricsList() { + return rubrics_; + } + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public java.util.List + getRubricsOrBuilderList() { + return rubrics_; + } + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public int getRubricsCount() { + return rubrics_.size(); + } + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getRubrics(int index) { + return rubrics_.get(index); + } + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getRubricsOrBuilder(int index) { + return rubrics_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(groupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, groupId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + for (int i = 0; i < rubrics_.size(); i++) { + output.writeMessage(3, rubrics_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(groupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, groupId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + for (int i = 0; i < rubrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rubrics_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RubricGroup)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RubricGroup other = + (com.google.cloud.aiplatform.v1beta1.RubricGroup) obj; + + if (!getGroupId().equals(other.getGroupId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRubricsList().equals(other.getRubricsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getRubricsCount() > 0) { + hash = (37 * hash) + RUBRICS_FIELD_NUMBER; + hash = (53 * hash) + getRubricsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.RubricGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A group of rubrics, used for grouping rubrics based on a metric or a version.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RubricGroup) + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricGroup.class, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RubricGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + groupId_ = ""; + displayName_ = ""; + if (rubricsBuilder_ == null) { + rubrics_ = java.util.Collections.emptyList(); + } else { + rubrics_ = null; + rubricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RubricGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup build() { + com.google.cloud.aiplatform.v1beta1.RubricGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup buildPartial() { + com.google.cloud.aiplatform.v1beta1.RubricGroup result = + new com.google.cloud.aiplatform.v1beta1.RubricGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.RubricGroup result) { + if (rubricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + rubrics_ = java.util.Collections.unmodifiableList(rubrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rubrics_ = rubrics_; + } else { + result.rubrics_ = rubricsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RubricGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.groupId_ = groupId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.RubricGroup) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RubricGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RubricGroup other) { + if (other == com.google.cloud.aiplatform.v1beta1.RubricGroup.getDefaultInstance()) + return this; + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (rubricsBuilder_ == null) { + if (!other.rubrics_.isEmpty()) { + if (rubrics_.isEmpty()) { + rubrics_ = other.rubrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRubricsIsMutable(); + rubrics_.addAll(other.rubrics_); + } + onChanged(); + } + } else { + if (!other.rubrics_.isEmpty()) { + if (rubricsBuilder_.isEmpty()) { + rubricsBuilder_.dispose(); + rubricsBuilder_ = null; + rubrics_ = other.rubrics_; + bitField0_ = (bitField0_ & ~0x00000004); + rubricsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRubricsFieldBuilder() + : null; + } else { + rubricsBuilder_.addAllMessages(other.rubrics_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + groupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.Rubric m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Rubric.parser(), extensionRegistry); + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.add(m); + } else { + rubricsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object groupId_ = ""; + + /** + * + * + *
+     * Unique identifier for the group.
+     * 
+ * + * string group_id = 1; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Unique identifier for the group.
+     * 
+ * + * string group_id = 1; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Unique identifier for the group.
+     * 
+ * + * string group_id = 1; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + groupId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unique identifier for the group.
+     * 
+ * + * string group_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + groupId_ = getDefaultInstance().getGroupId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Unique identifier for the group.
+     * 
+ * + * string group_id = 1; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Human-readable name for the group. This should be unique
+     * within a given context if used for display or selection.
+     * Example: "Instruction Following V1", "Content Quality - Summarization
+     * Task".
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Human-readable name for the group. This should be unique
+     * within a given context if used for display or selection.
+     * Example: "Instruction Following V1", "Content Quality - Summarization
+     * Task".
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Human-readable name for the group. This should be unique
+     * within a given context if used for display or selection.
+     * Example: "Instruction Following V1", "Content Quality - Summarization
+     * Task".
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Human-readable name for the group. This should be unique
+     * within a given context if used for display or selection.
+     * Example: "Instruction Following V1", "Content Quality - Summarization
+     * Task".
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Human-readable name for the group. This should be unique
+     * within a given context if used for display or selection.
+     * Example: "Instruction Following V1", "Content Quality - Summarization
+     * Task".
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List rubrics_ = + java.util.Collections.emptyList(); + + private void ensureRubricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + rubrics_ = new java.util.ArrayList(rubrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + rubricsBuilder_; + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public java.util.List getRubricsList() { + if (rubricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rubrics_); + } else { + return rubricsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public int getRubricsCount() { + if (rubricsBuilder_ == null) { + return rubrics_.size(); + } else { + return rubricsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric getRubrics(int index) { + if (rubricsBuilder_ == null) { + return rubrics_.get(index); + } else { + return rubricsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder setRubrics(int index, com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (rubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricsIsMutable(); + rubrics_.set(index, value); + onChanged(); + } else { + rubricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder setRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.set(index, builderForValue.build()); + onChanged(); + } else { + rubricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addRubrics(com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (rubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricsIsMutable(); + rubrics_.add(value); + onChanged(); + } else { + rubricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addRubrics(int index, com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (rubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricsIsMutable(); + rubrics_.add(index, value); + onChanged(); + } else { + rubricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addRubrics(com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.add(builderForValue.build()); + onChanged(); + } else { + rubricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.add(index, builderForValue.build()); + onChanged(); + } else { + rubricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addAllRubrics( + java.lang.Iterable values) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rubrics_); + onChanged(); + } else { + rubricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder clearRubrics() { + if (rubricsBuilder_ == null) { + rubrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rubricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder removeRubrics(int index) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.remove(index); + onChanged(); + } else { + rubricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder getRubricsBuilder(int index) { + return internalGetRubricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getRubricsOrBuilder(int index) { + if (rubricsBuilder_ == null) { + return rubrics_.get(index); + } else { + return rubricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public java.util.List + getRubricsOrBuilderList() { + if (rubricsBuilder_ != null) { + return rubricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rubrics_); + } + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder addRubricsBuilder() { + return internalGetRubricsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()); + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder addRubricsBuilder(int index) { + return internalGetRubricsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()); + } + + /** + * + * + *
+     * Rubrics that are part of this group.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public java.util.List + getRubricsBuilderList() { + return internalGetRubricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + internalGetRubricsFieldBuilder() { + if (rubricsBuilder_ == null) { + rubricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder>( + rubrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rubrics_ = null; + } + return rubricsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RubricGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RubricGroup) + private static final com.google.cloud.aiplatform.v1beta1.RubricGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RubricGroup(); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RubricGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroupOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroupOrBuilder.java new file mode 100644 index 000000000000..c10b72b84a85 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroupOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface RubricGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RubricGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Unique identifier for the group.
+   * 
+ * + * string group_id = 1; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + + /** + * + * + *
+   * Unique identifier for the group.
+   * 
+ * + * string group_id = 1; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
+   * Human-readable name for the group. This should be unique
+   * within a given context if used for display or selection.
+   * Example: "Instruction Following V1", "Content Quality - Summarization
+   * Task".
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Human-readable name for the group. This should be unique
+   * within a given context if used for display or selection.
+   * Example: "Instruction Following V1", "Content Quality - Summarization
+   * Task".
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + java.util.List getRubricsList(); + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + com.google.cloud.aiplatform.v1beta1.Rubric getRubrics(int index); + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + int getRubricsCount(); + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + java.util.List + getRubricsOrBuilderList(); + + /** + * + * + *
+   * Rubrics that are part of this group.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getRubricsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricOrBuilder.java new file mode 100644 index 000000000000..2b1bebe83170 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface RubricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Rubric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Unique identifier for the rubric.
+   * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+   * 
+ * + * string rubric_id = 1; + * + * @return The rubricId. + */ + java.lang.String getRubricId(); + + /** + * + * + *
+   * Unique identifier for the rubric.
+   * This ID is used to refer to this rubric, e.g., in RubricVerdict.
+   * 
+ * + * string rubric_id = 1; + * + * @return The bytes for rubricId. + */ + com.google.protobuf.ByteString getRubricIdBytes(); + + /** + * + * + *
+   * Required. The actual testable criteria for the rubric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
+   * Required. The actual testable criteria for the rubric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return The content. + */ + com.google.cloud.aiplatform.v1beta1.Rubric.Content getContent(); + + /** + * + * + *
+   * Required. The actual testable criteria for the rubric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
+   * Optional. A type designator for the rubric, which can inform how it's
+   * evaluated or interpreted by systems or users.
+   * It's recommended to use consistent, well-defined, upper snake_case strings.
+   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+   * "INSTRUCTION_ADHERENCE".
+   * 
+ * + * optional string type = 3; + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
+   * Optional. A type designator for the rubric, which can inform how it's
+   * evaluated or interpreted by systems or users.
+   * It's recommended to use consistent, well-defined, upper snake_case strings.
+   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+   * "INSTRUCTION_ADHERENCE".
+   * 
+ * + * optional string type = 3; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Optional. A type designator for the rubric, which can inform how it's
+   * evaluated or interpreted by systems or users.
+   * It's recommended to use consistent, well-defined, upper snake_case strings.
+   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
+   * "INSTRUCTION_ADHERENCE".
+   * 
+ * + * optional string type = 3; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Optional. The relative importance of this rubric.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return Whether the importance field is set. + */ + boolean hasImportance(); + + /** + * + * + *
+   * Optional. The relative importance of this rubric.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The enum numeric value on the wire for importance. + */ + int getImportanceValue(); + + /** + * + * + *
+   * Optional. The relative importance of this rubric.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The importance. + */ + com.google.cloud.aiplatform.v1beta1.Rubric.Importance getImportance(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdict.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdict.java new file mode 100644 index 000000000000..d86b6e7e4c7f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdict.java @@ -0,0 +1,1083 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents the verdict of an evaluation against a single rubric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricVerdict} + */ +@com.google.protobuf.Generated +public final class RubricVerdict extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RubricVerdict) + RubricVerdictOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RubricVerdict"); + } + + // Use RubricVerdict.newBuilder() to construct. + private RubricVerdict(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RubricVerdict() { + reasoning_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricVerdict.class, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder.class); + } + + private int bitField0_; + public static final int EVALUATED_RUBRIC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Rubric evaluatedRubric_; + + /** + * + * + *
+   * Required. The full rubric definition that was evaluated.
+   * Storing this ensures the verdict is self-contained and understandable,
+   * especially if the original rubric definition changes or was dynamically
+   * generated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return Whether the evaluatedRubric field is set. + */ + @java.lang.Override + public boolean hasEvaluatedRubric() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The full rubric definition that was evaluated.
+   * Storing this ensures the verdict is self-contained and understandable,
+   * especially if the original rubric definition changes or was dynamically
+   * generated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return The evaluatedRubric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getEvaluatedRubric() { + return evaluatedRubric_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance() + : evaluatedRubric_; + } + + /** + * + * + *
+   * Required. The full rubric definition that was evaluated.
+   * Storing this ensures the verdict is self-contained and understandable,
+   * especially if the original rubric definition changes or was dynamically
+   * generated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getEvaluatedRubricOrBuilder() { + return evaluatedRubric_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance() + : evaluatedRubric_; + } + + public static final int VERDICT_FIELD_NUMBER = 2; + private boolean verdict_ = false; + + /** + * + * + *
+   * Required. Outcome of the evaluation against the rubric, represented as a
+   * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
+   * 
+ * + * bool verdict = 2; + * + * @return The verdict. + */ + @java.lang.Override + public boolean getVerdict() { + return verdict_; + } + + public static final int REASONING_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object reasoning_ = ""; + + /** + * + * + *
+   * Optional. Human-readable reasoning or explanation for the verdict.
+   * This can include specific examples or details from the evaluated content
+   * that justify the given verdict.
+   * 
+ * + * optional string reasoning = 3; + * + * @return Whether the reasoning field is set. + */ + @java.lang.Override + public boolean hasReasoning() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Human-readable reasoning or explanation for the verdict.
+   * This can include specific examples or details from the evaluated content
+   * that justify the given verdict.
+   * 
+ * + * optional string reasoning = 3; + * + * @return The reasoning. + */ + @java.lang.Override + public java.lang.String getReasoning() { + java.lang.Object ref = reasoning_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reasoning_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Human-readable reasoning or explanation for the verdict.
+   * This can include specific examples or details from the evaluated content
+   * that justify the given verdict.
+   * 
+ * + * optional string reasoning = 3; + * + * @return The bytes for reasoning. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasoningBytes() { + java.lang.Object ref = reasoning_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEvaluatedRubric()); + } + if (verdict_ != false) { + output.writeBool(2, verdict_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, reasoning_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEvaluatedRubric()); + } + if (verdict_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, verdict_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, reasoning_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RubricVerdict)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RubricVerdict other = + (com.google.cloud.aiplatform.v1beta1.RubricVerdict) obj; + + if (hasEvaluatedRubric() != other.hasEvaluatedRubric()) return false; + if (hasEvaluatedRubric()) { + if (!getEvaluatedRubric().equals(other.getEvaluatedRubric())) return false; + } + if (getVerdict() != other.getVerdict()) return false; + if (hasReasoning() != other.hasReasoning()) return false; + if (hasReasoning()) { + if (!getReasoning().equals(other.getReasoning())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEvaluatedRubric()) { + hash = (37 * hash) + EVALUATED_RUBRIC_FIELD_NUMBER; + hash = (53 * hash) + getEvaluatedRubric().hashCode(); + } + hash = (37 * hash) + VERDICT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerdict()); + if (hasReasoning()) { + hash = (37 * hash) + REASONING_FIELD_NUMBER; + hash = (53 * hash) + getReasoning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.RubricVerdict prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the verdict of an evaluation against a single rubric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricVerdict} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RubricVerdict) + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricVerdict.class, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RubricVerdict.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEvaluatedRubricFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluatedRubric_ = null; + if (evaluatedRubricBuilder_ != null) { + evaluatedRubricBuilder_.dispose(); + evaluatedRubricBuilder_ = null; + } + verdict_ = false; + reasoning_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RubricVerdict.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict build() { + com.google.cloud.aiplatform.v1beta1.RubricVerdict result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict buildPartial() { + com.google.cloud.aiplatform.v1beta1.RubricVerdict result = + new com.google.cloud.aiplatform.v1beta1.RubricVerdict(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RubricVerdict result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.evaluatedRubric_ = + evaluatedRubricBuilder_ == null ? evaluatedRubric_ : evaluatedRubricBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.verdict_ = verdict_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.reasoning_ = reasoning_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.RubricVerdict) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RubricVerdict) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RubricVerdict other) { + if (other == com.google.cloud.aiplatform.v1beta1.RubricVerdict.getDefaultInstance()) + return this; + if (other.hasEvaluatedRubric()) { + mergeEvaluatedRubric(other.getEvaluatedRubric()); + } + if (other.getVerdict() != false) { + setVerdict(other.getVerdict()); + } + if (other.hasReasoning()) { + reasoning_ = other.reasoning_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetEvaluatedRubricFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + verdict_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + reasoning_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Rubric evaluatedRubric_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + evaluatedRubricBuilder_; + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return Whether the evaluatedRubric field is set. + */ + public boolean hasEvaluatedRubric() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return The evaluatedRubric. + */ + public com.google.cloud.aiplatform.v1beta1.Rubric getEvaluatedRubric() { + if (evaluatedRubricBuilder_ == null) { + return evaluatedRubric_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance() + : evaluatedRubric_; + } else { + return evaluatedRubricBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public Builder setEvaluatedRubric(com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (evaluatedRubricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluatedRubric_ = value; + } else { + evaluatedRubricBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public Builder setEvaluatedRubric( + com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (evaluatedRubricBuilder_ == null) { + evaluatedRubric_ = builderForValue.build(); + } else { + evaluatedRubricBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public Builder mergeEvaluatedRubric(com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (evaluatedRubricBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && evaluatedRubric_ != null + && evaluatedRubric_ + != com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()) { + getEvaluatedRubricBuilder().mergeFrom(value); + } else { + evaluatedRubric_ = value; + } + } else { + evaluatedRubricBuilder_.mergeFrom(value); + } + if (evaluatedRubric_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public Builder clearEvaluatedRubric() { + bitField0_ = (bitField0_ & ~0x00000001); + evaluatedRubric_ = null; + if (evaluatedRubricBuilder_ != null) { + evaluatedRubricBuilder_.dispose(); + evaluatedRubricBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder getEvaluatedRubricBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetEvaluatedRubricFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getEvaluatedRubricOrBuilder() { + if (evaluatedRubricBuilder_ != null) { + return evaluatedRubricBuilder_.getMessageOrBuilder(); + } else { + return evaluatedRubric_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance() + : evaluatedRubric_; + } + } + + /** + * + * + *
+     * Required. The full rubric definition that was evaluated.
+     * Storing this ensures the verdict is self-contained and understandable,
+     * especially if the original rubric definition changes or was dynamically
+     * generated.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + internalGetEvaluatedRubricFieldBuilder() { + if (evaluatedRubricBuilder_ == null) { + evaluatedRubricBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder>( + getEvaluatedRubric(), getParentForChildren(), isClean()); + evaluatedRubric_ = null; + } + return evaluatedRubricBuilder_; + } + + private boolean verdict_; + + /** + * + * + *
+     * Required. Outcome of the evaluation against the rubric, represented as a
+     * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
+     * 
+ * + * bool verdict = 2; + * + * @return The verdict. + */ + @java.lang.Override + public boolean getVerdict() { + return verdict_; + } + + /** + * + * + *
+     * Required. Outcome of the evaluation against the rubric, represented as a
+     * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
+     * 
+ * + * bool verdict = 2; + * + * @param value The verdict to set. + * @return This builder for chaining. + */ + public Builder setVerdict(boolean value) { + + verdict_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Outcome of the evaluation against the rubric, represented as a
+     * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
+     * 
+ * + * bool verdict = 2; + * + * @return This builder for chaining. + */ + public Builder clearVerdict() { + bitField0_ = (bitField0_ & ~0x00000002); + verdict_ = false; + onChanged(); + return this; + } + + private java.lang.Object reasoning_ = ""; + + /** + * + * + *
+     * Optional. Human-readable reasoning or explanation for the verdict.
+     * This can include specific examples or details from the evaluated content
+     * that justify the given verdict.
+     * 
+ * + * optional string reasoning = 3; + * + * @return Whether the reasoning field is set. + */ + public boolean hasReasoning() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Human-readable reasoning or explanation for the verdict.
+     * This can include specific examples or details from the evaluated content
+     * that justify the given verdict.
+     * 
+ * + * optional string reasoning = 3; + * + * @return The reasoning. + */ + public java.lang.String getReasoning() { + java.lang.Object ref = reasoning_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reasoning_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Human-readable reasoning or explanation for the verdict.
+     * This can include specific examples or details from the evaluated content
+     * that justify the given verdict.
+     * 
+ * + * optional string reasoning = 3; + * + * @return The bytes for reasoning. + */ + public com.google.protobuf.ByteString getReasoningBytes() { + java.lang.Object ref = reasoning_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Human-readable reasoning or explanation for the verdict.
+     * This can include specific examples or details from the evaluated content
+     * that justify the given verdict.
+     * 
+ * + * optional string reasoning = 3; + * + * @param value The reasoning to set. + * @return This builder for chaining. + */ + public Builder setReasoning(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reasoning_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Human-readable reasoning or explanation for the verdict.
+     * This can include specific examples or details from the evaluated content
+     * that justify the given verdict.
+     * 
+ * + * optional string reasoning = 3; + * + * @return This builder for chaining. + */ + public Builder clearReasoning() { + reasoning_ = getDefaultInstance().getReasoning(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Human-readable reasoning or explanation for the verdict.
+     * This can include specific examples or details from the evaluated content
+     * that justify the given verdict.
+     * 
+ * + * optional string reasoning = 3; + * + * @param value The bytes for reasoning to set. + * @return This builder for chaining. + */ + public Builder setReasoningBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reasoning_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RubricVerdict) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RubricVerdict) + private static final com.google.cloud.aiplatform.v1beta1.RubricVerdict DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RubricVerdict(); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RubricVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdictOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdictOrBuilder.java new file mode 100644 index 000000000000..a7baa6c56407 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdictOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface RubricVerdictOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RubricVerdict) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full rubric definition that was evaluated.
+   * Storing this ensures the verdict is self-contained and understandable,
+   * especially if the original rubric definition changes or was dynamically
+   * generated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return Whether the evaluatedRubric field is set. + */ + boolean hasEvaluatedRubric(); + + /** + * + * + *
+   * Required. The full rubric definition that was evaluated.
+   * Storing this ensures the verdict is self-contained and understandable,
+   * especially if the original rubric definition changes or was dynamically
+   * generated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return The evaluatedRubric. + */ + com.google.cloud.aiplatform.v1beta1.Rubric getEvaluatedRubric(); + + /** + * + * + *
+   * Required. The full rubric definition that was evaluated.
+   * Storing this ensures the verdict is self-contained and understandable,
+   * especially if the original rubric definition changes or was dynamically
+   * generated.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getEvaluatedRubricOrBuilder(); + + /** + * + * + *
+   * Required. Outcome of the evaluation against the rubric, represented as a
+   * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
+   * 
+ * + * bool verdict = 2; + * + * @return The verdict. + */ + boolean getVerdict(); + + /** + * + * + *
+   * Optional. Human-readable reasoning or explanation for the verdict.
+   * This can include specific examples or details from the evaluated content
+   * that justify the given verdict.
+   * 
+ * + * optional string reasoning = 3; + * + * @return Whether the reasoning field is set. + */ + boolean hasReasoning(); + + /** + * + * + *
+   * Optional. Human-readable reasoning or explanation for the verdict.
+   * This can include specific examples or details from the evaluated content
+   * that justify the given verdict.
+   * 
+ * + * optional string reasoning = 3; + * + * @return The reasoning. + */ + java.lang.String getReasoning(); + + /** + * + * + *
+   * Optional. Human-readable reasoning or explanation for the verdict.
+   * This can include specific examples or details from the evaluated content
+   * that justify the given verdict.
+   * 
+ * + * optional string reasoning = 3; + * + * @return The bytes for reasoning. + */ + com.google.protobuf.ByteString getReasoningBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java index 0533051204ae..be8e51aff2ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java @@ -129,7 +129,7 @@ public long getTotalTuningCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -1486,7 +1486,7 @@ public Builder clearTotalTuningCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -1508,7 +1508,7 @@ public long getTotalBillableCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @param value The totalBillableCharacterCount to set. * @return This builder for chaining. */ @@ -1534,7 +1534,7 @@ public Builder setTotalBillableCharacterCount(long value) { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java index c6217a369f8a..fbcfb1ccf7e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java @@ -67,7 +67,7 @@ public interface SupervisedTuningDataStatsOrBuilder * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @return The totalBillableCharacterCount. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..87a41a38fa69 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Metadata for the SuspendOnlineEvaluator operation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class SuspendOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + SuspendOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SuspendOnlineEvaluatorOperationMetadata"); + } + + // Use SuspendOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private SuspendOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SuspendOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for the SuspendOnlineEvaluator operation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
+     * Common part of operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendOnlineEvaluatorOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..441a8064325d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface SuspendOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
+   * Common part of operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..f36ff5e22cd6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for SuspendOnlineEvaluator.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class SuspendOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + SuspendOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SuspendOnlineEvaluatorRequest"); + } + + // Use SuspendOnlineEvaluatorRequest.newBuilder() to construct. + private SuspendOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SuspendOnlineEvaluatorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to suspend.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to suspend.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for SuspendOnlineEvaluator.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to suspend.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to suspend.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to suspend.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to suspend.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the OnlineEvaluator to suspend.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendOnlineEvaluatorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..be976ffeaecc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface SuspendOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to suspend.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the OnlineEvaluator to suspend.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java index 49b2e8f7c939..8c34263b3d2c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java @@ -1394,6 +1394,1237 @@ public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch getDefaultInstanceF } } + public interface ParallelAiSearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The API key for ParallelAiSearch.
+     * If an API key is not provided, the system will attempt to verify access
+     * by checking for an active Parallel.ai subscription through the Google
+     * Cloud Marketplace.
+     * See https://docs.parallel.ai/search/search-quickstart for more details.
+     * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + java.lang.String getApiKey(); + + /** + * + * + *
+     * Optional. The API key for ParallelAiSearch.
+     * If an API key is not provided, the system will attempt to verify access
+     * by checking for an active Parallel.ai subscription through the Google
+     * Cloud Marketplace.
+     * See https://docs.parallel.ai/search/search-quickstart for more details.
+     * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + com.google.protobuf.ByteString getApiKeyBytes(); + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customConfigs field is set. + */ + boolean hasCustomConfigs(); + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customConfigs. + */ + com.google.protobuf.Struct getCustomConfigs(); + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getCustomConfigsOrBuilder(); + } + + /** + * + * + *
+   * ParallelAiSearch tool type.
+   * A tool that uses the Parallel.ai search engine for grounding.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch} + */ + public static final class ParallelAiSearch extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch) + ParallelAiSearchOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ParallelAiSearch"); + } + + // Use ParallelAiSearch.newBuilder() to construct. + private ParallelAiSearch(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ParallelAiSearch() { + apiKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.class, + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.Builder.class); + } + + private int bitField0_; + public static final int API_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKey_ = ""; + + /** + * + * + *
+     * Optional. The API key for ParallelAiSearch.
+     * If an API key is not provided, the system will attempt to verify access
+     * by checking for an active Parallel.ai subscription through the Google
+     * Cloud Marketplace.
+     * See https://docs.parallel.ai/search/search-quickstart for more details.
+     * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + @java.lang.Override + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKey_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The API key for ParallelAiSearch.
+     * If an API key is not provided, the system will attempt to verify access
+     * by checking for an active Parallel.ai subscription through the Google
+     * Cloud Marketplace.
+     * See https://docs.parallel.ai/search/search-quickstart for more details.
+     * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_CONFIGS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct customConfigs_; + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customConfigs field is set. + */ + @java.lang.Override + public boolean hasCustomConfigs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customConfigs. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomConfigs() { + return customConfigs_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customConfigs_; + } + + /** + * + * + *
+     * Optional. Custom configs for ParallelAiSearch.
+     * This field can be used to pass any parameter from the Parallel.ai
+     * Search API.
+     * See the Parallel.ai documentation for the full list of available
+     * parameters and their usage:
+     * https://docs.parallel.ai/api-reference/search-beta/search
+     * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+     * `fetch_policy` can be set via this field. For example:
+     * {
+     * "source_policy": {
+     * "include_domains": ["google.com", "wikipedia.org"],
+     * "exclude_domains": ["example.com"]
+     * },
+     * "fetch_policy": {
+     * "max_age_seconds": 3600
+     * }
+     * }
+     * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomConfigsOrBuilder() { + return customConfigs_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customConfigs_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apiKey_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCustomConfigs()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apiKey_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomConfigs()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch other = + (com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch) obj; + + if (!getApiKey().equals(other.getApiKey())) return false; + if (hasCustomConfigs() != other.hasCustomConfigs()) return false; + if (hasCustomConfigs()) { + if (!getCustomConfigs().equals(other.getCustomConfigs())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + API_KEY_FIELD_NUMBER; + hash = (53 * hash) + getApiKey().hashCode(); + if (hasCustomConfigs()) { + hash = (37 * hash) + CUSTOM_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getCustomConfigs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * ParallelAiSearch tool type.
+     * A tool that uses the Parallel.ai search engine for grounding.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch) + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.class, + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCustomConfigsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiKey_ = ""; + customConfigs_ = null; + if (customConfigsBuilder_ != null) { + customConfigsBuilder_.dispose(); + customConfigsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch build() { + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch buildPartial() { + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch result = + new com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiKey_ = apiKey_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customConfigs_ = + customConfigsBuilder_ == null ? customConfigs_ : customConfigsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch other) { + if (other == com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.getDefaultInstance()) + return this; + if (!other.getApiKey().isEmpty()) { + apiKey_ = other.apiKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomConfigs()) { + mergeCustomConfigs(other.getCustomConfigs()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetCustomConfigsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object apiKey_ = ""; + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearApiKey() { + apiKey_ = getDefaultInstance().getApiKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The API key for ParallelAiSearch.
+       * If an API key is not provided, the system will attempt to verify access
+       * by checking for an active Parallel.ai subscription through the Google
+       * Cloud Marketplace.
+       * See https://docs.parallel.ai/search/search-quickstart for more details.
+       * 
+ * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customConfigs_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customConfigsBuilder_; + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customConfigs field is set. + */ + public boolean hasCustomConfigs() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customConfigs. + */ + public com.google.protobuf.Struct getCustomConfigs() { + if (customConfigsBuilder_ == null) { + return customConfigs_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customConfigs_; + } else { + return customConfigsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomConfigs(com.google.protobuf.Struct value) { + if (customConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customConfigs_ = value; + } else { + customConfigsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomConfigs(com.google.protobuf.Struct.Builder builderForValue) { + if (customConfigsBuilder_ == null) { + customConfigs_ = builderForValue.build(); + } else { + customConfigsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomConfigs(com.google.protobuf.Struct value) { + if (customConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customConfigs_ != null + && customConfigs_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomConfigsBuilder().mergeFrom(value); + } else { + customConfigs_ = value; + } + } else { + customConfigsBuilder_.mergeFrom(value); + } + if (customConfigs_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomConfigs() { + bitField0_ = (bitField0_ & ~0x00000002); + customConfigs_ = null; + if (customConfigsBuilder_ != null) { + customConfigsBuilder_.dispose(); + customConfigsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getCustomConfigsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCustomConfigsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getCustomConfigsOrBuilder() { + if (customConfigsBuilder_ != null) { + return customConfigsBuilder_.getMessageOrBuilder(); + } else { + return customConfigs_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customConfigs_; + } + } + + /** + * + * + *
+       * Optional. Custom configs for ParallelAiSearch.
+       * This field can be used to pass any parameter from the Parallel.ai
+       * Search API.
+       * See the Parallel.ai documentation for the full list of available
+       * parameters and their usage:
+       * https://docs.parallel.ai/api-reference/search-beta/search
+       * Currently only `source_policy`, `excerpts`, `max_results`, `mode`,
+       * `fetch_policy` can be set via this field. For example:
+       * {
+       * "source_policy": {
+       * "include_domains": ["google.com", "wikipedia.org"],
+       * "exclude_domains": ["example.com"]
+       * },
+       * "fetch_policy": {
+       * "max_age_seconds": 3600
+       * }
+       * }
+       * 
+ * + * .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetCustomConfigsFieldBuilder() { + if (customConfigsBuilder_ == null) { + customConfigsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomConfigs(), getParentForChildren(), isClean()); + customConfigs_ = null; + } + return customConfigsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch) + private static final com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch(); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParallelAiSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface CodeExecutionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Tool.CodeExecution) @@ -3457,6 +4688,72 @@ public com.google.cloud.aiplatform.v1beta1.EnterpriseWebSearch getEnterpriseWebS : enterpriseWebSearch_; } + public static final int PARALLEL_AI_SEARCH_FIELD_NUMBER = 13; + private com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallelAiSearch_; + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parallelAiSearch field is set. + */ + @java.lang.Override + public boolean hasParallelAiSearch() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parallelAiSearch. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch getParallelAiSearch() { + return parallelAiSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.getDefaultInstance() + : parallelAiSearch_; + } + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearchOrBuilder + getParallelAiSearchOrBuilder() { + return parallelAiSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.getDefaultInstance() + : parallelAiSearch_; + } + public static final int CODE_EXECUTION_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution codeExecution_; @@ -3476,7 +4773,7 @@ public com.google.cloud.aiplatform.v1beta1.EnterpriseWebSearch getEnterpriseWebS */ @java.lang.Override public boolean hasCodeExecution() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -3538,7 +4835,7 @@ public com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution getCodeExecution() */ @java.lang.Override public boolean hasUrlContext() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3599,7 +4896,7 @@ public com.google.cloud.aiplatform.v1beta1.UrlContextOrBuilder getUrlContextOrBu */ @java.lang.Override public boolean hasComputerUse() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3667,7 +4964,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getGoogleSearchRetrieval()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(4, getCodeExecution()); } if (((bitField0_ & 0x00000008) != 0)) { @@ -3679,12 +4976,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getGoogleSearch()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(10, getUrlContext()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(11, getComputerUse()); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(13, getParallelAiSearch()); + } getUnknownFields().writeTo(output); } @@ -3705,7 +5005,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGoogleSearchRetrieval()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCodeExecution()); } if (((bitField0_ & 0x00000008) != 0)) { @@ -3717,12 +5017,15 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGoogleSearch()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUrlContext()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getComputerUse()); } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getParallelAiSearch()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3759,6 +5062,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEnterpriseWebSearch()) { if (!getEnterpriseWebSearch().equals(other.getEnterpriseWebSearch())) return false; } + if (hasParallelAiSearch() != other.hasParallelAiSearch()) return false; + if (hasParallelAiSearch()) { + if (!getParallelAiSearch().equals(other.getParallelAiSearch())) return false; + } if (hasCodeExecution() != other.hasCodeExecution()) return false; if (hasCodeExecution()) { if (!getCodeExecution().equals(other.getCodeExecution())) return false; @@ -3806,6 +5113,10 @@ public int hashCode() { hash = (37 * hash) + ENTERPRISE_WEB_SEARCH_FIELD_NUMBER; hash = (53 * hash) + getEnterpriseWebSearch().hashCode(); } + if (hasParallelAiSearch()) { + hash = (37 * hash) + PARALLEL_AI_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getParallelAiSearch().hashCode(); + } if (hasCodeExecution()) { hash = (37 * hash) + CODE_EXECUTION_FIELD_NUMBER; hash = (53 * hash) + getCodeExecution().hashCode(); @@ -3971,6 +5282,7 @@ private void maybeForceBuilderInitialization() { internalGetGoogleSearchRetrievalFieldBuilder(); internalGetGoogleMapsFieldBuilder(); internalGetEnterpriseWebSearchFieldBuilder(); + internalGetParallelAiSearchFieldBuilder(); internalGetCodeExecutionFieldBuilder(); internalGetUrlContextFieldBuilder(); internalGetComputerUseFieldBuilder(); @@ -4013,6 +5325,11 @@ public Builder clear() { enterpriseWebSearchBuilder_.dispose(); enterpriseWebSearchBuilder_ = null; } + parallelAiSearch_ = null; + if (parallelAiSearchBuilder_ != null) { + parallelAiSearchBuilder_.dispose(); + parallelAiSearchBuilder_ = null; + } codeExecution_ = null; if (codeExecutionBuilder_ != null) { codeExecutionBuilder_.dispose(); @@ -4106,18 +5423,23 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Tool result) { to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.codeExecution_ = - codeExecutionBuilder_ == null ? codeExecution_ : codeExecutionBuilder_.build(); + result.parallelAiSearch_ = + parallelAiSearchBuilder_ == null ? parallelAiSearch_ : parallelAiSearchBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.urlContext_ = urlContextBuilder_ == null ? urlContext_ : urlContextBuilder_.build(); + result.codeExecution_ = + codeExecutionBuilder_ == null ? codeExecution_ : codeExecutionBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.urlContext_ = urlContextBuilder_ == null ? urlContext_ : urlContextBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.computerUse_ = computerUseBuilder_ == null ? computerUse_ : computerUseBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } @@ -4176,6 +5498,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tool other) { if (other.hasEnterpriseWebSearch()) { mergeEnterpriseWebSearch(other.getEnterpriseWebSearch()); } + if (other.hasParallelAiSearch()) { + mergeParallelAiSearch(other.getParallelAiSearch()); + } if (other.hasCodeExecution()) { mergeCodeExecution(other.getCodeExecution()); } @@ -4243,7 +5568,7 @@ public Builder mergeFrom( { input.readMessage( internalGetCodeExecutionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 34 case 42: @@ -4271,16 +5596,23 @@ public Builder mergeFrom( { input.readMessage( internalGetUrlContextFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 82 case 90: { input.readMessage( internalGetComputerUseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 90 + case 106: + { + input.readMessage( + internalGetParallelAiSearchFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6024,6 +7356,242 @@ public Builder clearEnterpriseWebSearch() { return enterpriseWebSearchBuilder_; } + private com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallelAiSearch_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch, + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearchOrBuilder> + parallelAiSearchBuilder_; + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parallelAiSearch field is set. + */ + public boolean hasParallelAiSearch() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parallelAiSearch. + */ + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch getParallelAiSearch() { + if (parallelAiSearchBuilder_ == null) { + return parallelAiSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.getDefaultInstance() + : parallelAiSearch_; + } else { + return parallelAiSearchBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParallelAiSearch( + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch value) { + if (parallelAiSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parallelAiSearch_ = value; + } else { + parallelAiSearchBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParallelAiSearch( + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.Builder builderForValue) { + if (parallelAiSearchBuilder_ == null) { + parallelAiSearch_ = builderForValue.build(); + } else { + parallelAiSearchBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParallelAiSearch( + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch value) { + if (parallelAiSearchBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && parallelAiSearch_ != null + && parallelAiSearch_ + != com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.getDefaultInstance()) { + getParallelAiSearchBuilder().mergeFrom(value); + } else { + parallelAiSearch_ = value; + } + } else { + parallelAiSearchBuilder_.mergeFrom(value); + } + if (parallelAiSearch_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParallelAiSearch() { + bitField0_ = (bitField0_ & ~0x00000040); + parallelAiSearch_ = null; + if (parallelAiSearchBuilder_ != null) { + parallelAiSearchBuilder_.dispose(); + parallelAiSearchBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.Builder + getParallelAiSearchBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetParallelAiSearchFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearchOrBuilder + getParallelAiSearchOrBuilder() { + if (parallelAiSearchBuilder_ != null) { + return parallelAiSearchBuilder_.getMessageOrBuilder(); + } else { + return parallelAiSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.getDefaultInstance() + : parallelAiSearch_; + } + } + + /** + * + * + *
+     * Optional. If specified, Vertex AI will use Parallel.ai to search for
+     * information to answer user queries. The search results will be grounded on
+     * Parallel.ai and presented to the model for response generation
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch, + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearchOrBuilder> + internalGetParallelAiSearchFieldBuilder() { + if (parallelAiSearchBuilder_ == null) { + parallelAiSearchBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch, + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearchOrBuilder>( + getParallelAiSearch(), getParentForChildren(), isClean()); + parallelAiSearch_ = null; + } + return parallelAiSearchBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution codeExecution_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution, @@ -6046,7 +7614,7 @@ public Builder clearEnterpriseWebSearch() { * @return Whether the codeExecution field is set. */ public boolean hasCodeExecution() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -6094,7 +7662,7 @@ public Builder setCodeExecution(com.google.cloud.aiplatform.v1beta1.Tool.CodeExe } else { codeExecutionBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6118,7 +7686,7 @@ public Builder setCodeExecution( } else { codeExecutionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6138,7 +7706,7 @@ public Builder setCodeExecution( public Builder mergeCodeExecution( com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution value) { if (codeExecutionBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && codeExecution_ != null && codeExecution_ != com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution.getDefaultInstance()) { @@ -6150,7 +7718,7 @@ public Builder mergeCodeExecution( codeExecutionBuilder_.mergeFrom(value); } if (codeExecution_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -6169,7 +7737,7 @@ public Builder mergeCodeExecution( * */ public Builder clearCodeExecution() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); codeExecution_ = null; if (codeExecutionBuilder_ != null) { codeExecutionBuilder_.dispose(); @@ -6193,7 +7761,7 @@ public Builder clearCodeExecution() { */ public com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution.Builder getCodeExecutionBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetCodeExecutionFieldBuilder().getBuilder(); } @@ -6271,7 +7839,7 @@ public Builder clearCodeExecution() { * @return Whether the urlContext field is set. */ public boolean hasUrlContext() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -6317,7 +7885,7 @@ public Builder setUrlContext(com.google.cloud.aiplatform.v1beta1.UrlContext valu } else { urlContextBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6340,7 +7908,7 @@ public Builder setUrlContext( } else { urlContextBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6358,7 +7926,7 @@ public Builder setUrlContext( */ public Builder mergeUrlContext(com.google.cloud.aiplatform.v1beta1.UrlContext value) { if (urlContextBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && urlContext_ != null && urlContext_ != com.google.cloud.aiplatform.v1beta1.UrlContext.getDefaultInstance()) { getUrlContextBuilder().mergeFrom(value); @@ -6369,7 +7937,7 @@ public Builder mergeUrlContext(com.google.cloud.aiplatform.v1beta1.UrlContext va urlContextBuilder_.mergeFrom(value); } if (urlContext_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -6387,7 +7955,7 @@ public Builder mergeUrlContext(com.google.cloud.aiplatform.v1beta1.UrlContext va * */ public Builder clearUrlContext() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); urlContext_ = null; if (urlContextBuilder_ != null) { urlContextBuilder_.dispose(); @@ -6409,7 +7977,7 @@ public Builder clearUrlContext() { * */ public com.google.cloud.aiplatform.v1beta1.UrlContext.Builder getUrlContextBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetUrlContextFieldBuilder().getBuilder(); } @@ -6486,7 +8054,7 @@ public com.google.cloud.aiplatform.v1beta1.UrlContextOrBuilder getUrlContextOrBu * @return Whether the computerUse field is set. */ public boolean hasComputerUse() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -6536,7 +8104,7 @@ public Builder setComputerUse(com.google.cloud.aiplatform.v1beta1.Tool.ComputerU } else { computerUseBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6561,7 +8129,7 @@ public Builder setComputerUse( } else { computerUseBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6581,7 +8149,7 @@ public Builder setComputerUse( */ public Builder mergeComputerUse(com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse value) { if (computerUseBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && computerUse_ != null && computerUse_ != com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDefaultInstance()) { @@ -6593,7 +8161,7 @@ public Builder mergeComputerUse(com.google.cloud.aiplatform.v1beta1.Tool.Compute computerUseBuilder_.mergeFrom(value); } if (computerUse_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -6613,7 +8181,7 @@ public Builder mergeComputerUse(com.google.cloud.aiplatform.v1beta1.Tool.Compute * */ public Builder clearComputerUse() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); computerUse_ = null; if (computerUseBuilder_ != null) { computerUseBuilder_.dispose(); @@ -6637,7 +8205,7 @@ public Builder clearComputerUse() { * */ public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Builder getComputerUseBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetComputerUseFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java index 78888578fc7d..0c8930b4a523 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java @@ -377,6 +377,55 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl com.google.cloud.aiplatform.v1beta1.EnterpriseWebSearchOrBuilder getEnterpriseWebSearchOrBuilder(); + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parallelAiSearch field is set. + */ + boolean hasParallelAiSearch(); + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parallelAiSearch. + */ + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch getParallelAiSearch(); + + /** + * + * + *
+   * Optional. If specified, Vertex AI will use Parallel.ai to search for
+   * information to answer user queries. The search results will be grounded on
+   * Parallel.ai and presented to the model for response generation
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearchOrBuilder getParallelAiSearchOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java index 2623abeefa37..5a800ffa6410 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -191,7 +195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\032-google/cloud/aiplatfo" + "rm/v1beta1/openapi.proto\032\034google/protobu" - + "f/struct.proto\032\030google/type/latlng.proto\"\342\n\n" + + "f/struct.proto\032\030google/type/latlng.proto\"\233\014\n" + "\004Tool\022X\n" + "\025function_declarations\030\001 \003(\013" + "24.google.cloud.aiplatform.v1beta1.FunctionDeclarationB\003\340A\001\022B\n" @@ -204,22 +208,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013google_maps\030\005 \001" + "(\0132+.google.cloud.aiplatform.v1beta1.GoogleMapsB\003\340A\001\022X\n" + "\025enterprise_web_search\030\006 " - + "\001(\01324.google.cloud.aiplatform.v1beta1.EnterpriseWebSearchB\003\340A\001\022P\n" + + "\001(\01324.google.cloud.aiplatform.v1beta1.EnterpriseWebSearchB\003\340A\001\022W\n" + + "\022parallel_ai_search\030\r" + + " \001(\01326.google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearchB\003\340A\001\022P\n" + "\016code_execution\030\004" + " \001(\01323.google.cloud.aiplatform.v1beta1.Tool.CodeExecutionB\003\340A\001\022E\n" + "\013url_context\030\n" + " \001(\0132+.google.cloud.aiplatform.v1beta1.UrlContextB\003\340A\001\022L\n" - + "\014computer_use\030\013 \001(\01321." - + "google.cloud.aiplatform.v1beta1.Tool.ComputerUseB\003\340A\001\032\246\001\n" + + "\014computer_use\030\013" + + " \001(\01321.google.cloud.aiplatform.v1beta1.Tool.ComputerUseB\003\340A\001\032\246\001\n" + "\014GoogleSearch\022\034\n" + "\017exclude_domains\030\003 \003(\tB\003\340A\001\022`\n" - + "\023blocking_confidence\030\004 \001(\01629.google.cloud.aiplatform.v1be" - + "ta1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" - + "\024_blocking_confidence\032\017\n\r" + + "\023blocking_confidence\030\004 \001(\01629.google.cloud.aiplat" + + "form.v1beta1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" + + "\024_blocking_confidence\032^\n" + + "\020ParallelAiSearch\022\024\n" + + "\007api_key\030\001 \001(\tB\003\340A\001\0224\n" + + "\016custom_configs\030\003" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032\017\n\r" + "CodeExecution\032\327\001\n" + "\013ComputerUse\022W\n" - + "\013environment\030\001 \001(\0162=.g" - + "oogle.cloud.aiplatform.v1beta1.Tool.ComputerUse.EnvironmentB\003\340A\002\022*\n" + + "\013environment\030\001 \001(\0162=.google.cloud.aip" + + "latform.v1beta1.Tool.ComputerUse.EnvironmentB\003\340A\002\022*\n" + "\035excluded_predefined_functions\030\002 \003(\tB\003\340A\001\"C\n" + "\013Environment\022\033\n" + "\027ENVIRONMENT_UNSPECIFIED\020\000\022\027\n" @@ -236,7 +246,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UrlContext\"\260\003\n" + "\016ToolUseExample\022a\n" + "\023extension_operation\030\n" - + " \001(\0132B.google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperationH\000\022\027\n\r" + + " \001(\0132B.google.cl" + + "oud.aiplatform.v1beta1.ToolUseExample.ExtensionOperationH\000\022\027\n\r" + "function_name\030\013 \001(\tH\000\022\031\n" + "\014display_name\030\001 \001(\tB\003\340A\002\022\022\n" + "\005query\030\002 \001(\tB\003\340A\002\022/\n" @@ -251,8 +262,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023FunctionDeclaration\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022@\n\n" - + "parameters\030\003 \001(\0132" - + "\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\022;\n" + + "parameters\030\003" + + " \001(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\022;\n" + "\026parameters_json_schema\030\005" + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\022>\n" + "\010response\030\004" @@ -263,8 +274,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\003 \001(\tB\003\340A\001\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022*\n" + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022F\n" - + "\014partial_args\030\004 \003(\0132+.google.cl" - + "oud.aiplatform.v1beta1.PartialArgB\003\340A\001\022\032\n\r" + + "\014partial_args\030\004" + + " \003(\0132+.google.cloud.aiplatform.v1beta1.PartialArgB\003\340A\001\022\032\n\r" + "will_continue\030\005 \001(\010B\003\340A\001\"\325\001\n\n" + "PartialArg\0225\n\n" + "null_value\030\002" @@ -276,10 +287,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "will_continue\030\006 \001(\010B\003\340A\001B\007\n" + "\005delta\"\274\001\n" + "\024FunctionResponsePart\022L\n" - + "\013inline_data\030\001" - + " \001(\01325.google.cloud.aiplatform.v1beta1.FunctionResponseBlobH\000\022N\n" - + "\tfile_data\030\002" - + " \001(\01329.google.cloud.aiplatform.v1beta1.FunctionResponseFileDataH\000B\006\n" + + "\013inline_data\030\001 \001(\01325.goog" + + "le.cloud.aiplatform.v1beta1.FunctionResponseBlobH\000\022N\n" + + "\tfile_data\030\002 \001(\01329.google.c" + + "loud.aiplatform.v1beta1.FunctionResponseFileDataH\000B\006\n" + "\004data\"\\\n" + "\024FunctionResponseBlob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" @@ -293,18 +304,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\003 \001(\tB\003\340A\001\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022.\n" + "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\022I\n" - + "\005parts\030\004 \003(\01325.google.c" - + "loud.aiplatform.v1beta1.FunctionResponsePartB\003\340A\001\"\246\001\n" + + "\005parts\030\004" + + " \003(\01325.google.cloud.aiplatform.v1beta1.FunctionResponsePartB\003\340A\001\"\246\001\n" + "\016ExecutableCode\022O\n" - + "\010language\030\001" - + " \001(\01628.google.cloud.aiplatform.v1beta1.ExecutableCode.LanguageB\003\340A\002\022\021\n" + + "\010language\030\001 \001(\01628.google" + + ".cloud.aiplatform.v1beta1.ExecutableCode.LanguageB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"0\n" + "\010Language\022\030\n" + "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n" + "\006PYTHON\020\001\"\345\001\n" + "\023CodeExecutionResult\022R\n" - + "\007outcome\030\001 \001(\0162<.google.cloud.aipla" - + "tform.v1beta1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + + "\007outcome\030\001" + + " \001(\0162<.google.cloud.aiplatform.v1beta1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + "\006output\030\002 \001(\tB\003\340A\001\"e\n" + "\007Outcome\022\027\n" + "\023OUTCOME_UNSPECIFIED\020\000\022\016\n\n" @@ -312,22 +323,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016OUTCOME_FAILED\020\002\022\035\n" + "\031OUTCOME_DEADLINE_EXCEEDED\020\003\"\323\001\n" + "\tRetrieval\022K\n" - + "\020vertex_ai_search\030\002" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.VertexAISearchH\000\022K\n" - + "\020vertex_rag_store\030\004" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.VertexRagStoreH\000\022\"\n" + + "\020vertex_ai_search\030\002 \001(\0132/.go" + + "ogle.cloud.aiplatform.v1beta1.VertexAISearchH\000\022K\n" + + "\020vertex_rag_store\030\004 \001(\0132/.googl" + + "e.cloud.aiplatform.v1beta1.VertexRagStoreH\000\022\"\n" + "\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n" + "\006source\"\224\004\n" + "\016VertexRagStore\022B\n" + "\013rag_corpora\030\001 \003(\tB-\030\001\340A\001\372A%\n" + "#aiplatform.googleapis.com/RagCorpus\022W\n\r" - + "rag_resources\030\004 \003(\0132;.google.cloud.aiplatform" - + ".v1beta1.VertexRagStore.RagResourceB\003\340A\001\022$\n" + + "rag_resources\030\004 \003(\0132" + + ";.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceB\003\340A\001\022$\n" + "\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n" + "\031vector_distance_threshold\030\003" + " \001(\001B\005\030\001\340A\001H\001\210\001\001\022V\n" - + "\024rag_retrieval_config\030\006 \001(\01323.go" - + "ogle.cloud.aiplatform.v1beta1.RagRetrievalConfigB\003\340A\001\022\032\n\r" + + "\024rag_retrieval_config\030\006 \001(\01323.google.cloud.aipl" + + "atform.v1beta1.RagRetrievalConfigB\003\340A\001\022\032\n\r" + "store_context\030\007 \001(\010B\003\340A\001\032i\n" + "\013RagResource\022?\n\n" + "rag_corpus\030\001 \001(\tB+\340A\001\372A%\n" @@ -340,45 +351,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006engine\030\002 \001(\tB\003\340A\001\022\030\n" + "\013max_results\030\003 \001(\005B\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022W\n" - + "\020data_store_specs\030\005 \003(\0132=.google.cloud.aiplatfo" - + "rm.v1beta1.VertexAISearch.DataStoreSpec\0328\n\r" + + "\020data_store_specs\030\005 \003(" + + "\0132=.google.cloud.aiplatform.v1beta1.VertexAISearch.DataStoreSpec\0328\n\r" + "DataStoreSpec\022\022\n\n" + "data_store\030\001 \001(\t\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\001\"r\n" + "\025GoogleSearchRetrieval\022Y\n" - + "\030dynamic_retrieval_config\030\002 \001(\01327.g" - + "oogle.cloud.aiplatform.v1beta1.DynamicRetrievalConfig\"(\n\n" + + "\030dynamic_retrieval_config\030\002 \001(\01327.google.cloud.aip" + + "latform.v1beta1.DynamicRetrievalConfig\"(\n\n" + "GoogleMaps\022\032\n\r" + "enable_widget\030\001 \001(\010B\003\340A\001\"\255\001\n" + "\023EnterpriseWebSearch\022\034\n" + "\017exclude_domains\030\001 \003(\tB\003\340A\001\022`\n" - + "\023blocking_confidence\030\004 \001(\01629.google.cloud.aiplat" - + "form.v1beta1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" + + "\023blocking_confidence\030\004 " + + "\001(\01629.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" + "\024_blocking_confidence\"\317\001\n" + "\026DynamicRetrievalConfig\022J\n" - + "\004mode\030\001 \001(\0162<.googl" - + "e.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode\022#\n" + + "\004mode\030\001 \001(\0162<.google.cloud.aiplatf" + + "orm.v1beta1.DynamicRetrievalConfig.Mode\022#\n" + "\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\020\n" + "\014MODE_DYNAMIC\020\001B\024\n" + "\022_dynamic_threshold\"\273\001\n\n" + "ToolConfig\022\\\n" - + "\027function_calling_config\030\001" - + " \001(\01326.google.cloud.aiplatform.v1beta1.FunctionCallingConfigB\003\340A\001\022O\n" - + "\020retrieval_config\030\002" - + " \001(\01320.google.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\211\002\n" + + "\027function_calling_config\030\001 \001(\01326.goo" + + "gle.cloud.aiplatform.v1beta1.FunctionCallingConfigB\003\340A\001\022O\n" + + "\020retrieval_config\030\002 \001(" + + "\01320.google.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\211\002\n" + "\025FunctionCallingConfig\022N\n" - + "\004mode\030\001 \001(\0162;.google" - + ".cloud.aiplatform.v1beta1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" + + "\004mode\030\001 \001(\0162;.google.cloud.aiplatfo" + + "rm.v1beta1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\022+\n" + "\036stream_function_call_arguments\030\004 \001(\010B\003\340A\001\"N\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\010\n" + "\004AUTO\020\001\022\007\n" + "\003ANY\020\002\022\010\n" - + "\004NONE\020\003\022\r" - + "\n" + + "\004NONE\020\003\022\r\n" + "\tVALIDATED\020\005\"\004\010\004\020\004\"v\n" + "\017RetrievalConfig\022)\n" + "\007lat_lng\030\001 \001(\0132\023.google.type.LatLngH\000\210\001\001\022\032\n\r" @@ -387,12 +397,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_language_code\"\317\006\n" + "\022RagRetrievalConfig\022\022\n" + "\005top_k\030\001 \001(\005B\003\340A\001\022\\\n\r" - + "hybrid_search\030\002" - + " \001(\0132@.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n" - + "\006filter\030\003" - + " \001(\0132:.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n" - + "\007ranking\030\004 \001(\0132;.google.cloud.aiplatform" - + ".v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n" + + "hybrid_search\030\002 \001(\0132@.google." + + "cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n" + + "\006filter\030\003 \001(\0132:." + + "google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n" + + "\007ranking\030\004 \001(\0132" + + ";.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n" + "\014HybridSearch\022\027\n" + "\005alpha\030\001 \001(\002B\003\340A\001H\000\210\001\001B\010\n" + "\006_alpha\032\223\001\n" @@ -402,10 +412,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n" + "\023vector_db_threshold\032\331\002\n" + "\007Ranking\022d\n" - + "\014rank_service\030\001 \001(\0132G.go" - + "ogle.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n" - + "llm_ranker\030\003 \001(\0132E.google.cloud.aiplatfor" - + "m.v1beta1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + + "\014rank_service\030\001 \001(\0132G.google.cloud.aipl" + + "atform.v1beta1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n" + + "llm_ranker\030\003 \001(\0132E.google.cloud.aiplatform.v1beta1.RagRe" + + "trievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + "\013RankService\022\034\n\n" + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_name\0328\n" @@ -413,11 +423,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_nameB\020\n" + "\016ranking_configB\340\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\tToolProto" - + "P\001ZCcloud.google.com/go/aiplatform/apiv1" - + "beta1/aiplatformpb;aiplatformpb\252\002\037Google" - + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" - + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP\001ZCcloud.googl" + + "e.com/go/aiplatform/apiv1beta1/aiplatfor" + + "mpb;aiplatformpb\252\002\037Google.Cloud.AIPlatfo" + + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b" + + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -441,6 +451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleSearchRetrieval", "GoogleMaps", "EnterpriseWebSearch", + "ParallelAiSearch", "CodeExecution", "UrlContext", "ComputerUse", @@ -453,14 +464,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ExcludeDomains", "BlockingConfidence", }); - internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedType(1); + internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Tool_ParallelAiSearch_descriptor, + new java.lang.String[] { + "ApiKey", "CustomConfigs", + }); + internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedType(2); internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_descriptor = - internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedType(2); + internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedType(3); internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java index 02238b87c024..4c7890c26efe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java @@ -155,6 +155,7 @@ public enum TuningSpecCase DISTILLATION_SPEC(17), PARTNER_MODEL_TUNING_SPEC(21), VEO_TUNING_SPEC(33), + VEO_LORA_TUNING_SPEC(38), TUNINGSPEC_NOT_SET(0); private final int value; @@ -182,6 +183,8 @@ public static TuningSpecCase forNumber(int value) { return PARTNER_MODEL_TUNING_SPEC; case 33: return VEO_TUNING_SPEC; + case 38: + return VEO_LORA_TUNING_SPEC; case 0: return TUNINGSPEC_NOT_SET; default: @@ -550,6 +553,61 @@ public com.google.cloud.aiplatform.v1beta1.VeoTuningSpecOrBuilder getVeoTuningSp return com.google.cloud.aiplatform.v1beta1.VeoTuningSpec.getDefaultInstance(); } + public static final int VEO_LORA_TUNING_SPEC_FIELD_NUMBER = 38; + + /** + * + * + *
+   * Tuning Spec for Veo LoRA Tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return Whether the veoLoraTuningSpec field is set. + */ + @java.lang.Override + public boolean hasVeoLoraTuningSpec() { + return tuningSpecCase_ == 38; + } + + /** + * + * + *
+   * Tuning Spec for Veo LoRA Tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return The veoLoraTuningSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getVeoLoraTuningSpec() { + if (tuningSpecCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + + /** + * + * + *
+   * Tuning Spec for Veo LoRA Tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder + getVeoLoraTuningSpecOrBuilder() { + if (tuningSpecCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1854,6 +1912,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tuningSpecCase_ == 33) { output.writeMessage(33, (com.google.cloud.aiplatform.v1beta1.VeoTuningSpec) tuningSpec_); } + if (tuningSpecCase_ == 38) { + output.writeMessage(38, (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_); + } getUnknownFields().writeTo(output); } @@ -1956,6 +2017,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 33, (com.google.cloud.aiplatform.v1beta1.VeoTuningSpec) tuningSpec_); } + if (tuningSpecCase_ == 38) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 38, (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2040,6 +2106,9 @@ public boolean equals(final java.lang.Object obj) { case 33: if (!getVeoTuningSpec().equals(other.getVeoTuningSpec())) return false; break; + case 38: + if (!getVeoLoraTuningSpec().equals(other.getVeoLoraTuningSpec())) return false; + break; case 0: default: } @@ -2141,6 +2210,10 @@ public int hashCode() { hash = (37 * hash) + VEO_TUNING_SPEC_FIELD_NUMBER; hash = (53 * hash) + getVeoTuningSpec().hashCode(); break; + case 38: + hash = (37 * hash) + VEO_LORA_TUNING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getVeoLoraTuningSpec().hashCode(); + break; case 0: default: } @@ -2338,6 +2411,9 @@ public Builder clear() { if (veoTuningSpecBuilder_ != null) { veoTuningSpecBuilder_.clear(); } + if (veoLoraTuningSpecBuilder_ != null) { + veoLoraTuningSpecBuilder_.clear(); + } name_ = ""; tunedModelDisplayName_ = ""; description_ = ""; @@ -2394,7 +2470,7 @@ public Builder clear() { evaluateDatasetRuns_ = null; evaluateDatasetRunsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); sourceModelCase_ = 0; sourceModel_ = null; tuningSpecCase_ = 0; @@ -2437,9 +2513,9 @@ public com.google.cloud.aiplatform.v1beta1.TuningJob buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.TuningJob result) { if (evaluateDatasetRunsBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { evaluateDatasetRuns_ = java.util.Collections.unmodifiableList(evaluateDatasetRuns_); - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); } result.evaluateDatasetRuns_ = evaluateDatasetRuns_; } else { @@ -2449,70 +2525,70 @@ private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Tuni private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TuningJob result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.tunedModelDisplayName_ = tunedModelDisplayName_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.customBaseModel_ = customBaseModel_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.state_ = state_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.experiment_ = experiment_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.tunedModel_ = tunedModelBuilder_ == null ? tunedModel_ : tunedModelBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.tuningDataStats_ = tuningDataStatsBuilder_ == null ? tuningDataStats_ : tuningDataStatsBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.pipelineJob_ = pipelineJob_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.serviceAccount_ = serviceAccount_; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.outputUri_ = outputUri_; } result.bitField0_ |= to_bitField0_; @@ -2538,6 +2614,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.TuningJob re if (tuningSpecCase_ == 33 && veoTuningSpecBuilder_ != null) { result.tuningSpec_ = veoTuningSpecBuilder_.build(); } + if (tuningSpecCase_ == 38 && veoLoraTuningSpecBuilder_ != null) { + result.tuningSpec_ = veoLoraTuningSpecBuilder_.build(); + } } @java.lang.Override @@ -2554,22 +2633,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { if (other == com.google.cloud.aiplatform.v1beta1.TuningJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getTunedModelDisplayName().isEmpty()) { tunedModelDisplayName_ = other.tunedModelDisplayName_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getCustomBaseModel().isEmpty()) { customBaseModel_ = other.customBaseModel_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.state_ != 0) { @@ -2591,10 +2670,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; if (!other.getExperiment().isEmpty()) { experiment_ = other.experiment_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasTunedModel()) { @@ -2605,7 +2684,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { } if (!other.getPipelineJob().isEmpty()) { pipelineJob_ = other.pipelineJob_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (other.hasEncryptionSpec()) { @@ -2613,19 +2692,19 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } if (evaluateDatasetRunsBuilder_ == null) { if (!other.evaluateDatasetRuns_.isEmpty()) { if (evaluateDatasetRuns_.isEmpty()) { evaluateDatasetRuns_ = other.evaluateDatasetRuns_; - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); } else { ensureEvaluateDatasetRunsIsMutable(); evaluateDatasetRuns_.addAll(other.evaluateDatasetRuns_); @@ -2638,7 +2717,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { evaluateDatasetRunsBuilder_.dispose(); evaluateDatasetRunsBuilder_ = null; evaluateDatasetRuns_ = other.evaluateDatasetRuns_; - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); evaluateDatasetRunsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetEvaluateDatasetRunsFieldBuilder() @@ -2687,6 +2766,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { mergeVeoTuningSpec(other.getVeoTuningSpec()); break; } + case VEO_LORA_TUNING_SPEC: + { + mergeVeoLoraTuningSpec(other.getVeoLoraTuningSpec()); + break; + } case TUNINGSPEC_NOT_SET: { break; @@ -2721,19 +2805,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 10 case 18: { tunedModelDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 26 case 34: @@ -2753,40 +2837,40 @@ public Builder mergeFrom( case 48: { state_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 48 case 58: { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 58 case 66: { input.readMessage( internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 66 case 74: { input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 74 case 82: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 82 case 90: { input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 90 case 98: @@ -2798,34 +2882,34 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 98 case 106: { experiment_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 106 case 114: { input.readMessage( internalGetTunedModelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 114 case 122: { input.readMessage( internalGetTuningDataStatsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 122 case 130: { input.readMessage( internalGetEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 130 case 138: @@ -2838,7 +2922,7 @@ public Builder mergeFrom( case 146: { pipelineJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 146 case 170: @@ -2852,19 +2936,19 @@ public Builder mergeFrom( case 178: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 178 case 202: { outputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 202 case 210: { customBaseModel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 210 case 250: @@ -2895,6 +2979,13 @@ public Builder mergeFrom( tuningSpecCase_ = 33; break; } // case 266 + case 306: + { + input.readMessage( + internalGetVeoLoraTuningSpecFieldBuilder().getBuilder(), extensionRegistry); + tuningSpecCase_ = 38; + break; + } // case 306 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4214,6 +4305,229 @@ public com.google.cloud.aiplatform.v1beta1.VeoTuningSpecOrBuilder getVeoTuningSp return veoTuningSpecBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder> + veoLoraTuningSpecBuilder_; + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return Whether the veoLoraTuningSpec field is set. + */ + @java.lang.Override + public boolean hasVeoLoraTuningSpec() { + return tuningSpecCase_ == 38; + } + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return The veoLoraTuningSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getVeoLoraTuningSpec() { + if (veoLoraTuningSpecBuilder_ == null) { + if (tuningSpecCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } else { + if (tuningSpecCase_ == 38) { + return veoLoraTuningSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public Builder setVeoLoraTuningSpec( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec value) { + if (veoLoraTuningSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tuningSpec_ = value; + onChanged(); + } else { + veoLoraTuningSpecBuilder_.setMessage(value); + } + tuningSpecCase_ = 38; + return this; + } + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public Builder setVeoLoraTuningSpec( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder builderForValue) { + if (veoLoraTuningSpecBuilder_ == null) { + tuningSpec_ = builderForValue.build(); + onChanged(); + } else { + veoLoraTuningSpecBuilder_.setMessage(builderForValue.build()); + } + tuningSpecCase_ = 38; + return this; + } + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public Builder mergeVeoLoraTuningSpec( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec value) { + if (veoLoraTuningSpecBuilder_ == null) { + if (tuningSpecCase_ == 38 + && tuningSpec_ + != com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance()) { + tuningSpec_ = + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + tuningSpec_ = value; + } + onChanged(); + } else { + if (tuningSpecCase_ == 38) { + veoLoraTuningSpecBuilder_.mergeFrom(value); + } else { + veoLoraTuningSpecBuilder_.setMessage(value); + } + } + tuningSpecCase_ = 38; + return this; + } + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public Builder clearVeoLoraTuningSpec() { + if (veoLoraTuningSpecBuilder_ == null) { + if (tuningSpecCase_ == 38) { + tuningSpecCase_ = 0; + tuningSpec_ = null; + onChanged(); + } + } else { + if (tuningSpecCase_ == 38) { + tuningSpecCase_ = 0; + tuningSpec_ = null; + } + veoLoraTuningSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder + getVeoLoraTuningSpecBuilder() { + return internalGetVeoLoraTuningSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder + getVeoLoraTuningSpecOrBuilder() { + if ((tuningSpecCase_ == 38) && (veoLoraTuningSpecBuilder_ != null)) { + return veoLoraTuningSpecBuilder_.getMessageOrBuilder(); + } else { + if (tuningSpecCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Tuning Spec for Veo LoRA Tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder> + internalGetVeoLoraTuningSpecFieldBuilder() { + if (veoLoraTuningSpecBuilder_ == null) { + if (!(tuningSpecCase_ == 38)) { + tuningSpec_ = com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + veoLoraTuningSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_, + getParentForChildren(), + isClean()); + tuningSpec_ = null; + } + tuningSpecCase_ = 38; + onChanged(); + return veoLoraTuningSpecBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -4288,7 +4602,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4309,7 +4623,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -4335,7 +4649,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4411,7 +4725,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) { throw new NullPointerException(); } tunedModelDisplayName_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4431,7 +4745,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) { */ public Builder clearTunedModelDisplayName() { tunedModelDisplayName_ = getDefaultInstance().getTunedModelDisplayName(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4456,7 +4770,7 @@ public Builder setTunedModelDisplayNameBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); tunedModelDisplayName_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4529,7 +4843,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4548,7 +4862,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4572,7 +4886,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4657,7 +4971,7 @@ public Builder setCustomBaseModel(java.lang.String value) { throw new NullPointerException(); } customBaseModel_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4680,7 +4994,7 @@ public Builder setCustomBaseModel(java.lang.String value) { */ public Builder clearCustomBaseModel() { customBaseModel_ = getDefaultInstance().getCustomBaseModel(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4708,7 +5022,7 @@ public Builder setCustomBaseModelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customBaseModel_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4749,7 +5063,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4792,7 +5106,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; state_ = value.getNumber(); onChanged(); return this; @@ -4812,7 +5126,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); state_ = 0; onChanged(); return this; @@ -4840,7 +5154,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4888,7 +5202,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4911,7 +5225,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4930,7 +5244,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4941,7 +5255,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4960,7 +5274,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4983,7 +5297,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -5061,7 +5375,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5107,7 +5421,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5130,7 +5444,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu } else { startTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5149,7 +5463,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); @@ -5160,7 +5474,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5179,7 +5493,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); @@ -5202,7 +5516,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetStartTimeFieldBuilder().getBuilder(); } @@ -5278,7 +5592,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5324,7 +5638,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5347,7 +5661,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5366,7 +5680,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); @@ -5377,7 +5691,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -5396,7 +5710,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); @@ -5419,7 +5733,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetEndTimeFieldBuilder().getBuilder(); } @@ -5496,7 +5810,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5546,7 +5860,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5570,7 +5884,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5590,7 +5904,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -5601,7 +5915,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5621,7 +5935,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -5645,7 +5959,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -5721,7 +6035,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -5763,7 +6077,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5784,7 +6098,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5801,7 +6115,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -5812,7 +6126,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -5829,7 +6143,7 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -5850,7 +6164,7 @@ public Builder clearError() { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetErrorFieldBuilder().getBuilder(); } @@ -5914,7 +6228,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return labels_; } @@ -6040,7 +6354,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -6074,7 +6388,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return internalGetMutableLabels().getMutableMap(); } @@ -6104,7 +6418,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return this; } @@ -6128,7 +6442,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return this; } @@ -6206,7 +6520,7 @@ public Builder setExperiment(java.lang.String value) { throw new NullPointerException(); } experiment_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6227,7 +6541,7 @@ public Builder setExperiment(java.lang.String value) { */ public Builder clearExperiment() { experiment_ = getDefaultInstance().getExperiment(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -6253,7 +6567,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); experiment_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6280,7 +6594,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { * @return Whether the tunedModel field is set. */ public boolean hasTunedModel() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -6328,7 +6642,7 @@ public Builder setTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel valu } else { tunedModelBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6352,7 +6666,7 @@ public Builder setTunedModel( } else { tunedModelBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6371,7 +6685,7 @@ public Builder setTunedModel( */ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel value) { if (tunedModelBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && tunedModel_ != null && tunedModel_ != com.google.cloud.aiplatform.v1beta1.TunedModel.getDefaultInstance()) { getTunedModelBuilder().mergeFrom(value); @@ -6382,7 +6696,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va tunedModelBuilder_.mergeFrom(value); } if (tunedModel_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -6401,7 +6715,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va * */ public Builder clearTunedModel() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); tunedModel_ = null; if (tunedModelBuilder_ != null) { tunedModelBuilder_.dispose(); @@ -6424,7 +6738,7 @@ public Builder clearTunedModel() { * */ public com.google.cloud.aiplatform.v1beta1.TunedModel.Builder getTunedModelBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return internalGetTunedModelFieldBuilder().getBuilder(); } @@ -6502,7 +6816,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModelOrBuilder getTunedModelOrBu * @return Whether the tuningDataStats field is set. */ public boolean hasTuningDataStats() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -6550,7 +6864,7 @@ public Builder setTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningData } else { tuningDataStatsBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6574,7 +6888,7 @@ public Builder setTuningDataStats( } else { tuningDataStatsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6593,7 +6907,7 @@ public Builder setTuningDataStats( */ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDataStats value) { if (tuningDataStatsBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && tuningDataStats_ != null && tuningDataStats_ != com.google.cloud.aiplatform.v1beta1.TuningDataStats.getDefaultInstance()) { @@ -6605,7 +6919,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa tuningDataStatsBuilder_.mergeFrom(value); } if (tuningDataStats_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -6624,7 +6938,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa * */ public Builder clearTuningDataStats() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); tuningDataStats_ = null; if (tuningDataStatsBuilder_ != null) { tuningDataStatsBuilder_.dispose(); @@ -6647,7 +6961,7 @@ public Builder clearTuningDataStats() { * */ public com.google.cloud.aiplatform.v1beta1.TuningDataStats.Builder getTuningDataStatsBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return internalGetTuningDataStatsFieldBuilder().getBuilder(); } @@ -6781,7 +7095,7 @@ public Builder setPipelineJob(java.lang.String value) { throw new NullPointerException(); } pipelineJob_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6803,7 +7117,7 @@ public Builder setPipelineJob(java.lang.String value) { */ public Builder clearPipelineJob() { pipelineJob_ = getDefaultInstance().getPipelineJob(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -6830,7 +7144,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pipelineJob_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6856,7 +7170,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -6902,7 +7216,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6925,7 +7239,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6943,7 +7257,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00400000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -6955,7 +7269,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -6973,7 +7287,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -6995,7 +7309,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return internalGetEncryptionSpecFieldBuilder().getBuilder(); } @@ -7133,7 +7447,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7157,7 +7471,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -7186,7 +7500,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7262,7 +7576,7 @@ public Builder setOutputUri(java.lang.String value) { throw new NullPointerException(); } outputUri_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7282,7 +7596,7 @@ public Builder setOutputUri(java.lang.String value) { */ public Builder clearOutputUri() { outputUri_ = getDefaultInstance().getOutputUri(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } @@ -7307,7 +7621,7 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); outputUri_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7316,11 +7630,11 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { evaluateDatasetRuns_ = java.util.Collections.emptyList(); private void ensureEvaluateDatasetRunsIsMutable() { - if (!((bitField0_ & 0x01000000) != 0)) { + if (!((bitField0_ & 0x02000000) != 0)) { evaluateDatasetRuns_ = new java.util.ArrayList( evaluateDatasetRuns_); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; } } @@ -7574,7 +7888,7 @@ public Builder addAllEvaluateDatasetRuns( public Builder clearEvaluateDatasetRuns() { if (evaluateDatasetRunsBuilder_ == null) { evaluateDatasetRuns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); onChanged(); } else { evaluateDatasetRunsBuilder_.clear(); @@ -7723,7 +8037,7 @@ public Builder removeEvaluateDatasetRuns(int index) { com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRun.Builder, com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunOrBuilder>( evaluateDatasetRuns_, - ((bitField0_ & 0x01000000) != 0), + ((bitField0_ & 0x02000000) != 0), getParentForChildren(), isClean()); evaluateDatasetRuns_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java index 5b2d5919c61a..d5fc1516a121 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java @@ -258,6 +258,43 @@ public interface TuningJobOrBuilder */ com.google.cloud.aiplatform.v1beta1.VeoTuningSpecOrBuilder getVeoTuningSpecOrBuilder(); + /** + * + * + *
+   * Tuning Spec for Veo LoRA Tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return Whether the veoLoraTuningSpec field is set. + */ + boolean hasVeoLoraTuningSpec(); + + /** + * + * + *
+   * Tuning Spec for Veo LoRA Tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return The veoLoraTuningSpec. + */ + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getVeoLoraTuningSpec(); + + /** + * + * + *
+   * Tuning Spec for Veo LoRA Tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder getVeoLoraTuningSpecOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java index 655a7bb5b832..d874bc544b38 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java @@ -120,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_VeoTuningSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_VeoTuningSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -153,7 +157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "valuation_service.proto\032/google/cloud/ai" + "platform/v1beta1/job_state.proto\032\034google" + "/protobuf/struct.proto\032\037google/protobuf/" - + "timestamp.proto\032\027google/rpc/status.proto\"\200\r\n" + + "timestamp.proto\032\027google/rpc/status.proto\"\324\r\n" + "\tTuningJob\022\024\n\n" + "base_model\030\004 \001(\tH\000\022I\n" + "\017pre_tuned_model\030\037" @@ -165,7 +169,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031partner_model_tuning_spec\030\025 \001(\01327.go" + "ogle.cloud.aiplatform.v1beta1.PartnerModelTuningSpecH\001\022I\n" + "\017veo_tuning_spec\030! \001(\0132" - + "..google.cloud.aiplatform.v1beta1.VeoTuningSpecH\001\022\024\n" + + "..google.cloud.aiplatform.v1beta1.VeoTuningSpecH\001\022R\n" + + "\024veo_lora_tuning_spec\030& \001(\0132" + + "2.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecH\001\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022%\n" + "\030tuned_model_display_name\030\002 \001(\tB\003\340A\001\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022\036\n" @@ -179,28 +185,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n" + "\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\022K\n" - + "\006labels\030\014 \003(\01326.google.cloud.aipla" - + "tform.v1beta1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n" + + "\006labels\030\014 \003(\01326.google.cloud.a" + + "iplatform.v1beta1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n" + "experiment\030\r" + " \001(\tB)\340A\003\372A#\n" + "!aiplatform.googleapis.com/Context\022E\n" + "\013tuned_model\030\016" + " \001(\0132+.google.cloud.aiplatform.v1beta1.TunedModelB\003\340A\003\022P\n" - + "\021tuning_data_stats\030\017 \001(" - + "\01320.google.cloud.aiplatform.v1beta1.TuningDataStatsB\003\340A\003\022C\n" + + "\021tuning_data_stats\030\017" + + " \001(\01320.google.cloud.aiplatform.v1beta1.TuningDataStatsB\003\340A\003\022C\n" + "\014pipeline_job\030\022 \001(\tB-\340A\003\372A\'\n" + "%aiplatform.googleapis.com/PipelineJob\022H\n" - + "\017encryption_spec\030\020 \001(\0132/.google." - + "cloud.aiplatform.v1beta1.EncryptionSpec\022\027\n" + + "\017encryption_spec\030\020 \001(\0132/.goo" + + "gle.cloud.aiplatform.v1beta1.EncryptionSpec\022\027\n" + "\017service_account\030\026 \001(\t\022\027\n\n" + "output_uri\030\031 \001(\tB\003\340A\001\022W\n" - + "\025evaluate_dataset_runs\030 \003(\013" - + "23.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunB\003\340A\003\032-\n" + + "\025evaluate_dataset_runs\030 " + + " \003(\01323.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n" - + "#aiplatform.googleapis.com/TuningJob\022?projects/{" - + "project}/locations/{location}/tuningJobs/{tuning_job}*\n" + + "#aiplatform.googleapis.com/TuningJob\022?projec" + + "ts/{project}/locations/{location}/tuningJobs/{tuning_job}*\n" + "tuningJobs2\ttuningJobB\016\n" + "\014source_modelB\r\n" + "\013tuning_spec\"\323\001\n\n" @@ -209,8 +215,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037aiplatform.googleapis.com/Model\022<\n" + "\010endpoint\030\002 \001(\tB*\340A\003\372A$\n" + "\"aiplatform.googleapis.com/Endpoint\022O\n" - + "\013checkpoints\030\003 \003(\01325.google.cloud.aip" - + "latform.v1beta1.TunedModelCheckpointB\003\340A\003\"\367\002\n" + + "\013checkpoints\030\003 \003(\01325.google.cloud" + + ".aiplatform.v1beta1.TunedModelCheckpointB\003\340A\003\"\367\002\n" + "#SupervisedTuningDatasetDistribution\022\020\n" + "\003sum\030\001 \001(\003B\003\340A\003\022\031\n" + "\014billable_sum\030\t \001(\003B\003\340A\003\022\020\n" @@ -220,8 +226,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006median\030\005 \001(\001B\003\340A\003\022\017\n" + "\002p5\030\006 \001(\001B\003\340A\003\022\020\n" + "\003p95\030\007 \001(\001B\003\340A\003\022h\n" - + "\007buckets\030\010 \003(\0132R.google.cloud.aiplatform" - + ".v1beta1.SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r" + + "\007buckets\030\010 \003(\0132R.google.cloud.aiplat" + + "form.v1beta1.SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r" + "DatasetBucket\022\022\n" + "\005count\030\001 \001(\001B\003\340A\003\022\021\n" + "\004left\030\002 \001(\001B\003\340A\003\022\022\n" @@ -232,14 +238,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036total_billable_character_count\030\003 \001(\003B\005\030\001\340A\003\022\'\n" + "\032total_billable_token_count\030\t \001(\003B\003\340A\003\022\036\n" + "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022p\n" - + "\035user_input_token_distribution\030\005 \001(\0132D.google.cloud.aiplatform" - + ".v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n" - + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatform.v1be" - + "ta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n" - + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatform.v1" - + "beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022L\n" - + "\025user_dataset_examples\030\010 \003(\0132(." - + "google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022*\n" + + "\035user_input_token_distribution\030\005 \001(\0132D.google.cloud.aiplat" + + "form.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n" + + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatform." + + "v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n" + + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatfor" + + "m.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022L\n" + + "\025user_dataset_examples\030\010 \003(" + + "\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022*\n" + "\035total_truncated_example_count\030\n" + " \001(\003B\003\340A\003\022&\n" + "\031truncated_example_indices\030\013 \003(\003B\003\340A\003\022$\n" @@ -252,8 +258,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006median\030\005 \001(\001B\003\340A\003\022\017\n" + "\002p5\030\006 \001(\001B\003\340A\003\022\020\n" + "\003p95\030\007 \001(\001B\003\340A\003\022]\n" - + "\007buckets\030\010 \003(\0132G.google.cloud.aiplatfo" - + "rm.v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n" + + "\007buckets\030\010 \003(\0132G.google.cloud.aipl" + + "atform.v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n" + "\022DistributionBucket\022\022\n" + "\005count\030\001 \001(\003B\003\340A\003\022\021\n" + "\004left\030\002 \001(\001B\003\340A\003\022\022\n" @@ -263,30 +269,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034total_tuning_character_count\030\002 \001(\003B\003\340A\003\022+\n" + "\036total_billable_character_count\030\003 \001(\003B\003\340A\003\022\036\n" + "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022`\n" - + "\035user_input_token_distribution\030\005 \001(\01324.goo" - + "gle.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n" - + "\036user_output_token_distribution\030\006" - + " \001(\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n" + + "\035user_input_token_distribution\030\005 \001(\01324" + + ".google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n" + + "\036user_output_token_distribution\030\006 \001(\01324.google.cloud.aiplatf" + + "orm.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n" + "%user_message_per_example_distribution\030\007" + " \001(\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022L\n" + "\025user_dataset_examples\030\010" + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003B!\n" + "\037_user_output_token_distribution\"k\n" + "\025DistillationDataStats\022R\n" - + "\026training_dataset_stats\030\001 \001(\0132-.goog" - + "le.cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n" + + "\026training_dataset_stats\030\001 \001(\0132-." + + "google.cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n" + "\017TuningDataStats\022b\n" - + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.cloud.a" - + "iplatform.v1beta1.SupervisedTuningDataStatsH\000\022^\n" - + "\027distillation_data_stats\030\003 \001(\01326" - + ".google.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n" + + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.clo" + + "ud.aiplatform.v1beta1.SupervisedTuningDataStatsH\000\022^\n" + + "\027distillation_data_stats\030\003 \001" + + "(\01326.google.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n" + "\021tuning_data_stats\"\264\003\n" + "\031SupervisedHyperParameters\022\030\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022\032\n\r" + "learning_rate\030\006 \001(\001B\003\340A\001\022a\n" - + "\014adapter_size\030\003 \001(\0162F.google.clo" - + "ud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\022\027\n\n" + + "\014adapter_size\030\003 \001(\0162F.google" + + ".cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\022\027\n\n" + "batch_size\030\005 \001(\003B\003\340A\001\"\275\001\n" + "\013AdapterSize\022\034\n" + "\030ADAPTER_SIZE_UNSPECIFIED\020\000\022\024\n" @@ -302,10 +308,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020hyper_parameters\030\003" + " \001(\0132:.google.cloud.aiplatform.v1beta1.SupervisedHyperParametersB\003\340A\001\022(\n" + "\033export_last_checkpoint_only\030\006 \001(\010B\003\340A\001\022Q\n" - + "\021evaluation_config\030\005" - + " \001(\01321.google.cloud.aiplatform.v1beta1.EvaluationConfigB\003\340A\001\022U\n" - + "\013tuning_mode\030\007 \001(\0162@.google.cloud.aiplatfor" - + "m.v1beta1.SupervisedTuningSpec.TuningMode\"]\n\n" + + "\021evaluation_config\030\005 \001(\01321.google.cloud.ai" + + "platform.v1beta1.EvaluationConfigB\003\340A\001\022U\n" + + "\013tuning_mode\030\007 \001(\0162@.google.cloud.aipla" + + "tform.v1beta1.SupervisedTuningSpec.TuningMode\"]\n\n" + "TuningMode\022\033\n" + "\027TUNING_MODE_UNSPECIFIED\020\000\022\024\n" + "\020TUNING_MODE_FULL\020\001\022\034\n" @@ -317,7 +323,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022(\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001H\001\210\001\001\022[\n" + "\020hyper_parameters\030\003" - + " \001(\0132<.google.cloud.aiplatform.v1beta1.DistillationHyperParametersB\003\340A\001\022\025\n\r" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.DistillationHyperParametersB\003\340A\001\022\025\n" + + "\r" + "student_model\030\004 \001(\t\022$\n" + "\027pipeline_root_directory\030\007 \001(\tB\003\340A\002B\017\n\r" + "teacher_modelB\031\n" @@ -325,18 +332,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033DistillationHyperParameters\022\035\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001H\000\210\001\001\022*\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001H\001\210\001\001\022a\n" - + "\014adapter_size\030\003 \001(\0162F.google.clo" - + "ud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n" + + "\014adapter_size\030\003 \001(\0162F.google" + + ".cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n" + "\014_epoch_countB\033\n" + "\031_learning_rate_multiplier\"\230\002\n" + "\026PartnerModelTuningSpec\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022f\n" - + "\020hyper_parameters\030\003 \003(\0132L.goo" - + "gle.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.HyperParametersEntry\032N\n" + + "\020hyper_parameters\030\003 \003(\0132L" + + ".google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.HyperParametersEntry\032N\n" + "\024HyperParametersEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n" - + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\343\001\n\r" + + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\343\001\n" + + "\r" + "TunedModelRef\022;\n" + "\013tuned_model\030\001 \001(\tB$\372A!\n" + "\037aiplatform.googleapis.com/ModelH\000\022>\n\n" @@ -344,36 +352,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#aiplatform.googleapis.com/TuningJobH\000\022B\n" + "\014pipeline_job\030\003 \001(\tB*\372A\'\n" + "%aiplatform.googleapis.com/PipelineJobH\000B\021\n" - + "\017tuned_model_ref\"\204\002\n" + + "\017tuned_model_ref\"\347\005\n" + "\022VeoHyperParameters\022\030\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022X\n" - + "\013tuning_task\030\003 \001(\0162>.google.cloud.aiplatform.v1" - + "beta1.VeoHyperParameters.TuningTaskB\003\340A\001\"S\n\n" + + "\013tuning_task\030\003 \001(\0162>.google.cloud.aiplatfor" + + "m.v1beta1.VeoHyperParameters.TuningTaskB\003\340A\001\022(\n" + + "\026veo_data_mixture_ratio\030\004 \001(\001B\003\340A\001H\000\210\001\001\022Z\n" + + "\014tuning_speed\030\005 \001(\0162?.google.cl" + + "oud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeedH\001\210\001\001\022Z\n" + + "\014adapter_size\030\006 \001(\016" + + "2?.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSizeB\003\340A\001\"h\n\n" + "TuningTask\022\033\n" + "\027TUNING_TASK_UNSPECIFIED\020\000\022\023\n" + "\017TUNING_TASK_I2V\020\001\022\023\n" - + "\017TUNING_TASK_T2V\020\002\"\253\001\n\r" + + "\017TUNING_TASK_T2V\020\002\022\023\n" + + "\017TUNING_TASK_R2V\020\003\"B\n" + + "\013TuningSpeed\022\034\n" + + "\030TUNING_SPEED_UNSPECIFIED\020\000\022\013\n" + + "\007REGULAR\020\001\022\010\n" + + "\004FAST\020\002\"z\n" + + "\013AdapterSize\022\034\n" + + "\030ADAPTER_SIZE_UNSPECIFIED\020\000\022\026\n" + + "\022ADAPTER_SIZE_EIGHT\020\010\022\030\n" + + "\024ADAPTER_SIZE_SIXTEEN\020\020\022\033\n" + + "\027ADAPTER_SIZE_THIRTY_TWO\020 B\031\n" + + "\027_veo_data_mixture_ratioB\017\n\r" + + "_tuning_speed\"\253\001\n\r" + "VeoTuningSpec\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022R\n" - + "\020hyper_parameters\030\003 \001(" - + "\01323.google.cloud.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\312\002\n" + + "\020hyper_parameters\030\003" + + " \001(\01323.google.cloud.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\257\001\n" + + "\021VeoLoraTuningSpec\022!\n" + + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022R\n" + + "\020hyper_parameters\030\003 \001(\01323.google.clou" + + "d.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\312\002\n" + "\020EvaluationConfig\022=\n" - + "\007metrics\030\001" - + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" - + "output_config\030\002" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" - + "\020autorater_config\030\003" - + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\022[\n" - + "\033inference_generation_config\030\005" - + " \001(\01321.google.cloud.aiplatform.v1beta1.GenerationConfigB\003\340A\001\"\364\001\n" + + "\007metrics\030\001 \003" + + "(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" + + "output_config\030\002 \001(\0132-.google" + + ".cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" + + "\020autorater_config\030\003 \001(\01320.google.c" + + "loud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\022[\n" + + "\033inference_generation_config\030\005 \001(" + + "\01321.google.cloud.aiplatform.v1beta1.GenerationConfigB\003\340A\001\"\364\001\n" + "\022EvaluateDatasetRun\022\033\n" + "\016operation_name\030\001 \001(\tB\003\340A\003\022\033\n" + "\016evaluation_run\030\005 \001(\tB\003\340A\003\022\032\n\r" + "checkpoint_id\030\002 \001(\tB\003\340A\003\022`\n" - + "\031evaluate_dataset_response\030\003 \001(\01328.google.cloud.aiplatfo" - + "rm.v1beta1.EvaluateDatasetResponseB\003\340A\003\022&\n" + + "\031evaluate_dataset_response\030\003 \001(" + + "\01328.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseB\003\340A\003\022&\n" + "\005error\030\004 \001(\0132\022.google.rpc.StatusB\003\340A\003\"\\\n" + "\024TunedModelCheckpoint\022\025\n\r" + "checkpoint_id\030\001 \001(\t\022\r\n" @@ -385,11 +415,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037aiplatform.googleapis.com/Model\022\032\n\r" + "checkpoint_id\030\002 \001(\tB\003\340A\001\022\027\n\n" + "base_model\030\003 \001(\tB\003\340A\003B\345\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobP" - + "rotoP\001ZCcloud.google.com/go/aiplatform/a" - + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go" - + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" - + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobProtoP\001ZCcloud.g" + + "oogle.com/go/aiplatform/apiv1beta1/aipla" + + "tformpb;aiplatformpb\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -417,6 +447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DistillationSpec", "PartnerModelTuningSpec", "VeoTuningSpec", + "VeoLoraTuningSpec", "Name", "TunedModelDisplayName", "Description", @@ -614,7 +645,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_VeoHyperParameters_descriptor, new java.lang.String[] { - "EpochCount", "LearningRateMultiplier", "TuningTask", + "EpochCount", + "LearningRateMultiplier", + "TuningTask", + "VeoDataMixtureRatio", + "TuningSpeed", + "AdapterSize", }); internal_static_google_cloud_aiplatform_v1beta1_VeoTuningSpec_descriptor = getDescriptor().getMessageType(15); @@ -624,8 +660,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters", }); - internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor = getDescriptor().getMessageType(16); + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor, + new java.lang.String[] { + "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters", + }); + internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_descriptor = + getDescriptor().getMessageType(17); internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_descriptor, @@ -633,7 +677,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Metrics", "OutputConfig", "AutoraterConfig", "InferenceGenerationConfig", }); internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRun_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(18); internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRun_descriptor, @@ -641,7 +685,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OperationName", "EvaluationRun", "CheckpointId", "EvaluateDatasetResponse", "Error", }); internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(19); internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor, @@ -649,7 +693,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CheckpointId", "Epoch", "Step", "Endpoint", }); internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..7f1dcc00885a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Metadata for the UpdateOnlineEvaluator operation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class UpdateOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + UpdateOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateOnlineEvaluatorOperationMetadata"); + } + + // Use UpdateOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private UpdateOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for the UpdateOnlineEvaluator operation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
+     * Generic operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOnlineEvaluatorOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..92b03a6d22a2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface UpdateOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
+   * Generic operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..480e7b29f01f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequest.java @@ -0,0 +1,1048 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for UpdateOnlineEvaluator.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class UpdateOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + UpdateOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateOnlineEvaluatorRequest"); + } + + // Use UpdateOnlineEvaluatorRequest.newBuilder() to construct. + private UpdateOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateOnlineEvaluatorRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.Builder.class); + } + + private int bitField0_; + public static final int ONLINE_EVALUATOR_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator onlineEvaluator_; + + /** + * + * + *
+   * Required. The OnlineEvaluator to update.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + @java.lang.Override + public boolean hasOnlineEvaluator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The OnlineEvaluator to update.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator() { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + + /** + * + * + *
+   * Required. The OnlineEvaluator to update.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorOrBuilder() { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to control which fields get updated. If the
+   * mask is not present, all fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Field mask is used to control which fields get updated. If the
+   * mask is not present, all fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Field mask is used to control which fields get updated. If the
+   * mask is not present, all fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOnlineEvaluator()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOnlineEvaluator()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) obj; + + if (hasOnlineEvaluator() != other.hasOnlineEvaluator()) return false; + if (hasOnlineEvaluator()) { + if (!getOnlineEvaluator().equals(other.getOnlineEvaluator())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOnlineEvaluator()) { + hash = (37 * hash) + ONLINE_EVALUATOR_FIELD_NUMBER; + hash = (53 * hash) + getOnlineEvaluator().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for UpdateOnlineEvaluator.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOnlineEvaluatorFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + onlineEvaluator_ = null; + if (onlineEvaluatorBuilder_ != null) { + onlineEvaluatorBuilder_.dispose(); + onlineEvaluatorBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.onlineEvaluator_ = + onlineEvaluatorBuilder_ == null ? onlineEvaluator_ : onlineEvaluatorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (other.hasOnlineEvaluator()) { + mergeOnlineEvaluator(other.getOnlineEvaluator()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetOnlineEvaluatorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator onlineEvaluator_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + onlineEvaluatorBuilder_; + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + public boolean hasOnlineEvaluator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator() { + if (onlineEvaluatorBuilder_ == null) { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } else { + return onlineEvaluatorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + onlineEvaluator_ = value; + } else { + onlineEvaluatorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorBuilder_ == null) { + onlineEvaluator_ = builderForValue.build(); + } else { + onlineEvaluatorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && onlineEvaluator_ != null + && onlineEvaluator_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()) { + getOnlineEvaluatorBuilder().mergeFrom(value); + } else { + onlineEvaluator_ = value; + } + } else { + onlineEvaluatorBuilder_.mergeFrom(value); + } + if (onlineEvaluator_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOnlineEvaluator() { + bitField0_ = (bitField0_ & ~0x00000001); + onlineEvaluator_ = null; + if (onlineEvaluatorBuilder_ != null) { + onlineEvaluatorBuilder_.dispose(); + onlineEvaluatorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder getOnlineEvaluatorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetOnlineEvaluatorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorOrBuilder() { + if (onlineEvaluatorBuilder_ != null) { + return onlineEvaluatorBuilder_.getMessageOrBuilder(); + } else { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + } + + /** + * + * + *
+     * Required. The OnlineEvaluator to update.
+     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + internalGetOnlineEvaluatorFieldBuilder() { + if (onlineEvaluatorBuilder_ == null) { + onlineEvaluatorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder>( + getOnlineEvaluator(), getParentForChildren(), isClean()); + onlineEvaluator_ = null; + } + return onlineEvaluatorBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Field mask is used to control which fields get updated. If the
+     * mask is not present, all fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOnlineEvaluatorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..8f8d1a67f7cd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface UpdateOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The OnlineEvaluator to update.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + boolean hasOnlineEvaluator(); + + /** + * + * + *
+   * Required. The OnlineEvaluator to update.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator(); + + /** + * + * + *
+   * Required. The OnlineEvaluator to update.
+   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder getOnlineEvaluatorOrBuilder(); + + /** + * + * + *
+   * Optional. Field mask is used to control which fields get updated. If the
+   * mask is not present, all fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to control which fields get updated. If the
+   * mask is not present, all fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to control which fields get updated. If the
+   * mask is not present, all fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParameters.java index 50c7b8c0c214..49250ec88e8d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParameters.java @@ -53,6 +53,8 @@ private VeoHyperParameters(com.google.protobuf.GeneratedMessage.Builder build private VeoHyperParameters() { tuningTask_ = 0; + tuningSpeed_ = 0; + adapterSize_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -110,6 +112,16 @@ public enum TuningTask implements com.google.protobuf.ProtocolMessageEnum { * TUNING_TASK_T2V = 2; */ TUNING_TASK_T2V(2), + /** + * + * + *
+     * Tuning task for reference to video.
+     * 
+ * + * TUNING_TASK_R2V = 3; + */ + TUNING_TASK_R2V(3), UNRECOGNIZED(-1), ; @@ -156,6 +168,17 @@ public enum TuningTask implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TUNING_TASK_T2V_VALUE = 2; + /** + * + * + *
+     * Tuning task for reference to video.
+     * 
+ * + * TUNING_TASK_R2V = 3; + */ + public static final int TUNING_TASK_R2V_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -186,6 +209,8 @@ public static TuningTask forNumber(int value) { return TUNING_TASK_I2V; case 2: return TUNING_TASK_T2V; + case 3: + return TUNING_TASK_R2V; default: return null; } @@ -241,6 +266,374 @@ private TuningTask(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask) } + /** + * + * + *
+   * The speed of the tuning job. Only supported for Veo 3.0 models.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed} + */ + public enum TuningSpeed implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default / unset value. For Veo 3.0 models, this defaults to FAST.
+     * 
+ * + * TUNING_SPEED_UNSPECIFIED = 0; + */ + TUNING_SPEED_UNSPECIFIED(0), + /** + * + * + *
+     * Regular tuning speed.
+     * 
+ * + * REGULAR = 1; + */ + REGULAR(1), + /** + * + * + *
+     * Fast tuning speed.
+     * 
+ * + * FAST = 2; + */ + FAST(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TuningSpeed"); + } + + /** + * + * + *
+     * The default / unset value. For Veo 3.0 models, this defaults to FAST.
+     * 
+ * + * TUNING_SPEED_UNSPECIFIED = 0; + */ + public static final int TUNING_SPEED_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Regular tuning speed.
+     * 
+ * + * REGULAR = 1; + */ + public static final int REGULAR_VALUE = 1; + + /** + * + * + *
+     * Fast tuning speed.
+     * 
+ * + * FAST = 2; + */ + public static final int FAST_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TuningSpeed valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TuningSpeed forNumber(int value) { + switch (value) { + case 0: + return TUNING_SPEED_UNSPECIFIED; + case 1: + return REGULAR; + case 2: + return FAST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TuningSpeed findValueByNumber(int number) { + return TuningSpeed.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final TuningSpeed[] VALUES = values(); + + public static TuningSpeed valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TuningSpeed(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed) + } + + /** + * + * + *
+   * Adapter size for LoRA tuning.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize} + */ + public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Adapter size is unspecified.
+     * 
+ * + * ADAPTER_SIZE_UNSPECIFIED = 0; + */ + ADAPTER_SIZE_UNSPECIFIED(0), + /** + * + * + *
+     * Adapter size 8.
+     * This is the default adapter size for Veo LoRA tuning.
+     * 
+ * + * ADAPTER_SIZE_EIGHT = 8; + */ + ADAPTER_SIZE_EIGHT(8), + /** + * + * + *
+     * Adapter size 16.
+     * 
+ * + * ADAPTER_SIZE_SIXTEEN = 16; + */ + ADAPTER_SIZE_SIXTEEN(16), + /** + * + * + *
+     * Adapter size 32.
+     * 
+ * + * ADAPTER_SIZE_THIRTY_TWO = 32; + */ + ADAPTER_SIZE_THIRTY_TWO(32), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdapterSize"); + } + + /** + * + * + *
+     * Adapter size is unspecified.
+     * 
+ * + * ADAPTER_SIZE_UNSPECIFIED = 0; + */ + public static final int ADAPTER_SIZE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Adapter size 8.
+     * This is the default adapter size for Veo LoRA tuning.
+     * 
+ * + * ADAPTER_SIZE_EIGHT = 8; + */ + public static final int ADAPTER_SIZE_EIGHT_VALUE = 8; + + /** + * + * + *
+     * Adapter size 16.
+     * 
+ * + * ADAPTER_SIZE_SIXTEEN = 16; + */ + public static final int ADAPTER_SIZE_SIXTEEN_VALUE = 16; + + /** + * + * + *
+     * Adapter size 32.
+     * 
+ * + * ADAPTER_SIZE_THIRTY_TWO = 32; + */ + public static final int ADAPTER_SIZE_THIRTY_TWO_VALUE = 32; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AdapterSize valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AdapterSize forNumber(int value) { + switch (value) { + case 0: + return ADAPTER_SIZE_UNSPECIFIED; + case 8: + return ADAPTER_SIZE_EIGHT; + case 16: + return ADAPTER_SIZE_SIXTEEN; + case 32: + return ADAPTER_SIZE_THIRTY_TWO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdapterSize findValueByNumber(int number) { + return AdapterSize.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final AdapterSize[] VALUES = values(); + + public static AdapterSize valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AdapterSize(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize) + } + + private int bitField0_; public static final int EPOCH_COUNT_FIELD_NUMBER = 1; private long epochCount_ = 0L; @@ -291,35 +684,182 @@ public double getLearningRateMultiplier() { * * * - * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tuningTask. + */ + @java.lang.Override + public int getTuningTaskValue() { + return tuningTask_; + } + + /** + * + * + *
+   * Optional. The tuning task. Either I2V or T2V.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tuningTask. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask getTuningTask() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask.forNumber(tuningTask_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask.UNRECOGNIZED + : result; + } + + public static final int VEO_DATA_MIXTURE_RATIO_FIELD_NUMBER = 4; + private double veoDataMixtureRatio_ = 0D; + + /** + * + * + *
+   * Optional. The ratio of Google internal dataset to use in the training
+   * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
+   * dataset and 80% of user dataset will be used for training. If not set, the
+   * default value is 0.1.
+   * 
+ * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the veoDataMixtureRatio field is set. + */ + @java.lang.Override + public boolean hasVeoDataMixtureRatio() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The ratio of Google internal dataset to use in the training
+   * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
+   * dataset and 80% of user dataset will be used for training. If not set, the
+   * default value is 0.1.
+   * 
+ * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The veoDataMixtureRatio. + */ + @java.lang.Override + public double getVeoDataMixtureRatio() { + return veoDataMixtureRatio_; + } + + public static final int TUNING_SPEED_FIELD_NUMBER = 5; + private int tuningSpeed_ = 0; + + /** + * + * + *
+   * The speed of the tuning job. Only supported for Veo 3.0 models.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return Whether the tuningSpeed field is set. + */ + @java.lang.Override + public boolean hasTuningSpeed() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The speed of the tuning job. Only supported for Veo 3.0 models.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The enum numeric value on the wire for tuningSpeed. + */ + @java.lang.Override + public int getTuningSpeedValue() { + return tuningSpeed_; + } + + /** + * + * + *
+   * The speed of the tuning job. Only supported for Veo 3.0 models.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The tuningSpeed. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed getTuningSpeed() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed.forNumber(tuningSpeed_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed.UNRECOGNIZED + : result; + } + + public static final int ADAPTER_SIZE_FIELD_NUMBER = 6; + private int adapterSize_ = 0; + + /** + * + * + *
+   * Optional. The adapter size for LoRA tuning.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The enum numeric value on the wire for tuningTask. + * @return The enum numeric value on the wire for adapterSize. */ @java.lang.Override - public int getTuningTaskValue() { - return tuningTask_; + public int getAdapterSizeValue() { + return adapterSize_; } /** * * *
-   * Optional. The tuning task. Either I2V or T2V.
+   * Optional. The adapter size for LoRA tuning.
    * 
* * - * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The tuningTask. + * @return The adapterSize. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask getTuningTask() { - com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask result = - com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask.forNumber(tuningTask_); + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize getAdapterSize() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize.forNumber(adapterSize_); return result == null - ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask.UNRECOGNIZED + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize.UNRECOGNIZED : result; } @@ -348,6 +888,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, tuningTask_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(4, veoDataMixtureRatio_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(5, tuningSpeed_); + } + if (adapterSize_ + != com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize + .ADAPTER_SIZE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, adapterSize_); + } getUnknownFields().writeTo(output); } @@ -368,6 +920,18 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, tuningTask_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, veoDataMixtureRatio_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, tuningSpeed_); + } + if (adapterSize_ + != com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize + .ADAPTER_SIZE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, adapterSize_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -388,6 +952,16 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getLearningRateMultiplier()) != java.lang.Double.doubleToLongBits(other.getLearningRateMultiplier())) return false; if (tuningTask_ != other.tuningTask_) return false; + if (hasVeoDataMixtureRatio() != other.hasVeoDataMixtureRatio()) return false; + if (hasVeoDataMixtureRatio()) { + if (java.lang.Double.doubleToLongBits(getVeoDataMixtureRatio()) + != java.lang.Double.doubleToLongBits(other.getVeoDataMixtureRatio())) return false; + } + if (hasTuningSpeed() != other.hasTuningSpeed()) return false; + if (hasTuningSpeed()) { + if (tuningSpeed_ != other.tuningSpeed_) return false; + } + if (adapterSize_ != other.adapterSize_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -408,6 +982,19 @@ public int hashCode() { java.lang.Double.doubleToLongBits(getLearningRateMultiplier())); hash = (37 * hash) + TUNING_TASK_FIELD_NUMBER; hash = (53 * hash) + tuningTask_; + if (hasVeoDataMixtureRatio()) { + hash = (37 * hash) + VEO_DATA_MIXTURE_RATIO_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVeoDataMixtureRatio())); + } + if (hasTuningSpeed()) { + hash = (37 * hash) + TUNING_SPEED_FIELD_NUMBER; + hash = (53 * hash) + tuningSpeed_; + } + hash = (37 * hash) + ADAPTER_SIZE_FIELD_NUMBER; + hash = (53 * hash) + adapterSize_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -552,6 +1139,9 @@ public Builder clear() { epochCount_ = 0L; learningRateMultiplier_ = 0D; tuningTask_ = 0; + veoDataMixtureRatio_ = 0D; + tuningSpeed_ = 0; + adapterSize_ = 0; return this; } @@ -597,6 +1187,19 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.VeoHyperParameter if (((from_bitField0_ & 0x00000004) != 0)) { result.tuningTask_ = tuningTask_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.veoDataMixtureRatio_ = veoDataMixtureRatio_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tuningSpeed_ = tuningSpeed_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.adapterSize_ = adapterSize_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -621,6 +1224,15 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VeoHyperParameters if (other.tuningTask_ != 0) { setTuningTaskValue(other.getTuningTaskValue()); } + if (other.hasVeoDataMixtureRatio()) { + setVeoDataMixtureRatio(other.getVeoDataMixtureRatio()); + } + if (other.hasTuningSpeed()) { + setTuningSpeedValue(other.getTuningSpeedValue()); + } + if (other.adapterSize_ != 0) { + setAdapterSizeValue(other.getAdapterSizeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -665,6 +1277,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 33: + { + veoDataMixtureRatio_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 40: + { + tuningSpeed_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + adapterSize_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -907,6 +1537,330 @@ public Builder clearTuningTask() { return this; } + private double veoDataMixtureRatio_; + + /** + * + * + *
+     * Optional. The ratio of Google internal dataset to use in the training
+     * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
+     * dataset and 80% of user dataset will be used for training. If not set, the
+     * default value is 0.1.
+     * 
+ * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the veoDataMixtureRatio field is set. + */ + @java.lang.Override + public boolean hasVeoDataMixtureRatio() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The ratio of Google internal dataset to use in the training
+     * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
+     * dataset and 80% of user dataset will be used for training. If not set, the
+     * default value is 0.1.
+     * 
+ * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The veoDataMixtureRatio. + */ + @java.lang.Override + public double getVeoDataMixtureRatio() { + return veoDataMixtureRatio_; + } + + /** + * + * + *
+     * Optional. The ratio of Google internal dataset to use in the training
+     * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
+     * dataset and 80% of user dataset will be used for training. If not set, the
+     * default value is 0.1.
+     * 
+ * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The veoDataMixtureRatio to set. + * @return This builder for chaining. + */ + public Builder setVeoDataMixtureRatio(double value) { + + veoDataMixtureRatio_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ratio of Google internal dataset to use in the training
+     * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
+     * dataset and 80% of user dataset will be used for training. If not set, the
+     * default value is 0.1.
+     * 
+ * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVeoDataMixtureRatio() { + bitField0_ = (bitField0_ & ~0x00000008); + veoDataMixtureRatio_ = 0D; + onChanged(); + return this; + } + + private int tuningSpeed_ = 0; + + /** + * + * + *
+     * The speed of the tuning job. Only supported for Veo 3.0 models.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return Whether the tuningSpeed field is set. + */ + @java.lang.Override + public boolean hasTuningSpeed() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * The speed of the tuning job. Only supported for Veo 3.0 models.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The enum numeric value on the wire for tuningSpeed. + */ + @java.lang.Override + public int getTuningSpeedValue() { + return tuningSpeed_; + } + + /** + * + * + *
+     * The speed of the tuning job. Only supported for Veo 3.0 models.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @param value The enum numeric value on the wire for tuningSpeed to set. + * @return This builder for chaining. + */ + public Builder setTuningSpeedValue(int value) { + tuningSpeed_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The speed of the tuning job. Only supported for Veo 3.0 models.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The tuningSpeed. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed getTuningSpeed() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed.forNumber( + tuningSpeed_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The speed of the tuning job. Only supported for Veo 3.0 models.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @param value The tuningSpeed to set. + * @return This builder for chaining. + */ + public Builder setTuningSpeed( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + tuningSpeed_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The speed of the tuning job. Only supported for Veo 3.0 models.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearTuningSpeed() { + bitField0_ = (bitField0_ & ~0x00000010); + tuningSpeed_ = 0; + onChanged(); + return this; + } + + private int adapterSize_ = 0; + + /** + * + * + *
+     * Optional. The adapter size for LoRA tuning.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for adapterSize. + */ + @java.lang.Override + public int getAdapterSizeValue() { + return adapterSize_; + } + + /** + * + * + *
+     * Optional. The adapter size for LoRA tuning.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for adapterSize to set. + * @return This builder for chaining. + */ + public Builder setAdapterSizeValue(int value) { + adapterSize_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The adapter size for LoRA tuning.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The adapterSize. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize getAdapterSize() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize.forNumber( + adapterSize_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The adapter size for LoRA tuning.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The adapterSize to set. + * @return This builder for chaining. + */ + public Builder setAdapterSize( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + adapterSize_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The adapter size for LoRA tuning.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdapterSize() { + bitField0_ = (bitField0_ & ~0x00000020); + adapterSize_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.VeoHyperParameters) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParametersOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParametersOrBuilder.java index eae48a4437e6..e97170fda55f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParametersOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParametersOrBuilder.java @@ -82,4 +82,113 @@ public interface VeoHyperParametersOrBuilder * @return The tuningTask. */ com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask getTuningTask(); + + /** + * + * + *
+   * Optional. The ratio of Google internal dataset to use in the training
+   * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
+   * dataset and 80% of user dataset will be used for training. If not set, the
+   * default value is 0.1.
+   * 
+ * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the veoDataMixtureRatio field is set. + */ + boolean hasVeoDataMixtureRatio(); + + /** + * + * + *
+   * Optional. The ratio of Google internal dataset to use in the training
+   * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
+   * dataset and 80% of user dataset will be used for training. If not set, the
+   * default value is 0.1.
+   * 
+ * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The veoDataMixtureRatio. + */ + double getVeoDataMixtureRatio(); + + /** + * + * + *
+   * The speed of the tuning job. Only supported for Veo 3.0 models.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return Whether the tuningSpeed field is set. + */ + boolean hasTuningSpeed(); + + /** + * + * + *
+   * The speed of the tuning job. Only supported for Veo 3.0 models.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The enum numeric value on the wire for tuningSpeed. + */ + int getTuningSpeedValue(); + + /** + * + * + *
+   * The speed of the tuning job. Only supported for Veo 3.0 models.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The tuningSpeed. + */ + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed getTuningSpeed(); + + /** + * + * + *
+   * Optional. The adapter size for LoRA tuning.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for adapterSize. + */ + int getAdapterSizeValue(); + + /** + * + * + *
+   * Optional. The adapter size for LoRA tuning.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The adapterSize. + */ + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize getAdapterSize(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpec.java new file mode 100644 index 000000000000..76684862fcbc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpec.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Tuning Spec for Veo LoRA Model Tuning.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec} + */ +@com.google.protobuf.Generated +public final class VeoLoraTuningSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + VeoLoraTuningSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VeoLoraTuningSpec"); + } + + // Use VeoLoraTuningSpec.newBuilder() to construct. + private VeoLoraTuningSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VeoLoraTuningSpec() { + trainingDatasetUri_ = ""; + validationDatasetUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.class, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder.class); + } + + private int bitField0_; + public static final int TRAINING_DATASET_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingDatasetUri_ = ""; + + /** + * + * + *
+   * Required. Training dataset used for tuning. The dataset can be specified as
+   * either a Cloud Storage path to a JSONL file or as the resource name of a
+   * Vertex Multimodal Dataset.
+   * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + @java.lang.Override + public java.lang.String getTrainingDatasetUri() { + java.lang.Object ref = trainingDatasetUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingDatasetUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Training dataset used for tuning. The dataset can be specified as
+   * either a Cloud Storage path to a JSONL file or as the resource name of a
+   * Vertex Multimodal Dataset.
+   * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrainingDatasetUriBytes() { + java.lang.Object ref = trainingDatasetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trainingDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATION_DATASET_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object validationDatasetUri_ = ""; + + /** + * + * + *
+   * Optional. Validation dataset used for tuning. The dataset can be specified
+   * as either a Cloud Storage path to a JSONL file or as the resource name of a
+   * Vertex Multimodal Dataset.
+   * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validationDatasetUri. + */ + @java.lang.Override + public java.lang.String getValidationDatasetUri() { + java.lang.Object ref = validationDatasetUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validationDatasetUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Validation dataset used for tuning. The dataset can be specified
+   * as either a Cloud Storage path to a JSONL file or as the resource name of a
+   * Vertex Multimodal Dataset.
+   * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validationDatasetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValidationDatasetUriBytes() { + java.lang.Object ref = validationDatasetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HYPER_PARAMETERS_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.VeoHyperParameters hyperParameters_; + + /** + * + * + *
+   * Optional. Hyperparameters for Veo LoRA.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + @java.lang.Override + public boolean hasHyperParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Hyperparameters for Veo LoRA.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters getHyperParameters() { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance() + : hyperParameters_; + } + + /** + * + * + *
+   * Optional. Hyperparameters for Veo LoRA.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder + getHyperParametersOrBuilder() { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance() + : hyperParameters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trainingDatasetUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, trainingDatasetUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validationDatasetUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, validationDatasetUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getHyperParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trainingDatasetUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, trainingDatasetUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validationDatasetUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, validationDatasetUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHyperParameters()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec other = + (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) obj; + + if (!getTrainingDatasetUri().equals(other.getTrainingDatasetUri())) return false; + if (!getValidationDatasetUri().equals(other.getValidationDatasetUri())) return false; + if (hasHyperParameters() != other.hasHyperParameters()) return false; + if (hasHyperParameters()) { + if (!getHyperParameters().equals(other.getHyperParameters())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TRAINING_DATASET_URI_FIELD_NUMBER; + hash = (53 * hash) + getTrainingDatasetUri().hashCode(); + hash = (37 * hash) + VALIDATION_DATASET_URI_FIELD_NUMBER; + hash = (53 * hash) + getValidationDatasetUri().hashCode(); + if (hasHyperParameters()) { + hash = (37 * hash) + HYPER_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getHyperParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Tuning Spec for Veo LoRA Model Tuning.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.class, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetHyperParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trainingDatasetUri_ = ""; + validationDatasetUri_ = ""; + hyperParameters_ = null; + if (hyperParametersBuilder_ != null) { + hyperParametersBuilder_.dispose(); + hyperParametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec build() { + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec result = + new com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingDatasetUri_ = trainingDatasetUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationDatasetUri_ = validationDatasetUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hyperParameters_ = + hyperParametersBuilder_ == null ? hyperParameters_ : hyperParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance()) + return this; + if (!other.getTrainingDatasetUri().isEmpty()) { + trainingDatasetUri_ = other.trainingDatasetUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValidationDatasetUri().isEmpty()) { + validationDatasetUri_ = other.validationDatasetUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasHyperParameters()) { + mergeHyperParameters(other.getHyperParameters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + trainingDatasetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + validationDatasetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetHyperParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object trainingDatasetUri_ = ""; + + /** + * + * + *
+     * Required. Training dataset used for tuning. The dataset can be specified as
+     * either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + public java.lang.String getTrainingDatasetUri() { + java.lang.Object ref = trainingDatasetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingDatasetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Training dataset used for tuning. The dataset can be specified as
+     * either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + public com.google.protobuf.ByteString getTrainingDatasetUriBytes() { + java.lang.Object ref = trainingDatasetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trainingDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Training dataset used for tuning. The dataset can be specified as
+     * either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The trainingDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setTrainingDatasetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trainingDatasetUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Training dataset used for tuning. The dataset can be specified as
+     * either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTrainingDatasetUri() { + trainingDatasetUri_ = getDefaultInstance().getTrainingDatasetUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Training dataset used for tuning. The dataset can be specified as
+     * either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for trainingDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setTrainingDatasetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trainingDatasetUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object validationDatasetUri_ = ""; + + /** + * + * + *
+     * Optional. Validation dataset used for tuning. The dataset can be specified
+     * as either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validationDatasetUri. + */ + public java.lang.String getValidationDatasetUri() { + java.lang.Object ref = validationDatasetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validationDatasetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Validation dataset used for tuning. The dataset can be specified
+     * as either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validationDatasetUri. + */ + public com.google.protobuf.ByteString getValidationDatasetUriBytes() { + java.lang.Object ref = validationDatasetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Validation dataset used for tuning. The dataset can be specified
+     * as either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validationDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setValidationDatasetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + validationDatasetUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Validation dataset used for tuning. The dataset can be specified
+     * as either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidationDatasetUri() { + validationDatasetUri_ = getDefaultInstance().getValidationDatasetUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Validation dataset used for tuning. The dataset can be specified
+     * as either a Cloud Storage path to a JSONL file or as the resource name of a
+     * Vertex Multimodal Dataset.
+     * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for validationDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setValidationDatasetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationDatasetUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.VeoHyperParameters hyperParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters, + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder> + hyperParametersBuilder_; + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + public boolean hasHyperParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters getHyperParameters() { + if (hyperParametersBuilder_ == null) { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance() + : hyperParameters_; + } else { + return hyperParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHyperParameters( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters value) { + if (hyperParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hyperParameters_ = value; + } else { + hyperParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHyperParameters( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder builderForValue) { + if (hyperParametersBuilder_ == null) { + hyperParameters_ = builderForValue.build(); + } else { + hyperParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHyperParameters( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters value) { + if (hyperParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && hyperParameters_ != null + && hyperParameters_ + != com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance()) { + getHyperParametersBuilder().mergeFrom(value); + } else { + hyperParameters_ = value; + } + } else { + hyperParametersBuilder_.mergeFrom(value); + } + if (hyperParameters_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHyperParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + hyperParameters_ = null; + if (hyperParametersBuilder_ != null) { + hyperParametersBuilder_.dispose(); + hyperParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder + getHyperParametersBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetHyperParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder + getHyperParametersOrBuilder() { + if (hyperParametersBuilder_ != null) { + return hyperParametersBuilder_.getMessageOrBuilder(); + } else { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance() + : hyperParameters_; + } + } + + /** + * + * + *
+     * Optional. Hyperparameters for Veo LoRA.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters, + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder> + internalGetHyperParametersFieldBuilder() { + if (hyperParametersBuilder_ == null) { + hyperParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters, + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder>( + getHyperParameters(), getParentForChildren(), isClean()); + hyperParameters_ = null; + } + return hyperParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + private static final com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VeoLoraTuningSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpecOrBuilder.java new file mode 100644 index 000000000000..3cdfd9daa655 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpecOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface VeoLoraTuningSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Training dataset used for tuning. The dataset can be specified as
+   * either a Cloud Storage path to a JSONL file or as the resource name of a
+   * Vertex Multimodal Dataset.
+   * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + java.lang.String getTrainingDatasetUri(); + + /** + * + * + *
+   * Required. Training dataset used for tuning. The dataset can be specified as
+   * either a Cloud Storage path to a JSONL file or as the resource name of a
+   * Vertex Multimodal Dataset.
+   * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + com.google.protobuf.ByteString getTrainingDatasetUriBytes(); + + /** + * + * + *
+   * Optional. Validation dataset used for tuning. The dataset can be specified
+   * as either a Cloud Storage path to a JSONL file or as the resource name of a
+   * Vertex Multimodal Dataset.
+   * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validationDatasetUri. + */ + java.lang.String getValidationDatasetUri(); + + /** + * + * + *
+   * Optional. Validation dataset used for tuning. The dataset can be specified
+   * as either a Cloud Storage path to a JSONL file or as the resource name of a
+   * Vertex Multimodal Dataset.
+   * 
+ * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validationDatasetUri. + */ + com.google.protobuf.ByteString getValidationDatasetUriBytes(); + + /** + * + * + *
+   * Optional. Hyperparameters for Veo LoRA.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + boolean hasHyperParameters(); + + /** + * + * + *
+   * Optional. Hyperparameters for Veo LoRA.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters getHyperParameters(); + + /** + * + * + *
+   * Optional. Hyperparameters for Veo LoRA.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder getHyperParametersOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java index 511bff9f54b4..899f906f19d9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java @@ -1102,7 +1102,7 @@ public com.google.protobuf.Parser getParserForType() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1122,7 +1122,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1142,7 +1142,7 @@ public int getRagCorporaCount() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1163,7 +1163,7 @@ public java.lang.String getRagCorpora(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1292,7 +1292,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResource getRagReso * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=513 + * google/cloud/aiplatform/v1beta1/tool.proto;l=550 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -1313,7 +1313,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=513 + * google/cloud/aiplatform/v1beta1/tool.proto;l=550 * @return The similarityTopK. */ @java.lang.Override @@ -1338,7 +1338,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=518 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=555 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -1360,7 +1360,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=518 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=555 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2003,7 +2003,7 @@ private void ensureRagCorporaIsMutable() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -2024,7 +2024,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -2044,7 +2044,7 @@ public int getRagCorporaCount() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -2065,7 +2065,7 @@ public java.lang.String getRagCorpora(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -2086,7 +2086,7 @@ public com.google.protobuf.ByteString getRagCorporaBytes(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param index The index to set the value at. * @param value The ragCorpora to set. * @return This builder for chaining. @@ -2115,7 +2115,7 @@ public Builder setRagCorpora(int index, java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param value The ragCorpora to add. * @return This builder for chaining. */ @@ -2143,7 +2143,7 @@ public Builder addRagCorpora(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param values The ragCorpora to add. * @return This builder for chaining. */ @@ -2168,7 +2168,7 @@ public Builder addAllRagCorpora(java.lang.Iterable values) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2192,7 +2192,7 @@ public Builder clearRagCorpora() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param value The bytes of the ragCorpora to add. * @return This builder for chaining. */ @@ -2698,7 +2698,7 @@ public Builder removeRagResources(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=513 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=550 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -2719,7 +2719,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=513 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=550 * @return The similarityTopK. */ @java.lang.Override @@ -2740,7 +2740,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=513 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=550 * @param value The similarityTopK to set. * @return This builder for chaining. */ @@ -2765,7 +2765,7 @@ public Builder setSimilarityTopK(int value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=513 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=550 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2791,7 +2791,7 @@ public Builder clearSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=518 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=555 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -2813,7 +2813,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=518 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=555 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2835,7 +2835,7 @@ public double getVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=518 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=555 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ @@ -2861,7 +2861,7 @@ public Builder setVectorDistanceThreshold(double value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=518 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=555 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java index df8338dbd0d9..3f7d04f35567 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java @@ -38,7 +38,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -56,7 +56,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -93,7 +93,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=497 + * google/cloud/aiplatform/v1beta1/tool.proto;l=534 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -195,7 +195,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=513 + * google/cloud/aiplatform/v1beta1/tool.proto;l=550 * @return Whether the similarityTopK field is set. */ @java.lang.Deprecated @@ -213,7 +213,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=513 + * google/cloud/aiplatform/v1beta1/tool.proto;l=550 * @return The similarityTopK. */ @java.lang.Deprecated @@ -232,7 +232,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=518 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=555 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Deprecated @@ -251,7 +251,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=518 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=555 * @return The vectorDistanceThreshold. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto new file mode 100644 index 000000000000..94ca153b1604 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto @@ -0,0 +1,112 @@ +// Copyright 2026 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/cloud/aiplatform/v1beta1/content.proto"; +import "google/cloud/aiplatform/v1beta1/tool.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.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 = "EvaluationAgentDataProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Represents data specific to multi-turn agent evaluations. +message AgentData { + // Optional. A map containing the static configurations for each agent in the + // system. Key: agent_id (matches the `author` field in events). Value: The + // static configuration of the agent. + map agents = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A chronological list of conversation turns. + // Each turn represents a logical execution cycle (e.g., User Input -> Agent + // Response). + repeated ConversationTurn turns = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents configuration for an Agent. +message AgentConfig { + // Required. Unique identifier of the agent. + // This ID is used to refer to this agent, e.g., in AgentEvent.author, or in + // the `sub_agents` field. It must be unique within the `agents` map. + optional string agent_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent", + // "ToolUseAgent"). Useful for the autorater to understand the expected + // behavior of the agent. + string agent_type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A high-level description of the agent's role and + // responsibilities. Critical for evaluating if the agent is routing tasks + // correctly. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Provides instructions for the LLM model, guiding the agent's + // behavior. Can be static or dynamic. Dynamic instructions can contain + // placeholders like {variable_name} that will be resolved at runtime using + // the `AgentEvent.state_delta` field. + string instruction = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of tools available to this agent. + repeated Tool tools = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of valid agent IDs that this agent can delegate to. + // This defines the directed edges in the multi-agent system graph topology. + repeated string sub_agents = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a single turn/invocation in the conversation. +message ConversationTurn { + // Required. The 0-based index of the turn in the conversation sequence. + optional int32 turn_index = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for the turn. + // Useful for referencing specific turns across systems. + string turn_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of events that occurred during this turn. + repeated AgentEvent events = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a single event in the execution trace. +message AgentEvent { + // Required. The ID of the agent or entity that generated this event. + // Use "user" to denote events generated by the end-user. + optional string author = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The content of the event (e.g., text response, tool call, tool + // response). + optional Content content = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The timestamp when the event occurred. + google.protobuf.Timestamp event_time = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The change in the session state caused by this event. This is a + // key-value map of fields that were modified or added by the event. + google.protobuf.Struct state_delta = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of tools that were active/available to the agent at the + // time of this event. This overrides the `AgentConfig.tools` if set. + repeated Tool active_tools = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_rubric.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_rubric.proto new file mode 100644 index 000000000000..4e46967fa858 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_rubric.proto @@ -0,0 +1,111 @@ +// Copyright 2026 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 = "EvaluationRubricProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Message representing a single testable criterion for evaluation. +// One input prompt could have multiple rubrics. +message Rubric { + // Content of the rubric, defining the testable criteria. + message Content { + // Defines criteria based on a specific property. + message Property { + // Description of the property being evaluated. + // Example: "The model's response is grammatically correct." + string description = 1; + } + + oneof content_type { + // Evaluation criteria based on a specific property. + Property property = 1; + } + } + + // Importance level of the rubric. + enum Importance { + // Importance is not specified. + IMPORTANCE_UNSPECIFIED = 0; + + // High importance. + HIGH = 1; + + // Medium importance. + MEDIUM = 2; + + // Low importance. + LOW = 3; + } + + // Unique identifier for the rubric. + // This ID is used to refer to this rubric, e.g., in RubricVerdict. + string rubric_id = 1; + + // Required. The actual testable criteria for the rubric. + Content content = 2; + + // Optional. A type designator for the rubric, which can inform how it's + // evaluated or interpreted by systems or users. + // It's recommended to use consistent, well-defined, upper snake_case strings. + // Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT", + // "INSTRUCTION_ADHERENCE". + optional string type = 3; + + // Optional. The relative importance of this rubric. + optional Importance importance = 4; +} + +// A group of rubrics, used for grouping rubrics based on a metric or a version. +message RubricGroup { + // Unique identifier for the group. + string group_id = 1; + + // Human-readable name for the group. This should be unique + // within a given context if used for display or selection. + // Example: "Instruction Following V1", "Content Quality - Summarization + // Task". + string display_name = 2; + + // Rubrics that are part of this group. + repeated Rubric rubrics = 3; +} + +// Represents the verdict of an evaluation against a single rubric. +message RubricVerdict { + // Required. The full rubric definition that was evaluated. + // Storing this ensures the verdict is self-contained and understandable, + // especially if the original rubric definition changes or was dynamically + // generated. + Rubric evaluated_rubric = 1; + + // Required. Outcome of the evaluation against the rubric, represented as a + // boolean. `true` indicates a "Pass", `false` indicates a "Fail". + bool verdict = 2; + + // Optional. Human-readable reasoning or explanation for the verdict. + // This can include specific examples or details from the evaluated content + // that justify the given verdict. + optional string reasoning = 3; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto index f015bc4194bf..fc4d6b189f17 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto @@ -21,10 +21,14 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/content.proto"; +import "google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto"; +import "google/cloud/aiplatform/v1beta1/evaluation_rubric.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/cloud/aiplatform/v1beta1/tool.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -64,6 +68,20 @@ service EvaluationService { metadata_type: "EvaluateDatasetOperationMetadata" }; } + + // Generates rubrics for a given prompt. + // A rubric represents a single testable criterion for evaluation. + // One input prompt could have multiple rubrics + // This RPC allows users to get suggested rubrics based on provided prompt, + // which can then be reviewed and used for subsequent evaluations. + rpc GenerateInstanceRubrics(GenerateInstanceRubricsRequest) + returns (GenerateInstanceRubricsResponse) { + option (google.api.http) = { + post: "/v1beta1/{location=projects/*/locations/*}:generateInstanceRubrics" + body: "*" + additional_bindings { post: "/v1beta1:generateInstanceRubrics" body: "*" } + }; + } } // Pairwise prediction autorater preference. @@ -81,69 +99,117 @@ enum PairwiseChoice { TIE = 3; } -// Operation metadata for Dataset Evaluation. -message EvaluateDatasetOperationMetadata { - // Generic operation metadata. - GenericOperationMetadata generic_metadata = 1; -} +// Request message for EvaluationService.EvaluateInstances. +message EvaluateInstancesRequest { + // Instances and specs for evaluation + oneof metric_inputs { + // Auto metric instances. + // Instances and metric spec for exact match metric. + ExactMatchInput exact_match_input = 2; -// The results from an evaluation run performed by the EvaluationService. -message EvaluateDatasetResponse { - // Output only. Aggregation statistics derived from results of - // EvaluationService. - AggregationOutput aggregation_output = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; + // Instances and metric spec for bleu metric. + BleuInput bleu_input = 3; - // Output only. Output info for EvaluationService. - OutputInfo output_info = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} + // Instances and metric spec for rouge metric. + RougeInput rouge_input = 4; -// Describes the info for output of EvaluationService. -message OutputInfo { - // The output location into which evaluation output is written. - oneof output_location { - // Output only. The full path of the Cloud Storage directory created, into - // which the evaluation results and aggregation results are written. - string gcs_output_directory = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} + // LLM-based metric instance. + // General text generation metrics, applicable to other categories. + // Input for fluency metric. + FluencyInput fluency_input = 5; -// The aggregation result for the entire dataset and all metrics. -message AggregationOutput { - // The dataset used for evaluation & aggregation. - EvaluationDataset dataset = 1; + // Input for coherence metric. + CoherenceInput coherence_input = 6; - // One AggregationResult per metric. - repeated AggregationResult aggregation_results = 2; -} + // Input for safety metric. + SafetyInput safety_input = 8; -// The aggregation result for a single metric. -message AggregationResult { - // The aggregation result. - oneof aggregation_result { - // Result for pointwise metric. - PointwiseMetricResult pointwise_metric_result = 5; + // Input for groundedness metric. + GroundednessInput groundedness_input = 9; - // Result for pairwise metric. - PairwiseMetricResult pairwise_metric_result = 6; + // Input for fulfillment metric. + FulfillmentInput fulfillment_input = 12; - // Results for exact match metric. - ExactMatchMetricValue exact_match_metric_value = 7; + // Input for summarization quality metric. + SummarizationQualityInput summarization_quality_input = 7; - // Results for bleu metric. - BleuMetricValue bleu_metric_value = 8; + // Input for pairwise summarization quality metric. + PairwiseSummarizationQualityInput pairwise_summarization_quality_input = 23; - // Results for rouge metric. - RougeMetricValue rouge_metric_value = 9; - } + // Input for summarization helpfulness metric. + SummarizationHelpfulnessInput summarization_helpfulness_input = 14; - // Aggregation metric. - Metric.AggregationMetric aggregation_metric = 4; -} + // Input for summarization verbosity metric. + SummarizationVerbosityInput summarization_verbosity_input = 15; -// Request message for EvaluationService.EvaluateDataset. -message EvaluateDatasetRequest { - // Required. The resource name of the Location to evaluate the dataset. + // Input for question answering quality metric. + QuestionAnsweringQualityInput question_answering_quality_input = 10; + + // Input for pairwise question answering quality metric. + PairwiseQuestionAnsweringQualityInput + pairwise_question_answering_quality_input = 24; + + // Input for question answering relevance metric. + QuestionAnsweringRelevanceInput question_answering_relevance_input = 16; + + // Input for question answering helpfulness + // metric. + QuestionAnsweringHelpfulnessInput question_answering_helpfulness_input = 17; + + // Input for question answering correctness + // metric. + QuestionAnsweringCorrectnessInput question_answering_correctness_input = 18; + + // Input for pointwise metric. + PointwiseMetricInput pointwise_metric_input = 28; + + // Input for pairwise metric. + PairwiseMetricInput pairwise_metric_input = 29; + + // Tool call metric instances. + // Input for tool call valid metric. + ToolCallValidInput tool_call_valid_input = 19; + + // Input for tool name match metric. + ToolNameMatchInput tool_name_match_input = 20; + + // Input for tool parameter key match metric. + ToolParameterKeyMatchInput tool_parameter_key_match_input = 21; + + // Input for tool parameter key value match metric. + ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + + // Translation metrics. + // Input for Comet metric. + CometInput comet_input = 31; + + // Input for Metricx metric. + MetricxInput metricx_input = 32; + + // Input for trajectory exact match metric. + TrajectoryExactMatchInput trajectory_exact_match_input = 33; + + // Input for trajectory in order match metric. + TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + + // Input for trajectory match any order metric. + TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + + // Input for trajectory precision metric. + TrajectoryPrecisionInput trajectory_precision_input = 37; + + // Input for trajectory recall metric. + TrajectoryRecallInput trajectory_recall_input = 38; + + // Input for trajectory single tool use metric. + TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + + // Rubric Based Instruction Following metric. + RubricBasedInstructionFollowingInput + rubric_based_instruction_following_input = 40; + } + + // Required. The resource name of the Location to evaluate the instances. // Format: `projects/{project}/locations/{location}` string location = 1 [ (google.api.field_behavior) = REQUIRED, @@ -152,28 +218,23 @@ message EvaluateDatasetRequest { } ]; - // Required. The dataset used for evaluation. - EvaluationDataset dataset = 2 [(google.api.field_behavior) = REQUIRED]; + // The metrics used for evaluation. + // Currently, we only support evaluating a single metric. If multiple metrics + // are provided, only the first one will be evaluated. + repeated Metric metrics = 49; - // Required. The metrics used for evaluation. - repeated Metric metrics = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. Config for evaluation output. - OutputConfig output_config = 4 [(google.api.field_behavior) = REQUIRED]; + // Optional. The metrics (either inline or registered) used for evaluation. + // Currently, we only support evaluating a single metric. If multiple metrics + // are provided, only the first one will be evaluated. + repeated MetricSource metric_sources = 52 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. Autorater config used for evaluation. Currently only publisher - // Gemini models are supported. Format: - // `projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}.` - AutoraterConfig autorater_config = 5 [(google.api.field_behavior) = OPTIONAL]; -} + // The instance to be evaluated. + EvaluationInstance instance = 50; -// Config for evaluation output. -message OutputConfig { - // The destination for evaluation output. - oneof destination { - // Cloud storage destination for evaluation output. - GcsDestination gcs_destination = 1; - } + // Optional. Autorater config used for evaluation. + AutoraterConfig autorater_config = 30 + [(google.api.field_behavior) = OPTIONAL]; } // The metric used for running evaluations. @@ -227,6 +288,9 @@ message Metric { // Spec for an LLM based metric. LLMBasedMetricSpec llm_based_metric_spec = 10; + // Spec for Custom Code Execution metric. + CustomCodeExecutionSpec custom_code_execution_spec = 11; + // Spec for pointwise metric. PointwiseMetricSpec pointwise_metric_spec = 2; @@ -246,169 +310,294 @@ message Metric { // Optional. The aggregation metrics to use. repeated AggregationMetric aggregation_metrics = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata about the metric, used for visualization and + // organization. + MetricMetadata metadata = 13 [(google.api.field_behavior) = OPTIONAL]; } -// The dataset used for evaluation. -message EvaluationDataset { - // The source of the dataset. - oneof source { - // Cloud storage source holds the dataset. Currently only one Cloud Storage - // file path is supported. - GcsSource gcs_source = 1; +// Metadata about the metric, used for visualization and organization. +message MetricMetadata { + // The range of possible scores for this metric, used for plotting. + message ScoreRange { + // Required. The minimum value of the score range (inclusive). + optional double min = 1 [(google.api.field_behavior) = REQUIRED]; - // BigQuery source holds the dataset. - BigQuerySource bigquery_source = 2; + // Required. The maximum value of the score range (inclusive). + optional double max = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The distance between discrete steps in the range. + // If unset, the range is assumed to be continuous. + optional double step = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the score explaining the directionality etc. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; } -} -// The configs for autorater. This is applicable to both EvaluateInstances and -// EvaluateDataset. -message AutoraterConfig { - // Optional. Number of samples for each instance in the dataset. - // If not specified, the default is 4. Minimum value is 1, maximum value - // is 32. - optional int32 sampling_count = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The user-friendly name for the metric. If not set for a + // registered metric, it will default to the metric's display name. + string title = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Default is true. Whether to flip the candidate and baseline - // responses. This is only applicable to the pairwise metric. If enabled, also - // provide PairwiseMetricSpec.candidate_response_field_name and - // PairwiseMetricSpec.baseline_response_field_name. When rendering - // PairwiseMetricSpec.metric_prompt_template, the candidate and baseline - // fields will be flipped for half of the samples to reduce bias. - optional bool flip_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The range of possible scores for this metric, used for plotting. + ScoreRange score_range = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The fully qualified name of the publisher model or tuned - // autorater endpoint to use. - // - // Publisher model format: - // `projects/{project}/locations/{location}/publishers/*/models/*` - // - // Tuned model endpoint format: - // `projects/{project}/locations/{location}/endpoints/{endpoint}` - string autorater_model = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Flexible metadata for user-defined attributes. + google.protobuf.Struct other_metadata = 3 + [(google.api.field_behavior) = OPTIONAL]; } -// Request message for EvaluationService.EvaluateInstances. -message EvaluateInstancesRequest { - // Instances and specs for evaluation - oneof metric_inputs { - // Auto metric instances. - // Instances and metric spec for exact match metric. - ExactMatchInput exact_match_input = 2; +// The metric source used for evaluation. +message MetricSource { + // The source of the metric. + oneof metric_source { + // Inline metric config. + Metric metric = 1; - // Instances and metric spec for bleu metric. - BleuInput bleu_input = 3; + // Resource name for registered metric. + string metric_resource_name = 2; + } +} - // Instances and metric spec for rouge metric. - RougeInput rouge_input = 4; +// A single instance to be evaluated. +// Instances are used to specify the input data for evaluation, from +// simple string comparisons to complex, multi-turn model evaluations +message EvaluationInstance { + // Instance data used to populate placeholders in a metric prompt template. + message InstanceData { + // List of standard Content messages from Gemini API. + message Contents { + // Optional. Repeated contents. + repeated Content contents = 1 [(google.api.field_behavior) = OPTIONAL]; + } - // LLM-based metric instance. - // General text generation metrics, applicable to other categories. - // Input for fluency metric. - FluencyInput fluency_input = 5; + // Supported formats for instance data. + oneof data { + // Text data. + string text = 1; - // Input for coherence metric. - CoherenceInput coherence_input = 6; + // List of Gemini content data. + Contents contents = 2; + } + } - // Input for safety metric. - SafetyInput safety_input = 8; + // Instance data specified as a map. + message MapInstance { + // Optional. Map of instance data. + map map_instance = 1 + [(google.api.field_behavior) = OPTIONAL]; + } - // Input for groundedness metric. - GroundednessInput groundedness_input = 9; + // Deprecated: Use `agent_eval_data` instead. + // Contains data specific to agent evaluations. + message DeprecatedAgentData { + option deprecated = true; - // Input for fulfillment metric. - FulfillmentInput fulfillment_input = 12; + // Represents a single turn/invocation in the conversation. + message ConversationTurn { + // Required. The 0-based index of the turn in the conversation sequence. + optional int32 turn_index = 1 [(google.api.field_behavior) = REQUIRED]; - // Input for summarization quality metric. - SummarizationQualityInput summarization_quality_input = 7; + // Optional. A unique identifier for the turn. + // Useful for referencing specific turns across systems. + string turn_id = 2 [(google.api.field_behavior) = OPTIONAL]; - // Input for pairwise summarization quality metric. - PairwiseSummarizationQualityInput pairwise_summarization_quality_input = 23; + // Optional. The list of events that occurred during this turn. + repeated AgentEvent events = 3 [(google.api.field_behavior) = OPTIONAL]; + } - // Input for summarization helpfulness metric. - SummarizationHelpfulnessInput summarization_helpfulness_input = 14; + // A single event in the execution trace. + message AgentEvent { + // Required. The ID of the agent or entity that generated this event. + optional string author = 1 [(google.api.field_behavior) = REQUIRED]; - // Input for summarization verbosity metric. - SummarizationVerbosityInput summarization_verbosity_input = 15; + // Required. The content of the event (e.g., text response, tool call, + // tool response). + Content content = 2 [(google.api.field_behavior) = REQUIRED]; - // Input for question answering quality metric. - QuestionAnsweringQualityInput question_answering_quality_input = 10; + // Optional. The timestamp when the event occurred. + google.protobuf.Timestamp event_time = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Input for pairwise question answering quality metric. - PairwiseQuestionAnsweringQualityInput - pairwise_question_answering_quality_input = 24; + // Optional. The change in the session state caused by this event. This is + // a key-value map of fields that were modified or added by the event. + google.protobuf.Struct state_delta = 4 + [(google.api.field_behavior) = OPTIONAL]; - // Input for question answering relevance metric. - QuestionAnsweringRelevanceInput question_answering_relevance_input = 16; + // Optional. The list of tools that were active/available to the agent at + // the time of this event. This overrides the `AgentConfig.tools` if set. + repeated Tool active_tools = 5 [(google.api.field_behavior) = OPTIONAL]; + } - // Input for question answering helpfulness - // metric. - QuestionAnsweringHelpfulnessInput question_answering_helpfulness_input = 17; + // Deprecated: Use `agent_eval_data` instead. Represents a list of tools for + // an agent. + message Tools { + // Optional. List of tools: each tool can have multiple function + // declarations. + repeated Tool tool = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + } - // Input for question answering correctness - // metric. - QuestionAnsweringCorrectnessInput question_answering_correctness_input = 18; + // Represents a list of events for an agent. + message Events { + // Optional. A list of events. + repeated Content event = 1 [(google.api.field_behavior) = OPTIONAL]; + } - // Input for pointwise metric. - PointwiseMetricInput pointwise_metric_input = 28; + // --- Legacy fields below. To be deprecated. --- + // Deprecated: Use `agents` instead. Data for the tools available to the + // agent. + oneof tools_data { + // A JSON string containing a list of tools available to an agent with + // info such as name, description, parameters and required parameters. + string tools_text = 1 [deprecated = true]; - // Input for pairwise metric. - PairwiseMetricInput pairwise_metric_input = 29; + // List of tools. + Tools tools = 2 [deprecated = true]; + } - // Tool call metric instances. - // Input for tool call valid metric. - ToolCallValidInput tool_call_valid_input = 19; + // The sequence of function calls and function responses that form the + // agent's trajectory. + oneof events_data { + // A list of events. + Events events = 5; + } - // Input for tool name match metric. - ToolNameMatchInput tool_name_match_input = 20; + // Optional. The static Agent Configuration. + // This map defines the graph structure of the agent system. + // Key: agent_id (matches the `author` field in events). + // Value: The static configuration of the agent (tools, instructions, + // sub-agents). + map agents = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The chronological list of conversation turns. + // Each turn represents a logical execution cycle (e.g., User Input -> Agent + // Response). + repeated ConversationTurn turns = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated: Use `agents.developer_instruction` or + // `turns.events.active_instruction` instead. + // A field containing instructions from the developer for the agent. + InstanceData developer_instruction = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated: Use `agent_eval_data` instead. + // Agent configuration. + DeprecatedAgentConfig agent_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + } - // Input for tool parameter key match metric. - ToolParameterKeyMatchInput tool_parameter_key_match_input = 21; + // Deprecated: Use `google.cloud.aiplatform.master.AgentConfig` in + // `agent_eval_data` instead. + // Configuration for an Agent. + message DeprecatedAgentConfig { + option deprecated = true; + + // Represents a list of tools for an agent. + message Tools { + // Optional. List of tools: each tool can have multiple function + // declarations. + repeated Tool tool = 1 [(google.api.field_behavior) = OPTIONAL]; + } - // Input for tool parameter key value match metric. - ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + // Data for the tools available to the agent. + oneof tools_data { + // A JSON string containing a list of tools available to an agent with + // info such as name, description, parameters and required parameters. + string tools_text = 1; - // Translation metrics. - // Input for Comet metric. - CometInput comet_input = 31; + // List of tools. + Tools tools = 2; + } - // Input for Metricx metric. - MetricxInput metricx_input = 32; + // Optional. Unique identifier of the agent. + // This ID is used to refer to this agent, e.g., in AgentEvent.author, or in + // the `sub_agents` field. It must be unique within the `agents` map. + string agent_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type or class of the agent (e.g., "LlmAgent", + // "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand + // the expected behavior of the agent. + string agent_type = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A high-level description of the agent's role and + // responsibilities. Critical for evaluating if the agent is routing tasks + // correctly. + string description = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of valid agent IDs (names) that this agent can + // delegate to. This defines the directed edges in the agent system graph + // topology. + repeated string sub_agents = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Contains instructions from the developer for the agent. Can be + // static or a dynamic prompt template used with the + // `AgentEvent.state_delta` field. + InstanceData developer_instruction = 3 + [(google.api.field_behavior) = OPTIONAL]; + } - // Input for trajectory exact match metric. - TrajectoryExactMatchInput trajectory_exact_match_input = 33; + // Optional. Data used to populate placeholder `prompt` in a metric prompt + // template. + InstanceData prompt = 1 [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory in order match metric. - TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + // Optional. Named groups of rubrics associated with the prompt. + // This is used for rubric-based evaluations where rubrics can be referenced + // by a key. The key could represent versions, associated metrics, etc. + map rubric_groups = 2 + [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory match any order metric. - TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + // Optional. Data used to populate placeholder `response` in a metric prompt + // template. + InstanceData response = 3 [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory precision metric. - TrajectoryPrecisionInput trajectory_precision_input = 37; + // Optional. Data used to populate placeholder `reference` in a metric prompt + // template. + InstanceData reference = 4 [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory recall metric. - TrajectoryRecallInput trajectory_recall_input = 38; + // Optional. Other data used to populate placeholders based on their key. + // If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`), + // the value of the field will take precedence over the value in other_data. + MapInstance other_data = 5 [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory single tool use metric. - TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + // Optional. Deprecated: Use `agent_eval_data` instead. + // Data used for agent evaluation. + DeprecatedAgentData agent_data = 6 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; - // Rubric Based Instruction Following metric. - RubricBasedInstructionFollowingInput - rubric_based_instruction_following_input = 40; - } + // Optional. Data used for agent evaluation. + AgentData agent_eval_data = 7 [(google.api.field_behavior) = OPTIONAL]; +} - // Required. The resource name of the Location to evaluate the instances. - // Format: `projects/{project}/locations/{location}` - string location = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; +// The configs for autorater. This is applicable to both EvaluateInstances and +// EvaluateDataset. +message AutoraterConfig { + // Optional. Number of samples for each instance in the dataset. + // If not specified, the default is 4. Minimum value is 1, maximum value + // is 32. + optional int32 sampling_count = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Autorater config used for evaluation. - AutoraterConfig autorater_config = 30 + // Optional. Default is true. Whether to flip the candidate and baseline + // responses. This is only applicable to the pairwise metric. If enabled, also + // provide PairwiseMetricSpec.candidate_response_field_name and + // PairwiseMetricSpec.baseline_response_field_name. When rendering + // PairwiseMetricSpec.metric_prompt_template, the candidate and baseline + // fields will be flipped for half of the samples to reduce bias. + optional bool flip_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The fully qualified name of the publisher model or tuned + // autorater endpoint to use. + // + // Publisher model format: + // `projects/{project}/locations/{location}/publishers/*/models/*` + // + // Tuned model endpoint format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string autorater_model = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration options for model generation and outputs. + GenerationConfig generation_config = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -539,6 +728,10 @@ message MetricResult { // Please refer to each metric's documentation for the meaning of the score. optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. For rubric-based metrics, the verdicts for each rubric. + repeated RubricVerdict rubric_verdicts = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The explanation for the metric result. optional string explanation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -547,6 +740,159 @@ message MetricResult { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Request message for EvaluationService.GenerateInstanceRubrics. +message GenerateInstanceRubricsRequest { + // Required. The resource name of the Location to generate rubrics from. + // Format: `projects/{project}/locations/{location}` + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The prompt to generate rubrics from. + // For single-turn queries, this is a single instance. For multi-turn queries, + // this is a repeated field that contains conversation history + latest + // request. + repeated Content contents = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specification for using the rubric generation configs of a + // pre-defined metric, e.g. "generic_quality_v1" and + // "instruction_following_v1". Some of the configs may be only used in rubric + // generation and not supporting evaluation, e.g. + // "fully_customized_generic_quality_v1". If this field is set, the + // `rubric_generation_spec` field will be ignored. + PredefinedMetricSpec predefined_rubric_generation_spec = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification for how the rubrics should be generated. + RubricGenerationSpec rubric_generation_spec = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Agent configuration, required for agent-based rubric generation. + EvaluationInstance.DeprecatedAgentConfig agent_config = 5 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for EvaluationService.GenerateInstanceRubrics. +message GenerateInstanceRubricsResponse { + // Output only. A list of generated rubrics. + repeated Rubric generated_rubrics = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for EvaluationService.EvaluateDataset. +message EvaluateDatasetRequest { + // Required. The resource name of the Location to evaluate the dataset. + // Format: `projects/{project}/locations/{location}` + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The dataset used for evaluation. + EvaluationDataset dataset = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The metrics used for evaluation. + repeated Metric metrics = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Config for evaluation output. + OutputConfig output_config = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Autorater config used for evaluation. Currently only publisher + // Gemini models are supported. Format: + // `projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}.` + AutoraterConfig autorater_config = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Config for evaluation output. +message OutputConfig { + // The destination for evaluation output. + oneof destination { + // Cloud storage destination for evaluation output. + GcsDestination gcs_destination = 1; + } +} + +// The dataset used for evaluation. +message EvaluationDataset { + // The source of the dataset. + oneof source { + // Cloud storage source holds the dataset. Currently only one Cloud Storage + // file path is supported. + GcsSource gcs_source = 1; + + // BigQuery source holds the dataset. + BigQuerySource bigquery_source = 2; + } +} + +// The results from an evaluation run performed by the EvaluationService. +message EvaluateDatasetResponse { + // Output only. Aggregation statistics derived from results of + // EvaluationService. + AggregationOutput aggregation_output = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Output info for EvaluationService. + OutputInfo output_info = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Operation metadata for Dataset Evaluation. +message EvaluateDatasetOperationMetadata { + // Generic operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Describes the info for output of EvaluationService. +message OutputInfo { + // The output location into which evaluation output is written. + oneof output_location { + // Output only. The full path of the Cloud Storage directory created, into + // which the evaluation results and aggregation results are written. + string gcs_output_directory = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// The aggregation result for the entire dataset and all metrics. +message AggregationOutput { + // The dataset used for evaluation & aggregation. + EvaluationDataset dataset = 1; + + // One AggregationResult per metric. + repeated AggregationResult aggregation_results = 2; +} + +// The aggregation result for a single metric. +message AggregationResult { + // The aggregation result. + oneof aggregation_result { + // Result for pointwise metric. + PointwiseMetricResult pointwise_metric_result = 5; + + // Result for pairwise metric. + PairwiseMetricResult pairwise_metric_result = 6; + + // Results for exact match metric. + ExactMatchMetricValue exact_match_metric_value = 7; + + // Results for bleu metric. + BleuMetricValue bleu_metric_value = 8; + + // Results for rouge metric. + RougeMetricValue rouge_metric_value = 9; + + // Result for code execution metric. + CustomCodeExecutionResult custom_code_execution_result = 10; + } + + // Aggregation metric. + Metric.AggregationMetric aggregation_metric = 4; +} + // The spec for a pre-defined metric. message PredefinedMetricSpec { // Required. The name of a pre-defined metric, such as @@ -593,6 +939,9 @@ message LLMBasedMetricSpec { // Refers to a key in the rubric_groups map of EvaluationInstance. string rubric_group_key = 4; + // Dynamically generate rubrics using this specification. + RubricGenerationSpec rubric_generation_spec = 5; + // Dynamically generate rubrics using a predefined spec. PredefinedMetricSpec predefined_rubric_generation_spec = 6; } @@ -612,6 +961,52 @@ message LLMBasedMetricSpec { // Optional. Optional additional configuration for the metric. optional google.protobuf.Struct additional_config = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The parser config for the metric result. + EvaluationParserConfig result_parser_config = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Specificies a metric that is populated by evaluating user-defined Python +// code. +message CustomCodeExecutionSpec { + // Required. Python function. + // Expected user to define the following function, e.g.: + // def evaluate(instance: dict[str, Any]) -> float: + // Please include this function signature in the code snippet. + // Instance is the evaluation instance, any fields populated in the instance + // are available to the function as instance[field_name]. + // + // Example: + // Example input: + // ``` + // instance= EvaluationInstance( + // response=EvaluationInstance.InstanceData(text="The answer is 4."), + // reference=EvaluationInstance.InstanceData(text="4") + // ) + // ``` + // + // Example converted input: + // ``` + // { + // 'response': {'text': 'The answer is 4.'}, + // 'reference': {'text': '4'} + // } + // ``` + // + // Example python function: + // ``` + // def evaluate(instance: dict[str, Any]) -> float: + // if instance['response']['text'] == instance['reference']['text']: + // return 1.0 + // return 0.0 + // ``` + // + // CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset + // RPC) and Tuning Evaluation. Each line in the input jsonl file will be + // converted to dict[str, Any] and passed to the evaluation function. + optional string evaluation_function = 1 + [(google.api.field_behavior) = REQUIRED]; } // Input for exact match metric. @@ -732,6 +1127,12 @@ message RougeMetricValue { optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Result for custom code execution metric. +message CustomCodeExecutionResult { + // Output only. Custom code execution score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Input for coherence metric. message CoherenceInput { // Required. Spec for coherence score metric. @@ -2063,3 +2464,96 @@ message ContentMap { // Optional. Map of placeholder to contents. map values = 1 [(google.api.field_behavior) = OPTIONAL]; } + +// Config for parsing LLM responses. +// It can be used to parse the LLM response to be evaluated, or the LLM +// response from LLM-based metrics/Autoraters. +message EvaluationParserConfig { + // Configuration for parsing the LLM response using custom code. + message CustomCodeParserConfig { + // Required. Python function for parsing results. The function should be + // defined within this string. + // + // The function takes a list of strings (LLM responses) and should return + // either a list of dictionaries (for rubrics) or a single dictionary + // (for a metric result). + // + // Example function signature: + // def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]: + // + // When parsing rubrics, return a list of dictionaries, where each + // dictionary represents a Rubric. + // Example for rubrics: + // [ + // { + // "content": {"property": {"description": "The response is + // factual."}}, + // "type": "FACTUALITY", + // "importance": "HIGH" + // }, + // { + // "content": {"property": {"description": "The response is + // fluent."}}, + // "type": "FLUENCY", + // "importance": "MEDIUM" + // } + // ] + // + // When parsing critique results, return a dictionary representing a + // MetricResult. + // Example for a metric result: + // { + // "score": 0.8, + // "explanation": "The model followed most instructions.", + // "rubric_verdicts": [...] + // } + // + // ... code for result extraction and aggregation + optional string parsing_function = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // The parser to use. + oneof parser { + // Optional. Use custom code to parse the LLM response. + CustomCodeParserConfig custom_code_parser_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Specification for how rubrics should be generated. +message RubricGenerationSpec { + // Specifies the type of rubric content to generate. + enum RubricContentType { + // The content type to generate is not specified. + RUBRIC_CONTENT_TYPE_UNSPECIFIED = 0; + + // Generate rubrics based on properties. + PROPERTY = 1; + + // Generate rubrics in an NL question answer format. + NL_QUESTION_ANSWER = 2; + + // Generate rubrics in a unit test format. + PYTHON_CODE_ASSERTION = 3; + } + + // Template for the prompt used to generate rubrics. + // The details should be updated based on the most-recent recipe requirements. + string prompt_template = 1; + + // Configuration for the model used in rubric generation. + // Configs including sampling count and base model can be specified here. + // Flipping is not supported for rubric generation. + optional AutoraterConfig model_config = 4; + + // The type of rubric content to be generated. + RubricContentType rubric_content_type = 5; + + // Optional. An optional, pre-defined list of allowed types for generated + // rubrics. If this field is provided, it implies `include_rubric_type` should + // be true, and the generated rubric types should be chosen from this + // ontology. + repeated string rubric_type_ontology = 6 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto index 65f7bc9a2096..1b5c00eed2a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto @@ -766,6 +766,18 @@ message CopyModelRequest { // 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; + + // Optional. The user-provided custom service account to use to do the copy + // model. If empty, [Vertex AI Service + // Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // will be used to access resources needed to upload the model. This account + // must belong to the destination project where the model is copied to, + // i.e., the project specified in the `parent` field of this request and + // have the Vertex AI Service Agent role in the source project. + // + // Requires the user copying the Model to have the + // `iam.serviceAccounts.actAs` permission on this service account. + string custom_service_account = 7 [(google.api.field_behavior) = OPTIONAL]; } // Details of diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator.proto new file mode 100644 index 000000000000..e4f2c5224095 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator.proto @@ -0,0 +1,248 @@ +// Copyright 2026 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/evaluation_service.proto"; +import "google/protobuf/timestamp.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 = "OnlineEvaluatorProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// An OnlineEvaluator contains the configuration for an Online Evaluation. +message OnlineEvaluator { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + pattern: "projects/{project}/locations/{location}/onlineEvaluators/{online_evaluator}" + plural: "onlineEvaluators" + singular: "onlineEvaluator" + }; + + // Data source for the OnlineEvaluator, based on GCP Observability stack + // (Cloud Trace & Cloud Logging). + message CloudObservability { + // Defines a predicate for filtering based on a numeric value. + message NumericPredicate { + // Comparison operators for numeric predicates. + enum ComparisonOperator { + // Unspecified comparison operator. This value should not be used. + COMPARISON_OPERATOR_UNSPECIFIED = 0; + + // Less than. + LESS = 1; + + // Less than or equal to. + LESS_OR_EQUAL = 2; + + // Equal to. + EQUAL = 3; + + // Not equal to. + NOT_EQUAL = 4; + + // Greater than or equal to. + GREATER_OR_EQUAL = 5; + + // Greater than. + GREATER = 6; + } + + // Required. The comparison operator to apply. + ComparisonOperator comparison_operator = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The value to compare against. + float value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // If chosen, the online evaluator will evaluate single traces matching + // specified `filter`. + message TraceScope { + // Defines a single filter predicate. + message Predicate { + // The type of predicate. + oneof predicate { + // Filter on the duration of a trace. + NumericPredicate duration = 1; + + // Filter on the total token usage within a trace. + NumericPredicate total_token_usage = 2; + } + } + + // Optional. A list of predicates to filter traces. Multiple predicates + // are combined using AND. + // + // The maximum number of predicates is 10. + repeated Predicate filter = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for data source following OpenTelemetry. + message OpenTelemetry { + // Required. Defines which version OTel Semantic Convention the data + // follows. Can be "1.39.0" or newer. + string semconv_version = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Defines the scope of data to be evaluated. + oneof eval_scope { + // Scope online evaluation to single traces. + TraceScope trace_scope = 3; + } + + // Required. Defines which convention the data source follows. + oneof convention { + // Data source follows OpenTelemetry convention. + OpenTelemetry open_telemetry = 4; + } + + // Optional. Optional log view that will be used to query logs. + // If empty, the `_Default` view will be used. + string log_view = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional trace view that will be used to query traces. + // If empty, the `_Default` view will be used. + // + // NOTE: This field is not supported yet and will be ignored if set. + string trace_view = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for sampling behavior of the OnlineEvaluator. + // The OnlineEvaluator runs at a fixed interval of 10 minutes. + message Config { + // Configuration for random sampling. + message RandomSampling { + // Required. The percentage of traces to sample for evaluation. + // Must be an integer between `1` and `100`. + int32 percentage = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The sampling method used to select traces for evaluation. + oneof sampling_method { + // Random sampling method. + RandomSampling random_sampling = 2; + } + + // Optional. The maximum number of evaluations to perform per run. + // If set to 0, the number is unbounded. + int64 max_evaluated_samples_per_run = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Contains additional information about the state of the OnlineEvaluator. + message StateDetails { + // Output only. Human-readable message describing the state of the + // OnlineEvaluator. + string message = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The state of the OnlineEvaluator. + enum State { + // Default value. + STATE_UNSPECIFIED = 0; + + // Indicates that the OnlineEvaluator is active. + ACTIVE = 1; + + // Indicates that the OnlineEvaluator is suspended. In this state, the + // OnlineEvaluator will not evaluate any samples. + SUSPENDED = 2; + + // Indicates that the OnlineEvaluator is in a failed state. + // + // This can happen if, for example, the `log_view` or `trace_view` set on + // the `CloudObservability` does not exist. + FAILED = 3; + + // Indicates that the OnlineEvaluator is in a warning state. + // This can happen if, for example, some of the metrics in the + // `metric_sources` are invalid. Evaluation will still run with the + // remaining valid metrics. + WARNING = 4; + } + + // Required. The data source used to query samples for evaluations. + // More data sources will be supported in the future. + // + // This field is immutable. Once set, it cannot be changed. + oneof data_source { + // Data source for the OnlineEvaluator, based on GCP Observability stack + // (Cloud Trace & Cloud Logging). + CloudObservability cloud_observability = 4; + } + + // Identifier. The resource name of the OnlineEvaluator. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. The name of the agent that the OnlineEvaluator + // evaluates periodically. This value is used to filter the traces with a + // matching cloud.resource_id and link the evaluation results with relevant + // dashboards/UIs. + // + // This field is immutable. Once set, it cannot be changed. + string agent_resource = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. A list of metric sources to be used for evaluating samples. + // At least one MetricSource must be provided. + // Right now, only predefined metrics and registered metrics are supported. + // + // Every registered metric must have `display_name` (or `title`) and + // `score_range` defined. Otherwise, the evaluations will fail. + // + // The maximum number of `metric_sources` is 25. + repeated MetricSource metric_sources = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Configuration for the OnlineEvaluator. + Config config = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the OnlineEvaluator. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Contains additional information about the state of the + // OnlineEvaluator. This is used to provide more details in the event of a + // failure. + repeated StateDetails state_details = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the OnlineEvaluator was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the OnlineEvaluator was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Human-readable name for the `OnlineEvaluator`. + // + // The name doesn't have to be unique. + // + // The name can consist of any UTF-8 characters. The maximum length is `63` + // characters. If the display name exceeds max characters, an + // `INVALID_ARGUMENT` error is returned. + string display_name = 9 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator_service.proto new file mode 100644 index 000000000000..084fd3d95725 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator_service.proto @@ -0,0 +1,286 @@ +// Copyright 2026 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/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/online_evaluator.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.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 = "OnlineEvaluatorServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// This service is used to create and manage Vertex AI OnlineEvaluators. +service OnlineEvaluatorService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates an OnlineEvaluator in the given project and location. + rpc CreateOnlineEvaluator(CreateOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/onlineEvaluators" + body: "online_evaluator" + }; + option (google.api.method_signature) = "parent,online_evaluator"; + option (google.longrunning.operation_info) = { + response_type: "OnlineEvaluator" + metadata_type: "CreateOnlineEvaluatorOperationMetadata" + }; + } + + // Gets details of an OnlineEvaluator. + rpc GetOnlineEvaluator(GetOnlineEvaluatorRequest) returns (OnlineEvaluator) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the fields of an OnlineEvaluator. + rpc UpdateOnlineEvaluator(UpdateOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{online_evaluator.name=projects/*/locations/*/onlineEvaluators/*}" + body: "online_evaluator" + }; + option (google.api.method_signature) = "online_evaluator,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "OnlineEvaluator" + metadata_type: "UpdateOnlineEvaluatorOperationMetadata" + }; + } + + // Deletes an OnlineEvaluator. + rpc DeleteOnlineEvaluator(DeleteOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOnlineEvaluatorOperationMetadata" + }; + } + + // Lists the OnlineEvaluators for the given project and location. + rpc ListOnlineEvaluators(ListOnlineEvaluatorsRequest) + returns (ListOnlineEvaluatorsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/onlineEvaluators" + }; + option (google.api.method_signature) = "parent"; + } + + // Activates an OnlineEvaluator. + rpc ActivateOnlineEvaluator(ActivateOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}:activate" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "OnlineEvaluator" + metadata_type: "ActivateOnlineEvaluatorOperationMetadata" + }; + } + + // Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't + // run any evaluations until it is activated again. + rpc SuspendOnlineEvaluator(SuspendOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}:suspend" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "OnlineEvaluator" + metadata_type: "SuspendOnlineEvaluatorOperationMetadata" + }; + } +} + +// Request message for CreateOnlineEvaluator. +message CreateOnlineEvaluatorRequest { + // Required. The parent resource where the OnlineEvaluator will be created. + // Format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The OnlineEvaluator to create. + OnlineEvaluator online_evaluator = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata for the CreateOnlineEvaluator operation. +message CreateOnlineEvaluatorOperationMetadata { + // Common part of operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for GetOnlineEvaluator. +message GetOnlineEvaluatorRequest { + // Required. The name of the OnlineEvaluator to retrieve. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; +} + +// Request message for UpdateOnlineEvaluator. +message UpdateOnlineEvaluatorRequest { + // Required. The OnlineEvaluator to update. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + OnlineEvaluator online_evaluator = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to control which fields get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Metadata for the UpdateOnlineEvaluator operation. +message UpdateOnlineEvaluatorOperationMetadata { + // Generic operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for DeleteOnlineEvaluator. +message DeleteOnlineEvaluatorRequest { + // Required. The name of the OnlineEvaluator to delete. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; +} + +// Metadata for the DeleteOnlineEvaluator operation. +message DeleteOnlineEvaluatorOperationMetadata { + // Generic operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for ListOnlineEvaluators. +message ListOnlineEvaluatorsRequest { + // Required. The parent resource of the OnlineEvaluators to list. + // Format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; + + // Optional. The maximum number of OnlineEvaluators to return. The service may + // return fewer than this value. If unspecified, at most 50 OnlineEvaluators + // will be returned. The maximum value is 100; values above 100 will be + // coerced to 100. Based on aip.dev/158. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + // Based on aip.dev/158. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Standard list filter. + // Supported fields: + // * `create_time` + // * `update_time` + // * `agent_resource` + // Example: `create_time>"2026-01-01T00:00:00-04:00"` + // where the timestamp is in RFC 3339 format) + // Based on aip.dev/160. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by. The default sorting + // order is ascending. Use "desc" after a field name for descending. Supported + // fields: + // * `create_time` + // * `update_time` + // + // Example: `create_time desc`. + // Based on aip.dev/132. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListOnlineEvaluators. +message ListOnlineEvaluatorsResponse { + // A list of OnlineEvaluators matching the request. + repeated OnlineEvaluator online_evaluators = 1; + + // A token to retrieve the next page. Absence of this field indicates there + // are no subsequent pages. + string next_page_token = 2; +} + +// Request message for ActivateOnlineEvaluator. +message ActivateOnlineEvaluatorRequest { + // Required. The name of the OnlineEvaluator to activate. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; +} + +// Metadata for the ActivateOnlineEvaluator operation. +message ActivateOnlineEvaluatorOperationMetadata { + // Common part of operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for SuspendOnlineEvaluator. +message SuspendOnlineEvaluatorRequest { + // Required. The name of the OnlineEvaluator to suspend. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; +} + +// Metadata for the SuspendOnlineEvaluator operation. +message SuspendOnlineEvaluatorOperationMetadata { + // Common part of operation metadata. + GenericOperationMetadata generic_metadata = 1; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto index 9562eafaf289..b5d72ec6159d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/httpbody.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -62,6 +64,23 @@ service ReasoningEngineExecutionService { } }; } + + // Async query using a reasoning engine. + rpc AsyncQueryReasoningEngine(AsyncQueryReasoningEngineRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/reasoningEngines/*}:asyncQuery" + body: "*" + additional_bindings { + post: "/v1beta1/{name=reasoningEngines/*}:asyncQuery" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "AsyncQueryReasoningEngineResponse" + metadata_type: "AsyncQueryReasoningEngineOperationMetadata" + }; + } } // Request message for [ReasoningEngineExecutionService.Query][]. @@ -111,3 +130,37 @@ message StreamQueryReasoningEngineRequest { // It is optional and defaults to "stream_query" if unspecified. string class_method = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Request message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineRequest { + // Required. The name of the ReasoningEngine resource to use. + // Format: + // `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ReasoningEngine" + } + ]; + + // Optional. Input Cloud Storage URI for the Async query. + string input_gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output Cloud Storage URI for the Async query. + string output_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Operation metadata message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineResponse { + // Output Cloud Storage URI for the Async query. + string output_gcs_uri = 1; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto index 012bbef8a5d2..c01e695b0ba7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto @@ -79,6 +79,37 @@ message Tool { [(google.api.field_behavior) = OPTIONAL]; } + // ParallelAiSearch tool type. + // A tool that uses the Parallel.ai search engine for grounding. + message ParallelAiSearch { + // Optional. The API key for ParallelAiSearch. + // If an API key is not provided, the system will attempt to verify access + // by checking for an active Parallel.ai subscription through the Google + // Cloud Marketplace. + // See https://docs.parallel.ai/search/search-quickstart for more details. + string api_key = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom configs for ParallelAiSearch. + // This field can be used to pass any parameter from the Parallel.ai + // Search API. + // See the Parallel.ai documentation for the full list of available + // parameters and their usage: + // https://docs.parallel.ai/api-reference/search-beta/search + // Currently only `source_policy`, `excerpts`, `max_results`, `mode`, + // `fetch_policy` can be set via this field. For example: + // { + // "source_policy": { + // "include_domains": ["google.com", "wikipedia.org"], + // "exclude_domains": ["example.com"] + // }, + // "fetch_policy": { + // "max_age_seconds": 3600 + // } + // } + google.protobuf.Struct custom_configs = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + // Tool that executes code generated by the model, and automatically returns // the result to the model. // @@ -147,6 +178,12 @@ message Tool { EnterpriseWebSearch enterprise_web_search = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If specified, Vertex AI will use Parallel.ai to search for + // information to answer user queries. The search results will be grounded on + // Parallel.ai and presented to the model for response generation + ParallelAiSearch parallel_ai_search = 13 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. CodeExecution tool type. // Enables the model to execute code as part of generation. CodeExecution code_execution = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto index b530dc78cb8f..b8bfa47c84eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto @@ -64,6 +64,9 @@ message TuningJob { // Tuning Spec for Veo Tuning. VeoTuningSpec veo_tuning_spec = 33; + + // Tuning Spec for Veo LoRA Tuning. + VeoLoraTuningSpec veo_lora_tuning_spec = 38; } // Output only. Identifier. Resource name of a TuningJob. Format: @@ -604,6 +607,37 @@ message VeoHyperParameters { // Tuning task for text to video. TUNING_TASK_T2V = 2; + + // Tuning task for reference to video. + TUNING_TASK_R2V = 3; + } + + // The speed of the tuning job. Only supported for Veo 3.0 models. + enum TuningSpeed { + // The default / unset value. For Veo 3.0 models, this defaults to FAST. + TUNING_SPEED_UNSPECIFIED = 0; + + // Regular tuning speed. + REGULAR = 1; + + // Fast tuning speed. + FAST = 2; + } + + // Adapter size for LoRA tuning. + enum AdapterSize { + // Adapter size is unspecified. + ADAPTER_SIZE_UNSPECIFIED = 0; + + // Adapter size 8. + // This is the default adapter size for Veo LoRA tuning. + ADAPTER_SIZE_EIGHT = 8; + + // Adapter size 16. + ADAPTER_SIZE_SIXTEEN = 16; + + // Adapter size 32. + ADAPTER_SIZE_THIRTY_TWO = 32; } // Optional. Number of complete passes the model makes over the entire @@ -615,6 +649,19 @@ message VeoHyperParameters { // Optional. The tuning task. Either I2V or T2V. TuningTask tuning_task = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ratio of Google internal dataset to use in the training + // mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal + // dataset and 80% of user dataset will be used for training. If not set, the + // default value is 0.1. + optional double veo_data_mixture_ratio = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // The speed of the tuning job. Only supported for Veo 3.0 models. + optional TuningSpeed tuning_speed = 5; + + // Optional. The adapter size for LoRA tuning. + AdapterSize adapter_size = 6 [(google.api.field_behavior) = OPTIONAL]; } // Tuning Spec for Veo Model Tuning. @@ -634,6 +681,23 @@ message VeoTuningSpec { [(google.api.field_behavior) = OPTIONAL]; } +// Tuning Spec for Veo LoRA Model Tuning. +message VeoLoraTuningSpec { + // Required. Training dataset used for tuning. The dataset can be specified as + // either a Cloud Storage path to a JSONL file or as the resource name of a + // Vertex Multimodal Dataset. + string training_dataset_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Validation dataset used for tuning. The dataset can be specified + // as either a Cloud Storage path to a JSONL file or as the resource name of a + // Vertex Multimodal Dataset. + string validation_dataset_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hyperparameters for Veo LoRA. + VeoHyperParameters hyper_parameters = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + // Evaluation Config for Tuning Job. message EvaluationConfig { // Required. The metrics used for evaluation. diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/AsyncCopyModel.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/AsyncCopyModel.java index 412e62aed447..3c242dc2cde6 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/AsyncCopyModel.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/AsyncCopyModel.java @@ -43,6 +43,7 @@ public static void asyncCopyModel() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setCustomServiceAccount("customServiceAccount-2110106743") .build(); ApiFuture future = modelServiceClient.copyModelCallable().futureCall(request); // Do something. diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/AsyncCopyModelLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/AsyncCopyModelLRO.java index 7d619de0b7b9..e1562b0733ff 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/AsyncCopyModelLRO.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/AsyncCopyModelLRO.java @@ -44,6 +44,7 @@ public static void asyncCopyModelLRO() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setCustomServiceAccount("customServiceAccount-2110106743") .build(); OperationFuture future = modelServiceClient.copyModelOperationCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/SyncCopyModel.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/SyncCopyModel.java index 0badbb19168e..d8fc8233324b 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/SyncCopyModel.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/copymodel/SyncCopyModel.java @@ -42,6 +42,7 @@ public static void syncCopyModel() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setCustomServiceAccount("customServiceAccount-2110106743") .build(); CopyModelResponse response = modelServiceClient.copyModelAsync(request).get(); } diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..45fcae834c87 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.longrunning.Operation; + +public class AsyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncAsyncQueryReasoningEngine(); + } + + public static void asyncAsyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient + .asyncQueryReasoningEngineCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java new file mode 100644 index 000000000000..0e2968812c54 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; + +public class AsyncAsyncQueryReasoningEngineLRO { + + public static void main(String[] args) throws Exception { + asyncAsyncQueryReasoningEngineLRO(); + } + + public static void asyncAsyncQueryReasoningEngineLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + OperationFuture + future = + reasoningEngineExecutionServiceClient + .asyncQueryReasoningEngineOperationCallable() + .futureCall(request); + // Do something. + AsyncQueryReasoningEngineResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..aabca1ed030d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + AsyncQueryReasoningEngineResponse response = + reasoningEngineExecutionServiceClient.asyncQueryReasoningEngineAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..5b5ece6a85ea --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionServiceSettings_AsyncQueryReasoningEngine_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceSettings; +import java.time.Duration; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineExecutionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionServiceSettings_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..41a54f2b3432 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionServiceStubSettings_AsyncQueryReasoningEngine_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1.stub.ReasoningEngineExecutionServiceStubSettings; +import java.time.Duration; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineExecutionServiceStubSettings.Builder + reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineExecutionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionServiceStubSettings_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java index 6d0cf9a93808..09487f8c4a92 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java @@ -21,8 +21,12 @@ import com.google.cloud.aiplatform.v1beta1.AutoraterConfig; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.EvaluationInstance; import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.Metric; +import com.google.cloud.aiplatform.v1beta1.MetricSource; +import java.util.ArrayList; public class AsyncEvaluateInstances { @@ -40,6 +44,9 @@ public static void asyncEvaluateInstances() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllMetrics(new ArrayList()) + .addAllMetricSources(new ArrayList()) + .setInstance(EvaluationInstance.newBuilder().build()) .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); ApiFuture future = diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java index 80209ae00986..abf66bb5b3ff 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java @@ -20,8 +20,12 @@ import com.google.cloud.aiplatform.v1beta1.AutoraterConfig; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.EvaluationInstance; import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.Metric; +import com.google.cloud.aiplatform.v1beta1.MetricSource; +import java.util.ArrayList; public class SyncEvaluateInstances { @@ -39,6 +43,9 @@ public static void syncEvaluateInstances() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllMetrics(new ArrayList()) + .addAllMetricSources(new ArrayList()) + .setInstance(EvaluationInstance.newBuilder().build()) .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/AsyncGenerateInstanceRubrics.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/AsyncGenerateInstanceRubrics.java new file mode 100644 index 000000000000..ad95e0fa9fb2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/AsyncGenerateInstanceRubrics.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.EvaluationInstance; +import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec; +import com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec; +import java.util.ArrayList; + +public class AsyncGenerateInstanceRubrics { + + public static void main(String[] args) throws Exception { + asyncGenerateInstanceRubrics(); + } + + public static void asyncGenerateInstanceRubrics() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + GenerateInstanceRubricsRequest request = + GenerateInstanceRubricsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build()) + .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build()) + .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build()) + .build(); + ApiFuture future = + evaluationServiceClient.generateInstanceRubricsCallable().futureCall(request); + // Do something. + GenerateInstanceRubricsResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/SyncGenerateInstanceRubrics.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/SyncGenerateInstanceRubrics.java new file mode 100644 index 000000000000..a7d0b589d4d5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/SyncGenerateInstanceRubrics.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_sync] +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.EvaluationInstance; +import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec; +import com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec; +import java.util.ArrayList; + +public class SyncGenerateInstanceRubrics { + + public static void main(String[] args) throws Exception { + syncGenerateInstanceRubrics(); + } + + public static void syncGenerateInstanceRubrics() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + GenerateInstanceRubricsRequest request = + GenerateInstanceRubricsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build()) + .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build()) + .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build()) + .build(); + GenerateInstanceRubricsResponse response = + evaluationServiceClient.generateInstanceRubrics(request); + } + } +} +// [END aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/AsyncCopyModel.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/AsyncCopyModel.java index c6a0d221db50..ec6fccf529ef 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/AsyncCopyModel.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/AsyncCopyModel.java @@ -43,6 +43,7 @@ public static void asyncCopyModel() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setCustomServiceAccount("customServiceAccount-2110106743") .build(); ApiFuture future = modelServiceClient.copyModelCallable().futureCall(request); // Do something. diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/AsyncCopyModelLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/AsyncCopyModelLRO.java index c72fc5922e5e..a1a808644418 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/AsyncCopyModelLRO.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/AsyncCopyModelLRO.java @@ -44,6 +44,7 @@ public static void asyncCopyModelLRO() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setCustomServiceAccount("customServiceAccount-2110106743") .build(); OperationFuture future = modelServiceClient.copyModelOperationCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/SyncCopyModel.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/SyncCopyModel.java index f7d7164fbadf..26128afbb229 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/SyncCopyModel.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/copymodel/SyncCopyModel.java @@ -42,6 +42,7 @@ public static void syncCopyModel() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setCustomServiceAccount("customServiceAccount-2110106743") .build(); CopyModelResponse response = modelServiceClient.copyModelAsync(request).get(); } diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluator.java new file mode 100644 index 000000000000..dccb7c3ad43c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.longrunning.Operation; + +public class AsyncActivateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncActivateOnlineEvaluator(); + } + + public static void asyncActivateOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.activateOnlineEvaluatorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..9fa01b312834 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluatorLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class AsyncActivateOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncActivateOnlineEvaluatorLRO(); + } + + public static void asyncActivateOnlineEvaluatorLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient + .activateOnlineEvaluatorOperationCallable() + .futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluator.java new file mode 100644 index 000000000000..fbcfcd27410d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluator.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncActivateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncActivateOnlineEvaluator(); + } + + public static void syncActivateOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorOnlineevaluatorname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorOnlineevaluatorname.java new file mode 100644 index 000000000000..42d776a5356a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorOnlineevaluatorname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_Onlineevaluatorname_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncActivateOnlineEvaluatorOnlineevaluatorname { + + public static void main(String[] args) throws Exception { + syncActivateOnlineEvaluatorOnlineevaluatorname(); + } + + public static void syncActivateOnlineEvaluatorOnlineevaluatorname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + OnlineEvaluator response = + onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_Onlineevaluatorname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorString.java new file mode 100644 index 000000000000..1a1f0d53030e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_String_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncActivateOnlineEvaluatorString { + + public static void main(String[] args) throws Exception { + syncActivateOnlineEvaluatorString(); + } + + public static void syncActivateOnlineEvaluatorString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetCredentialsProvider.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..9823c6affcdf --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceSettings; +import com.google.cloud.aiplatform.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings = + OnlineEvaluatorServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create(onlineEvaluatorServiceSettings); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_Create_SetCredentialsProvider_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ee3228331097 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_Create_SetEndpoint_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceSettings; +import com.google.cloud.aiplatform.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings = + OnlineEvaluatorServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create(onlineEvaluatorServiceSettings); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_Create_SetEndpoint_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluator.java new file mode 100644 index 000000000000..d91ffb27fc44 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncCreateOnlineEvaluator(); + } + + public static void asyncCreateOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.createOnlineEvaluatorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..4609c4711b72 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluatorLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class AsyncCreateOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncCreateOnlineEvaluatorLRO(); + } + + public static void asyncCreateOnlineEvaluatorLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient.createOnlineEvaluatorOperationCallable().futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluator.java new file mode 100644 index 000000000000..12176b8c66c1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluator.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncCreateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluator(); + } + + public static void syncCreateOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorLocationnameOnlineevaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorLocationnameOnlineevaluator.java new file mode 100644 index 000000000000..3a039d212554 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorLocationnameOnlineevaluator.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_LocationnameOnlineevaluator_sync] +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncCreateOnlineEvaluatorLocationnameOnlineevaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluatorLocationnameOnlineevaluator(); + } + + public static void syncCreateOnlineEvaluatorLocationnameOnlineevaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_LocationnameOnlineevaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorStringOnlineevaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorStringOnlineevaluator.java new file mode 100644 index 000000000000..dacfa88d5ec2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorStringOnlineevaluator.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_StringOnlineevaluator_sync] +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncCreateOnlineEvaluatorStringOnlineevaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluatorStringOnlineevaluator(); + } + + public static void syncCreateOnlineEvaluatorStringOnlineevaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_StringOnlineevaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluator.java new file mode 100644 index 000000000000..d8281cd0cc03 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncDeleteOnlineEvaluator(); + } + + public static void asyncDeleteOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.deleteOnlineEvaluatorCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..24c20a54a35d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluatorLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteOnlineEvaluatorLRO(); + } + + public static void asyncDeleteOnlineEvaluatorLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient.deleteOnlineEvaluatorOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluator.java new file mode 100644 index 000000000000..8cac3650c261 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluator.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncDeleteOnlineEvaluator(); + } + + public static void syncDeleteOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorOnlineevaluatorname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorOnlineevaluatorname.java new file mode 100644 index 000000000000..65e6a2f8b2df --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorOnlineevaluatorname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_Onlineevaluatorname_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOnlineEvaluatorOnlineevaluatorname { + + public static void main(String[] args) throws Exception { + syncDeleteOnlineEvaluatorOnlineevaluatorname(); + } + + public static void syncDeleteOnlineEvaluatorOnlineevaluatorname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_Onlineevaluatorname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorString.java new file mode 100644 index 000000000000..6ad3251f0954 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_String_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOnlineEvaluatorString { + + public static void main(String[] args) throws Exception { + syncDeleteOnlineEvaluatorString(); + } + + public static void syncDeleteOnlineEvaluatorString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString(); + onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/AsyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..cb6f1ea36fdd --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/SyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..d789a691041a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetIamPolicy_sync] +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = onlineEvaluatorServiceClient.getIamPolicy(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/AsyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..d90c014b6994 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + onlineEvaluatorServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetLocation_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/SyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..cd93ad78e611 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetLocation_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = onlineEvaluatorServiceClient.getLocation(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetLocation_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/AsyncGetOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/AsyncGetOnlineEvaluator.java new file mode 100644 index 000000000000..0427290e409c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/AsyncGetOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class AsyncGetOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncGetOnlineEvaluator(); + } + + public static void asyncGetOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetOnlineEvaluatorRequest request = + GetOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.getOnlineEvaluatorCallable().futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluator.java new file mode 100644 index 000000000000..d088b2ca1f0c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluator.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncGetOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluator(); + } + + public static void syncGetOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetOnlineEvaluatorRequest request = + GetOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorOnlineevaluatorname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorOnlineevaluatorname.java new file mode 100644 index 000000000000..e91ac0ab0dc9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorOnlineevaluatorname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_Onlineevaluatorname_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncGetOnlineEvaluatorOnlineevaluatorname { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluatorOnlineevaluatorname(); + } + + public static void syncGetOnlineEvaluatorOnlineevaluatorname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_Onlineevaluatorname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorString.java new file mode 100644 index 000000000000..60408e620275 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_String_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncGetOnlineEvaluatorString { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluatorString(); + } + + public static void syncGetOnlineEvaluatorString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString(); + OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..12b06e208d41 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocationsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..c0d17db7d6e9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_Paged_async] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + onlineEvaluatorServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/SyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..9b3f03945d28 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/SyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : onlineEvaluatorServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluators.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluators.java new file mode 100644 index 000000000000..342cefde5d04 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluators.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class AsyncListOnlineEvaluators { + + public static void main(String[] args) throws Exception { + asyncListOnlineEvaluators(); + } + + public static void asyncListOnlineEvaluators() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.listOnlineEvaluatorsPagedCallable().futureCall(request); + // Do something. + for (OnlineEvaluator element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluatorsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluatorsPaged.java new file mode 100644 index 000000000000..ce63c957f3de --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluatorsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_Paged_async] +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.common.base.Strings; + +public class AsyncListOnlineEvaluatorsPaged { + + public static void main(String[] args) throws Exception { + asyncListOnlineEvaluatorsPaged(); + } + + public static void asyncListOnlineEvaluatorsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListOnlineEvaluatorsResponse response = + onlineEvaluatorServiceClient.listOnlineEvaluatorsCallable().call(request); + for (OnlineEvaluator element : response.getOnlineEvaluatorsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluators.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluators.java new file mode 100644 index 000000000000..7c10250c73a5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluators.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync] +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncListOnlineEvaluators { + + public static void main(String[] args) throws Exception { + syncListOnlineEvaluators(); + } + + public static void syncListOnlineEvaluators() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (OnlineEvaluator element : + onlineEvaluatorServiceClient.listOnlineEvaluators(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsLocationname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsLocationname.java new file mode 100644 index 000000000000..669782ba949e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_Locationname_sync] +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncListOnlineEvaluatorsLocationname { + + public static void main(String[] args) throws Exception { + syncListOnlineEvaluatorsLocationname(); + } + + public static void syncListOnlineEvaluatorsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (OnlineEvaluator element : + onlineEvaluatorServiceClient.listOnlineEvaluators(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_Locationname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsString.java new file mode 100644 index 000000000000..50e66522558a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_String_sync] +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncListOnlineEvaluatorsString { + + public static void main(String[] args) throws Exception { + syncListOnlineEvaluatorsString(); + } + + public static void syncListOnlineEvaluatorsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (OnlineEvaluator element : + onlineEvaluatorServiceClient.listOnlineEvaluators(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/AsyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..b9fd1a975832 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/SyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..440470fb6cc8 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SetIamPolicy_sync] +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = onlineEvaluatorServiceClient.setIamPolicy(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluator.java new file mode 100644 index 000000000000..7ef77f3b5644 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; +import com.google.longrunning.Operation; + +public class AsyncSuspendOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncSuspendOnlineEvaluator(); + } + + public static void asyncSuspendOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.suspendOnlineEvaluatorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..61a7e4621062 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluatorLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; + +public class AsyncSuspendOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncSuspendOnlineEvaluatorLRO(); + } + + public static void asyncSuspendOnlineEvaluatorLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient + .suspendOnlineEvaluatorOperationCallable() + .futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluator.java new file mode 100644 index 000000000000..d609da9bb247 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluator.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; + +public class SyncSuspendOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncSuspendOnlineEvaluator(); + } + + public static void syncSuspendOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorOnlineevaluatorname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorOnlineevaluatorname.java new file mode 100644 index 000000000000..8234f6e76406 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorOnlineevaluatorname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_Onlineevaluatorname_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncSuspendOnlineEvaluatorOnlineevaluatorname { + + public static void main(String[] args) throws Exception { + syncSuspendOnlineEvaluatorOnlineevaluatorname(); + } + + public static void syncSuspendOnlineEvaluatorOnlineevaluatorname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + OnlineEvaluator response = + onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_Onlineevaluatorname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorString.java new file mode 100644 index 000000000000..923ef023fa60 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_String_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncSuspendOnlineEvaluatorString { + + public static void main(String[] args) throws Exception { + syncSuspendOnlineEvaluatorString(); + } + + public static void syncSuspendOnlineEvaluatorString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/AsyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..5f408484653a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_TestIamPermissions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/SyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..dcca60e9f224 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_TestIamPermissions_sync] +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + onlineEvaluatorServiceClient.testIamPermissions(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_TestIamPermissions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluator.java new file mode 100644 index 000000000000..6bf732bff222 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncUpdateOnlineEvaluator(); + } + + public static void asyncUpdateOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + UpdateOnlineEvaluatorRequest request = + UpdateOnlineEvaluatorRequest.newBuilder() + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.updateOnlineEvaluatorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..4a012595a715 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluatorLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateOnlineEvaluatorLRO(); + } + + public static void asyncUpdateOnlineEvaluatorLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + UpdateOnlineEvaluatorRequest request = + UpdateOnlineEvaluatorRequest.newBuilder() + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient.updateOnlineEvaluatorOperationCallable().futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluator.java new file mode 100644 index 000000000000..5e59a2a87e09 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluator.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncUpdateOnlineEvaluator(); + } + + public static void syncUpdateOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + UpdateOnlineEvaluatorRequest request = + UpdateOnlineEvaluatorRequest.newBuilder() + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.updateOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask.java new file mode 100644 index 000000000000..1af6cd030f76 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_OnlineevaluatorFieldmask_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateOnlineEvaluatorOnlineevaluatorFieldmask(); + } + + public static void syncUpdateOnlineEvaluatorOnlineevaluatorFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient + .updateOnlineEvaluatorAsync(onlineEvaluator, updateMask) + .get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_OnlineevaluatorFieldmask_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/createonlineevaluator/SyncCreateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/createonlineevaluator/SyncCreateOnlineEvaluator.java new file mode 100644 index 000000000000..fde36c4c337f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/createonlineevaluator/SyncCreateOnlineEvaluator.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorServiceSettings_CreateOnlineEvaluator_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceSettings; +import java.time.Duration; + +public class SyncCreateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluator(); + } + + public static void syncCreateOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OnlineEvaluatorServiceSettings.Builder onlineEvaluatorServiceSettingsBuilder = + OnlineEvaluatorServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + onlineEvaluatorServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorServiceSettings_CreateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/getonlineevaluator/SyncGetOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/getonlineevaluator/SyncGetOnlineEvaluator.java new file mode 100644 index 000000000000..dfb1fbc53aa2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/getonlineevaluator/SyncGetOnlineEvaluator.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorServiceSettings_GetOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceSettings; +import java.time.Duration; + +public class SyncGetOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluator(); + } + + public static void syncGetOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OnlineEvaluatorServiceSettings.Builder onlineEvaluatorServiceSettingsBuilder = + OnlineEvaluatorServiceSettings.newBuilder(); + onlineEvaluatorServiceSettingsBuilder + .getOnlineEvaluatorSettings() + .setRetrySettings( + onlineEvaluatorServiceSettingsBuilder + .getOnlineEvaluatorSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings = + onlineEvaluatorServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorServiceSettings_GetOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..2aed13ed2411 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineName; +import com.google.longrunning.Operation; + +public class AsyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncAsyncQueryReasoningEngine(); + } + + public static void asyncAsyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient + .asyncQueryReasoningEngineCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java new file mode 100644 index 000000000000..00a73643c93e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineName; + +public class AsyncAsyncQueryReasoningEngineLRO { + + public static void main(String[] args) throws Exception { + asyncAsyncQueryReasoningEngineLRO(); + } + + public static void asyncAsyncQueryReasoningEngineLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + OperationFuture + future = + reasoningEngineExecutionServiceClient + .asyncQueryReasoningEngineOperationCallable() + .futureCall(request); + // Do something. + AsyncQueryReasoningEngineResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..5fb8b3d688d7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_sync] +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineName; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + AsyncQueryReasoningEngineResponse response = + reasoningEngineExecutionServiceClient.asyncQueryReasoningEngineAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..6a24a3b4ed91 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionServiceSettings_AsyncQueryReasoningEngine_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceSettings; +import java.time.Duration; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineExecutionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionServiceSettings_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/createonlineevaluator/SyncCreateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/createonlineevaluator/SyncCreateOnlineEvaluator.java new file mode 100644 index 000000000000..3f118fec8667 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/createonlineevaluator/SyncCreateOnlineEvaluator.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorServiceStubSettings_CreateOnlineEvaluator_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStubSettings; +import java.time.Duration; + +public class SyncCreateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluator(); + } + + public static void syncCreateOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OnlineEvaluatorServiceStubSettings.Builder onlineEvaluatorServiceSettingsBuilder = + OnlineEvaluatorServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + onlineEvaluatorServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorServiceStubSettings_CreateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/getonlineevaluator/SyncGetOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/getonlineevaluator/SyncGetOnlineEvaluator.java new file mode 100644 index 000000000000..1f1766b3fb29 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/getonlineevaluator/SyncGetOnlineEvaluator.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorServiceStubSettings_GetOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStubSettings; +import java.time.Duration; + +public class SyncGetOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluator(); + } + + public static void syncGetOnlineEvaluator() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OnlineEvaluatorServiceStubSettings.Builder onlineEvaluatorServiceSettingsBuilder = + OnlineEvaluatorServiceStubSettings.newBuilder(); + onlineEvaluatorServiceSettingsBuilder + .getOnlineEvaluatorSettings() + .setRetrySettings( + onlineEvaluatorServiceSettingsBuilder + .getOnlineEvaluatorSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + OnlineEvaluatorServiceStubSettings onlineEvaluatorServiceSettings = + onlineEvaluatorServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorServiceStubSettings_GetOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..1dee447d6870 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionServiceStubSettings_AsyncQueryReasoningEngine_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1beta1.stub.ReasoningEngineExecutionServiceStubSettings; +import java.time.Duration; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineExecutionServiceStubSettings.Builder + reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineExecutionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionServiceStubSettings_AsyncQueryReasoningEngine_sync] diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index 90bf340ad429..0642d02233d0 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.68.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.69.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.69.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml index 48b94f33e928..93c2b0e87f1c 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors-bom - 0.69.0 + 0.70.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.69.0 + 0.70.0
diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml index bff3acf63972..b11f720f1ec0 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors - 0.69.0 + 0.70.0 jar Google AlloyDB connectors AlloyDB connectors AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. com.google.cloud google-cloud-alloydb-connectors-parent - 0.69.0 + 0.70.0 google-cloud-alloydb-connectors diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml index 1b8bd1212ccb..a0d289e6a67a 100644 --- a/java-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-connectors-parent pom - 0.69.0 + 0.70.0 Google AlloyDB connectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.69.0 + 0.70.0
diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml index 687776110f30..dff658e022fe 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.69.0 + 0.70.0 proto-google-cloud-alloydb-connectors-v1 Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.69.0 + 0.70.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml index 8b8b1a199f39..c859c8e8fec3 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.69.0 + 0.70.0 proto-google-cloud-alloydb-connectors-v1alpha Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.69.0 + 0.70.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml index 7e7467a74f8d..fc71e182d130 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.69.0 + 0.70.0 proto-google-cloud-alloydb-connectors-v1beta Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.69.0 + 0.70.0 diff --git a/java-alloydb/README.md b/java-alloydb/README.md index d1ea58dae68a..3421412e3c2e 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.79.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/google-cloud-alloydb-bom/pom.xml b/java-alloydb/google-cloud-alloydb-bom/pom.xml index 8743977d425e..501c081a2cfe 100644 --- a/java-alloydb/google-cloud-alloydb-bom/pom.xml +++ b/java-alloydb/google-cloud-alloydb-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-bom - 0.80.0 + 0.81.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-alloydb - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.80.0 + 0.81.0 diff --git a/java-alloydb/google-cloud-alloydb/pom.xml b/java-alloydb/google-cloud-alloydb/pom.xml index 28012fd70021..cecc4376356f 100644 --- a/java-alloydb/google-cloud-alloydb/pom.xml +++ b/java-alloydb/google-cloud-alloydb/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb - 0.80.0 + 0.81.0 jar Google AlloyDB AlloyDB AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. com.google.cloud google-cloud-alloydb-parent - 0.80.0 + 0.81.0 google-cloud-alloydb diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/Version.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/Version.java index 2b1bedac133b..f8a60349f1e5 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/Version.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-alloydb:current} - static final String VERSION = "0.80.0"; + static final String VERSION = "0.81.0"; // {x-version-update-end} } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/Version.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/Version.java index e94e50627423..c1f6463d7edc 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/Version.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-alloydb:current} - static final String VERSION = "0.80.0"; + static final String VERSION = "0.81.0"; // {x-version-update-end} } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/Version.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/Version.java index 7d13508642a0..9f9c31708e69 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/Version.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-alloydb:current} - static final String VERSION = "0.80.0"; + static final String VERSION = "0.81.0"; // {x-version-update-end} } diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml index d202496f4e1e..46ad65d66a99 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.80.0 + 0.81.0 grpc-google-cloud-alloydb-v1 GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.80.0 + 0.81.0 diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml index 3f9a55f63773..337b613cb9e7 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.80.0 + 0.81.0 grpc-google-cloud-alloydb-v1alpha GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.80.0 + 0.81.0 diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml index a1a42d140f84..3c9faf13aaff 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.80.0 + 0.81.0 grpc-google-cloud-alloydb-v1beta GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.80.0 + 0.81.0 diff --git a/java-alloydb/pom.xml b/java-alloydb/pom.xml index 6a182667e097..5de490e7ef06 100644 --- a/java-alloydb/pom.xml +++ b/java-alloydb/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-parent pom - 0.80.0 + 0.81.0 Google AlloyDB Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-alloydb - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.80.0 + 0.81.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml index df6f59ccaa34..888f961fcd30 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.80.0 + 0.81.0 proto-google-cloud-alloydb-v1 Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.80.0 + 0.81.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml index c3ffc7bc75cc..d3e68bb89e96 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.80.0 + 0.81.0 proto-google-cloud-alloydb-v1alpha Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.80.0 + 0.81.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml index 075eb715d31f..b6e01b2606da 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.80.0 + 0.81.0 proto-google-cloud-alloydb-v1beta Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.80.0 + 0.81.0 diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 6e8a02bab9b6..673334a1e2a1 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.100.0 + 0.101.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.100.0' +implementation 'com.google.analytics:google-analytics-admin:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.100.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.101.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index 6f4ed857ec9f..6b4d7f2d49d2 100644 --- a/java-analytics-admin/google-analytics-admin-bom/pom.xml +++ b/java-analytics-admin/google-analytics-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.101.0 + 0.102.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-admin - 0.101.0 + 0.102.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.101.0 + 0.102.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.101.0 + 0.102.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.101.0 + 0.102.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.101.0 + 0.102.0 diff --git a/java-analytics-admin/google-analytics-admin/pom.xml b/java-analytics-admin/google-analytics-admin/pom.xml index 44c6c119efb2..0602789e269b 100644 --- a/java-analytics-admin/google-analytics-admin/pom.xml +++ b/java-analytics-admin/google-analytics-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.101.0 + 0.102.0 jar Google Analytics Admin allows you to manage Google Analytics accounts and properties. com.google.analytics google-analytics-admin-parent - 0.101.0 + 0.102.0 google-analytics-admin diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index 6018a29020fb..236b0f6ac9e3 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -2908,7 +2908,7 @@ * * *

GetReportingIdentitySettings - *

Returns the singleton data retention settings for this property. + *

Returns the reporting identity settings for this property. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -2925,6 +2925,25 @@ *
* * + * + *

GetUserProvidedDataSettings + *

Looks up settings related to user-provided data for a property. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getUserProvidedDataSettings(GetUserProvidedDataSettingsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getUserProvidedDataSettings(UserProvidedDataSettingsName name) + *

  • getUserProvidedDataSettings(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getUserProvidedDataSettingsCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -22198,7 +22217,7 @@ public final SubpropertySyncConfig getSubpropertySyncConfig( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Returns the reporting identity settings for this property. * *

Sample code: * @@ -22232,7 +22251,7 @@ public final ReportingIdentitySettings getReportingIdentitySettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Returns the reporting identity settings for this property. * *

Sample code: * @@ -22263,7 +22282,7 @@ public final ReportingIdentitySettings getReportingIdentitySettings(String name) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Returns the reporting identity settings for this property. * *

Sample code: * @@ -22294,7 +22313,7 @@ public final ReportingIdentitySettings getReportingIdentitySettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Returns the reporting identity settings for this property. * *

Sample code: * @@ -22322,6 +22341,130 @@ public final ReportingIdentitySettings getReportingIdentitySettings( return stub.getReportingIdentitySettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks up settings related to user-provided data for a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]");
+   *   UserProvidedDataSettings response =
+   *       analyticsAdminServiceClient.getUserProvidedDataSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the user provided data settings to retrieve. Format: + * properties/{property}/userProvidedDataSettings + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserProvidedDataSettings getUserProvidedDataSettings( + UserProvidedDataSettingsName name) { + GetUserProvidedDataSettingsRequest request = + GetUserProvidedDataSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getUserProvidedDataSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks up settings related to user-provided data for a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = UserProvidedDataSettingsName.of("[PROPERTY]").toString();
+   *   UserProvidedDataSettings response =
+   *       analyticsAdminServiceClient.getUserProvidedDataSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the user provided data settings to retrieve. Format: + * properties/{property}/userProvidedDataSettings + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserProvidedDataSettings getUserProvidedDataSettings(String name) { + GetUserProvidedDataSettingsRequest request = + GetUserProvidedDataSettingsRequest.newBuilder().setName(name).build(); + return getUserProvidedDataSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks up settings related to user-provided data for a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetUserProvidedDataSettingsRequest request =
+   *       GetUserProvidedDataSettingsRequest.newBuilder()
+   *           .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   UserProvidedDataSettings response =
+   *       analyticsAdminServiceClient.getUserProvidedDataSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserProvidedDataSettings getUserProvidedDataSettings( + GetUserProvidedDataSettingsRequest request) { + return getUserProvidedDataSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks up settings related to user-provided data for a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetUserProvidedDataSettingsRequest request =
+   *       GetUserProvidedDataSettingsRequest.newBuilder()
+   *           .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getUserProvidedDataSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   UserProvidedDataSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getUserProvidedDataSettingsCallable() { + return stub.getUserProvidedDataSettingsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index b6f3b921afb9..f846a3b7501c 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -1168,6 +1168,13 @@ public UnaryCallSettings deleteCalculatedM .getReportingIdentitySettingsSettings(); } + /** Returns the object with the settings used for calls to getUserProvidedDataSettings. */ + public UnaryCallSettings + getUserProvidedDataSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getUserProvidedDataSettingsSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -2332,6 +2339,12 @@ public UnaryCallSettings.Builder deleteAdSenseL return getStubSettingsBuilder().getReportingIdentitySettingsSettings(); } + /** Returns the builder for the settings used for calls to getUserProvidedDataSettings. */ + public UnaryCallSettings.Builder + getUserProvidedDataSettingsSettings() { + return getStubSettingsBuilder().getUserProvidedDataSettingsSettings(); + } + @Override public AnalyticsAdminServiceSettings build() throws IOException { return new AnalyticsAdminServiceSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 7cabf87a2c58..3ca72cd0beb4 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -286,6 +286,9 @@ "GetSubpropertySyncConfig": { "methods": ["getSubpropertySyncConfig", "getSubpropertySyncConfig", "getSubpropertySyncConfig", "getSubpropertySyncConfigCallable"] }, + "GetUserProvidedDataSettings": { + "methods": ["getUserProvidedDataSettings", "getUserProvidedDataSettings", "getUserProvidedDataSettings", "getUserProvidedDataSettingsCallable"] + }, "ListAccessBindings": { "methods": ["listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindingsPagedCallable", "listAccessBindingsCallable"] }, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index fc36eb98c24f..95c4a8f885cf 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -166,6 +166,7 @@ import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -274,6 +275,7 @@ import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -1219,6 +1221,12 @@ public UnaryCallable deleteCalculatedMetri "Not implemented: getReportingIdentitySettingsCallable()"); } + public UnaryCallable + getUserProvidedDataSettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: getUserProvidedDataSettingsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index 3e6f8513237c..542b462b37ac 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -168,6 +168,7 @@ import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -276,6 +277,7 @@ import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -729,6 +731,8 @@ public class AnalyticsAdminServiceStubSettings getSubpropertySyncConfigSettings; private final UnaryCallSettings getReportingIdentitySettingsSettings; + private final UnaryCallSettings + getUserProvidedDataSettingsSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -3600,6 +3604,12 @@ public UnaryCallSettings deleteCalculatedM return getReportingIdentitySettingsSettings; } + /** Returns the object with the settings used for calls to getUserProvidedDataSettings. */ + public UnaryCallSettings + getUserProvidedDataSettingsSettings() { + return getUserProvidedDataSettingsSettings; + } + public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -3908,6 +3918,8 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getSubpropertySyncConfigSettings = settingsBuilder.getSubpropertySyncConfigSettings().build(); getReportingIdentitySettingsSettings = settingsBuilder.getReportingIdentitySettingsSettings().build(); + getUserProvidedDataSettingsSettings = + settingsBuilder.getUserProvidedDataSettingsSettings().build(); } @Override @@ -4315,6 +4327,9 @@ public static class Builder private final UnaryCallSettings.Builder< GetReportingIdentitySettingsRequest, ReportingIdentitySettings> getReportingIdentitySettingsSettings; + private final UnaryCallSettings.Builder< + GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> + getUserProvidedDataSettingsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -4546,6 +4561,7 @@ protected Builder(ClientContext clientContext) { updateSubpropertySyncConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSubpropertySyncConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getReportingIdentitySettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getUserProvidedDataSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -4702,7 +4718,8 @@ protected Builder(ClientContext clientContext) { listSubpropertySyncConfigsSettings, updateSubpropertySyncConfigSettings, getSubpropertySyncConfigSettings, - getReportingIdentitySettingsSettings); + getReportingIdentitySettingsSettings, + getUserProvidedDataSettingsSettings); initDefaults(this); } @@ -4904,6 +4921,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getSubpropertySyncConfigSettings = settings.getSubpropertySyncConfigSettings.toBuilder(); getReportingIdentitySettingsSettings = settings.getReportingIdentitySettingsSettings.toBuilder(); + getUserProvidedDataSettingsSettings = + settings.getUserProvidedDataSettingsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -5060,7 +5079,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { listSubpropertySyncConfigsSettings, updateSubpropertySyncConfigSettings, getSubpropertySyncConfigSettings, - getReportingIdentitySettingsSettings); + getReportingIdentitySettingsSettings, + getUserProvidedDataSettingsSettings); } private static Builder createDefault() { @@ -5858,6 +5878,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getUserProvidedDataSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -6927,6 +6952,12 @@ public UnaryCallSettings.Builder deleteAdSenseL return getReportingIdentitySettingsSettings; } + /** Returns the builder for the settings used for calls to getUserProvidedDataSettings. */ + public UnaryCallSettings.Builder + getUserProvidedDataSettingsSettings() { + return getUserProvidedDataSettingsSettings; + } + @Override public AnalyticsAdminServiceStubSettings build() throws IOException { return new AnalyticsAdminServiceStubSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 167144e25761..27f5287590e1 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -166,6 +166,7 @@ import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -274,6 +275,7 @@ import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -2323,6 +2325,21 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> + getUserProvidedDataSettingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserProvidedDataSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetUserProvidedDataSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(UserProvidedDataSettings.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -2669,6 +2686,8 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { getSubpropertySyncConfigCallable; private final UnaryCallable getReportingIdentitySettingsCallable; + private final UnaryCallable + getUserProvidedDataSettingsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -4554,6 +4573,19 @@ protected GrpcAnalyticsAdminServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + getUserProvidedDataSettingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getUserProvidedDataSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -5392,6 +5424,11 @@ protected GrpcAnalyticsAdminServiceStub( getReportingIdentitySettingsTransportSettings, settings.getReportingIdentitySettingsSettings(), clientContext); + this.getUserProvidedDataSettingsCallable = + callableFactory.createUnaryCallable( + getUserProvidedDataSettingsTransportSettings, + settings.getUserProvidedDataSettingsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -6453,6 +6490,12 @@ public UnaryCallable deleteCalculatedMetri return getReportingIdentitySettingsCallable; } + @Override + public UnaryCallable + getUserProvidedDataSettingsCallable() { + return getUserProvidedDataSettingsCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java index b0f5de254329..8b0a3a55b3e7 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -166,6 +166,7 @@ import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -274,6 +275,7 @@ import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -6273,6 +6275,43 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor< + GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> + getUserProvidedDataSettingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserProvidedDataSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/userProvidedDataSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UserProvidedDataSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -6619,6 +6658,8 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub getSubpropertySyncConfigCallable; private final UnaryCallable getReportingIdentitySettingsCallable; + private final UnaryCallable + getUserProvidedDataSettingsCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -8698,6 +8739,20 @@ protected HttpJsonAnalyticsAdminServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings + getUserProvidedDataSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getUserProvidedDataSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -9536,6 +9591,11 @@ protected HttpJsonAnalyticsAdminServiceStub( getReportingIdentitySettingsTransportSettings, settings.getReportingIdentitySettingsSettings(), clientContext); + this.getUserProvidedDataSettingsCallable = + callableFactory.createUnaryCallable( + getUserProvidedDataSettingsTransportSettings, + settings.getUserProvidedDataSettingsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -9698,6 +9758,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateSubpropertySyncConfigMethodDescriptor); methodDescriptors.add(getSubpropertySyncConfigMethodDescriptor); methodDescriptors.add(getReportingIdentitySettingsMethodDescriptor); + methodDescriptors.add(getUserProvidedDataSettingsMethodDescriptor); return methodDescriptors; } @@ -10753,6 +10814,12 @@ public UnaryCallable deleteCalculatedMetri return getReportingIdentitySettingsCallable; } + @Override + public UnaryCallable + getUserProvidedDataSettingsCallable() { + return getUserProvidedDataSettingsCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/Version.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/Version.java index 5e97ebae34d5..dd89419f6e66 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/Version.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-analytics-admin:current} - static final String VERSION = "0.101.0"; + static final String VERSION = "0.102.0"; // {x-version-update-end} } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/Version.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/Version.java index c71afd60bd93..5182e2dcf2f8 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/Version.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-analytics-admin:current} - static final String VERSION = "0.101.0"; + static final String VERSION = "0.102.0"; // {x-version-update-end} } diff --git a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json index 849dd00286a2..d26e54152eb1 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json +++ b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json @@ -3383,6 +3383,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.GlobalSiteTag", "queryAllDeclaredConstructors": true, @@ -5705,6 +5723,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.UserProvidedDataSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.UserProvidedDataSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.BatchingConfigProto", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java index 2030289f6780..e9ef7a96429b 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java @@ -13605,4 +13605,96 @@ public void getReportingIdentitySettingsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getUserProvidedDataSettingsTest() throws Exception { + UserProvidedDataSettings expectedResponse = + UserProvidedDataSettings.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .setUserProvidedDataCollectionEnabled(true) + .setAutomaticallyDetectedDataCollectionEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + + UserProvidedDataSettings actualResponse = client.getUserProvidedDataSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUserProvidedDataSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + client.getUserProvidedDataSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUserProvidedDataSettingsTest2() throws Exception { + UserProvidedDataSettings expectedResponse = + UserProvidedDataSettings.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .setUserProvidedDataCollectionEnabled(true) + .setAutomaticallyDetectedDataCollectionEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-4671/userProvidedDataSettings"; + + UserProvidedDataSettings actualResponse = client.getUserProvidedDataSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUserProvidedDataSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-4671/userProvidedDataSettings"; + client.getUserProvidedDataSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index 006c08076f0c..604514faf54f 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -11809,4 +11809,86 @@ public void getReportingIdentitySettingsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getUserProvidedDataSettingsTest() throws Exception { + UserProvidedDataSettings expectedResponse = + UserProvidedDataSettings.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .setUserProvidedDataCollectionEnabled(true) + .setAutomaticallyDetectedDataCollectionEnabled(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + + UserProvidedDataSettings actualResponse = client.getUserProvidedDataSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUserProvidedDataSettingsRequest actualRequest = + ((GetUserProvidedDataSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUserProvidedDataSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + client.getUserProvidedDataSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUserProvidedDataSettingsTest2() throws Exception { + UserProvidedDataSettings expectedResponse = + UserProvidedDataSettings.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .setUserProvidedDataCollectionEnabled(true) + .setAutomaticallyDetectedDataCollectionEnabled(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + UserProvidedDataSettings actualResponse = client.getUserProvidedDataSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUserProvidedDataSettingsRequest actualRequest = + ((GetUserProvidedDataSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUserProvidedDataSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getUserProvidedDataSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index e6f3f5da1a09..bd67d75d7365 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -3438,4 +3438,27 @@ public void getReportingIdentitySettings( Exception.class.getName()))); } } + + @Override + public void getUserProvidedDataSettings( + GetUserProvidedDataSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UserProvidedDataSettings) { + requests.add(request); + responseObserver.onNext(((UserProvidedDataSettings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetUserProvidedDataSettings, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + UserProvidedDataSettings.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml index 0a2e4d28be30..28ac54fec639 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.101.0 + 0.102.0 grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.101.0 + 0.102.0 diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index 4f5b3032f1ec..f25c25559766 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -7840,6 +7840,59 @@ private AnalyticsAdminServiceGrpc() {} return getGetReportingIdentitySettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings> + getGetUserProvidedDataSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUserProvidedDataSettings", + requestType = com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.UserProvidedDataSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings> + getGetUserProvidedDataSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings> + getGetUserProvidedDataSettingsMethod; + if ((getGetUserProvidedDataSettingsMethod = + AnalyticsAdminServiceGrpc.getGetUserProvidedDataSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetUserProvidedDataSettingsMethod = + AnalyticsAdminServiceGrpc.getGetUserProvidedDataSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetUserProvidedDataSettingsMethod = + getGetUserProvidedDataSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetUserProvidedDataSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetUserProvidedDataSettings")) + .build(); + } + } + } + return getGetUserProvidedDataSettingsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -10288,7 +10341,7 @@ default void getSubpropertySyncConfig( * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ default void getReportingIdentitySettings( @@ -10298,6 +10351,21 @@ default void getReportingIdentitySettings( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetReportingIdentitySettingsMethod(), responseObserver); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + default void getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetUserProvidedDataSettingsMethod(), responseObserver); + } } /** @@ -13031,7 +13099,7 @@ public void getSubpropertySyncConfig( * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ public void getReportingIdentitySettings( @@ -13043,6 +13111,23 @@ public void getReportingIdentitySettings( request, responseObserver); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + public void getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUserProvidedDataSettingsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -15370,7 +15455,7 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ public com.google.analytics.admin.v1alpha.ReportingIdentitySettings @@ -15380,6 +15465,20 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetUserProvidedDataSettingsMethod(), getCallOptions(), request); + } } /** @@ -17555,7 +17654,7 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ public com.google.analytics.admin.v1alpha.ReportingIdentitySettings @@ -17564,6 +17663,19 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserProvidedDataSettingsMethod(), getCallOptions(), request); + } } /** @@ -19928,7 +20040,7 @@ protected AnalyticsAdminServiceFutureStub build( * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -19938,6 +20050,21 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReportingIdentitySettingsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings> + getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUserProvidedDataSettingsMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -20094,6 +20221,7 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_UPDATE_SUBPROPERTY_SYNC_CONFIG = 151; private static final int METHODID_GET_SUBPROPERTY_SYNC_CONFIG = 152; private static final int METHODID_GET_REPORTING_IDENTITY_SETTINGS = 153; + private static final int METHODID_GET_USER_PROVIDED_DATA_SETTINGS = 154; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -21101,6 +21229,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.ReportingIdentitySettings>) responseObserver); break; + case METHODID_GET_USER_PROVIDED_DATA_SETTINGS: + serviceImpl.getUserProvidedDataSettings( + (com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings>) + responseObserver); + break; default: throw new AssertionError(); } @@ -22182,6 +22317,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest, com.google.analytics.admin.v1alpha.ReportingIdentitySettings>( service, METHODID_GET_REPORTING_IDENTITY_SETTINGS))) + .addMethod( + getGetUserProvidedDataSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings>( + service, METHODID_GET_USER_PROVIDED_DATA_SETTINGS))) .build(); } @@ -22387,6 +22529,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateSubpropertySyncConfigMethod()) .addMethod(getGetSubpropertySyncConfigMethod()) .addMethod(getGetReportingIdentitySettingsMethod()) + .addMethod(getGetUserProvidedDataSettingsMethod()) .build(); } } diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml index b7eda6d03c45..90efb4bd5ab7 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.101.0 + 0.102.0 grpc-google-analytics-admin-v1beta GRPC library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.101.0 + 0.102.0 diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index c59746103845..6e7f74c332ce 100644 --- a/java-analytics-admin/pom.xml +++ b/java-analytics-admin/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.101.0 + 0.102.0 Google Analytics Admin Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-admin - 0.101.0 + 0.102.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.101.0 + 0.102.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.101.0 + 0.102.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.101.0 + 0.102.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.101.0 + 0.102.0 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml index 0d2cb61ce3d2..e045a7f3bf71 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.101.0 + 0.102.0 proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.101.0 + 0.102.0 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java index 50731bc5d4f8..7e643f3c9fb8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java @@ -83,12 +83,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,12 +109,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -909,12 +909,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -934,12 +934,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -959,12 +959,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -983,12 +983,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1003,12 +1003,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java index e577cf66978b..b065ed27f285 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java @@ -30,12 +30,12 @@ public interface AccountOrBuilder * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface AccountOrBuilder * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java index 54407be0ee7c..a8d898d4167c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java @@ -83,12 +83,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,12 +109,12 @@ public java.lang.String getName() { * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -758,12 +758,12 @@ public Builder mergeFrom( * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -783,12 +783,12 @@ public java.lang.String getName() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -808,12 +808,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -832,12 +832,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -852,12 +852,12 @@ public Builder clearName() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java index e1fc562bdb97..98a934df3537 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java @@ -30,12 +30,12 @@ public interface AccountSummaryOrBuilder * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface AccountSummaryOrBuilder * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index 176fb71e9486..5dd30719a5e1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -812,6 +812,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_GetReportingIdentitySettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_GetReportingIdentitySettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -862,10 +866,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005quota\030\005 \001(\0132+.google.analytics.admin.v1alpha.AccessQuota\"P\n" + "\021GetAccountRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%analyticsadmin.googleapis.com/Account\"R\n" - + "\023ListAccountsRequest\022\021\n" - + "\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\022\024\n" + + "%analyticsadmin.googleapis.com/Account\"\\\n" + + "\023ListAccountsRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\022\024\n" + "\014show_deleted\030\003 \001(\010\"j\n" + "\024ListAccountsResponse\0229\n" + "\010accounts\030\001 \003(\0132\'.google.analytics.admin.v1alpha.Account\022\027\n" @@ -884,41 +888,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021account_ticket_id\030\001 \001(\t\"R\n" + "\022GetPropertyRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/Property\"i\n" + + "&analyticsadmin.googleapis.com/Property\"s\n" + "\025ListPropertiesRequest\022\023\n" - + "\006filter\030\001 \001(\tB\003\340A\002\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\024\n" + + "\006filter\030\001 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\024\n" + "\014show_deleted\030\004 \001(\010\"o\n" + "\026ListPropertiesResponse\022<\n\n" + "properties\030\001 \003(\0132(.google.analytics.admin.v1alpha.Property\022\027\n" + "\017next_page_token\030\002 \001(\t\"\216\001\n" + "\025UpdatePropertyRequest\022?\n" - + "\010property\030\001 \001(\0132(.google" - + ".analytics.admin.v1alpha.PropertyB\003\340A\002\0224\n" + + "\010property\030\001" + + " \001(\0132(.google.analytics.admin.v1alpha.PropertyB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"X\n" + "\025CreatePropertyRequest\022?\n" - + "\010property\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.PropertyB\003\340A\002\"U\n" + + "\010property\030\001 \001(\0132(.go" + + "ogle.analytics.admin.v1alpha.PropertyB\003\340A\002\"U\n" + "\025DeletePropertyRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&analyticsadmin.googleapis.com/Property\"\251\001\n" + "\031CreateFirebaseLinkRequest\022B\n" - + "\006parent\030\001 \001(\tB2\340A\002" - + "\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022H\n\r" - + "firebase_link\030\002 \001(\0132,.google." - + "analytics.admin.v1alpha.FirebaseLinkB\003\340A\002\"]\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022H\n\r" + + "firebase_link\030\002" + + " \001(\0132,.google.analytics.admin.v1alpha.FirebaseLinkB\003\340A\002\"]\n" + "\031DeleteFirebaseLinkRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/FirebaseLink\"\205\001\n" + + "*analyticsadmin.googleapis.com/FirebaseLink\"\217\001\n" + "\030ListFirebaseLinksRequest\022B\n" + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"z\n" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + + "page_token\030\003 \001(\tB\003\340A\001\"z\n" + "\031ListFirebaseLinksResponse\022D\n" - + "\016firebase_links\030\001" - + " \003(\0132,.google.analytics.admin.v1alpha.FirebaseLink\022\027\n" + + "\016firebase_links\030\001 \003(\0132,.go" + + "ogle.analytics.admin.v1alpha.FirebaseLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"\\\n" + "\027GetGlobalSiteTagRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" @@ -929,30 +934,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017google_ads_link\030\002" + " \001(\0132-.google.analytics.admin.v1alpha.GoogleAdsLinkB\003\340A\002\"\232\001\n" + "\032UpdateGoogleAdsLinkRequest\022F\n" - + "\017google_ads_link\030\001 " - + "\001(\0132-.google.analytics.admin.v1alpha.GoogleAdsLink\0224\n" + + "\017google_ads_link\030\001 \001(\0132-.goog" + + "le.analytics.admin.v1alpha.GoogleAdsLink\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"_\n" + "\032DeleteGoogleAdsLinkRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/GoogleAdsLink\"\207\001\n" + + "+analyticsadmin.googleapis.com/GoogleAdsLink\"\221\001\n" + "\031ListGoogleAdsLinksRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/GoogleAdsLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"~\n" + + "\006parent\030\001 \001(\tB3\340" + + "A\002\372A-\022+analyticsadmin.googleapis.com/GoogleAdsLink\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"~\n" + "\032ListGoogleAdsLinksResponse\022G\n" + "\020google_ads_links\030\001 \003(\0132-.go" + "ogle.analytics.admin.v1alpha.GoogleAdsLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"h\n" + "\035GetDataSharingSettingsRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1analyticsadmin.googleapis.com/DataSharingSettings\"D\n" - + "\033ListAccountSummariesRequest\022\021\n" - + "\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\"\202\001\n" + + "1analyticsadmin.googleapis.com/DataSharingSettings\"N\n" + + "\033ListAccountSummariesRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\"\202\001\n" + "\034ListAccountSummariesResponse\022I\n" - + "\021account_summaries\030\001" - + " \003(\0132..google.analytics.admin.v1alpha.AccountSummary\022\027\n" + + "\021account_summaries\030\001 \003(\0132..goog" + + "le.analytics.admin.v1alpha.AccountSummary\022\027\n" + "\017next_page_token\030\002 \001(\t\"\206\001\n" + "$AcknowledgeUserDataCollectionRequest\022@\n" + "\010property\030\001 \001(\tB.\340A\002\372A(\n" @@ -964,10 +969,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%analyticsadmin.googleapis.com/Account\022@\n" + "\010property\030\002 \001(\tB.\340A\001\372A(\n" + "&analyticsadmin.googleapis.com/Property\022U\n\r" - + "resource_type\030\003 \003(\01629.google.analyt" - + "ics.admin.v1alpha.ChangeHistoryResourceTypeB\003\340A\001\022?\n" - + "\006action\030\004" - + " \003(\0162*.google.analytics.admin.v1alpha.ActionTypeB\003\340A\001\022\030\n" + + "resource_type\030\003 \003(\01629.goo" + + "gle.analytics.admin.v1alpha.ChangeHistoryResourceTypeB\003\340A\001\022?\n" + + "\006action\030\004 \003(\0162*.goo" + + "gle.analytics.admin.v1alpha.ActionTypeB\003\340A\001\022\030\n" + "\013actor_email\030\005 \003(\tB\003\340A\001\022=\n" + "\024earliest_change_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" @@ -976,58 +981,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\t \001(\tB\003\340A\001\"\217\001\n" + "!SearchChangeHistoryEventsResponse\022Q\n" - + "\025change_history_events\030\001" - + " \003(\01322.google.analytics.admin.v1alpha.ChangeHistoryEvent\022\027\n" + + "\025change_history_events\030\001 \003(\01322.google" + + ".analytics.admin.v1alpha.ChangeHistoryEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"t\n" + "#GetMeasurementProtocolSecretRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\336\001\n" + "&CreateMeasurementProtocolSecretRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002" - + "\372A9\0227analyticsadmin.googleapis.com/MeasurementProtocolSecret\022c\n" - + "\033measurement_protocol_secret\030\002 \001(\01329.google.analytics.adm" - + "in.v1alpha.MeasurementProtocolSecretB\003\340A\002\"w\n" + + "\006parent\030\001 \001(" + + "\tB?\340A\002\372A9\0227analyticsadmin.googleapis.com/MeasurementProtocolSecret\022c\n" + + "\033measurement_protocol_secret\030\002 \001(\01329.google.ana" + + "lytics.admin.v1alpha.MeasurementProtocolSecretB\003\340A\002\"w\n" + "&DeleteMeasurementProtocolSecretRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\303\001\n" + "&UpdateMeasurementProtocolSecretRequest\022c\n" - + "\033measurement_protocol_secret\030\001 \001" - + "(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\003\340A\002\0224\n" + + "\033measurement_protocol_secret\030\001" + + " \001(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\237\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\251\001\n" + "%ListMeasurementProtocolSecretsRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadm" - + "in.googleapis.com/MeasurementProtocolSecret\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\242\001\n" + + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227an" + + "alyticsadmin.googleapis.com/MeasurementProtocolSecret\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\242\001\n" + "&ListMeasurementProtocolSecretsResponse\022_\n" - + "\034measurement_protocol_secrets\030\001 " - + "\003(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecret\022\027\n" + + "\034measurement_protocol_secrets\030\001 \003(\01329.google.analyti" + + "cs.admin.v1alpha.MeasurementProtocolSecret\022\027\n" + "\017next_page_token\030\002 \001(\t\"\202\001\n" + "*GetSKAdNetworkConversionValueSchemaRequest\022T\n" + "\004name\030\001 \001(\tBF\340A\002\372A@\n" + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\373\001\n" + "-CreateSKAdNetworkConversionValueSchemaRequest\022V\n" - + "\006parent\030\001 \001(\tBF\340A\002\372A@\022>analyticsadmin.googleapi" - + "s.com/SKAdNetworkConversionValueSchema\022r\n" - + "#skadnetwork_conversion_value_schema\030\002 " - + "\001(\0132@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\003\340A\002\"\205\001\n" + + "\006parent\030\001 \001(\tBF\340A\002\372A@\022>anal" + + "yticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\022r\n" + + "#skadnetwork_conversion_value_schema\030\002 \001(\0132@.google.analyti" + + "cs.admin.v1alpha.SKAdNetworkConversionValueSchemaB\003\340A\002\"\205\001\n" + "-DeleteSKAdNetworkConversionValueSchemaRequest\022T\n" + "\004name\030\001 \001(\tBF\340A\002\372A@\n" + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\331\001\n" + "-UpdateSKAdNetworkConversionValueSchemaRequest\022r\n" - + "#skadnetwork_conversion_value_schema\030\001 \001(\0132@.google.analy" - + "tics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\003\340A\002\0224\n" + + "#skadnetwork_conversion_value_schema\030\001" + + " \001(\0132@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\255\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\267\001\n" + ",ListSKAdNetworkConversionValueSchemasRequest\022V\n" - + "\006parent\030\001 \001(\tBF\340A\002\372A@\022>analyticsadmin." - + "googleapis.com/SKAdNetworkConversionValueSchema\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\270\001\n" + + "\006parent\030\001 \001(\tBF\340A\002" + + "\372A@\022>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\270\001\n" + "-ListSKAdNetworkConversionValueSchemasResponse\022n\n" - + "$skadnetwork_conversion_value_schemas\030\001 \003(\0132@.google.analytic" - + "s.admin.v1alpha.SKAdNetworkConversionValueSchema\022\027\n" + + "$skadnetwork_conversion_value_schemas\030\001 \003(\0132@.google.analytics.admin.v1" + + "alpha.SKAdNetworkConversionValueSchema\022\027\n" + "\017next_page_token\030\002 \001(\t\"l\n" + "\037GetGoogleSignalsSettingsRequest\022I\n" + "\004name\030\001 \001(\tB;\340A\002\372A5\n" @@ -1038,25 +1044,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\265\001\n" + "\034CreateConversionEventRequest\022N\n" - + "\020conversion_event\030\001 \001(\0132/.google.an" - + "alytics.admin.v1alpha.ConversionEventB\003\340A\002\022E\n" + + "\020conversion_event\030\001" + + " \001(\0132/.google.analytics.admin.v1alpha.ConversionEventB\003\340A\002\022E\n" + "\006parent\030\002 \001(" + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\"\244\001\n" + "\034UpdateConversionEventRequest\022N\n" - + "\020conversion_event\030\001" - + " \001(\0132/.google.analytics.admin.v1alpha.ConversionEventB\003\340A\002\0224\n" + + "\020conversion_event\030\001 \001" + + "(\0132/.google.analytics.admin.v1alpha.ConversionEventB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"`\n" + "\031GetConversionEventRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-analyticsadmin.googleapis.com/ConversionEvent\"c\n" + "\034DeleteConversionEventRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/ConversionEvent\"\213\001\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\"\225\001\n" + "\033ListConversionEventsRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\203\001\n" + + "\006parent\030\001 \001(\tB5\340" + + "A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\203\001\n" + "\034ListConversionEventsResponse\022J\n" + "\021conversion_events\030\001 \003(" + "\0132/.google.analytics.admin.v1alpha.ConversionEvent\022\027\n" @@ -1075,12 +1081,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&analyticsadmin.googleapis.com/KeyEvent\"U\n" + "\025DeleteKeyEventRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/KeyEvent\"}\n" + + "&analyticsadmin.googleapis.com/KeyEvent\"\207\001\n" + "\024ListKeyEventsRequest\022>\n" + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/KeyEvent\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"n\n" + + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/KeyEvent\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"n\n" + "\025ListKeyEventsResponse\022<\n\n" + "key_events\030\001 \003(\0132(.google.analytics.admin.v1alpha.KeyEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"|\n" @@ -1088,45 +1094,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tBC\340A\002\372A=\n" + ";analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\247\001\n" + ")ListDisplayVideo360AdvertiserLinksRequest\022S\n" - + "\006parent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin." - + "googleapis.com/DisplayVideo360AdvertiserLink\022\021\n" + + "\006parent\030\001 \001(\tBC\340A\002\372A=\022;anal" + + "yticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\260\001\n" + "*ListDisplayVideo360AdvertiserLinksResponse\022i\n" - + "\"display_video_360_advertiser_links\030\001" - + " \003(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\022\027\n" + + "\"display_video_360_advertiser_links\030\001 \003(\0132=.google.analy" + + "tics.admin.v1alpha.DisplayVideo360AdvertiserLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"\360\001\n" + "*CreateDisplayVideo360AdvertiserLinkRequest\022S\n" - + "\006parent\030\001 \001(" - + "\tBC\340A\002\372A=\022;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\022m\n" - + "!display_video_360_advertiser_link\030\002 \001(\0132=." - + "google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkB\003\340A\002\"\177\n" + + "\006parent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin" + + ".googleapis.com/DisplayVideo360AdvertiserLink\022m\n" + + "!display_video_360_advertiser_link\030\002" + + " \001(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkB\003\340A\002\"\177\n" + "*DeleteDisplayVideo360AdvertiserLinkRequest\022Q\n" + "\004name\030\001 \001(\tBC\340A\002\372A=\n" + ";analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\314\001\n" + "*UpdateDisplayVideo360AdvertiserLinkRequest\022h\n" - + "!display_video_360_advertiser_link\030\001" - + " \001(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\0224\n" + + "!display_video_360_advertiser_link\030\001 \001(\0132=.google.analytics.admin" + + ".v1alpha.DisplayVideo360AdvertiserLink\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\214\001\n" + "/GetDisplayVideo360AdvertiserLinkProposalRequest\022Y\n" + "\004name\030\001 \001(\tBK\340A\002\372AE\n" + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\267\001\n" + "1ListDisplayVideo360AdvertiserLinkProposalsRequest\022[\n" - + "\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.g" - + "oogleapis.com/DisplayVideo360AdvertiserLinkProposal\022\021\n" + + "\006parent\030\001 \001(\tBK\340A\002\372AE\022Canaly" + + "ticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\311\001\n" + "2ListDisplayVideo360AdvertiserLinkProposalsResponse\022z\n" - + "+display_video_360_advertiser_link_proposals\030\001 \003(\0132E" - + ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\022\027\n" + + "+display_video_360_advertiser_link_proposals\030\001" + + " \003(\0132E.google.analytics.admin.v1alp" + + "ha.DisplayVideo360AdvertiserLinkProposal\022\027\n" + "\017next_page_token\030\002 \001(\t\"\221\002\n" + "2CreateDisplayVideo360AdvertiserLinkProposalRequest\022[\n" - + "\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.googleapis" - + ".com/DisplayVideo360AdvertiserLinkProposal\022~\n" - + "*display_video_360_advertiser_link_proposal\030\002" - + " \001(\0132E.google.analytics.admin." - + "v1alpha.DisplayVideo360AdvertiserLinkProposalB\003\340A\002\"\217\001\n" + + "\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin" + + ".googleapis.com/DisplayVideo360AdvertiserLinkProposal\022~\n" + + "*display_video_360_advertiser_link_proposal\030\002 \001(\0132E.google.analy" + + "tics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalB\003\340A\002\"\217\001\n" + "2DeleteDisplayVideo360AdvertiserLinkProposalRequest\022Y\n" + "\004name\030\001 \001(\tBK\340A\002\372AE\n" + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\220\001\n" @@ -1134,8 +1140,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tBK\340A\002\372AE\n" + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\240\001\n" + "4ApproveDisplayVideo360AdvertiserLinkProposalResponse\022h\n" - + "!display_video_360_advertiser_link\030\001 " - + "\001(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\217\001\n" + + "!display_video_360_advertiser_link\030\001 \001(\0132=.google.analytics.admin." + + "v1alpha.DisplayVideo360AdvertiserLink\"\217\001\n" + "2CancelDisplayVideo360AdvertiserLinkProposalRequest\022Y\n" + "\004name\030\001 \001(\tBK\340A\002\372AE\n" + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"b\n" @@ -1148,8 +1154,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\210\001\n" + "\035ListSearchAds360LinksResponse\022N\n" - + "\024search_ads_360_links\030\001 \003(\013" - + "20.google.analytics.admin.v1alpha.SearchAds360Link\022\027\n" + + "\024search_ads_360_links\030\001" + + " \003(\01320.google.analytics.admin.v1alpha.SearchAds360Link\022\027\n" + "\017next_page_token\030\002 \001(\t\"\273\001\n" + "\035CreateSearchAds360LinkRequest\022F\n" + "\006parent\030\001 \001(" @@ -1160,28 +1166,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + ".analyticsadmin.googleapis.com/SearchAds360Link\"\244\001\n" + "\035UpdateSearchAds360LinkRequest\022M\n" - + "\023search_ads_360_link\030\001 \001(\01320.google" - + ".analytics.admin.v1alpha.SearchAds360Link\0224\n" + + "\023search_ads_360_link\030\001 \001" + + "(\01320.google.analytics.admin.v1alpha.SearchAds360Link\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\265\001\n" + "\034CreateCustomDimensionRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyt" - + "icsadmin.googleapis.com/CustomDimension\022N\n" - + "\020custom_dimension\030\002 \001(\0132/.google.analy" - + "tics.admin.v1alpha.CustomDimensionB\003\340A\002\"\237\001\n" + + "\006parent\030\001 \001(\tB5\340A\002" + + "\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022N\n" + + "\020custom_dimension\030\002 \001(\0132/.g" + + "oogle.analytics.admin.v1alpha.CustomDimensionB\003\340A\002\"\237\001\n" + "\034UpdateCustomDimensionRequest\022I\n" - + "\020custom_dimension\030\001" - + " \001(\0132/.google.analytics.admin.v1alpha.CustomDimension\0224\n" + + "\020custom_dimension\030\001 \001(\0132/.google.a" + + "nalytics.admin.v1alpha.CustomDimension\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\213\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\225\001\n" + "\033ListCustomDimensionsRequest\022E\n" + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\203\001\n" + + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\203\001\n" + "\034ListCustomDimensionsResponse\022J\n" - + "\021custom_dimensions\030\001 " - + "\003(\0132/.google.analytics.admin.v1alpha.CustomDimension\022\027\n" + + "\021custom_dimensions\030\001" + + " \003(\0132/.google.analytics.admin.v1alpha.CustomDimension\022\027\n" + "\017next_page_token\030\002 \001(\t\"d\n" + "\035ArchiveCustomDimensionRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -1192,15 +1198,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031CreateCustomMetricRequest\022B\n" + "\006parent\030\001 \001(" + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/CustomMetric\022H\n\r" - + "custom_metric\030\002 \001(\0132," - + ".google.analytics.admin.v1alpha.CustomMetricB\003\340A\002\"\226\001\n" + + "custom_metric\030\002" + + " \001(\0132,.google.analytics.admin.v1alpha.CustomMetricB\003\340A\002\"\226\001\n" + "\031UpdateCustomMetricRequest\022C\n\r" + "custom_metric\030\001 \001(\0132,.google.analytics.admin.v1alpha.CustomMetric\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\205\001\n" + "\030ListCustomMetricsRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/CustomMetric\022\021\n" + + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*an" + + "alyticsadmin.googleapis.com/CustomMetric\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"z\n" + "\031ListCustomMetricsResponse\022D\n" @@ -1217,23 +1223,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB6\340A\002\372A0\022.analyticsadmin.googleapis.com/CalculatedMetric\022!\n" + "\024calculated_metric_id\030\002 \001(\tB\003\340A\002\022P\n" - + "\021calculated_metric\030\003" - + " \001(\01320.google.analytics.admin.v1alpha.CalculatedMetricB\003\340A\002\"\247\001\n" + + "\021calculated_metric\030\003 \001(\0132" + + "0.google.analytics.admin.v1alpha.CalculatedMetricB\003\340A\002\"\247\001\n" + "\035UpdateCalculatedMetricRequest\022P\n" - + "\021calculated_metric\030\001" - + " \001(\01320.google.analytics.admin.v1alpha.CalculatedMetricB\003\340A\002\0224\n" + + "\021calculated_metric\030\001 \001(\01320.go" + + "ogle.analytics.admin.v1alpha.CalculatedMetricB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"e\n" + "\035DeleteCalculatedMetricRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + ".analyticsadmin.googleapis.com/CalculatedMetric\"\227\001\n" + "\034ListCalculatedMetricsRequest\022F\n" - + "\006parent\030\001 \001(\tB6\340A\002" - + "\372A0\022.analyticsadmin.googleapis.com/CalculatedMetric\022\026\n" + + "\006parent\030\001 \001(" + + "\tB6\340A\002\372A0\022.analyticsadmin.googleapis.com/CalculatedMetric\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\206\001\n" + "\035ListCalculatedMetricsResponse\022L\n" - + "\022calculated_metrics\030\001 \003" - + "(\01320.google.analytics.admin.v1alpha.CalculatedMetric\022\027\n" + + "\022calculated_metrics\030\001" + + " \003(\01320.google.analytics.admin.v1alpha.CalculatedMetric\022\027\n" + "\017next_page_token\030\002 \001(\t\"b\n" + "\032GetCalculatedMetricRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" @@ -1242,13 +1248,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB;\340A\002\372A5\n" + "3analyticsadmin.googleapis.com/DataRetentionSettings\"\267\001\n" + "\"UpdateDataRetentionSettingsRequest\022[\n" - + "\027data_retention_settings\030\001 \001(\0132" - + "5.google.analytics.admin.v1alpha.DataRetentionSettingsB\003\340A\002\0224\n" + + "\027data_retention_settings\030\001 \001(\01325.google.analytics." + + "admin.v1alpha.DataRetentionSettingsB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\241\001\n" + "\027CreateDataStreamRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340" - + "A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022D\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022D\n" + "\013data_stream\030\002" + " \001(\0132*.google.analytics.admin.v1alpha.DataStreamB\003\340A\002\"Y\n" + "\027DeleteDataStreamRequest\022>\n" @@ -1259,1256 +1265,1240 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\201\001\n" + "\026ListDataStreamsRequest\022@\n" - + "\006parent\030\001 \001(\tB0" - + "\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"t\n" - + "\027ListDataStreamsResponse\022@\n" - + "\014data_streams\030\001 \003(\0132*.google.analytics.admi", - "n.v1alpha.DataStream\022\027\n" - + "\017next_page_token\030\002 \001(\t\"V\n" - + "\024GetDataStreamRequest\022>\n" - + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(analyticsadmin.googleapis.com/DataStream\"R\n" - + "\022GetAudienceRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/Audience\"}\n" - + "\024ListAudiencesRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/Audience\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"m\n" - + "\025ListAudiencesResponse\022;\n" - + "\taudiences\030\001 \003(\0132(.google.analytics.admin.v1alpha.Audience\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\230\001\n" - + "\025CreateAudienceRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/Audience\022?\n" - + "\010audience\030\002 " - + "\001(\0132(.google.analytics.admin.v1alpha.AudienceB\003\340A\002\"\216\001\n" - + "\025UpdateAudienceRequest\022?\n" - + "\010audience\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.AudienceB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"V\n" - + "\026ArchiveAudienceRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002" - + "\372A(\022&analyticsadmin.googleapis.com/Audience\"h\n" - + "\035GetAttributionSettingsRequest\022G\n" - + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1analyticsadmin.googleapis.com/AttributionSettings\"\260\001\n" - + " UpdateAttributionSettingsRequest\022V\n" - + "\024attribution_settings\030\001" - + " \001(\01323.google.analytics.admin.v1alpha.AttributionSettingsB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\\\n" - + "\027GetAccessBindingRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/AccessBinding\"\250\001\n" - + "\035BatchGetAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-" - + "\022+analyticsadmin.googleapis.com/AccessBinding\022B\n" - + "\005names\030\002 \003(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/AccessBinding\"h\n" - + "\036BatchGetAccessBindingsResponse\022F\n" - + "\017access_bindings\030\001" - + " \003(\0132-.google.analytics.admin.v1alpha.AccessBinding\"\207\001\n" - + "\031ListAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+analy" - + "ticsadmin.googleapis.com/AccessBinding\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"}\n" - + "\032ListAccessBindingsResponse\022F\n" - + "\017access_bindings\030\001" - + " \003(\0132-.google.analytics.admin.v1alpha.AccessBinding\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\255\001\n" - + "\032CreateAccessBindingRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/AccessBinding\022J\n" - + "\016access_binding\030\002" - + " \001(\0132-.google.analytics.admin.v1alpha.AccessBindingB\003\340A\002\"\272\001\n" - + " BatchCreateAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A" - + "-\022+analyticsadmin.googleapis.com/AccessBinding\022Q\n" - + "\010requests\030\003 \003(\0132:.google.analyt" - + "ics.admin.v1alpha.CreateAccessBindingRequestB\003\340A\002\"k\n" - + "!BatchCreateAccessBindingsResponse\022F\n" - + "\017access_bindings\030\001 \003(\0132-.google" - + ".analytics.admin.v1alpha.AccessBinding\"h\n" - + "\032UpdateAccessBindingRequest\022J\n" - + "\016access_binding\030\001" - + " \001(\0132-.google.analytics.admin.v1alpha.AccessBindingB\003\340A\002\"\272\001\n" - + " BatchUpdateAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340" - + "A\002\372A-\022+analyticsadmin.googleapis.com/AccessBinding\022Q\n" - + "\010requests\030\002 \003(\0132:.google.an" - + "alytics.admin.v1alpha.UpdateAccessBindingRequestB\003\340A\002\"k\n" - + "!BatchUpdateAccessBindingsResponse\022F\n" - + "\017access_bindings\030\001 \003(\0132-.go" - + "ogle.analytics.admin.v1alpha.AccessBinding\"_\n" - + "\032DeleteAccessBindingRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/AccessBinding\"\272\001\n" - + " BatchDeleteAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-" - + "\022+analyticsadmin.googleapis.com/AccessBinding\022Q\n" - + "\010requests\030\002 \003(\0132:.google.analyti" - + "cs.admin.v1alpha.DeleteAccessBindingRequestB\003\340A\002\"\266\001\n" - + "\034CreateExpandedDataSetRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ExpandedDataSet\022O\n" - + "\021expanded_data_set\030\002" - + " \001(\0132/.google.analytics.admin.v1alpha.ExpandedDataSetB\003\340A\002\"\245\001\n" - + "\034UpdateExpandedDataSetRequest\022O\n" - + "\021expanded_data_set\030\001" - + " \001(\0132/.google.analytics.admin.v1alpha.ExpandedDataSetB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"c\n" - + "\034DeleteExpandedDataSetRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/ExpandedDataSet\"`\n" - + "\031GetExpandedDataSetRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/ExpandedDataSet\"\213\001\n" - + "\033ListExpandedDataSetsRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ExpandedDataSet\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\204\001\n" - + "\034ListExpandedDataSetsResponse\022K\n" - + "\022expanded_data_sets\030\001 " - + "\003(\0132/.google.analytics.admin.v1alpha.ExpandedDataSet\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\251\001\n" - + "\031CreateChannelGroupRequest\022B\n" + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/ChannelGroup\022H\n\r" - + "channel_group\030\002 \001(\0132," - + ".google.analytics.admin.v1alpha.ChannelGroupB\003\340A\002\"\233\001\n" - + "\031UpdateChannelGroupRequest\022H\n\r" - + "channel_group\030\001" - + " \001(\0132,.google.analytics.admin.v1alpha.ChannelGroupB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" - + "\031DeleteChannelGroupRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/ChannelGroup\"Z\n" - + "\026GetChannelGroupRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/ChannelGroup\"\205\001\n" - + "\030ListChannelGroupsRequest\022B\n" - + "\006parent\030\001 \001(\tB" - + "2\340A\002\372A,\022*analyticsadmin.googleapis.com/ChannelGroup\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"z\n" - + "\031ListChannelGroupsResponse\022D\n" - + "\016channel_groups\030\001" - + " \003(\0132,.google.analytics.admin.v1alpha.ChannelGroup\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\251\001\n" - + "\031CreateBigQueryLinkRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/BigQueryLink\022H\n\r" - + "bigquery_link\030\002" - + " \001(\0132,.google.analytics.admin.v1alpha.BigQueryLinkB\003\340A\002\"Z\n" - + "\026GetBigQueryLinkRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/BigQueryLink\"\205\001\n" - + "\030ListBigQueryLinksRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/BigQueryLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"z\n" - + "\031ListBigQueryLinksResponse\022D\n" - + "\016bigquery_links\030\001" - + " \003(\0132,.google.analytics.admin.v1alpha.BigQueryLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\233\001\n" - + "\031UpdateBigQueryLinkRequest\022H\n\r" - + "bigquery_link\030\001 \001(\0132,.google" - + ".analytics.admin.v1alpha.BigQueryLinkB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" - + "\031DeleteBigQueryLinkRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/BigQueryLink\"x\n" - + "%GetEnhancedMeasurementSettingsRequest\022O\n" - + "\004name\030\001 \001(\tBA\340A\002\372A;\n" - + "9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\"\311\001\n" - + "(UpdateEnhancedMeasurementSettingsRequest\022g\n" - + "\035enhanced_measurement_settings\030\001 \001(\0132;." - + "google.analytics.admin.v1alpha.EnhancedMeasurementSettingsB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"l\n" - + "\037GetDataRedactionSettingsRequest\022I\n" - + "\004name\030\001 \001(\tB;\340A\002\372A5\n" - + "3analyticsadmin.googleapis.com/DataRedactionSettings\"\267\001\n" - + "\"UpdateDataRedactionSettingsRequest\022[\n" - + "\027data_redaction_settings\030\001 \001(\01325.google.analytics.a" - + "dmin.v1alpha.DataRedactionSettingsB\003\340A\002\0224\n" - + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\245\001\n" - + "\030CreateAdSenseLinkRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\340A\002\372A+\022)analyticsadmin.googleapis.com/AdSenseLink\022F\n" - + "\014adsense_link\030\002" - + " \001(\0132+.google.analytics.admin.v1alpha.AdSenseLinkB\003\340A\002\"X\n" - + "\025GetAdSenseLinkRequest\022?\n" - + "\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")analyticsadmin.googleapis.com/AdSenseLink\"[\n" - + "\030DeleteAdSenseLinkRequest\022?\n" - + "\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")analyticsadmin.googleapis.com/AdSenseLink\"\203\001\n" - + "\027ListAdSenseLinksRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\340A\002\372A+\022)analyticsadmin.googleapis.com/AdSenseLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"w\n" - + "\030ListAdSenseLinksResponse\022B\n\r" - + "adsense_links\030\001 \003(\0132+.google.analytics.admin.v1alpha.AdSenseLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\266\001\n" - + "\034CreateEventCreateRuleRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-an" - + "alyticsadmin.googleapis.com/EventCreateRule\022O\n" - + "\021event_create_rule\030\002 \001(\0132/.google." - + "analytics.admin.v1alpha.EventCreateRuleB\003\340A\002\"\245\001\n" - + "\034UpdateEventCreateRuleRequest\022O\n" - + "\021event_create_rule\030\001 \001(\0132/.google.analyt" - + "ics.admin.v1alpha.EventCreateRuleB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"c\n" - + "\034DeleteEventCreateRuleRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/EventCreateRule\"`\n" - + "\031GetEventCreateRuleRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/EventCreateRule\"\213\001\n" - + "\033ListEventCreateRulesRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/EventCreateRule\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\204\001\n" - + "\034ListEventCreateRulesResponse\022K\n" - + "\022event_create_rules\030\001" - + " \003(\0132/.google.analytics.admin.v1alpha.EventCreateRule\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\256\001\n" - + "\032CreateEventEditRuleRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/EventEditRule\022K\n" - + "\017event_edit_rule\030\002" - + " \001(\0132-.google.analytics.admin.v1alpha.EventEditRuleB\003\340A\002\"\237\001\n" - + "\032UpdateEventEditRuleRequest\022K\n" - + "\017event_edit_rule\030\001 \001(" - + "\0132-.google.analytics.admin.v1alpha.EventEditRuleB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"_\n" - + "\032DeleteEventEditRuleRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/EventEditRule\"\\\n" - + "\027GetEventEditRuleRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/EventEditRule\"\221\001\n" - + "\031ListEventEditRulesRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/EventEditRule\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"~\n" - + "\032ListEventEditRulesResponse\022G\n" - + "\020event_edit_rules\030\001" - + " \003(\0132-.google.analytics.admin.v1alpha.EventEditRule\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\202\001\n" - + "\034ReorderEventEditRulesRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/EventEditRule\022\035\n" - + "\020event_edit_rules\030\002 \003(\tB\003\340A\002\"\205\001\n" - + "\033CreateRollupPropertyRequest\022F\n" - + "\017rollup_property\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.PropertyB\003\340A\002\022\036\n" - + "\021source_properties\030\002 \003(\tB\003\340A\001\"\301\001\n" - + "\034CreateRollupPropertyResponse\022A\n" - + "\017rollup_property\030\001 \001(\0132(.google.analytics.admin.v1alpha.Property\022^\n" - + "\034rollup_property_source_links\030\002 \003(\01328.google.analytics" - + ".admin.v1alpha.RollupPropertySourceLink\"r\n" - + "\"GetRollupPropertySourceLinkRequest\022L\n" - + "\004name\030\001 \001(\tB>\340A\002\372A8\n" - + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\247\001\n" - + "$ListRollupPropertySourceLinksRequest\022N\n" - + "\006parent\030\001 \001(" - + "\tB>\340A\002\372A8\0226analyticsadmin.googleapis.com/RollupPropertySourceLink\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"\240\001\n" - + "%ListRollupPropertySourceLinksResponse\022^\n" - + "\034rollup_property_source_links\030\001" - + " \003(\01328.google.analytics.admin.v1alpha.RollupPropertySourceLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\333\001\n" - + "%CreateRollupPropertySourceLinkRequest\022N\n" - + "\006parent\030\001 \001(\tB>\340A\002\372A8\0226anal" - + "yticsadmin.googleapis.com/RollupPropertySourceLink\022b\n" - + "\033rollup_property_source_link\030\002" - + " \001(\01328.google.analytics.admin.v1alpha.RollupPropertySourceLinkB\003\340A\002\"u\n" - + "%DeleteRollupPropertySourceLinkRequest\022L\n" - + "\004name\030\001 \001(\tB>\340A\002\372A8\n" - + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\313\002\n" - + "\033ProvisionSubpropertyRequest\022B\n" - + "\013subproperty\030\002 \001" - + "(\0132(.google.analytics.admin.v1alpha.PropertyB\003\340A\002\022]\n" - + "\030subproperty_event_filter\030\003 " - + "\001(\01326.google.analytics.admin.v1alpha.SubpropertyEventFilterB\003\340A\001\022\210\001\n" - + "0custom_dimension_and_metric_synchronization_mode\030\004 " - + "\001(\0162I.google.analytics.admin.v1alpha.Sub" - + "propertySyncConfig.SynchronizationModeB\003\340A\001\"\267\001\n" - + "\034ProvisionSubpropertyResponse\022=\n" - + "\013subproperty\030\001 \001(\0132(.google.analytics.admin.v1alpha.Property\022X\n" - + "\030subproperty_event_filter\030\002" - + " \001(\01326.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\322\001\n" - + "#CreateSubpropertyEventFilterRequest\022L\n" - + "\006parent\030\001 \001(" - + "\tB<\340A\002\372A6\0224analyticsadmin.googleapis.com/SubpropertyEventFilter\022]\n" - + "\030subproperty_event_filter\030\002 \001(\01326.google.analytics" - + ".admin.v1alpha.SubpropertyEventFilterB\003\340A\002\"n\n" - + " GetSubpropertyEventFilterRequest\022J\n" - + "\004name\030\001 \001(\tB<\340A\002\372A6\n" - + "4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\243\001\n" - + "\"ListSubpropertyEventFiltersRequest\022L\n" - + "\006parent\030\001 \001(" - + "\tB<\340A\002\372A6\0224analyticsadmin.googleapis.com/SubpropertyEventFilter\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"\231\001\n" - + "#ListSubpropertyEventFiltersResponse\022Y\n" - + "\031subproperty_event_filters\030\001 \003(\01326.go" - + "ogle.analytics.admin.v1alpha.SubpropertyEventFilter\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\272\001\n" - + "#UpdateSubpropertyEventFilterRequest\022]\n" - + "\030subproperty_event_filter\030\001 \001(\01326.google." - + "analytics.admin.v1alpha.SubpropertyEventFilterB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"q\n" - + "#DeleteSubpropertyEventFilterRequest\022J\n" - + "\004name\030\001 \001(\tB<\340A\002\372A6\n" - + "4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\326\001\n" - + "$CreateReportingDataAnnotationRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340" - + "A\002\372A7\0225analyticsadmin.googleapis.com/ReportingDataAnnotation\022_\n" - + "\031reporting_data_annotation\030\002" - + " \001(\01327.google.analytics.admin.v1alpha.ReportingDataAnnotationB\003\340A\002\"p\n" - + "!GetReportingDataAnnotationRequest\022K\n" - + "\004name\030\001 \001(\tB=\340A\002\372A7\n" - + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\272\001\n" - + "#ListReportingDataAnnotationsRequest\022M\n" - + "\006parent\030\001 \001(" - + "\tB=\340A\002\372A7\0225analyticsadmin.googleapis.com/ReportingDataAnnotation\022\023\n" - + "\006filter\030\002 \001(\tB\003\340A\001\022\026\n" - + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\004 \001(\tB\003\340A\001\"\234\001\n" - + "$ListReportingDataAnnotationsResponse\022[\n" - + "\032reporting_data_annotations\030\001" - + " \003(\01327.google.analytics.admin.v1alpha.ReportingDataAnnotation\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\275\001\n" - + "$UpdateReportingDataAnnotationRequest\022_\n" - + "\031reporting_data_annotation\030\001" - + " \001(\01327.google.analytics.admin.v1alpha.ReportingDataAnnotationB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"s\n" - + "$DeleteReportingDataAnnotationRequest\022K\n" - + "\004name\030\001 \001(\tB=\340A\002\372A7\n" - + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\302\001\n" - + "\031SubmitUserDeletionRequest\022\021\n" - + "\007user_id\030\002 \001(\tH\000\022\023\n" - + "\tclient_id\030\003 \001(\tH\000\022\031\n" - + "\017app_instance_id\030\004 \001(\tH\000\022\034\n" - + "\022user_provided_data\030\005 \001(\tH\000\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/PropertyB\006\n" - + "\004user\"W\n" - + "\032SubmitUserDeletionResponse\0229\n" - + "\025deletion_request_time\030\001 \001(\0132\032.google.protobuf.Timestamp\"l\n" - + "\037GetSubpropertySyncConfigRequest\022I\n" - + "\004name\030\001 \001(\tB;\340A\002\372A5\n" - + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\"\241\001\n" - + "!ListSubpropertySyncConfigsRequest\022K\n" - + "\006parent\030\001 \001(\tB;\340A\002\372A5\0223analyticsadm" - + "in.googleapis.com/SubpropertySyncConfig\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"\226\001\n" - + "\"ListSubpropertySyncConfigsResponse\022W\n" - + "\030subproperty_sync_configs\030\001 \003(" - + "\01325.google.analytics.admin.v1alpha.SubpropertySyncConfig\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\267\001\n" - + "\"UpdateSubpropertySyncConfigRequest\022[\n" - + "\027subproperty_sync_config\030\001 \001(\01325.goog" - + "le.analytics.admin.v1alpha.SubpropertySyncConfigB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"t\n" - + "#GetReportingIdentitySettingsRequest\022M\n" - + "\004name\030\001 \001(\tB?\340A\002\372A9\n" - + "7analyticsadmin.googleapis.com/ReportingIdentitySettings2\244\227\002\n" - + "\025AnalyticsAdminService\022\223\001\n\n" - + "GetAccount\0221.google.analytics.admin.v1alpha.GetAccountRequest\032\'" - + ".google.analytics.admin.v1alpha.Account\"" - + ")\332A\004name\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*}\022\224\001\n" - + "\014ListAccounts\0223.google.analytics.admin.v1alpha.ListAccountsRequest\0324.googl" - + "e.analytics.admin.v1alpha.ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\r" - + "DeleteAccount\0224.google.analytics.admin.v1a" - + "lpha.DeleteAccountRequest\032\026.google.proto" - + "buf.Empty\")\332A\004name\202\323\344\223\002\034*\032/v1alpha/{name=accounts/*}\022\271\001\n\r" - + "UpdateAccount\0224.google.analytics.admin.v1alpha.UpdateAccountReq" - + "uest\032\'.google.analytics.admin.v1alpha.Ac" - + "count\"I\332A\023account,update_mask\202\323\344\223\002-2\"/v1" - + "alpha/{account.name=accounts/*}:\007account\022\314\001\n" - + "\026ProvisionAccountTicket\022=.google.analytics.admin.v1alpha.ProvisionAccountTic" - + "ketRequest\032>.google.analytics.admin.v1al" - + "pha.ProvisionAccountTicketResponse\"3\202\323\344\223" - + "\002-\"(/v1alpha/accounts:provisionAccountTicket:\001*\022\264\001\n" - + "\024ListAccountSummaries\022;.google.analytics.admin.v1alpha.ListAccountSum" - + "mariesRequest\032<.google.analytics.admin.v" - + "1alpha.ListAccountSummariesResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries\022\230\001\n" - + "\013GetProperty\0222.google.analytics.admin.v1alpha." - + "GetPropertyRequest\032(.google.analytics.ad" - + "min.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036\022\034/v1alpha/{name=properties/*}\022\234\001\n" - + "\016ListProperties\0225.google.analytics.admin.v1alpha.Li" - + "stPropertiesRequest\0326.google.analytics.a" - + "dmin.v1alpha.ListPropertiesResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n" - + "\016CreateProperty\0225.google.analytics.admin.v1alpha.Cre" - + "atePropertyRequest\032(.google.analytics.ad" - + "min.v1alpha.Property\"0\332A\010property\202\323\344\223\002\037\"\023/v1alpha/properties:\010property\022\236\001\n" - + "\016DeleteProperty\0225.google.analytics.admin.v1alp" - + "ha.DeletePropertyRequest\032(.google.analyt" - + "ics.admin.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=properties/*}\022\301\001\n" - + "\016UpdateProperty\0225.google.analytics.admin.v1al" - + "pha.UpdatePropertyRequest\032(.google.analy" - + "tics.admin.v1alpha.Property\"N\332A\024property" - + ",update_mask\202\323\344\223\00212%/v1alpha/{property.name=properties/*}:\010property\022\331\001\n" - + "\022CreateFirebaseLink\0229.google.analytics.admin.v1al" - + "pha.CreateFirebaseLinkRequest\032,.google.a" - + "nalytics.admin.v1alpha.FirebaseLink\"Z\332A\024" - + "parent,firebase_link\202\323\344\223\002=\",/v1alpha/{parent=properties/*}/firebaseLinks:\r" - + "firebase_link\022\244\001\n" - + "\022DeleteFirebaseLink\0229.google.analytics.admin.v1alpha.DeleteFirebaseLi" - + "nkRequest\032\026.google.protobuf.Empty\";\332A\004na" - + "me\202\323\344\223\002.*,/v1alpha/{name=properties/*/firebaseLinks/*}\022\307\001\n" - + "\021ListFirebaseLinks\0228.google.analytics.admin.v1alpha.ListFireba" - + "seLinksRequest\0329.google.analytics.admin." - + "v1alpha.ListFirebaseLinksResponse\"=\332A\006pa" - + "rent\202\323\344\223\002.\022,/v1alpha/{parent=properties/*}/firebaseLinks\022\303\001\n" - + "\020GetGlobalSiteTag\0227.google.analytics.admin.v1alpha.GetGlobal" - + "SiteTagRequest\032-.google.analytics.admin." - + "v1alpha.GlobalSiteTag\"G\332A\004name\202\323\344\223\002:\0228/v" - + "1alpha/{name=properties/*/dataStreams/*/globalSiteTag}\022\341\001\n" - + "\023CreateGoogleAdsLink\022:.google.analytics.admin.v1alpha.CreateGo" - + "ogleAdsLinkRequest\032-.google.analytics.ad" - + "min.v1alpha.GoogleAdsLink\"_\332A\026parent,goo" - + "gle_ads_link\202\323\344\223\002@\"-/v1alpha/{parent=pro" - + "perties/*}/googleAdsLinks:\017google_ads_link\022\366\001\n" - + "\023UpdateGoogleAdsLink\022:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkR" - + "equest\032-.google.analytics.admin.v1alpha." - + "GoogleAdsLink\"t\332A\033google_ads_link,update" - + "_mask\202\323\344\223\002P2=/v1alpha/{google_ads_link.n", - "ame=properties/*/googleAdsLinks/*}:\017goog" - + "le_ads_link\022\247\001\n\023DeleteGoogleAdsLink\022:.go" - + "ogle.analytics.admin.v1alpha.DeleteGoogl" - + "eAdsLinkRequest\032\026.google.protobuf.Empty\"" - + "<\332A\004name\202\323\344\223\002/*-/v1alpha/{name=propertie" - + "s/*/googleAdsLinks/*}\022\313\001\n\022ListGoogleAdsL" - + "inks\0229.google.analytics.admin.v1alpha.Li" - + "stGoogleAdsLinksRequest\032:.google.analyti" - + "cs.admin.v1alpha.ListGoogleAdsLinksRespo" - + "nse\">\332A\006parent\202\323\344\223\002/\022-/v1alpha/{parent=p" - + "roperties/*}/googleAdsLinks\022\313\001\n\026GetDataS" - + "haringSettings\022=.google.analytics.admin." - + "v1alpha.GetDataSharingSettingsRequest\0323." - + "google.analytics.admin.v1alpha.DataShari" - + "ngSettings\"=\332A\004name\202\323\344\223\0020\022./v1alpha/{nam" - + "e=accounts/*/dataSharingSettings}\022\366\001\n\034Ge" - + "tMeasurementProtocolSecret\022C.google.anal" - + "ytics.admin.v1alpha.GetMeasurementProtoc" - + "olSecretRequest\0329.google.analytics.admin" - + ".v1alpha.MeasurementProtocolSecret\"V\332A\004n" - + "ame\202\323\344\223\002I\022G/v1alpha/{name=properties/*/d" - + "ataStreams/*/measurementProtocolSecrets/" - + "*}\022\211\002\n\036ListMeasurementProtocolSecrets\022E." - + "google.analytics.admin.v1alpha.ListMeasu" - + "rementProtocolSecretsRequest\032F.google.an" - + "alytics.admin.v1alpha.ListMeasurementPro" - + "tocolSecretsResponse\"X\332A\006parent\202\323\344\223\002I\022G/" - + "v1alpha/{parent=properties/*/dataStreams" - + "/*}/measurementProtocolSecrets\022\270\002\n\037Creat" - + "eMeasurementProtocolSecret\022F.google.anal" - + "ytics.admin.v1alpha.CreateMeasurementPro" - + "tocolSecretRequest\0329.google.analytics.ad" - + "min.v1alpha.MeasurementProtocolSecret\"\221\001" - + "\332A\"parent,measurement_protocol_secret\202\323\344" - + "\223\002f\"G/v1alpha/{parent=properties/*/dataS" - + "treams/*}/measurementProtocolSecrets:\033me" - + "asurement_protocol_secret\022\331\001\n\037DeleteMeas" - + "urementProtocolSecret\022F.google.analytics" - + ".admin.v1alpha.DeleteMeasurementProtocol" - + "SecretRequest\032\026.google.protobuf.Empty\"V\332" - + "A\004name\202\323\344\223\002I*G/v1alpha/{name=properties/" - + "*/dataStreams/*/measurementProtocolSecre" - + "ts/*}\022\332\002\n\037UpdateMeasurementProtocolSecre" - + "t\022F.google.analytics.admin.v1alpha.Updat" - + "eMeasurementProtocolSecretRequest\0329.goog" - + "le.analytics.admin.v1alpha.MeasurementPr" - + "otocolSecret\"\263\001\332A\'measurement_protocol_s" - + "ecret,update_mask\202\323\344\223\002\202\0012c/v1alpha/{meas" - + "urement_protocol_secret.name=properties/" - + "*/dataStreams/*/measurementProtocolSecre" - + "ts/*}:\033measurement_protocol_secret\022\367\001\n\035A" - + "cknowledgeUserDataCollection\022D.google.an" - + "alytics.admin.v1alpha.AcknowledgeUserDat" - + "aCollectionRequest\032E.google.analytics.ad" - + "min.v1alpha.AcknowledgeUserDataCollectio" - + "nResponse\"I\202\323\344\223\002C\">/v1alpha/{property=pr" - + "operties/*}:acknowledgeUserDataCollectio" - + "n:\001*\022\221\002\n#GetSKAdNetworkConversionValueSc" - + "hema\022J.google.analytics.admin.v1alpha.Ge" - + "tSKAdNetworkConversionValueSchemaRequest" - + "\032@.google.analytics.admin.v1alpha.SKAdNe" - + "tworkConversionValueSchema\"\\\332A\004name\202\323\344\223\002" - + "O\022M/v1alpha/{name=properties/*/dataStrea" - + "ms/*/sKAdNetworkConversionValueSchema/*}" - + "\022\343\002\n&CreateSKAdNetworkConversionValueSch" - + "ema\022M.google.analytics.admin.v1alpha.Cre" - + "ateSKAdNetworkConversionValueSchemaReque" - + "st\032@.google.analytics.admin.v1alpha.SKAd" - + "NetworkConversionValueSchema\"\247\001\332A*parent" - + ",skadnetwork_conversion_value_schema\202\323\344\223" - + "\002t\"M/v1alpha/{parent=properties/*/dataSt" - + "reams/*}/sKAdNetworkConversionValueSchem" - + "a:#skadnetwork_conversion_value_schema\022\355" - + "\001\n&DeleteSKAdNetworkConversionValueSchem" - + "a\022M.google.analytics.admin.v1alpha.Delet" - + "eSKAdNetworkConversionValueSchemaRequest" - + "\032\026.google.protobuf.Empty\"\\\332A\004name\202\323\344\223\002O*" - + "M/v1alpha/{name=properties/*/dataStreams" - + "/*/sKAdNetworkConversionValueSchema/*}\022\215" - + "\003\n&UpdateSKAdNetworkConversionValueSchem" - + "a\022M.google.analytics.admin.v1alpha.Updat" - + "eSKAdNetworkConversionValueSchemaRequest" - + "\032@.google.analytics.admin.v1alpha.SKAdNe" - + "tworkConversionValueSchema\"\321\001\332A/skadnetw" - + "ork_conversion_value_schema,update_mask\202" - + "\323\344\223\002\230\0012q/v1alpha/{skadnetwork_conversion" - + "_value_schema.name=properties/*/dataStre" - + "ams/*/sKAdNetworkConversionValueSchema/*" - + "}:#skadnetwork_conversion_value_schema\022\244" - + "\002\n%ListSKAdNetworkConversionValueSchemas" - + "\022L.google.analytics.admin.v1alpha.ListSK" - + "AdNetworkConversionValueSchemasRequest\032M" - + ".google.analytics.admin.v1alpha.ListSKAd" - + "NetworkConversionValueSchemasResponse\"^\332" - + "A\006parent\202\323\344\223\002O\022M/v1alpha/{parent=propert" - + "ies/*/dataStreams/*}/sKAdNetworkConversi" - + "onValueSchema\022\344\001\n\031SearchChangeHistoryEve" - + "nts\022@.google.analytics.admin.v1alpha.Sea" - + "rchChangeHistoryEventsRequest\032A.google.a" - + "nalytics.admin.v1alpha.SearchChangeHisto" - + "ryEventsResponse\"B\202\323\344\223\002<\"7/v1alpha/{acco" - + "unt=accounts/*}:searchChangeHistoryEvent" - + "s:\001*\022\325\001\n\030GetGoogleSignalsSettings\022?.goog" - + "le.analytics.admin.v1alpha.GetGoogleSign" - + "alsSettingsRequest\0325.google.analytics.ad" - + "min.v1alpha.GoogleSignalsSettings\"A\332A\004na" - + "me\202\323\344\223\0024\0222/v1alpha/{name=properties/*/go" - + "ogleSignalsSettings}\022\254\002\n\033UpdateGoogleSig" - + "nalsSettings\022B.google.analytics.admin.v1" - + "alpha.UpdateGoogleSignalsSettingsRequest" - + "\0325.google.analytics.admin.v1alpha.Google" - + "SignalsSettings\"\221\001\332A#google_signals_sett" - + "ings,update_mask\202\323\344\223\002e2J/v1alpha/{google" - + "_signals_settings.name=properties/*/goog" - + "leSignalsSettings}:\027google_signals_setti" - + "ngs\022\356\001\n\025CreateConversionEvent\022<.google.a" - + "nalytics.admin.v1alpha.CreateConversionE" - + "ventRequest\032/.google.analytics.admin.v1a" - + "lpha.ConversionEvent\"f\210\002\001\332A\027parent,conve" - + "rsion_event\202\323\344\223\002C\"//v1alpha/{parent=prop" - + "erties/*}/conversionEvents:\020conversion_e" - + "vent\022\204\002\n\025UpdateConversionEvent\022<.google." - + "analytics.admin.v1alpha.UpdateConversion" - + "EventRequest\032/.google.analytics.admin.v1" - + "alpha.ConversionEvent\"|\210\002\001\332A\034conversion_" - + "event,update_mask\202\323\344\223\002T2@/v1alpha/{conve" - + "rsion_event.name=properties/*/conversion" - + "Events/*}:\020conversion_event\022\303\001\n\022GetConve" - + "rsionEvent\0229.google.analytics.admin.v1al" - + "pha.GetConversionEventRequest\032/.google.a" - + "nalytics.admin.v1alpha.ConversionEvent\"A" - + "\210\002\001\332A\004name\202\323\344\223\0021\022//v1alpha/{name=propert" - + "ies/*/conversionEvents/*}\022\260\001\n\025DeleteConv" - + "ersionEvent\022<.google.analytics.admin.v1a" - + "lpha.DeleteConversionEventRequest\032\026.goog" - + "le.protobuf.Empty\"A\210\002\001\332A\004name\202\323\344\223\0021*//v1" - + "alpha/{name=properties/*/conversionEvent" - + "s/*}\022\326\001\n\024ListConversionEvents\022;.google.a" - + "nalytics.admin.v1alpha.ListConversionEve" - + "ntsRequest\032<.google.analytics.admin.v1al" - + "pha.ListConversionEventsResponse\"C\210\002\001\332A\006" - + "parent\202\323\344\223\0021\022//v1alpha/{parent=propertie" - + "s/*}/conversionEvents\022\301\001\n\016CreateKeyEvent" - + "\0225.google.analytics.admin.v1alpha.Create" - + "KeyEventRequest\032(.google.analytics.admin" - + ".v1alpha.KeyEvent\"N\332A\020parent,key_event\202\323" - + "\344\223\0025\"(/v1alpha/{parent=properties/*}/key" - + "Events:\tkey_event\022\320\001\n\016UpdateKeyEvent\0225.g" - + "oogle.analytics.admin.v1alpha.UpdateKeyE" - + "ventRequest\032(.google.analytics.admin.v1a" - + "lpha.KeyEvent\"]\332A\025key_event,update_mask\202" - + "\323\344\223\002?22/v1alpha/{key_event.name=properti" - + "es/*/keyEvents/*}:\tkey_event\022\244\001\n\013GetKeyE" - + "vent\0222.google.analytics.admin.v1alpha.Ge" - + "tKeyEventRequest\032(.google.analytics.admi" - + "n.v1alpha.KeyEvent\"7\332A\004name\202\323\344\223\002*\022(/v1al" - + "pha/{name=properties/*/keyEvents/*}\022\230\001\n\016" - + "DeleteKeyEvent\0225.google.analytics.admin." - + "v1alpha.DeleteKeyEventRequest\032\026.google.p" - + "rotobuf.Empty\"7\332A\004name\202\323\344\223\002**(/v1alpha/{" - + "name=properties/*/keyEvents/*}\022\267\001\n\rListK" - + "eyEvents\0224.google.analytics.admin.v1alph" - + "a.ListKeyEventsRequest\0325.google.analytic" - + "s.admin.v1alpha.ListKeyEventsResponse\"9\332" - + "A\006parent\202\323\344\223\002*\022(/v1alpha/{parent=propert" - + "ies/*}/keyEvents\022\370\001\n GetDisplayVideo360A" - + "dvertiserLink\022G.google.analytics.admin.v" - + "1alpha.GetDisplayVideo360AdvertiserLinkR" - + "equest\032=.google.analytics.admin.v1alpha." - + "DisplayVideo360AdvertiserLink\"L\332A\004name\202\323" - + "\344\223\002?\022=/v1alpha/{name=properties/*/displa" - + "yVideo360AdvertiserLinks/*}\022\213\002\n\"ListDisp" - + "layVideo360AdvertiserLinks\022I.google.anal" - + "ytics.admin.v1alpha.ListDisplayVideo360A" - + "dvertiserLinksRequest\032J.google.analytics" - + ".admin.v1alpha.ListDisplayVideo360Advert" - + "iserLinksResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1a" - + "lpha/{parent=properties/*}/displayVideo3" - + "60AdvertiserLinks\022\306\002\n#CreateDisplayVideo" - + "360AdvertiserLink\022J.google.analytics.adm" - + "in.v1alpha.CreateDisplayVideo360Advertis" - + "erLinkRequest\032=.google.analytics.admin.v" - + "1alpha.DisplayVideo360AdvertiserLink\"\223\001\332" - + "A(parent,display_video_360_advertiser_li" - + "nk\202\323\344\223\002b\"=/v1alpha/{parent=properties/*}" - + "/displayVideo360AdvertiserLinks:!display" - + "_video_360_advertiser_link\022\327\001\n#DeleteDis" - + "playVideo360AdvertiserLink\022J.google.anal" - + "ytics.admin.v1alpha.DeleteDisplayVideo36" - + "0AdvertiserLinkRequest\032\026.google.protobuf" - + ".Empty\"L\332A\004name\202\323\344\223\002?*=/v1alpha/{name=pr" + + "\tB0\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022\021\n" + + "\tpage_si", + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListData" + + "StreamsResponse\022@\n\014data_streams\030\001 \003(\0132*." + + "google.analytics.admin.v1alpha.DataStrea" + + "m\022\027\n\017next_page_token\030\002 \001(\t\"V\n\024GetDataStr" + + "eamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyt" + + "icsadmin.googleapis.com/DataStream\"R\n\022Ge" + + "tAudienceRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&" + + "analyticsadmin.googleapis.com/Audience\"}" + + "\n\024ListAudiencesRequest\022>\n\006parent\030\001 \001(\tB." + + "\340A\002\372A(\022&analyticsadmin.googleapis.com/Au" + + "dience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"m\n\025ListAudiencesResponse\022;\n\taudien" + + "ces\030\001 \003(\0132(.google.analytics.admin.v1alp" + + "ha.Audience\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n" + + "\025CreateAudienceRequest\022>\n\006parent\030\001 \001(\tB." + + "\340A\002\372A(\022&analyticsadmin.googleapis.com/Au" + + "dience\022?\n\010audience\030\002 \001(\0132(.google.analyt" + + "ics.admin.v1alpha.AudienceB\003\340A\002\"\216\001\n\025Upda" + + "teAudienceRequest\022?\n\010audience\030\001 \001(\0132(.go" + + "ogle.analytics.admin.v1alpha.AudienceB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"V\n\026ArchiveAudienceReque" + + "st\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin" + + ".googleapis.com/Audience\"h\n\035GetAttributi" + + "onSettingsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n" + + "1analyticsadmin.googleapis.com/Attributi" + + "onSettings\"\260\001\n UpdateAttributionSettings" + + "Request\022V\n\024attribution_settings\030\001 \001(\01323." + + "google.analytics.admin.v1alpha.Attributi" + + "onSettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\"\\\n\027GetAcce" + + "ssBindingRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+" + + "analyticsadmin.googleapis.com/AccessBind" + + "ing\"\250\001\n\035BatchGetAccessBindingsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.go" + + "ogleapis.com/AccessBinding\022B\n\005names\030\002 \003(" + + "\tB3\340A\002\372A-\n+analyticsadmin.googleapis.com" + + "/AccessBinding\"h\n\036BatchGetAccessBindings" + + "Response\022F\n\017access_bindings\030\001 \003(\0132-.goog" + + "le.analytics.admin.v1alpha.AccessBinding" + + "\"\207\001\n\031ListAccessBindingsRequest\022C\n\006parent" + + "\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.googleapi" + + "s.com/AccessBinding\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"}\n\032ListAccessBindings" + + "Response\022F\n\017access_bindings\030\001 \003(\0132-.goog" + + "le.analytics.admin.v1alpha.AccessBinding" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\255\001\n\032CreateAcce" + + "ssBindingRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-" + + "\022+analyticsadmin.googleapis.com/AccessBi" + + "nding\022J\n\016access_binding\030\002 \001(\0132-.google.a" + + "nalytics.admin.v1alpha.AccessBindingB\003\340A" + + "\002\"\272\001\n BatchCreateAccessBindingsRequest\022C" + + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.g" + + "oogleapis.com/AccessBinding\022Q\n\010requests\030" + + "\003 \003(\0132:.google.analytics.admin.v1alpha.C" + + "reateAccessBindingRequestB\003\340A\002\"k\n!BatchC" + + "reateAccessBindingsResponse\022F\n\017access_bi" + + "ndings\030\001 \003(\0132-.google.analytics.admin.v1" + + "alpha.AccessBinding\"h\n\032UpdateAccessBindi" + + "ngRequest\022J\n\016access_binding\030\001 \001(\0132-.goog" + + "le.analytics.admin.v1alpha.AccessBinding" + + "B\003\340A\002\"\272\001\n BatchUpdateAccessBindingsReque" + + "st\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadm" + + "in.googleapis.com/AccessBinding\022Q\n\010reque" + + "sts\030\002 \003(\0132:.google.analytics.admin.v1alp" + + "ha.UpdateAccessBindingRequestB\003\340A\002\"k\n!Ba" + + "tchUpdateAccessBindingsResponse\022F\n\017acces" + + "s_bindings\030\001 \003(\0132-.google.analytics.admi" + + "n.v1alpha.AccessBinding\"_\n\032DeleteAccessB" + + "indingRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+ana" + + "lyticsadmin.googleapis.com/AccessBinding" + + "\"\272\001\n BatchDeleteAccessBindingsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.go" + + "ogleapis.com/AccessBinding\022Q\n\010requests\030\002" + + " \003(\0132:.google.analytics.admin.v1alpha.De" + + "leteAccessBindingRequestB\003\340A\002\"\266\001\n\034Create" + + "ExpandedDataSetRequest\022E\n\006parent\030\001 \001(\tB5" + + "\340A\002\372A/\022-analyticsadmin.googleapis.com/Ex" + + "pandedDataSet\022O\n\021expanded_data_set\030\002 \001(\013" + + "2/.google.analytics.admin.v1alpha.Expand" + + "edDataSetB\003\340A\002\"\245\001\n\034UpdateExpandedDataSet" + + "Request\022O\n\021expanded_data_set\030\001 \001(\0132/.goo" + + "gle.analytics.admin.v1alpha.ExpandedData" + + "SetB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\"c\n\034DeleteExpanded" + + "DataSetRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-an" + + "alyticsadmin.googleapis.com/ExpandedData" + + "Set\"`\n\031GetExpandedDataSetRequest\022C\n\004name" + + "\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googleapi" + + "s.com/ExpandedDataSet\"\213\001\n\033ListExpandedDa" + + "taSetsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-a" + + "nalyticsadmin.googleapis.com/ExpandedDat" + + "aSet\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\204\001\n\034ListExpandedDataSetsResponse\022K\n\022" + + "expanded_data_sets\030\001 \003(\0132/.google.analyt" + + "ics.admin.v1alpha.ExpandedDataSet\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\251\001\n\031CreateChannelGrou" + + "pRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyt" + + "icsadmin.googleapis.com/ChannelGroup\022H\n\r" + + "channel_group\030\002 \001(\0132,.google.analytics.a" + + "dmin.v1alpha.ChannelGroupB\003\340A\002\"\233\001\n\031Updat" + + "eChannelGroupRequest\022H\n\rchannel_group\030\001 " + + "\001(\0132,.google.analytics.admin.v1alpha.Cha" + + "nnelGroupB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"]\n\031DeleteCh" + + "annelGroupRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*analyticsadmin.googleapis.com/ChannelGr" + + "oup\"Z\n\026GetChannelGroupRequest\022@\n\004name\030\001 " + + "\001(\tB2\340A\002\372A,\n*analyticsadmin.googleapis.c" + + "om/ChannelGroup\"\205\001\n\030ListChannelGroupsReq" + + "uest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsa" + + "dmin.googleapis.com/ChannelGroup\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListC" + + "hannelGroupsResponse\022D\n\016channel_groups\030\001" + + " \003(\0132,.google.analytics.admin.v1alpha.Ch" + + "annelGroup\022\027\n\017next_page_token\030\002 \001(\t\"\251\001\n\031" + + "CreateBigQueryLinkRequest\022B\n\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com" + + "/BigQueryLink\022H\n\rbigquery_link\030\002 \001(\0132,.g" + + "oogle.analytics.admin.v1alpha.BigQueryLi" + + "nkB\003\340A\002\"Z\n\026GetBigQueryLinkRequest\022@\n\004nam" + + "e\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.googleap" + + "is.com/BigQueryLink\"\205\001\n\030ListBigQueryLink" + + "sRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyt" + + "icsadmin.googleapis.com/BigQueryLink\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031L" + + "istBigQueryLinksResponse\022D\n\016bigquery_lin" + + "ks\030\001 \003(\0132,.google.analytics.admin.v1alph" + + "a.BigQueryLink\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\233\001\n\031UpdateBigQueryLinkRequest\022H\n\rbigquer" + + "y_link\030\001 \001(\0132,.google.analytics.admin.v1" + + "alpha.BigQueryLinkB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" + + "\031DeleteBigQueryLinkRequest\022@\n\004name\030\001 \001(\t" + + "B2\340A\002\372A,\n*analyticsadmin.googleapis.com/" + + "BigQueryLink\"x\n%GetEnhancedMeasurementSe" + + "ttingsRequest\022O\n\004name\030\001 \001(\tBA\340A\002\372A;\n9ana" + + "lyticsadmin.googleapis.com/EnhancedMeasu" + + "rementSettings\"\311\001\n(UpdateEnhancedMeasure" + + "mentSettingsRequest\022g\n\035enhanced_measurem" + + "ent_settings\030\001 \001(\0132;.google.analytics.ad" + + "min.v1alpha.EnhancedMeasurementSettingsB" + + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\002\"l\n\037GetDataRedactionSe" + + "ttingsRequest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3ana" + + "lyticsadmin.googleapis.com/DataRedaction" + + "Settings\"\267\001\n\"UpdateDataRedactionSettings" + + "Request\022[\n\027data_redaction_settings\030\001 \001(\013" + + "25.google.analytics.admin.v1alpha.DataRe" + + "dactionSettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\245\001\n\030C" + + "reateAdSenseLinkRequest\022A\n\006parent\030\001 \001(\tB" + + "1\340A\002\372A+\022)analyticsadmin.googleapis.com/A" + + "dSenseLink\022F\n\014adsense_link\030\002 \001(\0132+.googl" + + "e.analytics.admin.v1alpha.AdSenseLinkB\003\340" + + "A\002\"X\n\025GetAdSenseLinkRequest\022?\n\004name\030\001 \001(" + + "\tB1\340A\002\372A+\n)analyticsadmin.googleapis.com" + + "/AdSenseLink\"[\n\030DeleteAdSenseLinkRequest" + + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)analyticsadmin.g" + + "oogleapis.com/AdSenseLink\"\203\001\n\027ListAdSens" + + "eLinksRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)a" + + "nalyticsadmin.googleapis.com/AdSenseLink" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "w\n\030ListAdSenseLinksResponse\022B\n\radsense_l" + + "inks\030\001 \003(\0132+.google.analytics.admin.v1al" + + "pha.AdSenseLink\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\266\001\n\034CreateEventCreateRuleRequest\022E\n\006par" + + "ent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.google" + + "apis.com/EventCreateRule\022O\n\021event_create" + + "_rule\030\002 \001(\0132/.google.analytics.admin.v1a" + + "lpha.EventCreateRuleB\003\340A\002\"\245\001\n\034UpdateEven" + + "tCreateRuleRequest\022O\n\021event_create_rule\030" + + "\001 \001(\0132/.google.analytics.admin.v1alpha.E" + + "ventCreateRuleB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\"c\n\034Del" + + "eteEventCreateRuleRequest\022C\n\004name\030\001 \001(\tB" + + "5\340A\002\372A/\n-analyticsadmin.googleapis.com/E" + + "ventCreateRule\"`\n\031GetEventCreateRuleRequ" + + "est\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmi" + + "n.googleapis.com/EventCreateRule\"\213\001\n\033Lis" + + "tEventCreateRulesRequest\022E\n\006parent\030\001 \001(\t" + + "B5\340A\002\372A/\022-analyticsadmin.googleapis.com/" + + "EventCreateRule\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"\204\001\n\034ListEventCreateRulesR" + + "esponse\022K\n\022event_create_rules\030\001 \003(\0132/.go" + + "ogle.analytics.admin.v1alpha.EventCreate" + + "Rule\022\027\n\017next_page_token\030\002 \001(\t\"\256\001\n\032Create" + + "EventEditRuleRequest\022C\n\006parent\030\001 \001(\tB3\340A" + + "\002\372A-\022+analyticsadmin.googleapis.com/Even" + + "tEditRule\022K\n\017event_edit_rule\030\002 \001(\0132-.goo" + + "gle.analytics.admin.v1alpha.EventEditRul" + + "eB\003\340A\002\"\237\001\n\032UpdateEventEditRuleRequest\022K\n" + + "\017event_edit_rule\030\001 \001(\0132-.google.analytic" + + "s.admin.v1alpha.EventEditRuleB\003\340A\002\0224\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\002\"_\n\032DeleteEventEditRuleRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.goo" + + "gleapis.com/EventEditRule\"\\\n\027GetEventEdi" + + "tRuleRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+anal" + + "yticsadmin.googleapis.com/EventEditRule\"" + + "\221\001\n\031ListEventEditRulesRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.googleapis" + + ".com/EventEditRule\022\026\n\tpage_size\030\002 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"~\n\032ListEvent" + + "EditRulesResponse\022G\n\020event_edit_rules\030\001 " + + "\003(\0132-.google.analytics.admin.v1alpha.Eve" + + "ntEditRule\022\027\n\017next_page_token\030\002 \001(\t\"\202\001\n\034" + + "ReorderEventEditRulesRequest\022C\n\006parent\030\001" + + " \001(\tB3\340A\002\372A-\022+analyticsadmin.googleapis." + + "com/EventEditRule\022\035\n\020event_edit_rules\030\002 " + + "\003(\tB\003\340A\002\"\205\001\n\033CreateRollupPropertyRequest" + + "\022F\n\017rollup_property\030\001 \001(\0132(.google.analy" + + "tics.admin.v1alpha.PropertyB\003\340A\002\022\036\n\021sour" + + "ce_properties\030\002 \003(\tB\003\340A\001\"\301\001\n\034CreateRollu" + + "pPropertyResponse\022A\n\017rollup_property\030\001 \001" + + "(\0132(.google.analytics.admin.v1alpha.Prop" + + "erty\022^\n\034rollup_property_source_links\030\002 \003" + + "(\01328.google.analytics.admin.v1alpha.Roll" + + "upPropertySourceLink\"r\n\"GetRollupPropert" + + "ySourceLinkRequest\022L\n\004name\030\001 \001(\tB>\340A\002\372A8" + + "\n6analyticsadmin.googleapis.com/RollupPr" + + "opertySourceLink\"\247\001\n$ListRollupPropertyS" + + "ourceLinksRequest\022N\n\006parent\030\001 \001(\tB>\340A\002\372A" + + "8\0226analyticsadmin.googleapis.com/RollupP" + + "ropertySourceLink\022\026\n\tpage_size\030\002 \001(\005B\003\340A" + + "\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\240\001\n%ListRollu" + + "pPropertySourceLinksResponse\022^\n\034rollup_p" + + "roperty_source_links\030\001 \003(\01328.google.anal" + + "ytics.admin.v1alpha.RollupPropertySource" + + "Link\022\027\n\017next_page_token\030\002 \001(\t\"\333\001\n%Create" + + "RollupPropertySourceLinkRequest\022N\n\006paren" + + "t\030\001 \001(\tB>\340A\002\372A8\0226analyticsadmin.googleap" + + "is.com/RollupPropertySourceLink\022b\n\033rollu" + + "p_property_source_link\030\002 \001(\01328.google.an" + + "alytics.admin.v1alpha.RollupPropertySour" + + "ceLinkB\003\340A\002\"u\n%DeleteRollupPropertySourc" + + "eLinkRequest\022L\n\004name\030\001 \001(\tB>\340A\002\372A8\n6anal" + + "yticsadmin.googleapis.com/RollupProperty" + + "SourceLink\"\313\002\n\033ProvisionSubpropertyReque" + + "st\022B\n\013subproperty\030\002 \001(\0132(.google.analyti" + + "cs.admin.v1alpha.PropertyB\003\340A\002\022]\n\030subpro" + + "perty_event_filter\030\003 \001(\01326.google.analyt" + + "ics.admin.v1alpha.SubpropertyEventFilter" + + "B\003\340A\001\022\210\001\n0custom_dimension_and_metric_sy" + + "nchronization_mode\030\004 \001(\0162I.google.analyt" + + "ics.admin.v1alpha.SubpropertySyncConfig." + + "SynchronizationModeB\003\340A\001\"\267\001\n\034ProvisionSu" + + "bpropertyResponse\022=\n\013subproperty\030\001 \001(\0132(" + + ".google.analytics.admin.v1alpha.Property" + + "\022X\n\030subproperty_event_filter\030\002 \001(\01326.goo" + + "gle.analytics.admin.v1alpha.SubpropertyE" + + "ventFilter\"\322\001\n#CreateSubpropertyEventFil" + + "terRequest\022L\n\006parent\030\001 \001(\tB<\340A\002\372A6\0224anal" + + "yticsadmin.googleapis.com/SubpropertyEve" + + "ntFilter\022]\n\030subproperty_event_filter\030\002 \001" + + "(\01326.google.analytics.admin.v1alpha.Subp" + + "ropertyEventFilterB\003\340A\002\"n\n GetSubpropert" + + "yEventFilterRequest\022J\n\004name\030\001 \001(\tB<\340A\002\372A" + + "6\n4analyticsadmin.googleapis.com/Subprop" + + "ertyEventFilter\"\243\001\n\"ListSubpropertyEvent" + + "FiltersRequest\022L\n\006parent\030\001 \001(\tB<\340A\002\372A6\0224" + + "analyticsadmin.googleapis.com/Subpropert" + + "yEventFilter\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\231\001\n#ListSubpropert" + + "yEventFiltersResponse\022Y\n\031subproperty_eve" + + "nt_filters\030\001 \003(\01326.google.analytics.admi" + + "n.v1alpha.SubpropertyEventFilter\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\272\001\n#UpdateSubpropertyE" + + "ventFilterRequest\022]\n\030subproperty_event_f" + + "ilter\030\001 \001(\01326.google.analytics.admin.v1a" + + "lpha.SubpropertyEventFilterB\003\340A\002\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002\"q\n#DeleteSubpropertyEventFilterRe" + + "quest\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4analyticsad" + + "min.googleapis.com/SubpropertyEventFilte" + + "r\"\326\001\n$CreateReportingDataAnnotationReque" + + "st\022M\n\006parent\030\001 \001(\tB=\340A\002\372A7\0225analyticsadm" + + "in.googleapis.com/ReportingDataAnnotatio" + + "n\022_\n\031reporting_data_annotation\030\002 \001(\01327.g" + + "oogle.analytics.admin.v1alpha.ReportingD" + + "ataAnnotationB\003\340A\002\"p\n!GetReportingDataAn" + + "notationRequest\022K\n\004name\030\001 \001(\tB=\340A\002\372A7\n5a" + + "nalyticsadmin.googleapis.com/ReportingDa" + + "taAnnotation\"\272\001\n#ListReportingDataAnnota" + + "tionsRequest\022M\n\006parent\030\001 \001(\tB=\340A\002\372A7\0225an" + + "alyticsadmin.googleapis.com/ReportingDat" + + "aAnnotation\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage" + + "_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A" + + "\001\"\234\001\n$ListReportingDataAnnotationsRespon" + + "se\022[\n\032reporting_data_annotations\030\001 \003(\01327" + + ".google.analytics.admin.v1alpha.Reportin" + + "gDataAnnotation\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\275\001\n$UpdateReportingDataAnnotationReques" + + "t\022_\n\031reporting_data_annotation\030\001 \001(\01327.g" + + "oogle.analytics.admin.v1alpha.ReportingD" + + "ataAnnotationB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\001\"s\n$Dele" + + "teReportingDataAnnotationRequest\022K\n\004name" + + "\030\001 \001(\tB=\340A\002\372A7\n5analyticsadmin.googleapi" + + "s.com/ReportingDataAnnotation\"\302\001\n\031Submit" + + "UserDeletionRequest\022\021\n\007user_id\030\002 \001(\tH\000\022\023" + + "\n\tclient_id\030\003 \001(\tH\000\022\031\n\017app_instance_id\030\004" + + " \001(\tH\000\022\034\n\022user_provided_data\030\005 \001(\tH\000\022<\n\004" + + "name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googl" + + "eapis.com/PropertyB\006\n\004user\"W\n\032SubmitUser" + + "DeletionResponse\0229\n\025deletion_request_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\"l\n\037G" + + "etSubpropertySyncConfigRequest\022I\n\004name\030\001" + + " \001(\tB;\340A\002\372A5\n3analyticsadmin.googleapis." + + "com/SubpropertySyncConfig\"\241\001\n!ListSubpro" + + "pertySyncConfigsRequest\022K\n\006parent\030\001 \001(\tB" + + ";\340A\002\372A5\0223analyticsadmin.googleapis.com/S" + + "ubpropertySyncConfig\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\226\001\n\"ListSu" + + "bpropertySyncConfigsResponse\022W\n\030subprope" + + "rty_sync_configs\030\001 \003(\01325.google.analytic" + + "s.admin.v1alpha.SubpropertySyncConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\267\001\n\"UpdateSubprop" + + "ertySyncConfigRequest\022[\n\027subproperty_syn" + + "c_config\030\001 \001(\01325.google.analytics.admin." + + "v1alpha.SubpropertySyncConfigB\003\340A\002\0224\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\001\"t\n#GetReportingIdentitySettings" + + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" + + "admin.googleapis.com/ReportingIdentitySe" + + "ttings\"r\n\"GetUserProvidedDataSettingsReq" + + "uest\022L\n\004name\030\001 \001(\tB>\340A\002\372A8\n6analyticsadm" + + "in.googleapis.com/UserProvidedDataSettin" + + "gs2\210\231\002\n\025AnalyticsAdminService\022\223\001\n\nGetAcc" + + "ount\0221.google.analytics.admin.v1alpha.Ge" + + "tAccountRequest\032\'.google.analytics.admin" + + ".v1alpha.Account\")\332A\004name\202\323\344\223\002\034\022\032/v1alph" + + "a/{name=accounts/*}\022\224\001\n\014ListAccounts\0223.g" + + "oogle.analytics.admin.v1alpha.ListAccoun" + + "tsRequest\0324.google.analytics.admin.v1alp" + + "ha.ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alph" + + "a/accounts\022\210\001\n\rDeleteAccount\0224.google.an" + + "alytics.admin.v1alpha.DeleteAccountReque" + + "st\032\026.google.protobuf.Empty\")\332A\004name\202\323\344\223\002" + + "\034*\032/v1alpha/{name=accounts/*}\022\271\001\n\rUpdate" + + "Account\0224.google.analytics.admin.v1alpha" + + ".UpdateAccountRequest\032\'.google.analytics" + + ".admin.v1alpha.Account\"I\332A\023account,updat" + + "e_mask\202\323\344\223\002-2\"/v1alpha/{account.name=acc" + + "ounts/*}:\007account\022\314\001\n\026ProvisionAccountTi" + + "cket\022=.google.analytics.admin.v1alpha.Pr" + + "ovisionAccountTicketRequest\032>.google.ana" + + "lytics.admin.v1alpha.ProvisionAccountTic" + + "ketResponse\"3\202\323\344\223\002-\"(/v1alpha/accounts:p" + + "rovisionAccountTicket:\001*\022\264\001\n\024ListAccount" + + "Summaries\022;.google.analytics.admin.v1alp" + + "ha.ListAccountSummariesRequest\032<.google." + + "analytics.admin.v1alpha.ListAccountSumma" + + "riesResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSu" + + "mmaries\022\230\001\n\013GetProperty\0222.google.analyti" + + "cs.admin.v1alpha.GetPropertyRequest\032(.go" + + "ogle.analytics.admin.v1alpha.Property\"+\332" + + "A\004name\202\323\344\223\002\036\022\034/v1alpha/{name=properties/" + + "*}\022\234\001\n\016ListProperties\0225.google.analytics" + + ".admin.v1alpha.ListPropertiesRequest\0326.g" + + "oogle.analytics.admin.v1alpha.ListProper" + + "tiesResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/propertie" + + "s\022\243\001\n\016CreateProperty\0225.google.analytics." + + "admin.v1alpha.CreatePropertyRequest\032(.go" + + "ogle.analytics.admin.v1alpha.Property\"0\332" + + "A\010property\202\323\344\223\002\037\"\023/v1alpha/properties:\010p" + + "roperty\022\236\001\n\016DeleteProperty\0225.google.anal" + + "ytics.admin.v1alpha.DeletePropertyReques" + + "t\032(.google.analytics.admin.v1alpha.Prope" + + "rty\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=prope" + + "rties/*}\022\301\001\n\016UpdateProperty\0225.google.ana" + + "lytics.admin.v1alpha.UpdatePropertyReque" + + "st\032(.google.analytics.admin.v1alpha.Prop" + + "erty\"N\332A\024property,update_mask\202\323\344\223\00212%/v1" + + "alpha/{property.name=properties/*}:\010prop" + + "erty\022\331\001\n\022CreateFirebaseLink\0229.google.ana" + + "lytics.admin.v1alpha.CreateFirebaseLinkR" + + "equest\032,.google.analytics.admin.v1alpha." + + "FirebaseLink\"Z\332A\024parent,firebase_link\202\323\344" + + "\223\002=\",/v1alpha/{parent=properties/*}/fire" + + "baseLinks:\rfirebase_link\022\244\001\n\022DeleteFireb" + + "aseLink\0229.google.analytics.admin.v1alpha" + + ".DeleteFirebaseLinkRequest\032\026.google.prot" + + "obuf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{nam" + + "e=properties/*/firebaseLinks/*}\022\307\001\n\021List" + + "FirebaseLinks\0228.google.analytics.admin.v" + + "1alpha.ListFirebaseLinksRequest\0329.google" + + ".analytics.admin.v1alpha.ListFirebaseLin" + + "ksResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{p" + + "arent=properties/*}/firebaseLinks\022\303\001\n\020Ge" + + "tGlobalSiteTag\0227.google.analytics.admin." + + "v1alpha.GetGlobalSiteTagRequest\032-.google" + + ".analytics.admin.v1alpha.GlobalSiteTag\"G" + + "\332A\004name\202\323\344\223\002:\0228/v1alpha/{name=properties" + + "/*/dataStreams/*/globalSiteTag}\022\341\001\n\023Crea" + + "teGoogleAdsLink\022:.google.analytics.admin" + + ".v1alpha.CreateGoogleAdsLinkRequest\032-.go" + + "ogle.analytics.admin.v1alpha.GoogleAdsLi" + + "nk\"_\332A\026parent,google_ads_link\202\323\344\223\002@\"-/v1" + + "alpha/{parent=properties/*}/googleAdsLin", + "ks:\017google_ads_link\022\366\001\n\023UpdateGoogleAdsL" + + "ink\022:.google.analytics.admin.v1alpha.Upd" + + "ateGoogleAdsLinkRequest\032-.google.analyti" + + "cs.admin.v1alpha.GoogleAdsLink\"t\332A\033googl" + + "e_ads_link,update_mask\202\323\344\223\002P2=/v1alpha/{" + + "google_ads_link.name=properties/*/google" + + "AdsLinks/*}:\017google_ads_link\022\247\001\n\023DeleteG" + + "oogleAdsLink\022:.google.analytics.admin.v1" + + "alpha.DeleteGoogleAdsLinkRequest\032\026.googl" + + "e.protobuf.Empty\"<\332A\004name\202\323\344\223\002/*-/v1alph" + + "a/{name=properties/*/googleAdsLinks/*}\022\313" + + "\001\n\022ListGoogleAdsLinks\0229.google.analytics" + + ".admin.v1alpha.ListGoogleAdsLinksRequest" + + "\032:.google.analytics.admin.v1alpha.ListGo" + + "ogleAdsLinksResponse\">\332A\006parent\202\323\344\223\002/\022-/" + + "v1alpha/{parent=properties/*}/googleAdsL" + + "inks\022\313\001\n\026GetDataSharingSettings\022=.google" + + ".analytics.admin.v1alpha.GetDataSharingS" + + "ettingsRequest\0323.google.analytics.admin." + + "v1alpha.DataSharingSettings\"=\332A\004name\202\323\344\223" + + "\0020\022./v1alpha/{name=accounts/*/dataSharin" + + "gSettings}\022\366\001\n\034GetMeasurementProtocolSec" + + "ret\022C.google.analytics.admin.v1alpha.Get" + + "MeasurementProtocolSecretRequest\0329.googl" + + "e.analytics.admin.v1alpha.MeasurementPro" + + "tocolSecret\"V\332A\004name\202\323\344\223\002I\022G/v1alpha/{na" + + "me=properties/*/dataStreams/*/measuremen" + + "tProtocolSecrets/*}\022\211\002\n\036ListMeasurementP" + + "rotocolSecrets\022E.google.analytics.admin." + + "v1alpha.ListMeasurementProtocolSecretsRe" + + "quest\032F.google.analytics.admin.v1alpha.L" + + "istMeasurementProtocolSecretsResponse\"X\332" + + "A\006parent\202\323\344\223\002I\022G/v1alpha/{parent=propert" + + "ies/*/dataStreams/*}/measurementProtocol" + + "Secrets\022\270\002\n\037CreateMeasurementProtocolSec" + + "ret\022F.google.analytics.admin.v1alpha.Cre" + + "ateMeasurementProtocolSecretRequest\0329.go" + + "ogle.analytics.admin.v1alpha.Measurement" + + "ProtocolSecret\"\221\001\332A\"parent,measurement_p" + + "rotocol_secret\202\323\344\223\002f\"G/v1alpha/{parent=p" + + "roperties/*/dataStreams/*}/measurementPr" + + "otocolSecrets:\033measurement_protocol_secr" + + "et\022\331\001\n\037DeleteMeasurementProtocolSecret\022F" + + ".google.analytics.admin.v1alpha.DeleteMe" + + "asurementProtocolSecretRequest\032\026.google." + + "protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1alpha/" + + "{name=properties/*/dataStreams/*/measure" + + "mentProtocolSecrets/*}\022\332\002\n\037UpdateMeasure" + + "mentProtocolSecret\022F.google.analytics.ad" + + "min.v1alpha.UpdateMeasurementProtocolSec" + + "retRequest\0329.google.analytics.admin.v1al" + + "pha.MeasurementProtocolSecret\"\263\001\332A\'measu" + + "rement_protocol_secret,update_mask\202\323\344\223\002\202" + + "\0012c/v1alpha/{measurement_protocol_secret" + + ".name=properties/*/dataStreams/*/measure" + + "mentProtocolSecrets/*}:\033measurement_prot" + + "ocol_secret\022\367\001\n\035AcknowledgeUserDataColle" + + "ction\022D.google.analytics.admin.v1alpha.A" + + "cknowledgeUserDataCollectionRequest\032E.go" + + "ogle.analytics.admin.v1alpha.Acknowledge" + + "UserDataCollectionResponse\"I\202\323\344\223\002C\">/v1a" + + "lpha/{property=properties/*}:acknowledge" + + "UserDataCollection:\001*\022\221\002\n#GetSKAdNetwork" + + "ConversionValueSchema\022J.google.analytics" + + ".admin.v1alpha.GetSKAdNetworkConversionV" + + "alueSchemaRequest\032@.google.analytics.adm" + + "in.v1alpha.SKAdNetworkConversionValueSch" + + "ema\"\\\332A\004name\202\323\344\223\002O\022M/v1alpha/{name=prope" + + "rties/*/dataStreams/*/sKAdNetworkConvers" + + "ionValueSchema/*}\022\343\002\n&CreateSKAdNetworkC" + + "onversionValueSchema\022M.google.analytics." + + "admin.v1alpha.CreateSKAdNetworkConversio" + + "nValueSchemaRequest\032@.google.analytics.a" + + "dmin.v1alpha.SKAdNetworkConversionValueS" + + "chema\"\247\001\332A*parent,skadnetwork_conversion" + + "_value_schema\202\323\344\223\002t\"M/v1alpha/{parent=pr" + + "operties/*/dataStreams/*}/sKAdNetworkCon" + + "versionValueSchema:#skadnetwork_conversi" + + "on_value_schema\022\355\001\n&DeleteSKAdNetworkCon" + + "versionValueSchema\022M.google.analytics.ad" + + "min.v1alpha.DeleteSKAdNetworkConversionV" + + "alueSchemaRequest\032\026.google.protobuf.Empt" + + "y\"\\\332A\004name\202\323\344\223\002O*M/v1alpha/{name=propert" + + "ies/*/dataStreams/*/sKAdNetworkConversio" + + "nValueSchema/*}\022\215\003\n&UpdateSKAdNetworkCon" + + "versionValueSchema\022M.google.analytics.ad" + + "min.v1alpha.UpdateSKAdNetworkConversionV" + + "alueSchemaRequest\032@.google.analytics.adm" + + "in.v1alpha.SKAdNetworkConversionValueSch" + + "ema\"\321\001\332A/skadnetwork_conversion_value_sc" + + "hema,update_mask\202\323\344\223\002\230\0012q/v1alpha/{skadn" + + "etwork_conversion_value_schema.name=prop" + + "erties/*/dataStreams/*/sKAdNetworkConver" + + "sionValueSchema/*}:#skadnetwork_conversi" + + "on_value_schema\022\244\002\n%ListSKAdNetworkConve" + + "rsionValueSchemas\022L.google.analytics.adm" + + "in.v1alpha.ListSKAdNetworkConversionValu" + + "eSchemasRequest\032M.google.analytics.admin" + + ".v1alpha.ListSKAdNetworkConversionValueS" + + "chemasResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1alph" + + "a/{parent=properties/*/dataStreams/*}/sK" + + "AdNetworkConversionValueSchema\022\344\001\n\031Searc" + + "hChangeHistoryEvents\022@.google.analytics." + + "admin.v1alpha.SearchChangeHistoryEventsR" + + "equest\032A.google.analytics.admin.v1alpha." + + "SearchChangeHistoryEventsResponse\"B\202\323\344\223\002" + + "<\"7/v1alpha/{account=accounts/*}:searchC" + + "hangeHistoryEvents:\001*\022\325\001\n\030GetGoogleSigna" + + "lsSettings\022?.google.analytics.admin.v1al" + + "pha.GetGoogleSignalsSettingsRequest\0325.go" + + "ogle.analytics.admin.v1alpha.GoogleSigna" + + "lsSettings\"A\332A\004name\202\323\344\223\0024\0222/v1alpha/{nam" + + "e=properties/*/googleSignalsSettings}\022\254\002" + + "\n\033UpdateGoogleSignalsSettings\022B.google.a" + + "nalytics.admin.v1alpha.UpdateGoogleSigna" + + "lsSettingsRequest\0325.google.analytics.adm" + + "in.v1alpha.GoogleSignalsSettings\"\221\001\332A#go" + + "ogle_signals_settings,update_mask\202\323\344\223\002e2" + + "J/v1alpha/{google_signals_settings.name=" + + "properties/*/googleSignalsSettings}:\027goo" + + "gle_signals_settings\022\356\001\n\025CreateConversio" + + "nEvent\022<.google.analytics.admin.v1alpha." + + "CreateConversionEventRequest\032/.google.an" + + "alytics.admin.v1alpha.ConversionEvent\"f\210" + + "\002\001\332A\027parent,conversion_event\202\323\344\223\002C\"//v1a" + + "lpha/{parent=properties/*}/conversionEve" + + "nts:\020conversion_event\022\204\002\n\025UpdateConversi" + + "onEvent\022<.google.analytics.admin.v1alpha" + + ".UpdateConversionEventRequest\032/.google.a" + + "nalytics.admin.v1alpha.ConversionEvent\"|" + + "\210\002\001\332A\034conversion_event,update_mask\202\323\344\223\002T" + + "2@/v1alpha/{conversion_event.name=proper" + + "ties/*/conversionEvents/*}:\020conversion_e" + + "vent\022\303\001\n\022GetConversionEvent\0229.google.ana" + + "lytics.admin.v1alpha.GetConversionEventR" + + "equest\032/.google.analytics.admin.v1alpha." + + "ConversionEvent\"A\210\002\001\332A\004name\202\323\344\223\0021\022//v1al" + + "pha/{name=properties/*/conversionEvents/" + + "*}\022\260\001\n\025DeleteConversionEvent\022<.google.an" + + "alytics.admin.v1alpha.DeleteConversionEv" + + "entRequest\032\026.google.protobuf.Empty\"A\210\002\001\332" + + "A\004name\202\323\344\223\0021*//v1alpha/{name=properties/" + + "*/conversionEvents/*}\022\326\001\n\024ListConversion" + + "Events\022;.google.analytics.admin.v1alpha." + + "ListConversionEventsRequest\032<.google.ana" + + "lytics.admin.v1alpha.ListConversionEvent" + + "sResponse\"C\210\002\001\332A\006parent\202\323\344\223\0021\022//v1alpha/" + + "{parent=properties/*}/conversionEvents\022\301" + + "\001\n\016CreateKeyEvent\0225.google.analytics.adm" + + "in.v1alpha.CreateKeyEventRequest\032(.googl" + + "e.analytics.admin.v1alpha.KeyEvent\"N\332A\020p" + + "arent,key_event\202\323\344\223\0025\"(/v1alpha/{parent=" + + "properties/*}/keyEvents:\tkey_event\022\320\001\n\016U" + + "pdateKeyEvent\0225.google.analytics.admin.v" + + "1alpha.UpdateKeyEventRequest\032(.google.an" + + "alytics.admin.v1alpha.KeyEvent\"]\332A\025key_e" + + "vent,update_mask\202\323\344\223\002?22/v1alpha/{key_ev" + + "ent.name=properties/*/keyEvents/*}:\tkey_" + + "event\022\244\001\n\013GetKeyEvent\0222.google.analytics" + + ".admin.v1alpha.GetKeyEventRequest\032(.goog" + + "le.analytics.admin.v1alpha.KeyEvent\"7\332A\004" + + "name\202\323\344\223\002*\022(/v1alpha/{name=properties/*/" + + "keyEvents/*}\022\230\001\n\016DeleteKeyEvent\0225.google" + + ".analytics.admin.v1alpha.DeleteKeyEventR" + + "equest\032\026.google.protobuf.Empty\"7\332A\004name\202" + + "\323\344\223\002**(/v1alpha/{name=properties/*/keyEv" + + "ents/*}\022\267\001\n\rListKeyEvents\0224.google.analy" + + "tics.admin.v1alpha.ListKeyEventsRequest\032" + + "5.google.analytics.admin.v1alpha.ListKey" + + "EventsResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alph" + + "a/{parent=properties/*}/keyEvents\022\370\001\n Ge" + + "tDisplayVideo360AdvertiserLink\022G.google." + + "analytics.admin.v1alpha.GetDisplayVideo3" + + "60AdvertiserLinkRequest\032=.google.analyti" + + "cs.admin.v1alpha.DisplayVideo360Advertis" + + "erLink\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=pr" + "operties/*/displayVideo360AdvertiserLink" - + "s/*}\022\356\002\n#UpdateDisplayVideo360Advertiser" - + "Link\022J.google.analytics.admin.v1alpha.Up" - + "dateDisplayVideo360AdvertiserLinkRequest" - + "\032=.google.analytics.admin.v1alpha.Displa" - + "yVideo360AdvertiserLink\"\273\001\332A-display_vid" - + "eo_360_advertiser_link,update_mask\202\323\344\223\002\204" - + "\0012_/v1alpha/{display_video_360_advertise" - + "r_link.name=properties/*/displayVideo360" - + "AdvertiserLinks/*}:!display_video_360_ad" - + "vertiser_link\022\230\002\n(GetDisplayVideo360Adve" - + "rtiserLinkProposal\022O.google.analytics.ad" - + "min.v1alpha.GetDisplayVideo360Advertiser" - + "LinkProposalRequest\032E.google.analytics.a" - + "dmin.v1alpha.DisplayVideo360AdvertiserLi" - + "nkProposal\"T\332A\004name\202\323\344\223\002G\022E/v1alpha/{nam" - + "e=properties/*/displayVideo360Advertiser" - + "LinkProposals/*}\022\253\002\n*ListDisplayVideo360" - + "AdvertiserLinkProposals\022Q.google.analyti" - + "cs.admin.v1alpha.ListDisplayVideo360Adve" - + "rtiserLinkProposalsRequest\032R.google.anal" - + "ytics.admin.v1alpha.ListDisplayVideo360A" - + "dvertiserLinkProposalsResponse\"V\332A\006paren" - + "t\202\323\344\223\002G\022E/v1alpha/{parent=properties/*}/" - + "displayVideo360AdvertiserLinkProposals\022\370" - + "\002\n+CreateDisplayVideo360AdvertiserLinkPr" - + "oposal\022R.google.analytics.admin.v1alpha." - + "CreateDisplayVideo360AdvertiserLinkPropo" - + "salRequest\032E.google.analytics.admin.v1al" - + "pha.DisplayVideo360AdvertiserLinkProposa" - + "l\"\255\001\332A1parent,display_video_360_advertis" - + "er_link_proposal\202\323\344\223\002s\"E/v1alpha/{parent" - + "=properties/*}/displayVideo360Advertiser" - + "LinkProposals:*display_video_360_adverti" - + "ser_link_proposal\022\357\001\n+DeleteDisplayVideo" - + "360AdvertiserLinkProposal\022R.google.analy" - + "tics.admin.v1alpha.DeleteDisplayVideo360" - + "AdvertiserLinkProposalRequest\032\026.google.p" - + "rotobuf.Empty\"T\332A\004name\202\323\344\223\002G*E/v1alpha/{" - + "name=properties/*/displayVideo360Adverti" - + "serLinkProposals/*}\022\263\002\n,ApproveDisplayVi" - + "deo360AdvertiserLinkProposal\022S.google.an" - + "alytics.admin.v1alpha.ApproveDisplayVide" - + "o360AdvertiserLinkProposalRequest\032T.goog" - + "le.analytics.admin.v1alpha.ApproveDispla" - + "yVideo360AdvertiserLinkProposalResponse\"" - + "X\202\323\344\223\002R\"M/v1alpha/{name=properties/*/dis" - + "playVideo360AdvertiserLinkProposals/*}:a" - + "pprove:\001*\022\241\002\n+CancelDisplayVideo360Adver" - + "tiserLinkProposal\022R.google.analytics.adm" - + "in.v1alpha.CancelDisplayVideo360Advertis" - + "erLinkProposalRequest\032E.google.analytics" - + ".admin.v1alpha.DisplayVideo360Advertiser" - + "LinkProposal\"W\202\323\344\223\002Q\"L/v1alpha/{name=pro" - + "perties/*/displayVideo360AdvertiserLinkP" - + "roposals/*}:cancel:\001*\022\353\001\n\025CreateCustomDi" - + "mension\022<.google.analytics.admin.v1alpha" - + ".CreateCustomDimensionRequest\032/.google.a" - + "nalytics.admin.v1alpha.CustomDimension\"c" - + "\332A\027parent,custom_dimension\202\323\344\223\002C\"//v1alp" - + "ha/{parent=properties/*}/customDimension" - + "s:\020custom_dimension\022\201\002\n\025UpdateCustomDime" - + "nsion\022<.google.analytics.admin.v1alpha.U" - + "pdateCustomDimensionRequest\032/.google.ana" - + "lytics.admin.v1alpha.CustomDimension\"y\332A" - + "\034custom_dimension,update_mask\202\323\344\223\002T2@/v1" - + "alpha/{custom_dimension.name=properties/" - + "*/customDimensions/*}:\020custom_dimension\022" - + "\323\001\n\024ListCustomDimensions\022;.google.analyt" - + "ics.admin.v1alpha.ListCustomDimensionsRe" - + "quest\032<.google.analytics.admin.v1alpha.L" - + "istCustomDimensionsResponse\"@\332A\006parent\202\323" - + "\344\223\0021\022//v1alpha/{parent=properties/*}/cus" - + "tomDimensions\022\272\001\n\026ArchiveCustomDimension" - + "\022=.google.analytics.admin.v1alpha.Archiv" - + "eCustomDimensionRequest\032\026.google.protobu" - + "f.Empty\"I\332A\004name\202\323\344\223\002<\"7/v1alpha/{name=p" - + "roperties/*/customDimensions/*}:archive:" - + "\001*\022\300\001\n\022GetCustomDimension\0229.google.analy" - + "tics.admin.v1alpha.GetCustomDimensionReq" + + "s/*}\022\213\002\n\"ListDisplayVideo360AdvertiserLi" + + "nks\022I.google.analytics.admin.v1alpha.Lis" + + "tDisplayVideo360AdvertiserLinksRequest\032J" + + ".google.analytics.admin.v1alpha.ListDisp" + + "layVideo360AdvertiserLinksResponse\"N\332A\006p" + + "arent\202\323\344\223\002?\022=/v1alpha/{parent=properties" + + "/*}/displayVideo360AdvertiserLinks\022\306\002\n#C" + + "reateDisplayVideo360AdvertiserLink\022J.goo" + + "gle.analytics.admin.v1alpha.CreateDispla" + + "yVideo360AdvertiserLinkRequest\032=.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLink\"\223\001\332A(parent,display_video_" + + "360_advertiser_link\202\323\344\223\002b\"=/v1alpha/{par" + + "ent=properties/*}/displayVideo360Adverti" + + "serLinks:!display_video_360_advertiser_l" + + "ink\022\327\001\n#DeleteDisplayVideo360AdvertiserL" + + "ink\022J.google.analytics.admin.v1alpha.Del" + + "eteDisplayVideo360AdvertiserLinkRequest\032" + + "\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=" + + "/v1alpha/{name=properties/*/displayVideo" + + "360AdvertiserLinks/*}\022\356\002\n#UpdateDisplayV" + + "ideo360AdvertiserLink\022J.google.analytics" + + ".admin.v1alpha.UpdateDisplayVideo360Adve" + + "rtiserLinkRequest\032=.google.analytics.adm" + + "in.v1alpha.DisplayVideo360AdvertiserLink" + + "\"\273\001\332A-display_video_360_advertiser_link," + + "update_mask\202\323\344\223\002\204\0012_/v1alpha/{display_vi" + + "deo_360_advertiser_link.name=properties/" + + "*/displayVideo360AdvertiserLinks/*}:!dis" + + "play_video_360_advertiser_link\022\230\002\n(GetDi" + + "splayVideo360AdvertiserLinkProposal\022O.go" + + "ogle.analytics.admin.v1alpha.GetDisplayV" + + "ideo360AdvertiserLinkProposalRequest\032E.g" + + "oogle.analytics.admin.v1alpha.DisplayVid" + + "eo360AdvertiserLinkProposal\"T\332A\004name\202\323\344\223" + + "\002G\022E/v1alpha/{name=properties/*/displayV" + + "ideo360AdvertiserLinkProposals/*}\022\253\002\n*Li" + + "stDisplayVideo360AdvertiserLinkProposals" + + "\022Q.google.analytics.admin.v1alpha.ListDi" + + "splayVideo360AdvertiserLinkProposalsRequ" + + "est\032R.google.analytics.admin.v1alpha.Lis" + + "tDisplayVideo360AdvertiserLinkProposalsR" + + "esponse\"V\332A\006parent\202\323\344\223\002G\022E/v1alpha/{pare" + + "nt=properties/*}/displayVideo360Advertis" + + "erLinkProposals\022\370\002\n+CreateDisplayVideo36" + + "0AdvertiserLinkProposal\022R.google.analyti" + + "cs.admin.v1alpha.CreateDisplayVideo360Ad" + + "vertiserLinkProposalRequest\032E.google.ana" + + "lytics.admin.v1alpha.DisplayVideo360Adve" + + "rtiserLinkProposal\"\255\001\332A1parent,display_v" + + "ideo_360_advertiser_link_proposal\202\323\344\223\002s\"" + + "E/v1alpha/{parent=properties/*}/displayV" + + "ideo360AdvertiserLinkProposals:*display_" + + "video_360_advertiser_link_proposal\022\357\001\n+D" + + "eleteDisplayVideo360AdvertiserLinkPropos" + + "al\022R.google.analytics.admin.v1alpha.Dele" + + "teDisplayVideo360AdvertiserLinkProposalR" + + "equest\032\026.google.protobuf.Empty\"T\332A\004name\202" + + "\323\344\223\002G*E/v1alpha/{name=properties/*/displ" + + "ayVideo360AdvertiserLinkProposals/*}\022\263\002\n" + + ",ApproveDisplayVideo360AdvertiserLinkPro" + + "posal\022S.google.analytics.admin.v1alpha.A" + + "pproveDisplayVideo360AdvertiserLinkPropo" + + "salRequest\032T.google.analytics.admin.v1al" + + "pha.ApproveDisplayVideo360AdvertiserLink" + + "ProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name" + + "=properties/*/displayVideo360AdvertiserL" + + "inkProposals/*}:approve:\001*\022\241\002\n+CancelDis" + + "playVideo360AdvertiserLinkProposal\022R.goo" + + "gle.analytics.admin.v1alpha.CancelDispla" + + "yVideo360AdvertiserLinkProposalRequest\032E" + + ".google.analytics.admin.v1alpha.DisplayV" + + "ideo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/" + + "v1alpha/{name=properties/*/displayVideo3" + + "60AdvertiserLinkProposals/*}:cancel:\001*\022\353" + + "\001\n\025CreateCustomDimension\022<.google.analyt" + + "ics.admin.v1alpha.CreateCustomDimensionR" + + "equest\032/.google.analytics.admin.v1alpha." + + "CustomDimension\"c\332A\027parent,custom_dimens" + + "ion\202\323\344\223\002C\"//v1alpha/{parent=properties/*" + + "}/customDimensions:\020custom_dimension\022\201\002\n" + + "\025UpdateCustomDimension\022<.google.analytic" + + "s.admin.v1alpha.UpdateCustomDimensionReq" + "uest\032/.google.analytics.admin.v1alpha.Cu" - + "stomDimension\">\332A\004name\202\323\344\223\0021\022//v1alpha/{" - + "name=properties/*/customDimensions/*}\022\331\001" - + "\n\022CreateCustomMetric\0229.google.analytics." - + "admin.v1alpha.CreateCustomMetricRequest\032" - + ",.google.analytics.admin.v1alpha.CustomM" - + "etric\"Z\332A\024parent,custom_metric\202\323\344\223\002=\",/v" - + "1alpha/{parent=properties/*}/customMetri" - + "cs:\rcustom_metric\022\354\001\n\022UpdateCustomMetric" - + "\0229.google.analytics.admin.v1alpha.Update" - + "CustomMetricRequest\032,.google.analytics.a" - + "dmin.v1alpha.CustomMetric\"m\332A\031custom_met" - + "ric,update_mask\202\323\344\223\002K2:/v1alpha/{custom_" - + "metric.name=properties/*/customMetrics/*" - + "}:\rcustom_metric\022\307\001\n\021ListCustomMetrics\0228" - + ".google.analytics.admin.v1alpha.ListCust" - + "omMetricsRequest\0329.google.analytics.admi" - + "n.v1alpha.ListCustomMetricsResponse\"=\332A\006" - + "parent\202\323\344\223\002.\022,/v1alpha/{parent=propertie" - + "s/*}/customMetrics\022\261\001\n\023ArchiveCustomMetr" - + "ic\022:.google.analytics.admin.v1alpha.Arch" - + "iveCustomMetricRequest\032\026.google.protobuf" - + ".Empty\"F\332A\004name\202\323\344\223\0029\"4/v1alpha/{name=pr" - + "operties/*/customMetrics/*}:archive:\001*\022\264" - + "\001\n\017GetCustomMetric\0226.google.analytics.ad" - + "min.v1alpha.GetCustomMetricRequest\032,.goo" - + "gle.analytics.admin.v1alpha.CustomMetric" - + "\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=properti" - + "es/*/customMetrics/*}\022\325\001\n\030GetDataRetenti" - + "onSettings\022?.google.analytics.admin.v1al" - + "pha.GetDataRetentionSettingsRequest\0325.go" - + "ogle.analytics.admin.v1alpha.DataRetenti" - + "onSettings\"A\332A\004name\202\323\344\223\0024\0222/v1alpha/{nam" - + "e=properties/*/dataRetentionSettings}\022\254\002" - + "\n\033UpdateDataRetentionSettings\022B.google.a" - + "nalytics.admin.v1alpha.UpdateDataRetenti" - + "onSettingsRequest\0325.google.analytics.adm" - + "in.v1alpha.DataRetentionSettings\"\221\001\332A#da" - + "ta_retention_settings,update_mask\202\323\344\223\002e2" - + "J/v1alpha/{data_retention_settings.name=" - + "properties/*/dataRetentionSettings}:\027dat" - + "a_retention_settings\022\315\001\n\020CreateDataStrea" - + "m\0227.google.analytics.admin.v1alpha.Creat" - + "eDataStreamRequest\032*.google.analytics.ad" - + "min.v1alpha.DataStream\"T\332A\022parent,data_s" - + "tream\202\323\344\223\0029\"*/v1alpha/{parent=properties" - + "/*}/dataStreams:\013data_stream\022\236\001\n\020DeleteD" - + "ataStream\0227.google.analytics.admin.v1alp" - + "ha.DeleteDataStreamRequest\032\026.google.prot" - + "obuf.Empty\"9\332A\004name\202\323\344\223\002,**/v1alpha/{nam" - + "e=properties/*/dataStreams/*}\022\336\001\n\020Update" - + "DataStream\0227.google.analytics.admin.v1al" - + "pha.UpdateDataStreamRequest\032*.google.ana" - + "lytics.admin.v1alpha.DataStream\"e\332A\027data" - + "_stream,update_mask\202\323\344\223\002E26/v1alpha/{dat" - + "a_stream.name=properties/*/dataStreams/*" - + "}:\013data_stream\022\277\001\n\017ListDataStreams\0226.goo" - + "gle.analytics.admin.v1alpha.ListDataStre" - + "amsRequest\0327.google.analytics.admin.v1al" - + "pha.ListDataStreamsResponse\";\332A\006parent\202\323" - + "\344\223\002,\022*/v1alpha/{parent=properties/*}/dat" - + "aStreams\022\254\001\n\rGetDataStream\0224.google.anal" - + "ytics.admin.v1alpha.GetDataStreamRequest" - + "\032*.google.analytics.admin.v1alpha.DataSt" - + "ream\"9\332A\004name\202\323\344\223\002,\022*/v1alpha/{name=prop" - + "erties/*/dataStreams/*}\022\244\001\n\013GetAudience\022" - + "2.google.analytics.admin.v1alpha.GetAudi" - + "enceRequest\032(.google.analytics.admin.v1a" - + "lpha.Audience\"7\332A\004name\202\323\344\223\002*\022(/v1alpha/{" - + "name=properties/*/audiences/*}\022\267\001\n\rListA" - + "udiences\0224.google.analytics.admin.v1alph" - + "a.ListAudiencesRequest\0325.google.analytic" - + "s.admin.v1alpha.ListAudiencesResponse\"9\332" - + "A\006parent\202\323\344\223\002*\022(/v1alpha/{parent=propert" - + "ies/*}/audiences\022\277\001\n\016CreateAudience\0225.go" - + "ogle.analytics.admin.v1alpha.CreateAudie" - + "nceRequest\032(.google.analytics.admin.v1al" - + "pha.Audience\"L\332A\017parent,audience\202\323\344\223\0024\"(" - + "/v1alpha/{parent=properties/*}/audiences" - + ":\010audience\022\315\001\n\016UpdateAudience\0225.google.a" - + "nalytics.admin.v1alpha.UpdateAudienceReq" - + "uest\032(.google.analytics.admin.v1alpha.Au" - + "dience\"Z\332A\024audience,update_mask\202\323\344\223\002=21/" - + "v1alpha/{audience.name=properties/*/audi" - + "ences/*}:\010audience\022\236\001\n\017ArchiveAudience\0226" - + ".google.analytics.admin.v1alpha.ArchiveA" - + "udienceRequest\032\026.google.protobuf.Empty\";" - + "\202\323\344\223\0025\"0/v1alpha/{name=properties/*/audi" - + "ences/*}:archive:\001*\022\304\001\n\023GetSearchAds360L" - + "ink\022:.google.analytics.admin.v1alpha.Get" + + "stomDimension\"y\332A\034custom_dimension,updat" + + "e_mask\202\323\344\223\002T2@/v1alpha/{custom_dimension" + + ".name=properties/*/customDimensions/*}:\020" + + "custom_dimension\022\323\001\n\024ListCustomDimension" + + "s\022;.google.analytics.admin.v1alpha.ListC" + + "ustomDimensionsRequest\032<.google.analytic" + + "s.admin.v1alpha.ListCustomDimensionsResp" + + "onse\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=" + + "properties/*}/customDimensions\022\272\001\n\026Archi" + + "veCustomDimension\022=.google.analytics.adm" + + "in.v1alpha.ArchiveCustomDimensionRequest" + + "\032\026.google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<\"" + + "7/v1alpha/{name=properties/*/customDimen" + + "sions/*}:archive:\001*\022\300\001\n\022GetCustomDimensi" + + "on\0229.google.analytics.admin.v1alpha.GetC" + + "ustomDimensionRequest\032/.google.analytics" + + ".admin.v1alpha.CustomDimension\">\332A\004name\202" + + "\323\344\223\0021\022//v1alpha/{name=properties/*/custo" + + "mDimensions/*}\022\331\001\n\022CreateCustomMetric\0229." + + "google.analytics.admin.v1alpha.CreateCus" + + "tomMetricRequest\032,.google.analytics.admi" + + "n.v1alpha.CustomMetric\"Z\332A\024parent,custom" + + "_metric\202\323\344\223\002=\",/v1alpha/{parent=properti" + + "es/*}/customMetrics:\rcustom_metric\022\354\001\n\022U" + + "pdateCustomMetric\0229.google.analytics.adm" + + "in.v1alpha.UpdateCustomMetricRequest\032,.g" + + "oogle.analytics.admin.v1alpha.CustomMetr" + + "ic\"m\332A\031custom_metric,update_mask\202\323\344\223\002K2:" + + "/v1alpha/{custom_metric.name=properties/" + + "*/customMetrics/*}:\rcustom_metric\022\307\001\n\021Li" + + "stCustomMetrics\0228.google.analytics.admin" + + ".v1alpha.ListCustomMetricsRequest\0329.goog" + + "le.analytics.admin.v1alpha.ListCustomMet" + + "ricsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/" + + "{parent=properties/*}/customMetrics\022\261\001\n\023" + + "ArchiveCustomMetric\022:.google.analytics.a" + + "dmin.v1alpha.ArchiveCustomMetricRequest\032" + + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029\"4" + + "/v1alpha/{name=properties/*/customMetric" + + "s/*}:archive:\001*\022\264\001\n\017GetCustomMetric\0226.go" + + "ogle.analytics.admin.v1alpha.GetCustomMe" + + "tricRequest\032,.google.analytics.admin.v1a" + + "lpha.CustomMetric\";\332A\004name\202\323\344\223\002.\022,/v1alp" + + "ha/{name=properties/*/customMetrics/*}\022\325" + + "\001\n\030GetDataRetentionSettings\022?.google.ana" + + "lytics.admin.v1alpha.GetDataRetentionSet" + + "tingsRequest\0325.google.analytics.admin.v1" + + "alpha.DataRetentionSettings\"A\332A\004name\202\323\344\223" + + "\0024\0222/v1alpha/{name=properties/*/dataRete" + + "ntionSettings}\022\254\002\n\033UpdateDataRetentionSe" + + "ttings\022B.google.analytics.admin.v1alpha." + + "UpdateDataRetentionSettingsRequest\0325.goo" + + "gle.analytics.admin.v1alpha.DataRetentio" + + "nSettings\"\221\001\332A#data_retention_settings,u" + + "pdate_mask\202\323\344\223\002e2J/v1alpha/{data_retenti" + + "on_settings.name=properties/*/dataRetent" + + "ionSettings}:\027data_retention_settings\022\315\001" + + "\n\020CreateDataStream\0227.google.analytics.ad" + + "min.v1alpha.CreateDataStreamRequest\032*.go" + + "ogle.analytics.admin.v1alpha.DataStream\"" + + "T\332A\022parent,data_stream\202\323\344\223\0029\"*/v1alpha/{" + + "parent=properties/*}/dataStreams:\013data_s" + + "tream\022\236\001\n\020DeleteDataStream\0227.google.anal" + + "ytics.admin.v1alpha.DeleteDataStreamRequ" + + "est\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223" + + "\002,**/v1alpha/{name=properties/*/dataStre" + + "ams/*}\022\336\001\n\020UpdateDataStream\0227.google.ana" + + "lytics.admin.v1alpha.UpdateDataStreamReq" + + "uest\032*.google.analytics.admin.v1alpha.Da" + + "taStream\"e\332A\027data_stream,update_mask\202\323\344\223" + + "\002E26/v1alpha/{data_stream.name=propertie" + + "s/*/dataStreams/*}:\013data_stream\022\277\001\n\017List" + + "DataStreams\0226.google.analytics.admin.v1a" + + "lpha.ListDataStreamsRequest\0327.google.ana" + + "lytics.admin.v1alpha.ListDataStreamsResp" + + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1alpha/{parent=" + + "properties/*}/dataStreams\022\254\001\n\rGetDataStr" + + "eam\0224.google.analytics.admin.v1alpha.Get" + + "DataStreamRequest\032*.google.analytics.adm" + + "in.v1alpha.DataStream\"9\332A\004name\202\323\344\223\002,\022*/v" + + "1alpha/{name=properties/*/dataStreams/*}" + + "\022\244\001\n\013GetAudience\0222.google.analytics.admi" + + "n.v1alpha.GetAudienceRequest\032(.google.an" + + "alytics.admin.v1alpha.Audience\"7\332A\004name\202" + + "\323\344\223\002*\022(/v1alpha/{name=properties/*/audie" + + "nces/*}\022\267\001\n\rListAudiences\0224.google.analy" + + "tics.admin.v1alpha.ListAudiencesRequest\032" + + "5.google.analytics.admin.v1alpha.ListAud" + + "iencesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alph" + + "a/{parent=properties/*}/audiences\022\277\001\n\016Cr" + + "eateAudience\0225.google.analytics.admin.v1" + + "alpha.CreateAudienceRequest\032(.google.ana" + + "lytics.admin.v1alpha.Audience\"L\332A\017parent" + + ",audience\202\323\344\223\0024\"(/v1alpha/{parent=proper" + + "ties/*}/audiences:\010audience\022\315\001\n\016UpdateAu" + + "dience\0225.google.analytics.admin.v1alpha." + + "UpdateAudienceRequest\032(.google.analytics" + + ".admin.v1alpha.Audience\"Z\332A\024audience,upd" + + "ate_mask\202\323\344\223\002=21/v1alpha/{audience.name=" + + "properties/*/audiences/*}:\010audience\022\236\001\n\017" + + "ArchiveAudience\0226.google.analytics.admin" + + ".v1alpha.ArchiveAudienceRequest\032\026.google" + + ".protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name=" + + "properties/*/audiences/*}:archive:\001*\022\304\001\n" + + "\023GetSearchAds360Link\022:.google.analytics." + + "admin.v1alpha.GetSearchAds360LinkRequest" + + "\0320.google.analytics.admin.v1alpha.Search" + + "Ads360Link\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{nam" + + "e=properties/*/searchAds360Links/*}\022\327\001\n\025" + + "ListSearchAds360Links\022<.google.analytics" + + ".admin.v1alpha.ListSearchAds360LinksRequ" + + "est\032=.google.analytics.admin.v1alpha.Lis" + + "tSearchAds360LinksResponse\"A\332A\006parent\202\323\344" + + "\223\0022\0220/v1alpha/{parent=properties/*}/sear" + + "chAds360Links\022\365\001\n\026CreateSearchAds360Link" + + "\022=.google.analytics.admin.v1alpha.Create" + "SearchAds360LinkRequest\0320.google.analyti" - + "cs.admin.v1alpha.SearchAds360Link\"?\332A\004na" - + "me\202\323\344\223\0022\0220/v1alpha/{name=properties/*/se" - + "archAds360Links/*}\022\327\001\n\025ListSearchAds360L" - + "inks\022<.google.analytics.admin.v1alpha.Li" - + "stSearchAds360LinksRequest\032=.google.anal" - + "ytics.admin.v1alpha.ListSearchAds360Link" - + "sResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1alpha/{pa" - + "rent=properties/*}/searchAds360Links\022\365\001\n" - + "\026CreateSearchAds360Link\022=.google.analyti" - + "cs.admin.v1alpha.CreateSearchAds360LinkR" - + "equest\0320.google.analytics.admin.v1alpha." - + "SearchAds360Link\"j\332A\032parent,search_ads_3" - + "60_link\202\323\344\223\002G\"0/v1alpha/{parent=properti" - + "es/*}/searchAds360Links:\023search_ads_360_" - + "link\022\260\001\n\026DeleteSearchAds360Link\022=.google" - + ".analytics.admin.v1alpha.DeleteSearchAds" - + "360LinkRequest\032\026.google.protobuf.Empty\"?" - + "\332A\004name\202\323\344\223\0022*0/v1alpha/{name=properties" - + "/*/searchAds360Links/*}\022\217\002\n\026UpdateSearch" - + "Ads360Link\022=.google.analytics.admin.v1al" - + "pha.UpdateSearchAds360LinkRequest\0320.goog" - + "le.analytics.admin.v1alpha.SearchAds360L" - + "ink\"\203\001\332A\037search_ads_360_link,update_mask" - + "\202\323\344\223\002[2D/v1alpha/{search_ads_360_link.na" - + "me=properties/*/searchAds360Links/*}:\023se" - + "arch_ads_360_link\022\315\001\n\026GetAttributionSett" - + "ings\022=.google.analytics.admin.v1alpha.Ge" - + "tAttributionSettingsRequest\0323.google.ana" - + "lytics.admin.v1alpha.AttributionSettings" - + "\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{name=properti" - + "es/*/attributionSettings}\022\233\002\n\031UpdateAttr" - + "ibutionSettings\022@.google.analytics.admin" - + ".v1alpha.UpdateAttributionSettingsReques" - + "t\0323.google.analytics.admin.v1alpha.Attri" - + "butionSettings\"\206\001\332A attribution_settings" - + ",update_mask\202\323\344\223\002]2E/v1alpha/{attributio" - + "n_settings.name=properties/*/attribution" - + "Settings}:\024attribution_settings\022\360\001\n\017RunA", - "ccessReport\0226.google.analytics.admin.v1a" - + "lpha.RunAccessReportRequest\0327.google.ana" - + "lytics.admin.v1alpha.RunAccessReportResp" - + "onse\"l\202\323\344\223\002f\"./v1alpha/{entity=propertie" - + "s/*}:runAccessReport:\001*Z1\",/v1alpha/{ent" - + "ity=accounts/*}:runAccessReport:\001*\022\237\002\n\023C" - + "reateAccessBinding\022:.google.analytics.ad" - + "min.v1alpha.CreateAccessBindingRequest\032-" - + ".google.analytics.admin.v1alpha.AccessBi" - + "nding\"\234\001\332A\025parent,access_binding\202\323\344\223\002~\"+" - + "/v1alpha/{parent=accounts/*}/accessBindi" - + "ngs:\016access_bindingZ?\"-/v1alpha/{parent=" - + "properties/*}/accessBindings:\016access_bin" - + "ding\022\347\001\n\020GetAccessBinding\0227.google.analy" - + "tics.admin.v1alpha.GetAccessBindingReque" - + "st\032-.google.analytics.admin.v1alpha.Acce" - + "ssBinding\"k\332A\004name\202\323\344\223\002^\022+/v1alpha/{name" - + "=accounts/*/accessBindings/*}Z/\022-/v1alph" - + "a/{name=properties/*/accessBindings/*}\022\267" - + "\002\n\023UpdateAccessBinding\022:.google.analytic" - + "s.admin.v1alpha.UpdateAccessBindingReque" - + "st\032-.google.analytics.admin.v1alpha.Acce" - + "ssBinding\"\264\001\332A\016access_binding\202\323\344\223\002\234\0012:/v" - + "1alpha/{access_binding.name=accounts/*/a" - + "ccessBindings/*}:\016access_bindingZN2\"9/v1alpha/{parent=prope" - + "rties/*}/accessBindings:batchCreate:\001*\022\217" - + "\002\n\026BatchGetAccessBindings\022=.google.analy" + + "cs.admin.v1alpha.SearchAds360Link\"j\332A\032pa" + + "rent,search_ads_360_link\202\323\344\223\002G\"0/v1alpha" + + "/{parent=properties/*}/searchAds360Links" + + ":\023search_ads_360_link\022\260\001\n\026DeleteSearchAd" + + "s360Link\022=.google.analytics.admin.v1alph" + + "a.DeleteSearchAds360LinkRequest\032\026.google" + + ".protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alpha" + + "/{name=properties/*/searchAds360Links/*}" + + "\022\217\002\n\026UpdateSearchAds360Link\022=.google.ana" + + "lytics.admin.v1alpha.UpdateSearchAds360L" + + "inkRequest\0320.google.analytics.admin.v1al" + + "pha.SearchAds360Link\"\203\001\332A\037search_ads_360" + + "_link,update_mask\202\323\344\223\002[2D/v1alpha/{searc" + + "h_ads_360_link.name=properties/*/searchA" + + "ds360Links/*}:\023search_ads_360_link\022\315\001\n\026G" + + "etAttributionSettings\022=.google.analytics" + + ".admin.v1alpha.GetAttributionSettingsReq" + + "uest\0323.google.analytics.admin.v1alpha.At" + + "tributionSettings\"?\332A\004name\202\323\344\223\0022\0220/v1alp" + + "ha/{name=properties/*/attributionSetting" + + "s}\022\233\002\n\031UpdateAttributionSettings\022@.googl" + + "e.analytics.admin.v1alpha.UpdateAttribut", + "ionSettingsRequest\0323.google.analytics.ad" + + "min.v1alpha.AttributionSettings\"\206\001\332A att" + + "ribution_settings,update_mask\202\323\344\223\002]2E/v1" + + "alpha/{attribution_settings.name=propert" + + "ies/*/attributionSettings}:\024attribution_" + + "settings\022\360\001\n\017RunAccessReport\0226.google.an" + + "alytics.admin.v1alpha.RunAccessReportReq" + + "uest\0327.google.analytics.admin.v1alpha.Ru" + + "nAccessReportResponse\"l\202\323\344\223\002f\"./v1alpha/" + + "{entity=properties/*}:runAccessReport:\001*" + + "Z1\",/v1alpha/{entity=accounts/*}:runAcce" + + "ssReport:\001*\022\237\002\n\023CreateAccessBinding\022:.go" + + "ogle.analytics.admin.v1alpha.CreateAcces" + + "sBindingRequest\032-.google.analytics.admin" + + ".v1alpha.AccessBinding\"\234\001\332A\025parent,acces" + + "s_binding\202\323\344\223\002~\"+/v1alpha/{parent=accoun" + + "ts/*}/accessBindings:\016access_bindingZ?\"-" + + "/v1alpha/{parent=properties/*}/accessBin" + + "dings:\016access_binding\022\347\001\n\020GetAccessBindi" + + "ng\0227.google.analytics.admin.v1alpha.GetA" + + "ccessBindingRequest\032-.google.analytics.a" + + "dmin.v1alpha.AccessBinding\"k\332A\004name\202\323\344\223\002" + + "^\022+/v1alpha/{name=accounts/*/accessBindi" + + "ngs/*}Z/\022-/v1alpha/{name=properties/*/ac" + + "cessBindings/*}\022\267\002\n\023UpdateAccessBinding\022" + + ":.google.analytics.admin.v1alpha.UpdateA" + + "ccessBindingRequest\032-.google.analytics.a" + + "dmin.v1alpha.AccessBinding\"\264\001\332A\016access_b" + + "inding\202\323\344\223\002\234\0012:/v1alpha/{access_binding." + + "name=accounts/*/accessBindings/*}:\016acces" + + "s_bindingZN2\"9/v1al" + + "pha/{parent=properties/*}/accessBindings" + + ":batchCreate:\001*\022\217\002\n\026BatchGetAccessBindin" + + "gs\022=.google.analytics.admin.v1alpha.Batc" + + "hGetAccessBindingsRequest\032>.google.analy" + "tics.admin.v1alpha.BatchGetAccessBinding" - + "sRequest\032>.google.analytics.admin.v1alph" - + "a.BatchGetAccessBindingsResponse\"v\202\323\344\223\002p" - + "\0224/v1alpha/{parent=accounts/*}/accessBin" - + "dings:batchGetZ8\0226/v1alpha/{parent=prope" - + "rties/*}/accessBindings:batchGet\022\245\002\n\031Bat" - + "chUpdateAccessBindings\022@.google.analytic" - + "s.admin.v1alpha.BatchUpdateAccessBinding" - + "sRequest\032A.google.analytics.admin.v1alph" - + "a.BatchUpdateAccessBindingsResponse\"\202\001\202\323" - + "\344\223\002|\"7/v1alpha/{parent=accounts/*}/acces" - + "sBindings:batchUpdate:\001*Z>\"9/v1alpha/{pa" - + "rent=properties/*}/accessBindings:batchU" - + "pdate:\001*\022\372\001\n\031BatchDeleteAccessBindings\022@" - + ".google.analytics.admin.v1alpha.BatchDel" - + "eteAccessBindingsRequest\032\026.google.protob" - + "uf.Empty\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=acco" - + "unts/*}/accessBindings:batchDelete:\001*Z>\"" - + "9/v1alpha/{parent=properties/*}/accessBi" - + "ndings:batchDelete:\001*\022\300\001\n\022GetExpandedDat" - + "aSet\0229.google.analytics.admin.v1alpha.Ge" - + "tExpandedDataSetRequest\032/.google.analyti" - + "cs.admin.v1alpha.ExpandedDataSet\">\332A\004nam" - + "e\202\323\344\223\0021\022//v1alpha/{name=properties/*/exp" - + "andedDataSets/*}\022\323\001\n\024ListExpandedDataSet" - + "s\022;.google.analytics.admin.v1alpha.ListE" - + "xpandedDataSetsRequest\032<.google.analytic" - + "s.admin.v1alpha.ListExpandedDataSetsResp" - + "onse\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=" - + "properties/*}/expandedDataSets\022\355\001\n\025Creat" - + "eExpandedDataSet\022<.google.analytics.admi" - + "n.v1alpha.CreateExpandedDataSetRequest\032/" - + ".google.analytics.admin.v1alpha.Expanded" - + "DataSet\"e\332A\030parent,expanded_data_set\202\323\344\223" - + "\002D\"//v1alpha/{parent=properties/*}/expan" - + "dedDataSets:\021expanded_data_set\022\204\002\n\025Updat" + + "sResponse\"v\202\323\344\223\002p\0224/v1alpha/{parent=acco" + + "unts/*}/accessBindings:batchGetZ8\0226/v1al" + + "pha/{parent=properties/*}/accessBindings" + + ":batchGet\022\245\002\n\031BatchUpdateAccessBindings\022" + + "@.google.analytics.admin.v1alpha.BatchUp" + + "dateAccessBindingsRequest\032A.google.analy" + + "tics.admin.v1alpha.BatchUpdateAccessBind" + + "ingsResponse\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=" + + "accounts/*}/accessBindings:batchUpdate:\001" + + "*Z>\"9/v1alpha/{parent=properties/*}/acce" + + "ssBindings:batchUpdate:\001*\022\372\001\n\031BatchDelet" + + "eAccessBindings\022@.google.analytics.admin" + + ".v1alpha.BatchDeleteAccessBindingsReques" + + "t\032\026.google.protobuf.Empty\"\202\001\202\323\344\223\002|\"7/v1a" + + "lpha/{parent=accounts/*}/accessBindings:" + + "batchDelete:\001*Z>\"9/v1alpha/{parent=prope" + + "rties/*}/accessBindings:batchDelete:\001*\022\300" + + "\001\n\022GetExpandedDataSet\0229.google.analytics" + + ".admin.v1alpha.GetExpandedDataSetRequest" + + "\032/.google.analytics.admin.v1alpha.Expand" + + "edDataSet\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name" + + "=properties/*/expandedDataSets/*}\022\323\001\n\024Li" + + "stExpandedDataSets\022;.google.analytics.ad" + + "min.v1alpha.ListExpandedDataSetsRequest\032" + + "<.google.analytics.admin.v1alpha.ListExp" + + "andedDataSetsResponse\"@\332A\006parent\202\323\344\223\0021\022/" + + "/v1alpha/{parent=properties/*}/expandedD" + + "ataSets\022\355\001\n\025CreateExpandedDataSet\022<.goog" + + "le.analytics.admin.v1alpha.CreateExpande" + + "dDataSetRequest\032/.google.analytics.admin" + + ".v1alpha.ExpandedDataSet\"e\332A\030parent,expa" + + "nded_data_set\202\323\344\223\002D\"//v1alpha/{parent=pr" + + "operties/*}/expandedDataSets:\021expanded_d" + + "ata_set\022\204\002\n\025UpdateExpandedDataSet\022<.goog" + + "le.analytics.admin.v1alpha.UpdateExpande" + + "dDataSetRequest\032/.google.analytics.admin" + + ".v1alpha.ExpandedDataSet\"|\332A\035expanded_da" + + "ta_set,update_mask\202\323\344\223\002V2A/v1alpha/{expa" + + "nded_data_set.name=properties/*/expanded" + + "DataSets/*}:\021expanded_data_set\022\255\001\n\025Delet" + "eExpandedDataSet\022<.google.analytics.admi" - + "n.v1alpha.UpdateExpandedDataSetRequest\032/" - + ".google.analytics.admin.v1alpha.Expanded" - + "DataSet\"|\332A\035expanded_data_set,update_mas" - + "k\202\323\344\223\002V2A/v1alpha/{expanded_data_set.nam" - + "e=properties/*/expandedDataSets/*}:\021expa" - + "nded_data_set\022\255\001\n\025DeleteExpandedDataSet\022" - + "<.google.analytics.admin.v1alpha.DeleteE" - + "xpandedDataSetRequest\032\026.google.protobuf." - + "Empty\">\332A\004name\202\323\344\223\0021*//v1alpha/{name=pro" - + "perties/*/expandedDataSets/*}\022\264\001\n\017GetCha" - + "nnelGroup\0226.google.analytics.admin.v1alp" - + "ha.GetChannelGroupRequest\032,.google.analy" - + "tics.admin.v1alpha.ChannelGroup\";\332A\004name" - + "\202\323\344\223\002.\022,/v1alpha/{name=properties/*/chan" - + "nelGroups/*}\022\307\001\n\021ListChannelGroups\0228.goo" - + "gle.analytics.admin.v1alpha.ListChannelG" - + "roupsRequest\0329.google.analytics.admin.v1" - + "alpha.ListChannelGroupsResponse\"=\332A\006pare" - + "nt\202\323\344\223\002.\022,/v1alpha/{parent=properties/*}" - + "/channelGroups\022\331\001\n\022CreateChannelGroup\0229." - + "google.analytics.admin.v1alpha.CreateCha" - + "nnelGroupRequest\032,.google.analytics.admi" - + "n.v1alpha.ChannelGroup\"Z\332A\024parent,channe" - + "l_group\202\323\344\223\002=\",/v1alpha/{parent=properti" - + "es/*}/channelGroups:\rchannel_group\022\354\001\n\022U" - + "pdateChannelGroup\0229.google.analytics.adm" - + "in.v1alpha.UpdateChannelGroupRequest\032,.g" - + "oogle.analytics.admin.v1alpha.ChannelGro" - + "up\"m\332A\031channel_group,update_mask\202\323\344\223\002K2:" - + "/v1alpha/{channel_group.name=properties/" - + "*/channelGroups/*}:\rchannel_group\022\244\001\n\022De" - + "leteChannelGroup\0229.google.analytics.admi" - + "n.v1alpha.DeleteChannelGroupRequest\032\026.go" - + "ogle.protobuf.Empty\";\332A\004name\202\323\344\223\002.*,/v1a" - + "lpha/{name=properties/*/channelGroups/*}" - + "\022\331\001\n\022CreateBigQueryLink\0229.google.analyti" - + "cs.admin.v1alpha.CreateBigQueryLinkReque" - + "st\032,.google.analytics.admin.v1alpha.BigQ" - + "ueryLink\"Z\332A\024parent,bigquery_link\202\323\344\223\002=\"" - + ",/v1alpha/{parent=properties/*}/bigQuery" - + "Links:\rbigquery_link\022\264\001\n\017GetBigQueryLink" - + "\0226.google.analytics.admin.v1alpha.GetBig" - + "QueryLinkRequest\032,.google.analytics.admi" - + "n.v1alpha.BigQueryLink\";\332A\004name\202\323\344\223\002.\022,/" - + "v1alpha/{name=properties/*/bigQueryLinks" - + "/*}\022\307\001\n\021ListBigQueryLinks\0228.google.analy" - + "tics.admin.v1alpha.ListBigQueryLinksRequ" - + "est\0329.google.analytics.admin.v1alpha.Lis" - + "tBigQueryLinksResponse\"=\332A\006parent\202\323\344\223\002.\022" - + ",/v1alpha/{parent=properties/*}/bigQuery" - + "Links\022\244\001\n\022DeleteBigQueryLink\0229.google.an" - + "alytics.admin.v1alpha.DeleteBigQueryLink" - + "Request\032\026.google.protobuf.Empty\";\332A\004name" - + "\202\323\344\223\002.*,/v1alpha/{name=properties/*/bigQ" - + "ueryLinks/*}\022\354\001\n\022UpdateBigQueryLink\0229.go" - + "ogle.analytics.admin.v1alpha.UpdateBigQu" - + "eryLinkRequest\032,.google.analytics.admin." - + "v1alpha.BigQueryLink\"m\332A\031bigquery_link,u" - + "pdate_mask\202\323\344\223\002K2:/v1alpha/{bigquery_lin" - + "k.name=properties/*/bigQueryLinks/*}:\rbi" - + "gquery_link\022\373\001\n\036GetEnhancedMeasurementSe" - + "ttings\022E.google.analytics.admin.v1alpha." - + "GetEnhancedMeasurementSettingsRequest\032;." - + "google.analytics.admin.v1alpha.EnhancedM" - + "easurementSettings\"U\332A\004name\202\323\344\223\002H\022F/v1al" - + "pha/{name=properties/*/dataStreams/*/enh" - + "ancedMeasurementSettings}\022\345\002\n!UpdateEnha" - + "ncedMeasurementSettings\022H.google.analyti" - + "cs.admin.v1alpha.UpdateEnhancedMeasureme" - + "ntSettingsRequest\032;.google.analytics.adm" - + "in.v1alpha.EnhancedMeasurementSettings\"\270" - + "\001\332A)enhanced_measurement_settings,update" - + "_mask\202\323\344\223\002\205\0012d/v1alpha/{enhanced_measure" - + "ment_settings.name=properties/*/dataStre" - + "ams/*/enhancedMeasurementSettings}:\035enha" - + "nced_measurement_settings\022\260\001\n\016GetAdSense" - + "Link\0225.google.analytics.admin.v1alpha.Ge" - + "tAdSenseLinkRequest\032+.google.analytics.a" - + "dmin.v1alpha.AdSenseLink\":\332A\004name\202\323\344\223\002-\022" - + "+/v1alpha/{name=properties/*/adSenseLink" - + "s/*}\022\323\001\n\021CreateAdSenseLink\0228.google.anal" - + "ytics.admin.v1alpha.CreateAdSenseLinkReq" - + "uest\032+.google.analytics.admin.v1alpha.Ad" - + "SenseLink\"W\332A\023parent,adsense_link\202\323\344\223\002;\"" - + "+/v1alpha/{parent=properties/*}/adSenseL" - + "inks:\014adsense_link\022\241\001\n\021DeleteAdSenseLink" - + "\0228.google.analytics.admin.v1alpha.Delete" - + "AdSenseLinkRequest\032\026.google.protobuf.Emp" - + "ty\":\332A\004name\202\323\344\223\002-*+/v1alpha/{name=proper" - + "ties/*/adSenseLinks/*}\022\303\001\n\020ListAdSenseLi" - + "nks\0227.google.analytics.admin.v1alpha.Lis" - + "tAdSenseLinksRequest\0328.google.analytics." - + "admin.v1alpha.ListAdSenseLinksResponse\"<" - + "\332A\006parent\202\323\344\223\002-\022+/v1alpha/{parent=proper" - + "ties/*}/adSenseLinks\022\316\001\n\022GetEventCreateR" - + "ule\0229.google.analytics.admin.v1alpha.Get" - + "EventCreateRuleRequest\032/.google.analytic" - + "s.admin.v1alpha.EventCreateRule\"L\332A\004name" - + "\202\323\344\223\002?\022=/v1alpha/{name=properties/*/data" - + "Streams/*/eventCreateRules/*}\022\341\001\n\024ListEv" - + "entCreateRules\022;.google.analytics.admin." - + "v1alpha.ListEventCreateRulesRequest\032<.go" - + "ogle.analytics.admin.v1alpha.ListEventCr" - + "eateRulesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1a" - + "lpha/{parent=properties/*/dataStreams/*}" - + "/eventCreateRules\022\373\001\n\025CreateEventCreateR" - + "ule\022<.google.analytics.admin.v1alpha.Cre" - + "ateEventCreateRuleRequest\032/.google.analy" - + "tics.admin.v1alpha.EventCreateRule\"s\332A\030p" - + "arent,event_create_rule\202\323\344\223\002R\"=/v1alpha/" - + "{parent=properties/*/dataStreams/*}/even" - + "tCreateRules:\021event_create_rule\022\223\002\n\025Upda" - + "teEventCreateRule\022<.google.analytics.adm" - + "in.v1alpha.UpdateEventCreateRuleRequest\032" + + "n.v1alpha.DeleteExpandedDataSetRequest\032\026" + + ".google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*//" + + "v1alpha/{name=properties/*/expandedDataS" + + "ets/*}\022\264\001\n\017GetChannelGroup\0226.google.anal" + + "ytics.admin.v1alpha.GetChannelGroupReque" + + "st\032,.google.analytics.admin.v1alpha.Chan" + + "nelGroup\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=" + + "properties/*/channelGroups/*}\022\307\001\n\021ListCh" + + "annelGroups\0228.google.analytics.admin.v1a" + + "lpha.ListChannelGroupsRequest\0329.google.a" + + "nalytics.admin.v1alpha.ListChannelGroups" + + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{par" + + "ent=properties/*}/channelGroups\022\331\001\n\022Crea" + + "teChannelGroup\0229.google.analytics.admin." + + "v1alpha.CreateChannelGroupRequest\032,.goog" + + "le.analytics.admin.v1alpha.ChannelGroup\"" + + "Z\332A\024parent,channel_group\202\323\344\223\002=\",/v1alpha" + + "/{parent=properties/*}/channelGroups:\rch" + + "annel_group\022\354\001\n\022UpdateChannelGroup\0229.goo" + + "gle.analytics.admin.v1alpha.UpdateChanne" + + "lGroupRequest\032,.google.analytics.admin.v" + + "1alpha.ChannelGroup\"m\332A\031channel_group,up" + + "date_mask\202\323\344\223\002K2:/v1alpha/{channel_group" + + ".name=properties/*/channelGroups/*}:\rcha" + + "nnel_group\022\244\001\n\022DeleteChannelGroup\0229.goog" + + "le.analytics.admin.v1alpha.DeleteChannel" + + "GroupRequest\032\026.google.protobuf.Empty\";\332A" + + "\004name\202\323\344\223\002.*,/v1alpha/{name=properties/*" + + "/channelGroups/*}\022\331\001\n\022CreateBigQueryLink" + + "\0229.google.analytics.admin.v1alpha.Create" + + "BigQueryLinkRequest\032,.google.analytics.a" + + "dmin.v1alpha.BigQueryLink\"Z\332A\024parent,big" + + "query_link\202\323\344\223\002=\",/v1alpha/{parent=prope" + + "rties/*}/bigQueryLinks:\rbigquery_link\022\264\001" + + "\n\017GetBigQueryLink\0226.google.analytics.adm" + + "in.v1alpha.GetBigQueryLinkRequest\032,.goog" + + "le.analytics.admin.v1alpha.BigQueryLink\"" + + ";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=propertie" + + "s/*/bigQueryLinks/*}\022\307\001\n\021ListBigQueryLin" + + "ks\0228.google.analytics.admin.v1alpha.List" + + "BigQueryLinksRequest\0329.google.analytics." + + "admin.v1alpha.ListBigQueryLinksResponse\"" + + "=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{parent=prope" + + "rties/*}/bigQueryLinks\022\244\001\n\022DeleteBigQuer" + + "yLink\0229.google.analytics.admin.v1alpha.D" + + "eleteBigQueryLinkRequest\032\026.google.protob" + + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" + + "properties/*/bigQueryLinks/*}\022\354\001\n\022Update" + + "BigQueryLink\0229.google.analytics.admin.v1" + + "alpha.UpdateBigQueryLinkRequest\032,.google" + + ".analytics.admin.v1alpha.BigQueryLink\"m\332" + + "A\031bigquery_link,update_mask\202\323\344\223\002K2:/v1al" + + "pha/{bigquery_link.name=properties/*/big" + + "QueryLinks/*}:\rbigquery_link\022\373\001\n\036GetEnha" + + "ncedMeasurementSettings\022E.google.analyti" + + "cs.admin.v1alpha.GetEnhancedMeasurementS" + + "ettingsRequest\032;.google.analytics.admin." + + "v1alpha.EnhancedMeasurementSettings\"U\332A\004" + + "name\202\323\344\223\002H\022F/v1alpha/{name=properties/*/" + + "dataStreams/*/enhancedMeasurementSetting" + + "s}\022\345\002\n!UpdateEnhancedMeasurementSettings" + + "\022H.google.analytics.admin.v1alpha.Update" + + "EnhancedMeasurementSettingsRequest\032;.goo" + + "gle.analytics.admin.v1alpha.EnhancedMeas" + + "urementSettings\"\270\001\332A)enhanced_measuremen" + + "t_settings,update_mask\202\323\344\223\002\205\0012d/v1alpha/" + + "{enhanced_measurement_settings.name=prop" + + "erties/*/dataStreams/*/enhancedMeasureme" + + "ntSettings}:\035enhanced_measurement_settin" + + "gs\022\260\001\n\016GetAdSenseLink\0225.google.analytics" + + ".admin.v1alpha.GetAdSenseLinkRequest\032+.g" + + "oogle.analytics.admin.v1alpha.AdSenseLin" + + "k\":\332A\004name\202\323\344\223\002-\022+/v1alpha/{name=propert" + + "ies/*/adSenseLinks/*}\022\323\001\n\021CreateAdSenseL" + + "ink\0228.google.analytics.admin.v1alpha.Cre" + + "ateAdSenseLinkRequest\032+.google.analytics" + + ".admin.v1alpha.AdSenseLink\"W\332A\023parent,ad" + + "sense_link\202\323\344\223\002;\"+/v1alpha/{parent=prope" + + "rties/*}/adSenseLinks:\014adsense_link\022\241\001\n\021" + + "DeleteAdSenseLink\0228.google.analytics.adm" + + "in.v1alpha.DeleteAdSenseLinkRequest\032\026.go" + + "ogle.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v1a" + + "lpha/{name=properties/*/adSenseLinks/*}\022" + + "\303\001\n\020ListAdSenseLinks\0227.google.analytics." + + "admin.v1alpha.ListAdSenseLinksRequest\0328." + + "google.analytics.admin.v1alpha.ListAdSen" + + "seLinksResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1alp" + + "ha/{parent=properties/*}/adSenseLinks\022\316\001" + + "\n\022GetEventCreateRule\0229.google.analytics." + + "admin.v1alpha.GetEventCreateRuleRequest\032" + "/.google.analytics.admin.v1alpha.EventCr" - + "eateRule\"\212\001\332A\035event_create_rule,update_m" - + "ask\202\323\344\223\002d2O/v1alpha/{event_create_rule.n" - + "ame=properties/*/dataStreams/*/eventCrea" - + "teRules/*}:\021event_create_rule\022\273\001\n\025Delete" - + "EventCreateRule\022<.google.analytics.admin" - + ".v1alpha.DeleteEventCreateRuleRequest\032\026." - + "google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v" - + "1alpha/{name=properties/*/dataStreams/*/" - + "eventCreateRules/*}\022\306\001\n\020GetEventEditRule" - + "\0227.google.analytics.admin.v1alpha.GetEve" - + "ntEditRuleRequest\032-.google.analytics.adm" - + "in.v1alpha.EventEditRule\"J\332A\004name\202\323\344\223\002=\022" - + ";/v1alpha/{name=properties/*/dataStreams" - + "/*/eventEditRules/*}\022\331\001\n\022ListEventEditRu" - + "les\0229.google.analytics.admin.v1alpha.Lis" - + "tEventEditRulesRequest\032:.google.analytic" - + "s.admin.v1alpha.ListEventEditRulesRespon" - + "se\"L\332A\006parent\202\323\344\223\002=\022;/v1alpha/{parent=pr" - + "operties/*/dataStreams/*}/eventEditRules" - + "\022\357\001\n\023CreateEventEditRule\022:.google.analyt" - + "ics.admin.v1alpha.CreateEventEditRuleReq" - + "uest\032-.google.analytics.admin.v1alpha.Ev" - + "entEditRule\"m\332A\026parent,event_edit_rule\202\323" - + "\344\223\002N\";/v1alpha/{parent=properties/*/data" - + "Streams/*}/eventEditRules:\017event_edit_ru" - + "le\022\205\002\n\023UpdateEventEditRule\022:.google.anal" - + "ytics.admin.v1alpha.UpdateEventEditRuleR" - + "equest\032-.google.analytics.admin.v1alpha." - + "EventEditRule\"\202\001\332A\033event_edit_rule,updat" - + "e_mask\202\323\344\223\002^2K/v1alpha/{event_edit_rule." - + "name=properties/*/dataStreams/*/eventEdi" - + "tRules/*}:\017event_edit_rule\022\265\001\n\023DeleteEve" - + "ntEditRule\022:.google.analytics.admin.v1al" - + "pha.DeleteEventEditRuleRequest\032\026.google." - + "protobuf.Empty\"J\332A\004name\202\323\344\223\002=*;/v1alpha/" - + "{name=properties/*/dataStreams/*/eventEd" - + "itRules/*}\022\275\001\n\025ReorderEventEditRules\022<.g" - + "oogle.analytics.admin.v1alpha.ReorderEve" - + "ntEditRulesRequest\032\026.google.protobuf.Emp" - + "ty\"N\202\323\344\223\002H\"C/v1alpha/{parent=properties/" - + "*/dataStreams/*}/eventEditRules:reorder:" - + "\001*\022\272\002\n\033UpdateDataRedactionSettings\022B.goo" - + "gle.analytics.admin.v1alpha.UpdateDataRe" - + "dactionSettingsRequest\0325.google.analytic" - + "s.admin.v1alpha.DataRedactionSettings\"\237\001" - + "\332A#data_redaction_settings,update_mask\202\323" - + "\344\223\002s2X/v1alpha/{data_redaction_settings." - + "name=properties/*/dataStreams/*/dataReda" - + "ctionSettings}:\027data_redaction_settings\022" - + "\343\001\n\030GetDataRedactionSettings\022?.google.an" - + "alytics.admin.v1alpha.GetDataRedactionSe" - + "ttingsRequest\0325.google.analytics.admin.v" - + "1alpha.DataRedactionSettings\"O\332A\004name\202\323\344" - + "\223\002B\022@/v1alpha/{name=properties/*/dataStr" - + "eams/*/dataRedactionSettings}\022\304\001\n\023GetCal" - + "culatedMetric\022:.google.analytics.admin.v" - + "1alpha.GetCalculatedMetricRequest\0320.goog" - + "le.analytics.admin.v1alpha.CalculatedMet" - + "ric\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{name=prope" - + "rties/*/calculatedMetrics/*}\022\206\002\n\026CreateC" - + "alculatedMetric\022=.google.analytics.admin" - + ".v1alpha.CreateCalculatedMetricRequest\0320" - + ".google.analytics.admin.v1alpha.Calculat" - + "edMetric\"{\332A-parent,calculated_metric,ca" - + "lculated_metric_id\202\323\344\223\002E\"0/v1alpha/{pare" - + "nt=properties/*}/calculatedMetrics:\021calc" - + "ulated_metric\022\327\001\n\025ListCalculatedMetrics\022" - + "<.google.analytics.admin.v1alpha.ListCal" - + "culatedMetricsRequest\032=.google.analytics" - + ".admin.v1alpha.ListCalculatedMetricsResp" - + "onse\"A\332A\006parent\202\323\344\223\0022\0220/v1alpha/{parent=" - + "properties/*}/calculatedMetrics\022\210\002\n\026Upda" - + "teCalculatedMetric\022=.google.analytics.ad" - + "min.v1alpha.UpdateCalculatedMetricReques" - + "t\0320.google.analytics.admin.v1alpha.Calcu" - + "latedMetric\"}\332A\035calculated_metric,update" - + "_mask\202\323\344\223\002W2B/v1alpha/{calculated_metric" - + ".name=properties/*/calculatedMetrics/*}:" - + "\021calculated_metric\022\260\001\n\026DeleteCalculatedM" - + "etric\022=.google.analytics.admin.v1alpha.D" - + "eleteCalculatedMetricRequest\032\026.google.pr" - + "otobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alpha/{n" - + "ame=properties/*/calculatedMetrics/*}\022\306\001" - + "\n\024CreateRollupProperty\022;.google.analytic" - + "s.admin.v1alpha.CreateRollupPropertyRequ" - + "est\032<.google.analytics.admin.v1alpha.Cre" - + "ateRollupPropertyResponse\"3\202\323\344\223\002-\"(/v1al" - + "pha/properties:createRollupProperty:\001*\022\344" - + "\001\n\033GetRollupPropertySourceLink\022B.google." - + "analytics.admin.v1alpha.GetRollupPropert" - + "ySourceLinkRequest\0328.google.analytics.ad" - + "min.v1alpha.RollupPropertySourceLink\"G\332A" - + "\004name\202\323\344\223\002:\0228/v1alpha/{name=properties/*" - + "/rollupPropertySourceLinks/*}\022\367\001\n\035ListRo" - + "llupPropertySourceLinks\022D.google.analyti" - + "cs.admin.v1alpha.ListRollupPropertySourc" - + "eLinksRequest\032E.google.analytics.admin.v" - + "1alpha.ListRollupPropertySourceLinksResp" - + "onse\"I\332A\006parent\202\323\344\223\002:\0228/v1alpha/{parent=" - + "properties/*}/rollupPropertySourceLinks\022" - + "\246\002\n\036CreateRollupPropertySourceLink\022E.goo" - + "gle.analytics.admin.v1alpha.CreateRollup" - + "PropertySourceLinkRequest\0328.google.analy" - + "tics.admin.v1alpha.RollupPropertySourceL" - + "ink\"\202\001\332A\"parent,rollup_property_source_l" - + "ink\202\323\344\223\002W\"8/v1alpha/{parent=properties/*" - + "}/rollupPropertySourceLinks:\033rollup_prop" - + "erty_source_link\022\310\001\n\036DeleteRollupPropert" + + "eateRule\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=" + + "properties/*/dataStreams/*/eventCreateRu" + + "les/*}\022\341\001\n\024ListEventCreateRules\022;.google" + + ".analytics.admin.v1alpha.ListEventCreate" + + "RulesRequest\032<.google.analytics.admin.v1" + + "alpha.ListEventCreateRulesResponse\"N\332A\006p" + + "arent\202\323\344\223\002?\022=/v1alpha/{parent=properties" + + "/*/dataStreams/*}/eventCreateRules\022\373\001\n\025C" + + "reateEventCreateRule\022<.google.analytics." + + "admin.v1alpha.CreateEventCreateRuleReque" + + "st\032/.google.analytics.admin.v1alpha.Even" + + "tCreateRule\"s\332A\030parent,event_create_rule" + + "\202\323\344\223\002R\"=/v1alpha/{parent=properties/*/da" + + "taStreams/*}/eventCreateRules:\021event_cre" + + "ate_rule\022\223\002\n\025UpdateEventCreateRule\022<.goo" + + "gle.analytics.admin.v1alpha.UpdateEventC" + + "reateRuleRequest\032/.google.analytics.admi" + + "n.v1alpha.EventCreateRule\"\212\001\332A\035event_cre" + + "ate_rule,update_mask\202\323\344\223\002d2O/v1alpha/{ev" + + "ent_create_rule.name=properties/*/dataSt" + + "reams/*/eventCreateRules/*}:\021event_creat" + + "e_rule\022\273\001\n\025DeleteEventCreateRule\022<.googl" + + "e.analytics.admin.v1alpha.DeleteEventCre" + + "ateRuleRequest\032\026.google.protobuf.Empty\"L" + + "\332A\004name\202\323\344\223\002?*=/v1alpha/{name=properties" + + "/*/dataStreams/*/eventCreateRules/*}\022\306\001\n" + + "\020GetEventEditRule\0227.google.analytics.adm" + + "in.v1alpha.GetEventEditRuleRequest\032-.goo" + + "gle.analytics.admin.v1alpha.EventEditRul" + + "e\"J\332A\004name\202\323\344\223\002=\022;/v1alpha/{name=propert" + + "ies/*/dataStreams/*/eventEditRules/*}\022\331\001" + + "\n\022ListEventEditRules\0229.google.analytics." + + "admin.v1alpha.ListEventEditRulesRequest\032" + + ":.google.analytics.admin.v1alpha.ListEve" + + "ntEditRulesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v" + + "1alpha/{parent=properties/*/dataStreams/" + + "*}/eventEditRules\022\357\001\n\023CreateEventEditRul" + + "e\022:.google.analytics.admin.v1alpha.Creat" + + "eEventEditRuleRequest\032-.google.analytics" + + ".admin.v1alpha.EventEditRule\"m\332A\026parent," + + "event_edit_rule\202\323\344\223\002N\";/v1alpha/{parent=" + + "properties/*/dataStreams/*}/eventEditRul" + + "es:\017event_edit_rule\022\205\002\n\023UpdateEventEditR" + + "ule\022:.google.analytics.admin.v1alpha.Upd" + + "ateEventEditRuleRequest\032-.google.analyti" + + "cs.admin.v1alpha.EventEditRule\"\202\001\332A\033even" + + "t_edit_rule,update_mask\202\323\344\223\002^2K/v1alpha/" + + "{event_edit_rule.name=properties/*/dataS" + + "treams/*/eventEditRules/*}:\017event_edit_r" + + "ule\022\265\001\n\023DeleteEventEditRule\022:.google.ana" + + "lytics.admin.v1alpha.DeleteEventEditRule" + + "Request\032\026.google.protobuf.Empty\"J\332A\004name" + + "\202\323\344\223\002=*;/v1alpha/{name=properties/*/data" + + "Streams/*/eventEditRules/*}\022\275\001\n\025ReorderE" + + "ventEditRules\022<.google.analytics.admin.v" + + "1alpha.ReorderEventEditRulesRequest\032\026.go" + + "ogle.protobuf.Empty\"N\202\323\344\223\002H\"C/v1alpha/{p" + + "arent=properties/*/dataStreams/*}/eventE" + + "ditRules:reorder:\001*\022\272\002\n\033UpdateDataRedact" + + "ionSettings\022B.google.analytics.admin.v1a" + + "lpha.UpdateDataRedactionSettingsRequest\032" + + "5.google.analytics.admin.v1alpha.DataRed" + + "actionSettings\"\237\001\332A#data_redaction_setti" + + "ngs,update_mask\202\323\344\223\002s2X/v1alpha/{data_re" + + "daction_settings.name=properties/*/dataS" + + "treams/*/dataRedactionSettings}:\027data_re" + + "daction_settings\022\343\001\n\030GetDataRedactionSet" + + "tings\022?.google.analytics.admin.v1alpha.G" + + "etDataRedactionSettingsRequest\0325.google." + + "analytics.admin.v1alpha.DataRedactionSet" + + "tings\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{name=pro" + + "perties/*/dataStreams/*/dataRedactionSet" + + "tings}\022\304\001\n\023GetCalculatedMetric\022:.google." + + "analytics.admin.v1alpha.GetCalculatedMet" + + "ricRequest\0320.google.analytics.admin.v1al" + + "pha.CalculatedMetric\"?\332A\004name\202\323\344\223\0022\0220/v1" + + "alpha/{name=properties/*/calculatedMetri" + + "cs/*}\022\206\002\n\026CreateCalculatedMetric\022=.googl" + + "e.analytics.admin.v1alpha.CreateCalculat" + + "edMetricRequest\0320.google.analytics.admin" + + ".v1alpha.CalculatedMetric\"{\332A-parent,cal" + + "culated_metric,calculated_metric_id\202\323\344\223\002" + + "E\"0/v1alpha/{parent=properties/*}/calcul" + + "atedMetrics:\021calculated_metric\022\327\001\n\025ListC" + + "alculatedMetrics\022<.google.analytics.admi" + + "n.v1alpha.ListCalculatedMetricsRequest\032=" + + ".google.analytics.admin.v1alpha.ListCalc" + + "ulatedMetricsResponse\"A\332A\006parent\202\323\344\223\0022\0220" + + "/v1alpha/{parent=properties/*}/calculate" + + "dMetrics\022\210\002\n\026UpdateCalculatedMetric\022=.go" + + "ogle.analytics.admin.v1alpha.UpdateCalcu" + + "latedMetricRequest\0320.google.analytics.ad" + + "min.v1alpha.CalculatedMetric\"}\332A\035calcula" + + "ted_metric,update_mask\202\323\344\223\002W2B/v1alpha/{" + + "calculated_metric.name=properties/*/calc" + + "ulatedMetrics/*}:\021calculated_metric\022\260\001\n\026" + + "DeleteCalculatedMetric\022=.google.analytic" + + "s.admin.v1alpha.DeleteCalculatedMetricRe" + + "quest\032\026.google.protobuf.Empty\"?\332A\004name\202\323" + + "\344\223\0022*0/v1alpha/{name=properties/*/calcul" + + "atedMetrics/*}\022\306\001\n\024CreateRollupProperty\022" + + ";.google.analytics.admin.v1alpha.CreateR" + + "ollupPropertyRequest\032<.google.analytics." + + "admin.v1alpha.CreateRollupPropertyRespon" + + "se\"3\202\323\344\223\002-\"(/v1alpha/properties:createRo" + + "llupProperty:\001*\022\344\001\n\033GetRollupPropertySou" + + "rceLink\022B.google.analytics.admin.v1alpha" + + ".GetRollupPropertySourceLinkRequest\0328.go" + + "ogle.analytics.admin.v1alpha.RollupPrope" + + "rtySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{" + + "name=properties/*/rollupPropertySourceLi" + + "nks/*}\022\367\001\n\035ListRollupPropertySourceLinks" + + "\022D.google.analytics.admin.v1alpha.ListRo" + + "llupPropertySourceLinksRequest\032E.google." + + "analytics.admin.v1alpha.ListRollupProper" + + "tySourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228" + + "/v1alpha/{parent=properties/*}/rollupPro" + + "pertySourceLinks\022\246\002\n\036CreateRollupPropert" + "ySourceLink\022E.google.analytics.admin.v1a" - + "lpha.DeleteRollupPropertySourceLinkReque" - + "st\032\026.google.protobuf.Empty\"G\332A\004name\202\323\344\223\002" - + ":*8/v1alpha/{name=properties/*/rollupPro" - + "pertySourceLinks/*}\022\306\001\n\024ProvisionSubprop" - + "erty\022;.google.analytics.admin.v1alpha.Pr" - + "ovisionSubpropertyRequest\032<.google.analy" - + "tics.admin.v1alpha.ProvisionSubpropertyR" - + "esponse\"3\202\323\344\223\002-\"(/v1alpha/properties:pro" - + "visionSubproperty:\001*\022\227\002\n\034CreateSubproper" - + "tyEventFilter\022C.google.analytics.admin.v" - + "1alpha.CreateSubpropertyEventFilterReque" - + "st\0326.google.analytics.admin.v1alpha.Subp" - + "ropertyEventFilter\"z\332A\037parent,subpropert" - + "y_event_filter\202\323\344\223\002R\"6/v1alpha/{parent=p" - + "roperties/*}/subpropertyEventFilters:\030su" - + "bproperty_event_filter\022\334\001\n\031GetSubpropert" - + "yEventFilter\022@.google.analytics.admin.v1" - + "alpha.GetSubpropertyEventFilterRequest\0326" - + ".google.analytics.admin.v1alpha.Subprope" - + "rtyEventFilter\"E\332A\004name\202\323\344\223\0028\0226/v1alpha/" - + "{name=properties/*/subpropertyEventFilte" - + "rs/*}\022\357\001\n\033ListSubpropertyEventFilters\022B." - + "google.analytics.admin.v1alpha.ListSubpr" - + "opertyEventFiltersRequest\032C.google.analy" - + "tics.admin.v1alpha.ListSubpropertyEventF" - + "iltersResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1alph" - + "a/{parent=properties/*}/subpropertyEvent" - + "Filters\022\266\002\n\034UpdateSubpropertyEventFilter" - + "\022C.google.analytics.admin.v1alpha.Update" - + "SubpropertyEventFilterRequest\0326.google.a" - + "nalytics.admin.v1alpha.SubpropertyEventF" - + "ilter\"\230\001\332A$subproperty_event_filter,upda" - + "te_mask\202\323\344\223\002k2O/v1alpha/{subproperty_eve" - + "nt_filter.name=properties/*/subpropertyE" - + "ventFilters/*}:\030subproperty_event_filter" - + "\022\302\001\n\034DeleteSubpropertyEventFilter\022C.goog" - + "le.analytics.admin.v1alpha.DeleteSubprop" - + "ertyEventFilterRequest\032\026.google.protobuf" - + ".Empty\"E\332A\004name\202\323\344\223\0028*6/v1alpha/{name=pr" - + "operties/*/subpropertyEventFilters/*}\022\235\002" - + "\n\035CreateReportingDataAnnotation\022D.google" - + ".analytics.admin.v1alpha.CreateReporting" - + "DataAnnotationRequest\0327.google.analytics" - + ".admin.v1alpha.ReportingDataAnnotation\"}" - + "\332A parent,reporting_data_annotation\202\323\344\223\002" - + "T\"7/v1alpha/{parent=properties/*}/report" - + "ingDataAnnotations:\031reporting_data_annot" - + "ation\022\340\001\n\032GetReportingDataAnnotation\022A.g" - + "oogle.analytics.admin.v1alpha.GetReporti" - + "ngDataAnnotationRequest\0327.google.analyti" - + "cs.admin.v1alpha.ReportingDataAnnotation" - + "\"F\332A\004name\202\323\344\223\0029\0227/v1alpha/{name=properti" - + "es/*/reportingDataAnnotations/*}\022\363\001\n\034Lis" - + "tReportingDataAnnotations\022C.google.analy" - + "tics.admin.v1alpha.ListReportingDataAnno" - + "tationsRequest\032D.google.analytics.admin." - + "v1alpha.ListReportingDataAnnotationsResp" - + "onse\"H\332A\006parent\202\323\344\223\0029\0227/v1alpha/{parent=" - + "properties/*}/reportingDataAnnotations\022\275" - + "\002\n\035UpdateReportingDataAnnotation\022D.googl" - + "e.analytics.admin.v1alpha.UpdateReportin" - + "gDataAnnotationRequest\0327.google.analytic" - + "s.admin.v1alpha.ReportingDataAnnotation\"" - + "\234\001\332A%reporting_data_annotation,update_ma" - + "sk\202\323\344\223\002n2Q/v1alpha/{reporting_data_annot" - + "ation.name=properties/*/reportingDataAnn" - + "otations/*}:\031reporting_data_annotation\022\305" - + "\001\n\035DeleteReportingDataAnnotation\022D.googl" - + "e.analytics.admin.v1alpha.DeleteReportin" - + "gDataAnnotationRequest\032\026.google.protobuf" - + ".Empty\"F\332A\004name\202\323\344\223\0029*7/v1alpha/{name=pr" - + "operties/*/reportingDataAnnotations/*}\022\316" - + "\001\n\022SubmitUserDeletion\0229.google.analytics" - + ".admin.v1alpha.SubmitUserDeletionRequest" - + "\032:.google.analytics.admin.v1alpha.Submit" - + "UserDeletionResponse\"A\332A\004name\202\323\344\223\0024\"//v1" - + "alpha/{name=properties/*}:submitUserDele" - + "tion:\001*\022\353\001\n\032ListSubpropertySyncConfigs\022A" - + ".google.analytics.admin.v1alpha.ListSubp" - + "ropertySyncConfigsRequest\032B.google.analy" - + "tics.admin.v1alpha.ListSubpropertySyncCo" - + "nfigsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1alpha" - + "/{parent=properties/*}/subpropertySyncCo" - + "nfigs\022\257\002\n\033UpdateSubpropertySyncConfig\022B." - + "google.analytics.admin.v1alpha.UpdateSub" - + "propertySyncConfigRequest\0325.google.analy" - + "tics.admin.v1alpha.SubpropertySyncConfig" - + "\"\224\001\332A#subproperty_sync_config,update_mas" - + "k\202\323\344\223\002h2M/v1alpha/{subproperty_sync_conf" - + "ig.name=properties/*/subpropertySyncConf" - + "igs/*}:\027subproperty_sync_config\022\330\001\n\030GetS" - + "ubpropertySyncConfig\022?.google.analytics.", - "admin.v1alpha.GetSubpropertySyncConfigRe" - + "quest\0325.google.analytics.admin.v1alpha.S" - + "ubpropertySyncConfig\"D\332A\004name\202\323\344\223\0027\0225/v1" - + "alpha/{name=properties/*/subpropertySync" - + "Configs/*}\022\345\001\n\034GetReportingIdentitySetti" - + "ngs\022C.google.analytics.admin.v1alpha.Get" - + "ReportingIdentitySettingsRequest\0329.googl" - + "e.analytics.admin.v1alpha.ReportingIdent" - + "itySettings\"E\332A\004name\202\323\344\223\0028\0226/v1alpha/{na" - + "me=properties/*/reportingIdentitySetting" - + "s}\032\374\001\312A\035analyticsadmin.googleapis.com\322A\330" - + "\001https://www.googleapis.com/auth/analyti" - + "cs.edit,https://www.googleapis.com/auth/" - + "analytics.manage.users,https://www.googl" - + "eapis.com/auth/analytics.manage.users.re" - + "adonly,https://www.googleapis.com/auth/a" - + "nalytics.readonlyB{\n\"com.google.analytic" - + "s.admin.v1alphaB\023AnalyticsAdminProtoP\001Z>" - + "cloud.google.com/go/analytics/admin/apiv" - + "1alpha/adminpb;adminpbb\006proto3" + + "lpha.CreateRollupPropertySourceLinkReque" + + "st\0328.google.analytics.admin.v1alpha.Roll" + + "upPropertySourceLink\"\202\001\332A\"parent,rollup_" + + "property_source_link\202\323\344\223\002W\"8/v1alpha/{pa" + + "rent=properties/*}/rollupPropertySourceL" + + "inks:\033rollup_property_source_link\022\310\001\n\036De" + + "leteRollupPropertySourceLink\022E.google.an" + + "alytics.admin.v1alpha.DeleteRollupProper" + + "tySourceLinkRequest\032\026.google.protobuf.Em" + + "pty\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=prope" + + "rties/*/rollupPropertySourceLinks/*}\022\306\001\n" + + "\024ProvisionSubproperty\022;.google.analytics" + + ".admin.v1alpha.ProvisionSubpropertyReque" + + "st\032<.google.analytics.admin.v1alpha.Prov" + + "isionSubpropertyResponse\"3\202\323\344\223\002-\"(/v1alp" + + "ha/properties:provisionSubproperty:\001*\022\227\002" + + "\n\034CreateSubpropertyEventFilter\022C.google." + + "analytics.admin.v1alpha.CreateSubpropert" + + "yEventFilterRequest\0326.google.analytics.a" + + "dmin.v1alpha.SubpropertyEventFilter\"z\332A\037" + + "parent,subproperty_event_filter\202\323\344\223\002R\"6/" + + "v1alpha/{parent=properties/*}/subpropert" + + "yEventFilters:\030subproperty_event_filter\022" + + "\334\001\n\031GetSubpropertyEventFilter\022@.google.a" + + "nalytics.admin.v1alpha.GetSubpropertyEve" + + "ntFilterRequest\0326.google.analytics.admin" + + ".v1alpha.SubpropertyEventFilter\"E\332A\004name" + + "\202\323\344\223\0028\0226/v1alpha/{name=properties/*/subp" + + "ropertyEventFilters/*}\022\357\001\n\033ListSubproper" + + "tyEventFilters\022B.google.analytics.admin." + + "v1alpha.ListSubpropertyEventFiltersReque" + + "st\032C.google.analytics.admin.v1alpha.List" + + "SubpropertyEventFiltersResponse\"G\332A\006pare" + + "nt\202\323\344\223\0028\0226/v1alpha/{parent=properties/*}" + + "/subpropertyEventFilters\022\266\002\n\034UpdateSubpr" + + "opertyEventFilter\022C.google.analytics.adm" + + "in.v1alpha.UpdateSubpropertyEventFilterR" + + "equest\0326.google.analytics.admin.v1alpha." + + "SubpropertyEventFilter\"\230\001\332A$subproperty_" + + "event_filter,update_mask\202\323\344\223\002k2O/v1alpha" + + "/{subproperty_event_filter.name=properti" + + "es/*/subpropertyEventFilters/*}:\030subprop" + + "erty_event_filter\022\302\001\n\034DeleteSubpropertyE" + + "ventFilter\022C.google.analytics.admin.v1al" + + "pha.DeleteSubpropertyEventFilterRequest\032" + + "\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6" + + "/v1alpha/{name=properties/*/subpropertyE" + + "ventFilters/*}\022\235\002\n\035CreateReportingDataAn" + + "notation\022D.google.analytics.admin.v1alph" + + "a.CreateReportingDataAnnotationRequest\0327" + + ".google.analytics.admin.v1alpha.Reportin" + + "gDataAnnotation\"}\332A parent,reporting_dat" + + "a_annotation\202\323\344\223\002T\"7/v1alpha/{parent=pro" + + "perties/*}/reportingDataAnnotations:\031rep" + + "orting_data_annotation\022\340\001\n\032GetReportingD" + + "ataAnnotation\022A.google.analytics.admin.v" + + "1alpha.GetReportingDataAnnotationRequest" + + "\0327.google.analytics.admin.v1alpha.Report" + + "ingDataAnnotation\"F\332A\004name\202\323\344\223\0029\0227/v1alp" + + "ha/{name=properties/*/reportingDataAnnot" + + "ations/*}\022\363\001\n\034ListReportingDataAnnotatio" + + "ns\022C.google.analytics.admin.v1alpha.List" + + "ReportingDataAnnotationsRequest\032D.google" + + ".analytics.admin.v1alpha.ListReportingDa" + + "taAnnotationsResponse\"H\332A\006parent\202\323\344\223\0029\0227" + + "/v1alpha/{parent=properties/*}/reporting" + + "DataAnnotations\022\275\002\n\035UpdateReportingDataA" + + "nnotation\022D.google.analytics.admin.v1alp" + + "ha.UpdateReportingDataAnnotationRequest\032" + + "7.google.analytics.admin.v1alpha.Reporti" + + "ngDataAnnotation\"\234\001\332A%reporting_data_ann" + + "otation,update_mask\202\323\344\223\002n2Q/v1alpha/{rep" + + "orting_data_annotation.name=properties/*" + + "/reportingDataAnnotations/*}:\031reporting_" + + "data_annotation\022\305\001\n\035DeleteReportingDataA" + + "nnotation\022D.google.analytics.admin.v1alp" + + "ha.DeleteReportingDataAnnotationRequest\032" + + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7" + + "/v1alpha/{name=properties/*/reportingDat" + + "aAnnotations/*}\022\316\001\n\022SubmitUserDeletion\0229" + + ".google.analytics.admin.v1alpha.SubmitUs" + + "erDeletionRequest\032:.google.analytics.adm" + + "in.v1alpha.SubmitUserDeletionResponse\"A\332" + + "A\004name\202\323\344\223\0024\"//v1alpha/{name=properties/" + + "*}:submitUserDeletion:\001*\022\353\001\n\032ListSubprop" + + "ertySyncConfigs\022A.google.analytics.admin" + + ".v1alpha.ListSubpropertySyncConfigsReque" + + "st\032B.google.analytics.admin.v1alpha.List" + + "SubpropertySyncConfigsResponse\"F\332A\006paren" + + "t\202\323\344\223\0027\0225/v1alpha/{parent=properties/*}/" + + "subpropertySyncConfigs\022\257\002\n\033UpdateSubprop" + + "ertySyncConfig\022B.google.analytics.admin." + + "v1alpha.UpdateSubpropertySyncConfigReque" + + "st\0325.google.analytics.admin.v1alpha.Subp", + "ropertySyncConfig\"\224\001\332A#subproperty_sync_" + + "config,update_mask\202\323\344\223\002h2M/v1alpha/{subp" + + "roperty_sync_config.name=properties/*/su" + + "bpropertySyncConfigs/*}:\027subproperty_syn" + + "c_config\022\330\001\n\030GetSubpropertySyncConfig\022?." + + "google.analytics.admin.v1alpha.GetSubpro" + + "pertySyncConfigRequest\0325.google.analytic" + + "s.admin.v1alpha.SubpropertySyncConfig\"D\332" + + "A\004name\202\323\344\223\0027\0225/v1alpha/{name=properties/" + + "*/subpropertySyncConfigs/*}\022\345\001\n\034GetRepor" + + "tingIdentitySettings\022C.google.analytics." + + "admin.v1alpha.GetReportingIdentitySettin" + + "gsRequest\0329.google.analytics.admin.v1alp" + + "ha.ReportingIdentitySettings\"E\332A\004name\202\323\344" + + "\223\0028\0226/v1alpha/{name=properties/*/reporti" + + "ngIdentitySettings}\022\341\001\n\033GetUserProvidedD" + + "ataSettings\022B.google.analytics.admin.v1a" + + "lpha.GetUserProvidedDataSettingsRequest\032" + + "8.google.analytics.admin.v1alpha.UserPro" + + "videdDataSettings\"D\332A\004name\202\323\344\223\0027\0225/v1alp" + + "ha/{name=properties/*/userProvidedDataSe" + + "ttings}\032\374\001\312A\035analyticsadmin.googleapis.c" + + "om\322A\330\001https://www.googleapis.com/auth/an" + + "alytics.edit,https://www.googleapis.com/" + + "auth/analytics.manage.users,https://www." + + "googleapis.com/auth/analytics.manage.use" + + "rs.readonly,https://www.googleapis.com/a" + + "uth/analytics.readonlyB{\n\"com.google.ana" + + "lytics.admin.v1alphaB\023AnalyticsAdminProt" + + "oP\001Z>cloud.google.com/go/analytics/admin" + + "/apiv1alpha/adminpb;adminpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -4093,6 +4083,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor = + getDescriptor().getMessageType(193); + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); descriptor.resolveAllFeaturesImmutable(); com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(); com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetric.java index ad77053b5435..aadc9cfda222 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetric.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetric.java @@ -615,11 +615,11 @@ private RestrictedMetricType(int value) { * * *
-   * Output only. Resource name for this CalculatedMetric.
+   * Identifier. Resource name for this CalculatedMetric.
    * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -640,11 +640,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this CalculatedMetric.
+   * Identifier. Resource name for this CalculatedMetric.
    * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1602,11 +1602,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1626,11 +1626,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1650,11 +1650,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1673,11 +1673,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1692,11 +1692,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricOrBuilder.java index 74c8a6a6339b..94b438f72e50 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricOrBuilder.java @@ -30,11 +30,11 @@ public interface CalculatedMetricOrBuilder * * *
-   * Output only. Resource name for this CalculatedMetric.
+   * Identifier. Resource name for this CalculatedMetric.
    * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CalculatedMetricOrBuilder * * *
-   * Output only. Resource name for this CalculatedMetric.
+   * Identifier. Resource name for this CalculatedMetric.
    * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java index 6ed65f4d0ba1..24547e5b0062 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -1224,6 +1224,50 @@ public interface ChangeHistoryResourceOrBuilder com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder getReportingIdentitySettingsOrBuilder(); + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return Whether the userProvidedDataSettings field is set. + */ + boolean hasUserProvidedDataSettings(); + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return The userProvidedDataSettings. + */ + com.google.analytics.admin.v1alpha.UserProvidedDataSettings getUserProvidedDataSettings(); + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder + getUserProvidedDataSettingsOrBuilder(); + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); } @@ -1315,6 +1359,7 @@ public enum ResourceCase REPORTING_DATA_ANNOTATION(32), SUBPROPERTY_SYNC_CONFIG(33), REPORTING_IDENTITY_SETTINGS(34), + USER_PROVIDED_DATA_SETTINGS(35), RESOURCE_NOT_SET(0); private final int value; @@ -1392,6 +1437,8 @@ public static ResourceCase forNumber(int value) { return SUBPROPERTY_SYNC_CONFIG; case 34: return REPORTING_IDENTITY_SETTINGS; + case 35: + return USER_PROVIDED_DATA_SETTINGS; case 0: return RESOURCE_NOT_SET; default: @@ -3062,6 +3109,68 @@ public boolean hasReportingIdentitySettings() { return com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance(); } + public static final int USER_PROVIDED_DATA_SETTINGS_FIELD_NUMBER = 35; + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return Whether the userProvidedDataSettings field is set. + */ + @java.lang.Override + public boolean hasUserProvidedDataSettings() { + return resourceCase_ == 35; + } + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return The userProvidedDataSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings + getUserProvidedDataSettings() { + if (resourceCase_ == 35) { + return (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_; + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder + getUserProvidedDataSettingsOrBuilder() { + if (resourceCase_ == 35) { + return (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_; + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3175,6 +3284,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 34, (com.google.analytics.admin.v1alpha.ReportingIdentitySettings) resource_); } + if (resourceCase_ == 35) { + output.writeMessage( + 35, (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_); + } getUnknownFields().writeTo(output); } @@ -3332,6 +3445,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 34, (com.google.analytics.admin.v1alpha.ReportingIdentitySettings) resource_); } + if (resourceCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3446,6 +3564,10 @@ public boolean equals(final java.lang.Object obj) { if (!getReportingIdentitySettings().equals(other.getReportingIdentitySettings())) return false; break; + case 35: + if (!getUserProvidedDataSettings().equals(other.getUserProvidedDataSettings())) + return false; + break; case 0: default: } @@ -3577,6 +3699,10 @@ public int hashCode() { hash = (37 * hash) + REPORTING_IDENTITY_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getReportingIdentitySettings().hashCode(); break; + case 35: + hash = (37 * hash) + USER_PROVIDED_DATA_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUserProvidedDataSettings().hashCode(); + break; case 0: default: } @@ -3818,6 +3944,9 @@ public Builder clear() { if (reportingIdentitySettingsBuilder_ != null) { reportingIdentitySettingsBuilder_.clear(); } + if (userProvidedDataSettingsBuilder_ != null) { + userProvidedDataSettingsBuilder_.clear(); + } resourceCase_ = 0; resource_ = null; return this; @@ -3955,6 +4084,9 @@ private void buildPartialOneofs( if (resourceCase_ == 34 && reportingIdentitySettingsBuilder_ != null) { result.resource_ = reportingIdentitySettingsBuilder_.build(); } + if (resourceCase_ == 35 && userProvidedDataSettingsBuilder_ != null) { + result.resource_ = userProvidedDataSettingsBuilder_.build(); + } } @java.lang.Override @@ -4122,6 +4254,11 @@ public Builder mergeFrom( mergeReportingIdentitySettings(other.getReportingIdentitySettings()); break; } + case USER_PROVIDED_DATA_SETTINGS: + { + mergeUserProvidedDataSettings(other.getUserProvidedDataSettings()); + break; + } case RESOURCE_NOT_SET: { break; @@ -4367,6 +4504,14 @@ public Builder mergeFrom( resourceCase_ = 34; break; } // case 274 + case 282: + { + input.readMessage( + internalGetUserProvidedDataSettingsFieldBuilder().getBuilder(), + extensionRegistry); + resourceCase_ = 35; + break; + } // case 282 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11056,6 +11201,250 @@ public Builder clearReportingIdentitySettings() { return reportingIdentitySettingsBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder, + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder> + userProvidedDataSettingsBuilder_; + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return Whether the userProvidedDataSettings field is set. + */ + @java.lang.Override + public boolean hasUserProvidedDataSettings() { + return resourceCase_ == 35; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return The userProvidedDataSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings + getUserProvidedDataSettings() { + if (userProvidedDataSettingsBuilder_ == null) { + if (resourceCase_ == 35) { + return (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_; + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 35) { + return userProvidedDataSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public Builder setUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings value) { + if (userProvidedDataSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + userProvidedDataSettingsBuilder_.setMessage(value); + } + resourceCase_ = 35; + return this; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public Builder setUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder builderForValue) { + if (userProvidedDataSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + userProvidedDataSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 35; + return this; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public Builder mergeUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings value) { + if (userProvidedDataSettingsBuilder_ == null) { + if (resourceCase_ == 35 + && resource_ + != com.google.analytics.admin.v1alpha.UserProvidedDataSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.newBuilder( + (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 35) { + userProvidedDataSettingsBuilder_.mergeFrom(value); + } else { + userProvidedDataSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 35; + return this; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public Builder clearUserProvidedDataSettings() { + if (userProvidedDataSettingsBuilder_ == null) { + if (resourceCase_ == 35) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 35) { + resourceCase_ = 0; + resource_ = null; + } + userProvidedDataSettingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder + getUserProvidedDataSettingsBuilder() { + return internalGetUserProvidedDataSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder + getUserProvidedDataSettingsOrBuilder() { + if ((resourceCase_ == 35) && (userProvidedDataSettingsBuilder_ != null)) { + return userProvidedDataSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 35) { + return (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_; + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder, + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder> + internalGetUserProvidedDataSettingsFieldBuilder() { + if (userProvidedDataSettingsBuilder_ == null) { + if (!(resourceCase_ == 35)) { + resource_ = + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + userProvidedDataSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder, + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 35; + onChanged(); + return userProvidedDataSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java index 9a16be4b6dd1..172dfbd8a34c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -331,6 +331,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * REPORTING_IDENTITY_SETTINGS = 34; */ REPORTING_IDENTITY_SETTINGS(34), + /** + * + * + *
+   * UserProvidedDataSettings resource
+   * 
+ * + * USER_PROVIDED_DATA_SETTINGS = 35; + */ + USER_PROVIDED_DATA_SETTINGS(35), UNRECOGNIZED(-1), ; @@ -674,6 +684,17 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes */ public static final int REPORTING_IDENTITY_SETTINGS_VALUE = 34; + /** + * + * + *
+   * UserProvidedDataSettings resource
+   * 
+ * + * USER_PROVIDED_DATA_SETTINGS = 35; + */ + public static final int USER_PROVIDED_DATA_SETTINGS_VALUE = 35; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -758,6 +779,8 @@ public static ChangeHistoryResourceType forNumber(int value) { return SUBPROPERTY_SYNC_CONFIG; case 34: return REPORTING_IDENTITY_SETTINGS; + case 35: + return USER_PROVIDED_DATA_SETTINGS; default: return null; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java index 1f673258a0e6..13888a94abf3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java @@ -1154,11 +1154,11 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1179,11 +1179,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1959,11 +1959,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1983,11 +1983,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2007,11 +2007,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -2030,11 +2030,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -2049,11 +2049,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java index 9575c5e330e5..0a983ee5f9fb 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java @@ -30,11 +30,11 @@ public interface ConversionEventOrBuilder * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface ConversionEventOrBuilder * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java index 77e66f2c06a4..0b27443dd5c1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java @@ -277,11 +277,11 @@ private DimensionScope(int value) { * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -302,11 +302,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1021,11 +1021,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1045,11 +1045,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1069,11 +1069,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1092,11 +1092,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1111,11 +1111,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java index 1337e3301930..2abac1e0bb99 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java @@ -30,11 +30,11 @@ public interface CustomDimensionOrBuilder * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CustomDimensionOrBuilder * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java index 6a5a651ad973..a749e2b71af6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java @@ -762,11 +762,11 @@ private RestrictedMetricType(int value) { * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -787,11 +787,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1712,11 +1712,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1736,11 +1736,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1760,11 +1760,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1783,11 +1783,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1802,11 +1802,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java index 7c98547cc35c..3e956263a45e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java @@ -30,11 +30,11 @@ public interface CustomMetricOrBuilder * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CustomMetricOrBuilder * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java index 068a41e44bb4..16667f06ec7b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java @@ -330,11 +330,11 @@ private RetentionDuration(int value) { * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -355,11 +355,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -881,11 +881,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -905,11 +905,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -929,11 +929,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -952,11 +952,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -971,11 +971,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java index e279c4ef640a..5acbb17f4226 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java @@ -30,11 +30,11 @@ public interface DataRetentionSettingsOrBuilder * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface DataRetentionSettingsOrBuilder * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java index ef70ef5b05ed..2c5b9ccafb76 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java @@ -80,12 +80,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -106,12 +106,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -193,7 +193,7 @@ public boolean getSharingWithGoogleAssignedSalesEnabled() { * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled is - * deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Override @@ -698,12 +698,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -723,12 +723,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -748,12 +748,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -772,12 +772,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -792,12 +792,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -977,7 +977,7 @@ public Builder clearSharingWithGoogleAssignedSalesEnabled() { * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled - * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Override @@ -997,7 +997,7 @@ public boolean getSharingWithGoogleAnySalesEnabled() { * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled - * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @param value The sharingWithGoogleAnySalesEnabled to set. * @return This builder for chaining. */ @@ -1021,7 +1021,7 @@ public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled - * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java index 8858717e54dc..54a1a46e0309 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java @@ -30,12 +30,12 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -106,7 +106,7 @@ public interface DataSharingSettingsOrBuilder * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled is - * deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Deprecated diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java index 324023042a48..ae0976b77f78 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java @@ -3307,12 +3307,12 @@ public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppS * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3333,12 +3333,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4881,12 +4881,12 @@ public Builder clearIosAppStreamData() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -4906,12 +4906,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4931,12 +4931,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -4955,12 +4955,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -4975,12 +4975,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java index 405cbf2873e8..4c8af3e40600 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java @@ -161,12 +161,12 @@ public interface DataStreamOrBuilder * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -176,12 +176,12 @@ public interface DataStreamOrBuilder * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java index be9514468c9c..e35d4f858256 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java @@ -83,14 +83,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -111,14 +111,14 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -937,14 +937,14 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -964,14 +964,14 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -991,14 +991,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1017,14 +1017,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1039,14 +1039,14 @@ public Builder clearName() { * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java index 94f0bda0af0d..3cb060160990 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java @@ -30,14 +30,14 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder * * *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -47,14 +47,14 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder * * *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java index beeda1de1baa..74f151e99256 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java @@ -90,14 +90,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name for this
+   * Identifier. The resource name for this
    * DisplayVideo360AdvertiserLinkProposal resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
    *
    * Note: proposalId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -118,14 +118,14 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name for this
+   * Identifier. The resource name for this
    * DisplayVideo360AdvertiserLinkProposal resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
    *
    * Note: proposalId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1141,14 +1141,14 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1168,14 +1168,14 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1195,14 +1195,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1221,14 +1221,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1243,14 +1243,14 @@ public Builder clearName() { * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java index 79a10b46a4b0..ea01e3732d76 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java @@ -30,14 +30,14 @@ public interface DisplayVideo360AdvertiserLinkProposalOrBuilder * * *
-   * Output only. The resource name for this
+   * Identifier. The resource name for this
    * DisplayVideo360AdvertiserLinkProposal resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
    *
    * Note: proposalId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -47,14 +47,14 @@ public interface DisplayVideo360AdvertiserLinkProposalOrBuilder * * *
-   * Output only. The resource name for this
+   * Identifier. The resource name for this
    * DisplayVideo360AdvertiserLinkProposal resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
    *
    * Note: proposalId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java index d58948b2782c..2321bc3a6bf6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -105,10 +105,10 @@ public java.lang.String getName() { * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -626,10 +626,10 @@ public Builder mergeFrom( * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -649,10 +649,10 @@ public java.lang.String getName() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -672,10 +672,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -694,10 +694,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -712,10 +712,10 @@ public Builder clearName() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java index a8259ba0a54f..67e36aa653e8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java @@ -30,10 +30,10 @@ public interface FirebaseLinkOrBuilder * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -43,10 +43,10 @@ public interface FirebaseLinkOrBuilder * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequest.java new file mode 100644 index 000000000000..2dbff56557c9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequest.java @@ -0,0 +1,630 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/analytics_admin.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetUserProvidedDataSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest} + */ +@com.google.protobuf.Generated +public final class GetUserProvidedDataSettingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + GetUserProvidedDataSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetUserProvidedDataSettingsRequest"); + } + + // Use GetUserProvidedDataSettingsRequest.newBuilder() to construct. + private GetUserProvidedDataSettingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetUserProvidedDataSettingsRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the user provided data settings to retrieve.
+   * Format: properties/{property}/userProvidedDataSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the user provided data settings to retrieve.
+   * Format: properties/{property}/userProvidedDataSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for GetUserProvidedDataSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserProvidedDataSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..db2c62b73b6a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/analytics_admin.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +@com.google.protobuf.Generated +public interface GetUserProvidedDataSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the user provided data settings to retrieve.
+   * Format: properties/{property}/userProvidedDataSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the user provided data settings to retrieve.
+   * Format: properties/{property}/userProvidedDataSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java index d896ec6a3099..79a997aa1ae0 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java @@ -81,12 +81,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name for this GlobalSiteTag resource.
+   * Identifier. Resource name for this GlobalSiteTag resource.
    * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
    * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -107,12 +107,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this GlobalSiteTag resource.
+   * Identifier. Resource name for this GlobalSiteTag resource.
    * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
    * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -525,12 +525,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -550,12 +550,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -575,12 +575,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -599,12 +599,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -619,12 +619,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java index f41680b667ec..71d582d6f38b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java @@ -30,12 +30,12 @@ public interface GlobalSiteTagOrBuilder * * *
-   * Output only. Resource name for this GlobalSiteTag resource.
+   * Identifier. Resource name for this GlobalSiteTag resource.
    * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
    * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface GlobalSiteTagOrBuilder * * *
-   * Output only. Resource name for this GlobalSiteTag resource.
+   * Identifier. Resource name for this GlobalSiteTag resource.
    * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
    * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java index 04a623e5a4dc..ed0e88c71f53 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java @@ -82,13 +82,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,13 +109,13 @@ public java.lang.String getName() { * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -930,13 +930,13 @@ public Builder mergeFrom( * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -956,13 +956,13 @@ public java.lang.String getName() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -982,13 +982,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1007,13 +1007,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1028,13 +1028,13 @@ public Builder clearName() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java index 47fae2ce0c3d..242521f3e7d8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java @@ -30,13 +30,13 @@ public interface GoogleAdsLinkOrBuilder * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,13 +46,13 @@ public interface GoogleAdsLinkOrBuilder * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java index 7091dc8b91f8..acc46060be03 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java @@ -77,13 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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)
+   * Optional. 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)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,13 +101,13 @@ public int getPageSize() { * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -128,13 +128,13 @@ public java.lang.String getPageToken() { * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -493,13 +493,13 @@ public Builder mergeFrom( * * *
-     * 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)
+     * Optional. 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)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -512,13 +512,13 @@ public int getPageSize() { * * *
-     * 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)
+     * Optional. 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)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -535,13 +535,13 @@ public Builder setPageSize(int value) { * * *
-     * 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)
+     * Optional. 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)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -558,13 +558,13 @@ public Builder clearPageSize() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -584,13 +584,13 @@ public java.lang.String getPageToken() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -610,13 +610,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -635,13 +635,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -656,13 +656,13 @@ public Builder clearPageToken() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java index 12164fb85e20..5a7ca5687ac1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java @@ -30,13 +30,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * 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)
+   * Optional. 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)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -46,13 +46,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -62,13 +62,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java index cd61e4c739ce..cd076da61d93 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java @@ -77,13 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. 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 = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,13 +101,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. 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.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -128,13 +128,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. 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.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -533,13 +533,13 @@ public Builder mergeFrom( * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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 = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -552,13 +552,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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 = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -575,13 +575,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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 = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -598,13 +598,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -624,13 +624,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -650,13 +650,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -675,13 +675,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -696,13 +696,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. 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.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java index 8ae99637d287..7e9c309b07de 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java @@ -30,13 +30,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. 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 = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -46,13 +46,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. 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.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -62,13 +62,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. 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.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java index 87683fff40e2..50827d73a2c7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,13 +160,13 @@ public int getPageSize() { * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -187,13 +187,13 @@ public java.lang.String getPageToken() { * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -702,12 +702,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -720,12 +720,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -742,12 +742,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -764,13 +764,13 @@ public Builder clearPageSize() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -790,13 +790,13 @@ public java.lang.String getPageToken() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -816,13 +816,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -841,13 +841,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -862,13 +862,13 @@ public Builder clearPageToken() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java index 9ed717d1ce44..fcd239328a18 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java @@ -62,12 +62,12 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -77,13 +77,13 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -93,13 +93,13 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java index 36ef26e47dfc..7ad90efbe643 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,14 +158,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,14 +186,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -697,12 +697,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -715,12 +715,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -737,12 +737,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,14 +759,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -786,14 +786,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,14 +813,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -839,14 +839,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -861,14 +861,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java index 713a9ce8adc6..42648b8c213d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java index 87050a994bc0..f022be577ea7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java @@ -139,13 +139,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -163,13 +163,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -190,13 +190,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -707,13 +707,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -726,13 +726,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -749,13 +749,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -772,13 +772,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -798,13 +798,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -824,13 +824,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -849,13 +849,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -870,13 +870,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java index d8586049f9d7..82fd5a3f2333 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java @@ -64,13 +64,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -80,13 +80,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -96,13 +96,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java index 650a36c4c05c..f5e0597e561a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,14 +158,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,14 +186,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -697,12 +697,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -715,12 +715,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -737,12 +737,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,14 +759,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -786,14 +786,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,14 +813,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -839,14 +839,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -861,14 +861,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java index 1921be1fde52..ea250220031b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequest.java index 826bda5e9cb2..5ea3b9c6f2ca 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,13 +160,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -187,13 +187,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -699,12 +699,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -717,12 +717,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -739,12 +739,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -761,13 +761,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -787,13 +787,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,13 +813,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -838,13 +838,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -859,13 +859,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequestOrBuilder.java index 32266d6c0379..2547f33f280a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequestOrBuilder.java @@ -62,12 +62,12 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -77,13 +77,13 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -93,13 +93,13 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java index 6b82ed2404eb..6d487a8a52ae 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java @@ -141,12 +141,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. 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.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -164,13 +164,14 @@ public int getPageSize() { * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -191,13 +192,14 @@ public java.lang.String getPageToken() { * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -720,12 +722,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -738,12 +740,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. 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.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -760,12 +762,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. 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.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -782,13 +784,14 @@ public Builder clearPageSize() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -808,13 +811,14 @@ public java.lang.String getPageToken() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -834,13 +838,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -859,13 +864,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -880,13 +886,14 @@ public Builder clearPageToken() { * * *
-     * 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.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java index 1a7f4dcc9ae8..0ea903f34503 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -64,12 +64,12 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. 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.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -79,13 +79,14 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -95,13 +96,14 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * 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.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java index 6fdc8c9dd776..1af15f0e326b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java @@ -161,13 +161,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -185,13 +185,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -212,13 +212,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -827,13 +827,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -846,13 +846,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -869,13 +869,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -892,13 +892,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -918,13 +918,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -944,13 +944,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -969,13 +969,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -990,13 +990,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. 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.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java index 96505ae09a56..97c85f547ab4 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java @@ -86,13 +86,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -102,13 +102,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -118,13 +118,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. 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.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java index 4a473bf954cd..f194113bfd66 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java @@ -144,13 +144,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -168,14 +168,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous
+   * Optional. A page token, received from a previous
    * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
    * subsequent page. When paginating, all other parameters provided to
    * `ListSKAdNetworkConversionValueSchema` must match the call that provided
    * the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -196,14 +196,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous
+   * Optional. A page token, received from a previous
    * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
    * subsequent page. When paginating, all other parameters provided to
    * `ListSKAdNetworkConversionValueSchema` must match the call that provided
    * the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -741,13 +741,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -760,13 +760,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -783,13 +783,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -806,14 +806,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -833,14 +833,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -860,14 +860,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -886,14 +886,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -908,14 +908,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java index ad86ee7b9ea4..a11788fe61ab 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java @@ -66,13 +66,13 @@ public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -82,14 +82,14 @@ public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder * * *
-   * A page token, received from a previous
+   * Optional. A page token, received from a previous
    * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
    * subsequent page. When paginating, all other parameters provided to
    * `ListSKAdNetworkConversionValueSchema` must match the call that provided
    * the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -99,14 +99,14 @@ public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder * * *
-   * A page token, received from a previous
+   * Optional. A page token, received from a previous
    * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
    * subsequent page. When paginating, all other parameters provided to
    * `ListSKAdNetworkConversionValueSchema` must match the call that provided
    * the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java index 9c4c465fd807..c7b48a2501c0 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java @@ -81,12 +81,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -107,12 +107,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -607,12 +607,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -632,12 +632,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -657,12 +657,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -681,12 +681,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -701,12 +701,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java index c908a2424a22..76e195d5f658 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java @@ -30,12 +30,12 @@ public interface MeasurementProtocolSecretOrBuilder * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface MeasurementProtocolSecretOrBuilder * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java index 2a494ee7dc17..325084e5d3b5 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -88,12 +88,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -114,12 +114,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1446,12 +1446,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1471,12 +1471,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1496,12 +1496,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1520,12 +1520,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1540,12 +1540,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java index 7a12596a9e5c..96ddb55c3668 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -30,12 +30,12 @@ public interface PropertyOrBuilder * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface PropertyOrBuilder * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index b926361f7953..c9088665a89c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -216,6 +216,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ReportingIdentitySettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ReportingIdentitySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -232,9 +236,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "6google/analytics/admin/v1alpha/expanded_data_set.proto\032\037google/api/field_behavi" + "or.proto\032\031google/api/resource.proto\032\037goo" + "gle/protobuf/timestamp.proto\032\036google/pro" - + "tobuf/wrappers.proto\032\026google/type/date.proto\"\344\002\n" + + "tobuf/wrappers.proto\032\026google/type/date.proto\"\367\002\n" + "\007Account\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" @@ -242,19 +246,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013region_code\030\005 \001(\t\022\024\n" + "\007deleted\030\006 \001(\010B\003\340A\003\022T\n" + "\020gmp_organization\030\007 \001(\tB:\340A\003\372A4\n" - + "2marketingplatformadmin.googleapis.com/Organization:>\352A;\n" - + "%analyticsadmin.googleapis.com/Account\022\022accounts/{account}\"\271\005\n" + + "2marketingplatformadmin.googleapis.com/Organization:Q\352AN\n" + + "%analyticsadmin" + + ".googleapis.com/Account\022\022accounts/{account}*\010accounts2\007account\"\317\005\n" + "\010Property\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022H\n\r" - + "property_type\030\016" - + " \001(\0162,.google.analytics.admin.v1alpha.PropertyTypeB\003\340A\005\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\022H\n\r" + + "property_type\030\016 \001(\0162,." + + "google.analytics.admin.v1alpha.PropertyTypeB\003\340A\005\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006parent\030\002 \001(\tB\003\340A\005\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\002\022K\n" - + "\021industry_category\030\006" - + " \001(\01620.google.analytics.admin.v1alpha.IndustryCategory\022\026\n" + + "\021industry_category\030\006 \001(\01620.google" + + ".analytics.admin.v1alpha.IndustryCategory\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\002\022\025\n\r" + "currency_code\030\010 \001(\t\022H\n\r" + "service_level\030\n" @@ -263,18 +268,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n" + "\007account\030\r" + " \001(\tB-\340A\005\372A\'\n" - + "%analyticsadmin.googleapis.com/Account:B\352A?\n" - + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}\"\364\007\n\n" + + "%analyticsadmin.googleapis.com/Account:X\352AU\n" + + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}*\n" + + "properties2\010property\"\215\010\n\n" + "DataStream\022S\n" - + "\017web_stream_data\030\006 \001(\01328.google.analyti" - + "cs.admin.v1alpha.DataStream.WebStreamDataH\000\022b\n" - + "\027android_app_stream_data\030\007 \001(\0132?.g" - + "oogle.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataH\000\022Z\n" + + "\017web_stream_data\030\006 \001(\01328.google.analyt" + + "ics.admin.v1alpha.DataStream.WebStreamDataH\000\022b\n" + + "\027android_app_stream_data\030\007 \001(\0132?." + + "google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataH\000\022Z\n" + "\023ios_app_stream_data\030\010" + " \001(\0132;.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataH\000\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022O\n" - + "\004type\030\002 \001(\01629.google.an" - + "alytics.admin.v1alpha.DataStream.DataStreamTypeB\006\340A\005\340A\002\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022O\n" + + "\004type\030\002 \001(\01629.google.a" + + "nalytics.admin.v1alpha.DataStream.DataStreamTypeB\006\340A\005\340A\002\022\024\n" + "\014display_name\030\003 \001(\t\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" @@ -293,80 +299,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034DATA_STREAM_TYPE_UNSPECIFIED\020\000\022\023\n" + "\017WEB_DATA_STREAM\020\001\022\033\n" + "\027ANDROID_APP_DATA_STREAM\020\002\022\027\n" - + "\023IOS_APP_DATA_STREAM\020\003:^\352A[\n" - + "(analyticsadmin.googleapis." - + "com/DataStream\022/properties/{property}/dataStreams/{data_stream}B\r\n" - + "\013stream_data\"\323\001\n" + + "\023IOS_APP_DATA_STREAM\020\003:w\352At\n" + + "(analyticsadmin.googleapis" + + ".com/DataStream\022/properties/{property}/dataStreams/{data_stream}*\013dataStreams2\n" + + "dataStreamB\r\n" + + "\013stream_data\"\361\001\n" + "\014FirebaseLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + "\007project\030\002 \001(\tB\003\340A\005\0224\n" + "\013create_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:d\352Aa\n" - + "*analyticsadmin.googleapis.com/FirebaseLink\022" - + "3properties/{property}/firebaseLinks/{firebase_link}\"\251\001\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\201\001\352A~\n" + + "*analyticsadmin.googleapis.com/FirebaseLink\0223properties/{" + + "property}/firebaseLinks/{firebase_link}*\r" + + "firebaseLinks2\014firebaseLink\"\312\001\n\r" + "GlobalSiteTag\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" - + "\007snippet\030\002 \001(\tB\003\340A\005:o\352Al\n" - + "+analyticsadmin.googleapis.com/GlobalSiteTa" - + "g\022=properties/{property}/dataStreams/{data_stream}/globalSiteTag\"\230\003\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + + "\007snippet\030\002 \001(\tB\003\340A\005:\217\001\352A\213\001\n" + + "+analyticsadmin.googleapis.com/GlobalSiteTag\022=properties/{propert" + + "y}/dataStreams/{data_stream}/globalSiteTag*\016globalSiteTags2\r" + + "globalSiteTag\"\271\003\n\r" + "GoogleAdsLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n" + "\022can_manage_clients\030\004 \001(\010B\003\340A\003\022?\n" + "\033ads_personalization_enabled\030\005" + " \001(\0132\032.google.protobuf.BoolValue\0224\n" + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\"\n" - + "\025creator_email_address\030\t \001(\tB\003\340A\003:h\352Ae\n" - + "+analyticsadmin.googleapi" - + "s.com/GoogleAdsLink\0226properties/{property}/googleAdsLinks/{google_ads_link}\"\357\002\n" + + "\025creator_email_address\030\t \001(\tB\003\340A\003:\210\001\352A\204\001\n" + + "+analyticsadmin.googleapis.com/GoogleAdsLink\0226properti" + + "es/{property}/googleAdsLinks/{google_ads_link}*\016googleAdsLinks2\r" + + "googleAdsLink\"\233\003\n" + "\023DataSharingSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022+\n" + + "\004name\030\001 \001(\tB\003\340A\010\022+\n" + "#sharing_with_google_support_enabled\030\002 \001(\010\0222\n" + "*sharing_with_google_assigned_sales_enabled\030\003 \001(\010\0221\n" + "%sharing_with_google_any_sales_enabled\030\004 \001(\010B\002\030\001\022,\n" + "$sharing_with_google_products_enabled\030\005 \001(\010\022#\n" - + "\033sharing_with_others_enabled\030\006 \001(\010:^\352A[\n" - + "1analyticsadmin.googleapis.com/DataSharingSet" - + "tings\022&accounts/{account}/dataSharingSettings\"\225\002\n" - + "\016AccountSummary\022\014\n" - + "\004name\030\001 \001(\t\022;\n" + + "\033sharing_with_others_enabled\030\006 \001(\010:\211\001\352A\205\001\n" + + "1analyticsadmin.googleapis.com/DataSharingSettings\022&accounts/{account}/dataSharin" + + "gSettings*\023dataSharingSettings2\023dataSharingSettings\"\274\002\n" + + "\016AccountSummary\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022;\n" + "\007account\030\002 \001(\tB*\372A\'\n" + "%analyticsadmin.googleapis.com/Account\022\024\n" + "\014display_name\030\003 \001(\t\022K\n" - + "\022property_summaries\030\004 \003(\0132/.google.a" - + "nalytics.admin.v1alpha.PropertySummary:U\352AR\n" - + ",analyticsadmin.googleapis.com/Accou" - + "ntSummary\022\"accountSummaries/{account_summary}\"\273\001\n" + + "\022property_summaries\030\004 \003(\013" + + "2/.google.analytics.admin.v1alpha.PropertySummary:w\352At\n" + + ",analyticsadmin.googleapis.com/AccountSummary\022\"accountSummaries/{" + + "account_summary}*\020accountSummaries2\016accountSummary\"\273\001\n" + "\017PropertySummary\022=\n" + "\010property\030\001 \001(\tB+\372A(\n" + "&analyticsadmin.googleapis.com/Property\022\024\n" + "\014display_name\030\002 \001(\t\022C\n\r" + "property_type\030\003" + " \001(\0162,.google.analytics.admin.v1alpha.PropertyType\022\016\n" - + "\006parent\030\004 \001(\t\"\216\002\n" + + "\006parent\030\004 \001(\t\"\305\002\n" + "\031MeasurementProtocolSecret\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\031\n" - + "\014secret_value\030\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n" - + "7analyticsadmin.googleapis.com/MeasurementProtocolSecr" - + "et\022hproperties/{property}/dataStreams/{d" - + "ata_stream}/measurementProtocolSecrets/{measurement_protocol_secret}\"\203\004\n" + + "\014secret_value\030\003 \001(\tB\003\340A\003:\336\001\352A\332\001\n" + + "7analyticsadmin.googleapis.com/MeasurementProtoco" + + "lSecret\022hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecr" + + "ets/{measurement_protocol_secret}*\032measu" + + "rementProtocolSecrets2\031measurementProtocolSecret\"\310\004\n" + " SKAdNetworkConversionValueSchema\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022P\n" - + "\023postback_window_one\030\002 \001(\0132..goog" - + "le.analytics.admin.v1alpha.PostbackWindowB\003\340A\002\022K\n" - + "\023postback_window_two\030\003 \001(\0132..go" - + "ogle.analytics.admin.v1alpha.PostbackWindow\022M\n" - + "\025postback_window_three\030\004 \001(\0132..goo" - + "gle.analytics.admin.v1alpha.PostbackWindow\022\037\n" - + "\027apply_conversion_values\030\005 \001(\010:\274\001\352A\270\001\n" - + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\022vproperties/{" - + "property}/dataStreams/{data_stream}/sKAd" - + "NetworkConversionValueSchema/{skadnetwork_conversion_value_schema}\"\207\001\n" + + "\004name\030\001 \001(\tB\003\340A\010\022P\n" + + "\023postback_window_one\030\002" + + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindowB\003\340A\002\022K\n" + + "\023postback_window_two\030\003" + + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindow\022M\n" + + "\025postback_window_three\030\004" + + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindow\022\037\n" + + "\027apply_conversion_values\030\005 \001(\010:\201\002\352A\375\001\n" + + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValue" + + "Schema\022vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionVal" + + "ueSchema/{skadnetwork_conversion_value_schema}*!skAdNetworkConversionValueSchemas2" + + " skAdNetworkConversionValueSchema\"\207\001\n" + "\016PostbackWindow\022K\n" - + "\021conversion_values\030\001 \003(\01320.googl" - + "e.analytics.admin.v1alpha.ConversionValues\022(\n" + + "\021conversion_values\030\001 \003(" + + "\01320.google.analytics.admin.v1alpha.ConversionValues\022(\n" + " postback_window_settings_enabled\030\002 \001(\010\"\364\001\n" + "\020ConversionValues\022\024\n" + "\014display_name\030\001 \001(\t\022\027\n\n" @@ -377,7 +389,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132,.google.analytics.admin.v1alpha.EventMapping\022\024\n" + "\014lock_enabled\030\005 \001(\010B\r\n" + "\013_fine_value\"\357\001\n" - + "\014EventMapping\022\027\n\n" + + "\014EventMapping\022\027\n" + + "\n" + "event_name\030\001 \001(\tB\003\340A\002\022\034\n" + "\017min_event_count\030\002 \001(\003H\000\210\001\001\022\034\n" + "\017max_event_count\030\003 \001(\003H\001\210\001\001\022\034\n" @@ -393,31 +406,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "actor_type\030\003 \001(\0162).google.analytics.admin.v1alpha.ActorType\022\030\n" + "\020user_actor_email\030\004 \001(\t\022\030\n" + "\020changes_filtered\030\005 \001(\010\022D\n" - + "\007changes\030\006 \003(\01323.google.a" - + "nalytics.admin.v1alpha.ChangeHistoryChange\"\270\025\n" + + "\007changes\030\006 \003(\01323" + + ".google.analytics.admin.v1alpha.ChangeHistoryChange\"\231\026\n" + "\023ChangeHistoryChange\022\020\n" + "\010resource\030\001 \001(\t\022:\n" + "\006action\030\002 \001(\0162*.google.analytics.admin.v1alpha.ActionType\022i\n" - + "\026resource_before_change\030\003 \001(\0132I.google.analytics.admi" - + "n.v1alpha.ChangeHistoryChange.ChangeHistoryResource\022h\n" - + "\025resource_after_change\030\004 \001(\0132I.google.analytics.admin.v1alpha.Chan" - + "geHistoryChange.ChangeHistoryResource\032\375\022\n" + + "\026resource_before_change\030\003 \001(\0132I.google.analy" + + "tics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\022h\n" + + "\025resource_after_change\030\004 \001(\0132I.google.analytics.admin.v1a" + + "lpha.ChangeHistoryChange.ChangeHistoryResource\032\336\023\n" + "\025ChangeHistoryResource\022:\n" + "\007account\030\001 \001(\0132\'.google.analytics.admin.v1alpha.AccountH\000\022<\n" + "\010property\030\002 \001(\0132(.google.analytics.admin.v1alpha.PropertyH\000\022E\n\r" + "firebase_link\030\006" + " \001(\0132,.google.analytics.admin.v1alpha.FirebaseLinkH\000\022H\n" - + "\017google_ads_link\030\007 \001(" - + "\0132-.google.analytics.admin.v1alpha.GoogleAdsLinkH\000\022X\n" - + "\027google_signals_settings\030\010 " - + "\001(\01325.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" - + "!display_video_360_advertiser_link\030\t \001(\0132=.google.analyti" - + "cs.admin.v1alpha.DisplayVideo360AdvertiserLinkH\000\022{\n" + + "\017google_ads_link\030\007" + + " \001(\0132-.google.analytics.admin.v1alpha.GoogleAdsLinkH\000\022X\n" + + "\027google_signals_settings\030\010" + + " \001(\01325.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" + + "!display_video_360_advertiser_link\030\t \001(\0132=.googl" + + "e.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\000\022{\n" + "*display_video_360_advertiser_link_proposal\030\n" - + " \001(\0132E.google.analytics." - + "admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\000\022K\n" - + "\020conversion_event\030\013 \001(\0132" - + "/.google.analytics.admin.v1alpha.ConversionEventH\000\022`\n" + + " \001(\0132E.google.a" + + "nalytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\000\022K\n" + + "\020conversion_event\030\013" + + " \001(\0132/.google.analytics.admin.v1alpha.ConversionEventH\000\022`\n" + "\033measurement_protocol_secret\030\014" + " \001(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecretH\000\022K\n" + "\020custom_dimension\030\r" @@ -434,48 +447,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01323.google.analytics.admin.v1alpha.AttributionSettingsH\000\022L\n" + "\021expanded_data_set\030\025" + " \001(\0132/.google.analytics.admin.v1alpha.ExpandedDataSetH\000\022E\n\r" - + "channel_group\030\026 \001(\013" - + "2,.google.analytics.admin.v1alpha.ChannelGroupH\000\022E\n\r" - + "bigquery_link\030\027 \001(\0132,.google" - + ".analytics.admin.v1alpha.BigQueryLinkH\000\022d\n" - + "\035enhanced_measurement_settings\030\030 \001(\0132;" - + ".google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\000\022X\n" - + "\027data_redaction_settings\030\031" - + " \001(\01325.google.analytics.admin.v1alpha.DataRedactionSettingsH\000\022o\n" - + "#skadnetwork_conversion_value_schema\030\032 \001(\0132@.g" - + "oogle.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\000\022C\n" + + "channel_group\030\026" + + " \001(\0132,.google.analytics.admin.v1alpha.ChannelGroupH\000\022E\n\r" + + "bigquery_link\030\027 \001(\013" + + "2,.google.analytics.admin.v1alpha.BigQueryLinkH\000\022d\n" + + "\035enhanced_measurement_settings\030\030" + + " \001(\0132;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\000\022X\n" + + "\027data_redaction_settings\030\031 \001(\01325.google.analyti" + + "cs.admin.v1alpha.DataRedactionSettingsH\000\022o\n" + + "#skadnetwork_conversion_value_schema\030\032" + + " \001(\0132@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\000\022C\n" + "\014adsense_link\030\033" + " \001(\0132+.google.analytics.admin.v1alpha.AdSenseLinkH\000\022<\n" + "\010audience\030\034 \001(\0132(.google.analytics.admin.v1alpha.AudienceH\000\022L\n" - + "\021event_create_rule\030\035" - + " \001(\0132/.google.analytics.admin.v1alpha.EventCreateRuleH\000\022=\n" + + "\021event_create_rule\030\035 \001(\0132/.google" + + ".analytics.admin.v1alpha.EventCreateRuleH\000\022=\n" + "\tkey_event\030\036 \001(\0132(.google.analytics.admin.v1alpha.KeyEventH\000\022M\n" - + "\021calculated_metric\030\037 " - + "\001(\01320.google.analytics.admin.v1alpha.CalculatedMetricH\000\022\\\n" - + "\031reporting_data_annotation\030 " - + " \001(\01327.google.analytics.admin.v1alpha.ReportingDataAnnotationH\000\022X\n" - + "\027subproperty_sync_config\030! \001(\01325.google.analytic" - + "s.admin.v1alpha.SubpropertySyncConfigH\000\022`\n" - + "\033reporting_identity_settings\030\" \001(\01329.g" - + "oogle.analytics.admin.v1alpha.ReportingIdentitySettingsH\000B\n\n" - + "\010resource\"\337\003\n" + + "\021calculated_metric\030\037" + + " \001(\01320.google.analytics.admin.v1alpha.CalculatedMetricH\000\022\\\n" + + "\031reporting_data_annotation\030 \001(\01327.google.analytics.a" + + "dmin.v1alpha.ReportingDataAnnotationH\000\022X\n" + + "\027subproperty_sync_config\030! \001(\01325.google" + + ".analytics.admin.v1alpha.SubpropertySyncConfigH\000\022`\n" + + "\033reporting_identity_settings\030\"" + + " \001(\01329.google.analytics.admin.v1alpha.ReportingIdentitySettingsH\000\022_\n" + + "\033user_provided_data_settings\030# \001(\01328.google.analyti" + + "cs.admin.v1alpha.UserProvidedDataSettingsH\000B\n\n" + + "\010resource\"\236\004\n" + "\035DisplayVideo360AdvertiserLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\032\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022$\n" + "\027advertiser_display_name\030\003 \001(\tB\003\340A\003\022?\n" + "\033ads_personalization_enabled\030\004" + " \001(\0132\032.google.protobuf.BoolValue\022F\n" + "\035campaign_data_sharing_enabled\030\005" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" - + "\031cost_data_sharing_enabled\030\006 \001(\013" - + "2\032.google.protobuf.BoolValueB\003\340A\005:\233\001\352A\227\001\n" - + ";analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\022Xproperties/{prope" - + "rty}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}\"\212\005\n" + + "\031cost_data_sharing_enabled\030\006" + + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\332\001\352A\326\001\n" + + ";analyticsadmin.googleapis.com/DisplayVideo360Adverti" + + "serLink\022Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360" + + "_advertiser_link}*\036displayVideo360Advert" + + "iserLinks2\035displayVideo360AdvertiserLink\"\331\005\n" + "%DisplayVideo360AdvertiserLinkProposal\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\032\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022d\n" - + "\034link_proposal_status_details\030\003 \001(\01329" - + ".google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\003\340A\003\022$\n" + + "\034link_proposal_status_details\030\003" + + " \001(\01329.google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\003\340A\003\022$\n" + "\027advertiser_display_name\030\004 \001(\tB\003\340A\003\022\035\n" + "\020validation_email\030\005 \001(\tB\003\340A\004\022D\n" + "\033ads_personalization_enabled\030\006" @@ -483,12 +500,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035campaign_data_sharing_enabled\030\007" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" + "\031cost_data_sharing_enabled\030\010" - + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\264\001\352A\260\001\n" - + "Canalyticsadmin.googleapis.com/DisplayVideo360Adver" - + "tiserLinkProposal\022iproperties/{property}/displayVideo360AdvertiserLinkProposals/" - + "{display_video_360_advertiser_link_proposal}\"\350\003\n" + + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\203\002\352A\377\001\n" + + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\022iproperties/{" + + "property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_l" + + "ink_proposal}*&displayVideo360Advertiser" + + "LinkProposals2%displayVideo360AdvertiserLinkProposal\"\217\004\n" + "\020SearchAds360Link\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\032\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022F\n" + "\035campaign_data_sharing_enabled\030\003" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" @@ -498,26 +516,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033ads_personalization_enabled\030\006" + " \001(\0132\032.google.protobuf.BoolValue\022>\n" + "\032site_stats_sharing_enabled\030\007" - + " \001(\0132\032.google.protobuf.BoolValue:r\352Ao\n" - + ".analyticsadmin.googleapis.com/SearchAds360Link\022=proper" - + "ties/{property}/searchAds360Links/{search_ads_360_link}\"\374\001\n" + + " \001(\0132\032.google.protobuf.BoolValue:\230\001\352A\224\001\n" + + ".analyticsadmin.googleapis.com/SearchAds360Li" + + "nk\022=properties/{property}/searchAds360Li" + + "nks/{search_ads_360_link}*\021searchAds360Links2\020searchAds360Link\"\374\001\n" + "\031LinkProposalStatusDetails\022l\n" - + " link_proposal_initiating_product\030\001" - + " \001(\0162=.google.analytics.admin.v1alpha.LinkProposalInitiatingProductB\003\340A\003\022\034\n" + + " link_proposal_initiating_product\030\001 \001(\0162=.google.analytics.admin." + + "v1alpha.LinkProposalInitiatingProductB\003\340A\003\022\034\n" + "\017requestor_email\030\002 \001(\tB\003\340A\003\022S\n" - + "\023link_proposal_state\030\003" - + " \001(\01621.google.analytics.admin.v1alpha.LinkProposalStateB\003\340A\003\"\340\005\n" + + "\023link_proposal_state\030\003 \001(\01621.google.analytics" + + ".admin.v1alpha.LinkProposalStateB\003\340A\003\"\205\006\n" + "\017ConversionEvent\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "event_name\030\002 \001(\tB\003\340A\005\0224\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022f\n" - + "\017counting_method\030\006 \001(\0162H.google.analytics.ad" - + "min.v1alpha.ConversionEvent.ConversionCountingMethodB\003\340A\001\022r\n" - + "\030default_conversion_value\030\007 \001(\0132F.google.analytics.admin.v1a" - + "lpha.ConversionEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + + "\017counting_method\030\006 \001(\0162H.google.analy" + + "tics.admin.v1alpha.ConversionEvent.ConversionCountingMethodB\003\340A\001\022r\n" + + "\030default_conversion_value\030\007 \001(\0132F.google.analytics.ad" + + "min.v1alpha.ConversionEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + "\026DefaultConversionValue\022\022\n" + "\005value\030\001 \001(\001H\000\210\001\001\022\032\n\r" + "currency_code\030\002 \001(\tH\001\210\001\001B\010\n" @@ -526,9 +545,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030ConversionCountingMethod\022*\n" + "&CONVERSION_COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" - + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "-analyticsadmin.googleapis.com/ConversionEven" - + "t\0229properties/{property}/conversionEvents/{conversion_event}B\033\n" + + "\020ONCE_PER_SESSION\020\002:\221\001\352A\215\001\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\0229properties/{property}/conver" + + "sionEvents/{conversion_event}*\020conversionEvents2\017conversionEventB\033\n" + "\031_default_conversion_value\"\327\004\n" + "\010KeyEvent\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" @@ -537,10 +556,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022U\n" - + "\017counting_method\030\006 \001(\01627.google." - + "analytics.admin.v1alpha.KeyEvent.CountingMethodB\003\340A\002\022Q\n\r" - + "default_value\030\007 \001(\01325.go" - + "ogle.analytics.admin.v1alpha.KeyEvent.DefaultValueB\003\340A\001\032F\n" + + "\017counting_method\030\006 \001(\01627.goo" + + "gle.analytics.admin.v1alpha.KeyEvent.CountingMethodB\003\340A\002\022Q\n\r" + + "default_value\030\007 \001(\0132" + + "5.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\003\340A\001\032F\n" + "\014DefaultValue\022\032\n\r" + "numeric_value\030\001 \001(\001B\003\340A\002\022\032\n\r" + "currency_code\030\002 \001(\tB\003\340A\002\"[\n" @@ -548,42 +567,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "&analyticsadmi" - + "n.googleapis.com/KeyEvent\022+properties/{property}/keyEvents/{key_event}*" + + "&analytics" + + "admin.googleapis.com/KeyEvent\022+properties/{property}/keyEvents/{key_event}*" + "\tkeyEvents2\010keyEvent\"\240\002\n" + "\025GoogleSignalsSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022A\n" + "\005state\030\003 \001(\01622.google.analytics.admin.v1alpha.GoogleSignalsState\022J\n" - + "\007consent\030\004 \001(\01624.google.analytics." - + "admin.v1alpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n" - + "3analyticsadmin.googleapis.com/Goog" - + "leSignalsSettings\022+properties/{property}/googleSignalsSettings\"\274\003\n" + + "\007consent\030\004 \001(\01624.google.analyt" + + "ics.admin.v1alpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n" + + "3analyticsadmin.googleapis.com/" + + "GoogleSignalsSettings\022+properties/{property}/googleSignalsSettings\"\341\003\n" + "\017CustomDimension\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\036\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022U\n" - + "\005scope\030\005 \001(" - + "\0162>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + + "\005scope\030\005" + + " \001(\0162>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + "\034disallow_ads_personalization\030\006 \001(\010B\003\340A\001\"P\n" + "\016DimensionScope\022\037\n" + "\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t\n" + "\005EVENT\020\001\022\010\n" + "\004USER\020\002\022\010\n" - + "\004ITEM\020\003:m\352Aj\n" - + "-analyticsadmin.googleapis.com/Custo" - + "mDimension\0229properties/{property}/customDimensions/{custom_dimension}\"\305\006\n" + + "\004ITEM\020\003:\221\001\352A\215\001\n" + + "-analyticsadmin.googleapis.com/CustomDimension\0229properties/{property}/" + + "customDimensions/{custom_dimension}*\020customDimensions2\017customDimension\"\343\006\n" + "\014CustomMetric\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\036\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022[\n" - + "\020measurement_unit\030\005 \001(\0162<.google.analytics.admi" - + "n.v1alpha.CustomMetric.MeasurementUnitB\003\340A\002\022O\n" - + "\005scope\030\006 \001(\01628.google.analytics.ad" - + "min.v1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022f\n" - + "\026restricted_metric_type\030\010 \003(\0162A.g" - + "oogle.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + + "\020measurement_unit\030\005 \001(\0162<.google.analytics.adm" + + "in.v1alpha.CustomMetric.MeasurementUnitB\003\340A\002\022O\n" + + "\005scope\030\006 \001(\01628.google.analytics.a" + + "dmin.v1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022f\n" + + "\026restricted_metric_type\030\010 \003(\0162A." + + "google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + "\017MeasurementUnit\022 \n" + "\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\014\n" @@ -603,18 +622,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024RestrictedMetricType\022&\n" + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" - + "\014REVENUE_DATA\020\002:d\352Aa\n" - + "*analyticsadmin.googleapis." - + "com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}\"\247\006\n" + + "\014REVENUE_DATA\020\002:\201\001\352A~\n" + + "*analyticsadmin.googleapi" + + "s.com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}*\r" + + "customMetrics2\014customMetric\"\247\006\n" + "\020CalculatedMetric\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022!\n" + "\024calculated_metric_id\030\004 \001(\tB\003\340A\003\022U\n" - + "\013metric_unit\030\005 \001(\0162;.google.analytics.ad" - + "min.v1alpha.CalculatedMetric.MetricUnitB\003\340A\002\022j\n" - + "\026restricted_metric_type\030\006 \003(\0162E.g" - + "oogle.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\003\340A\003\022\024\n" + + "\013metric_unit\030\005" + + " \001(\0162;.google.analytics.admin.v1alpha.CalculatedMetric.MetricUnitB\003\340A\002\022j\n" + + "\026restricted_metric_type\030\006 \003(\0162E.google.ana" + + "lytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\003\340A\003\022\024\n" + "\007formula\030\007 \001(\tB\003\340A\002\022%\n" + "\030invalid_metric_reference\030\t \001(\010B\003\340A\003\"\255\001\n\n" + "MetricUnit\022\033\n" @@ -634,15 +654,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" + "\014REVENUE_DATA\020\002:\226\001\352A\222\001\n" - + ".analyticsadmin.googleapis.com/CalculatedMetric\022;properties/{prope" - + "rty}/calculatedMetrics/{calculated_metri" - + "c}*\021calculatedMetrics2\020calculatedMetric\"\262\004\n" + + ".analyticsadmin.googleapis.com/CalculatedMetric\022;properties/{property}/calc" + + "ulatedMetrics/{calculated_metric}*\021calculatedMetrics2\020calculatedMetric\"\342\004\n" + "\025DataRetentionSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022j\n" - + "\024event_data_retention\030\002 \001(\0162G.goo" - + "gle.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022i\n" - + "\023user_data_retention\030\004 \001(\0162G.google.analytics" - + ".admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + + "\004name\030\001 \001(\tB\003\340A\010\022j\n" + + "\024event_data_retention\030\002 \001(\0162G.google.analy" + + "tics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022i\n" + + "\023user_data_retention\030\004 \001(\0162G.google.analytics.admin.v1" + + "alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + "\037reset_user_data_on_new_activity\030\003 \001(\010\"\236\001\n" + "\021RetentionDuration\022\"\n" + "\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" @@ -650,22 +669,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017FOURTEEN_MONTHS\020\003\022\025\n" + "\021TWENTY_SIX_MONTHS\020\004\022\027\n" + "\023THIRTY_EIGHT_MONTHS\020\005\022\020\n" - + "\014FIFTY_MONTHS\020\006:e\352Ab\n" - + "3analyticsadmin.googleapis.com/DataRetentionSettings\022" - + "+properties/{property}/dataRetentionSettings\"\374\013\n" + + "\014FIFTY_MONTHS\020\006:\224\001\352A\220\001\n" + + "3analyticsadmin.googleapis.com/DataRetentionSettings\022+proper" + + "ties/{property}/dataRetentionSettings*\025d" + + "ataRetentionSettings2\025dataRetentionSettings\"\374\013\n" + "\023AttributionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\227\001\n" - + ",acquisition_conversion_event_lookback_window\030\002 \001(\0162\\.google.analytic" - + "s.admin.v1alpha.AttributionSettings.Acqu" - + "isitionConversionEventLookbackWindowB\003\340A\002\022\213\001\n" + + ",acquisition_conversion_event_lookback_window\030\002 \001(\0162\\.google.analytics" + + ".admin.v1alpha.AttributionSettings.Acqui" + + "sitionConversionEventLookbackWindowB\003\340A\002\022\213\001\n" + "&other_conversion_event_lookback_window\030\003" - + " \001(\0162V.google.analytics.admin.v1al" - + "pha.AttributionSettings.OtherConversionEventLookbackWindowB\003\340A\002\022w\n" - + "\033reporting_attribution_model\030\004 \001(\0162M.google.analytics." - + "admin.v1alpha.AttributionSettings.ReportingAttributionModelB\003\340A\002\022\206\001\n" - + "$ads_web_conversion_data_export_scope\030\005 \001(\0162S.google" - + ".analytics.admin.v1alpha.AttributionSett" - + "ings.AdsWebConversionDataExportScopeB\003\340A\002\"\333\001\n" + + " \001(\0162V.google.analytics.admin.v1alp" + + "ha.AttributionSettings.OtherConversionEventLookbackWindowB\003\340A\002\022w\n" + + "\033reporting_attribution_model\030\004 \001(\0162M.google.analytics.a" + + "dmin.v1alpha.AttributionSettings.Reporti", + "ngAttributionModelB\003\340A\002\022\206\001\n" + + "$ads_web_conversion_data_export_scope\030\005 \001(\0162S.google." + + "analytics.admin.v1alpha.AttributionSetti" + + "ngs.AdsWebConversionDataExportScopeB\003\340A\002\"\333\001\n" + "(AcquisitionConversionEventLookbackWindow\022<\n" + "8ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\020\000\0227\n" + "3ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS\020\001\0228\n" @@ -679,22 +700,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\020\000\022)\n" + "%PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN\020\001\022(\n" + "$PAID_AND_ORGANIC_CHANNELS_LAST_CLICK\020\002\022#\n" - + "\037GO", - "OGLE_PAID_CHANNELS_LAST_CLICK\020\007\"\246\001\n" + + "\037GOOGLE_PAID_CHANNELS_LAST_CLICK\020\007\"\246\001\n" + "\037AdsWebConversionDataExportScope\0224\n" + "0ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED\020\000\022\024\n" + "\020NOT_SELECTED_YET\020\001\022\035\n" + "\031PAID_AND_ORGANIC_CHANNELS\020\002\022\030\n" + "\024GOOGLE_PAID_CHANNELS\020\003:a\352A^\n" - + "1analyticsadmin.googleapis.com/Att" - + "ributionSettings\022)properties/{property}/attributionSettings\"\361\001\n\r" + + "1analyticsadmin.googleapis.com/Attr" + + "ibutionSettings\022)properties/{property}/attributionSettings\"\361\001\n\r" + "AccessBinding\022\016\n" + "\004user\030\002 \001(\tH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\r\n" + "\005roles\030\003 \003(\t:\234\001\352A\230\001\n" - + "+analyticsadmin.googleapis.com/AccessBinding\0222accounts/{account}/" - + "accessBindings/{access_binding}\0225propert" - + "ies/{property}/accessBindings/{access_binding}B\017\n\r" + + "+analyticsadmin.googleapis.com/AccessBinding\0222accounts/{account}/a" + + "ccessBindings/{access_binding}\0225properti" + + "es/{property}/accessBindings/{access_binding}B\017\n\r" + "access_target\"\252\003\n" + "\014BigQueryLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" @@ -709,8 +729,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017excluded_events\030\010 \003(\t\022 \n" + "\020dataset_location\030\n" + " \001(\tB\006\340A\005\340A\002:d\352Aa\n" - + "*analyticsadmin.googleapis.com/BigQueryLink\022" - + "3properties/{property}/bigQueryLinks/{bigquery_link}\"\363\003\n" + + "*analyticsadmin.googleapis.com/BigQueryLink\0223" + + "properties/{property}/bigQueryLinks/{bigquery_link}\"\363\003\n" + "\033EnhancedMeasurementSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\026\n" + "\016stream_enabled\030\002 \001(\010\022\027\n" @@ -724,30 +744,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026search_query_parameter\030\n" + " \001(\tB\003\340A\002\022\033\n" + "\023uri_query_parameter\030\013 \001(\t:\214\001\352A\210\001\n" - + "9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\022Kp" - + "roperties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\225\002\n" + + "9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\022Kpr" + + "operties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\225\002\n" + "\025DataRedactionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\037\n" + "\027email_redaction_enabled\030\002 \001(\010\022)\n" + "!query_parameter_redaction_enabled\030\003 \001(\010\022\034\n" + "\024query_parameter_keys\030\004 \003(\t:\177\352A|\n" - + "3analyticsadmin.googleapis.com/DataRedactionSetti" - + "ngs\022Eproperties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\240\001\n" + + "3analyticsadmin.googleapis.com/DataRedactionSettin" + + "gs\022Eproperties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\240\001\n" + "\013AdSenseLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\033\n" + "\016ad_client_code\030\002 \001(\tB\003\340A\005:a\352A^\n" - + ")analyticsadmin.googleapis.com/AdSenseLink\0221properties/{" - + "property}/adSenseLinks/{adsense_link}\"\216\002\n" + + ")analyticsadmin.g" + + "oogleapis.com/AdSenseLink\0221properties/{property}/adSenseLinks/{adsense_link}\"\216\002\n" + "\030RollupPropertySourceLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\034\n" + "\017source_property\030\002 \001(\tB\003\340A\005:\300\001\352A\274\001\n" - + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\022Mproperties/{property" - + "}/rollupPropertySourceLinks/{rollup_prop" - + "erty_source_link}*\031rollupPropertySourceLinks2\030rollupPropertySourceLink\"\366\005\n" + + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\022Mproperties/{property}" + + "/rollupPropertySourceLinks/{rollup_prope" + + "rty_source_link}*\031rollupPropertySourceLinks2\030rollupPropertySourceLink\"\366\005\n" + "\027ReportingDataAnnotation\022,\n" + "\017annotation_date\030\004 \001(\0132\021.google.type.DateH\000\022b\n" - + "\025annotation_date_range\030\005 \001(\0132A.google.analytics.admin" - + ".v1alpha.ReportingDataAnnotation.DateRangeH\000\022\024\n" + + "\025annotation_date_range\030\005 \001(\0132A.google.analytics.admin." + + "v1alpha.ReportingDataAnnotation.DateRangeH\000\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\002\022\022\n" + "\005title\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022Q\n" @@ -766,35 +786,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003RED\020\005\022\010\n" + "\004CYAN\020\006\022\n\n" + "\006ORANGE\020\007:\272\001\352A\266\001\n" - + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\022Jproperties/{property}/re" - + "portingDataAnnotations/{reporting_data_a" - + "nnotation}*\030reportingDataAnnotations2\027reportingDataAnnotationB\010\n" + + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\022Jproperties/{property}/rep" + + "ortingDataAnnotations/{reporting_data_an" + + "notation}*\030reportingDataAnnotations2\027reportingDataAnnotationB\010\n" + "\006target\"\322\003\n" + "\025SubpropertySyncConfig\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022!\n" + "\021apply_to_property\030\002 \001(\tB\006\340A\005\340A\003\022}\n" - + "%custom_dimension_and_metric_sync_mode\030\003 \001(" - + "\0162I.google.analytics.admin.v1alpha.Subpr" - + "opertySyncConfig.SynchronizationModeB\003\340A\002\"N\n" + + "%custom_dimension_and_metric_sync_mode\030\003 \001(\016" + + "2I.google.analytics.admin.v1alpha.Subpro" + + "pertySyncConfig.SynchronizationModeB\003\340A\002\"N\n" + "\023SynchronizationMode\022$\n" + " SYNCHRONIZATION_MODE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\007\n" + "\003ALL\020\002:\260\001\352A\254\001\n" - + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\022Fproperties/{prope" - + "rty}/subpropertySyncConfigs/{subproperty" - + "_sync_config}*\026subpropertySyncConfigs2\025subpropertySyncConfig\"\257\003\n" + + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\022Fproperties/{proper" + + "ty}/subpropertySyncConfigs/{subproperty_" + + "sync_config}*\026subpropertySyncConfigs2\025subpropertySyncConfig\"\257\003\n" + "\031ReportingIdentitySettings\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022g\n" - + "\022reporting_identity\030\002 \001(\0162K.google.analytics." - + "admin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n" + + "\022reporting_identity\030\002 \001(\0162K.google.analytics.a" + + "dmin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n" + "\021ReportingIdentity\022*\n" + "&IDENTITY_BLENDING_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007BLENDED\020\001\022\014\n" + "\010OBSERVED\020\002\022\020\n" + "\014DEVICE_BASED\020\003:\244\001\352A\240\001\n" - + "7analyticsadmin.googleapis.com/ReportingIdentitySettings\022/propert" - + "ies/{property}/reportingIdentitySettings" - + "*\031reportingIdentitySettings2\031reportingIdentitySettings*\252\004\n" + + "7analyticsadmin.googleapis.com/ReportingIdentitySettings\022/properti" + + "es/{property}/reportingIdentitySettings*" + + "\031reportingIdentitySettings2\031reportingIdentitySettings\"\301\002\n" + + "\030UserProvidedDataSettings\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0222\n" + + "%user_provided_data_collection_enabled\030\002 \001(\010B\003\340A\001\022;\n" + + ".automatically_detected_data_collection_enabled\030\003" + + " \001(\010B\003\340A\001:\240\001\352A\234\001\n" + + "6analyticsadmin.googleapis.com/UserProvidedDataSettings\022.p" + + "roperties/{property}/userProvidedDataSet" + + "tings*\030userProvidedDataSettings2\030userProvidedDataSettings*\252\004\n" + "\020IndustryCategory\022!\n" + "\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\n" + "AUTOMOTIVE\020\001\022#\n" @@ -838,7 +866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ACTION_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007CREATED\020\001\022\013\n" + "\007UPDATED\020\002\022\013\n" - + "\007DELETED\020\003*\241\006\n" + + "\007DELETED\020\003*\302\006\n" + "\031ChangeHistoryResourceType\022,\n" + "(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007ACCOUNT\020\001\022\014\n" @@ -871,7 +899,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CALCULATED_METRIC\020\037\022\035\n" + "\031REPORTING_DATA_ANNOTATION\020 \022\033\n" + "\027SUBPROPERTY_SYNC_CONFIG\020!\022\037\n" - + "\033REPORTING_IDENTITY_SETTINGS\020\"*s\n" + + "\033REPORTING_IDENTITY_SETTINGS\020\"\022\037\n" + + "\033USER_PROVIDED_DATA_SETTINGS\020#*s\n" + "\022GoogleSignalsState\022$\n" + " GOOGLE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n" + "\026GOOGLE_SIGNALS_ENABLED\020\001\022\033\n" @@ -902,10 +931,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020COARSE_VALUE_LOW\020\001\022\027\n" + "\023COARSE_VALUE_MEDIUM\020\002\022\025\n" + "\021COARSE_VALUE_HIGH\020\003B\313\001\n" - + "\"com.google.analytics.admin.v1alphaB\016Resource" - + "sProtoP\001Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\352AR\n" - + "2marketingplatformadmin.googleapis.com/Organ" - + "ization\022\034organizations/{organization}b\006proto3" + + "\"com.google.analytics.admin.v1alphaB\016ResourcesPro" + + "toP\001Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\352AR\n" + + "2marketingplatformadmin.googleapis.com/Organizat" + + "ion\022\034organizations/{organization}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1150,6 +1179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReportingDataAnnotation", "SubpropertySyncConfig", "ReportingIdentitySettings", + "UserProvidedDataSettings", "Resource", }); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = @@ -1426,6 +1456,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "ReportingIdentity", }); + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor, + new java.lang.String[] { + "Name", + "UserProvidedDataCollectionEnabled", + "AutomaticallyDetectedDataCollectionEnabled", + }); descriptor.resolveAllFeaturesImmutable(); com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java index c597dc2f25e9..8c7275fc5e6c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java @@ -81,13 +81,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * Identifier. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
    * Format:
    * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -108,13 +108,13 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * Identifier. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
    * Format:
    * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -840,13 +840,13 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -866,13 +866,13 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -892,13 +892,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -917,13 +917,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -938,13 +938,13 @@ public Builder clearName() { * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java index cef791be5f25..6e1cedcc2c86 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java @@ -30,13 +30,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder * * *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * Identifier. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
    * Format:
    * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,13 +46,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder * * *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * Identifier. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
    * Format:
    * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java index 6b0445615fe6..f3d4e99f8a61 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java @@ -82,13 +82,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name for this SearchAds360Link resource.
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,13 +109,13 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name for this SearchAds360Link resource.
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1027,13 +1027,13 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1053,13 +1053,13 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1079,13 +1079,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1104,13 +1104,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1125,13 +1125,13 @@ public Builder clearName() { * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java index 1e763c2bcce8..392bb835ef27 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java @@ -30,13 +30,13 @@ public interface SearchAds360LinkOrBuilder * * *
-   * Output only. The resource name for this SearchAds360Link resource.
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,13 +46,13 @@ public interface SearchAds360LinkOrBuilder * * *
-   * Output only. The resource name for this SearchAds360Link resource.
+   * Identifier. 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]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettings.java new file mode 100644 index 000000000000..9e9537d1e85e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettings.java @@ -0,0 +1,843 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Configuration for user-provided data collection. This is a singleton resource
+ * for a Google Analytics property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UserProvidedDataSettings} + */ +@com.google.protobuf.Generated +public final class UserProvidedDataSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UserProvidedDataSettings) + UserProvidedDataSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserProvidedDataSettings"); + } + + // Use UserProvidedDataSettings.newBuilder() to construct. + private UserProvidedDataSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UserProvidedDataSettings() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.class, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of this setting.
+   * Format: properties/{property}/userProvidedDataSettings
+   * Example: "properties/1000/userProvidedDataSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. Resource name of this setting.
+   * Format: properties/{property}/userProvidedDataSettings
+   * Example: "properties/1000/userProvidedDataSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PROVIDED_DATA_COLLECTION_ENABLED_FIELD_NUMBER = 2; + private boolean userProvidedDataCollectionEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether this property accepts user-provided data sent to it.
+   * 
+ * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userProvidedDataCollectionEnabled. + */ + @java.lang.Override + public boolean getUserProvidedDataCollectionEnabled() { + return userProvidedDataCollectionEnabled_; + } + + public static final int AUTOMATICALLY_DETECTED_DATA_COLLECTION_ENABLED_FIELD_NUMBER = 3; + private boolean automaticallyDetectedDataCollectionEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether this property allows a Google Tag to automatically
+   * collect user-provided data from your website. This setting only takes
+   * effect if `user_provided_data_collection_enabled` is also true.
+   * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticallyDetectedDataCollectionEnabled. + */ + @java.lang.Override + public boolean getAutomaticallyDetectedDataCollectionEnabled() { + return automaticallyDetectedDataCollectionEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (userProvidedDataCollectionEnabled_ != false) { + output.writeBool(2, userProvidedDataCollectionEnabled_); + } + if (automaticallyDetectedDataCollectionEnabled_ != false) { + output.writeBool(3, automaticallyDetectedDataCollectionEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (userProvidedDataCollectionEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, userProvidedDataCollectionEnabled_); + } + if (automaticallyDetectedDataCollectionEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, automaticallyDetectedDataCollectionEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UserProvidedDataSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UserProvidedDataSettings other = + (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (getUserProvidedDataCollectionEnabled() != other.getUserProvidedDataCollectionEnabled()) + return false; + if (getAutomaticallyDetectedDataCollectionEnabled() + != other.getAutomaticallyDetectedDataCollectionEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + USER_PROVIDED_DATA_COLLECTION_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getUserProvidedDataCollectionEnabled()); + hash = (37 * hash) + AUTOMATICALLY_DETECTED_DATA_COLLECTION_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getAutomaticallyDetectedDataCollectionEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for user-provided data collection. This is a singleton resource
+   * for a Google Analytics property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UserProvidedDataSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UserProvidedDataSettings) + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.class, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UserProvidedDataSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + userProvidedDataCollectionEnabled_ = false; + automaticallyDetectedDataCollectionEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings build() { + com.google.analytics.admin.v1alpha.UserProvidedDataSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings buildPartial() { + com.google.analytics.admin.v1alpha.UserProvidedDataSettings result = + new com.google.analytics.admin.v1alpha.UserProvidedDataSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.UserProvidedDataSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userProvidedDataCollectionEnabled_ = userProvidedDataCollectionEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.automaticallyDetectedDataCollectionEnabled_ = + automaticallyDetectedDataCollectionEnabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UserProvidedDataSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.UserProvidedDataSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UserProvidedDataSettings other) { + if (other == com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUserProvidedDataCollectionEnabled() != false) { + setUserProvidedDataCollectionEnabled(other.getUserProvidedDataCollectionEnabled()); + } + if (other.getAutomaticallyDetectedDataCollectionEnabled() != false) { + setAutomaticallyDetectedDataCollectionEnabled( + other.getAutomaticallyDetectedDataCollectionEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + userProvidedDataCollectionEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + automaticallyDetectedDataCollectionEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean userProvidedDataCollectionEnabled_; + + /** + * + * + *
+     * Optional. Whether this property accepts user-provided data sent to it.
+     * 
+ * + * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userProvidedDataCollectionEnabled. + */ + @java.lang.Override + public boolean getUserProvidedDataCollectionEnabled() { + return userProvidedDataCollectionEnabled_; + } + + /** + * + * + *
+     * Optional. Whether this property accepts user-provided data sent to it.
+     * 
+ * + * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The userProvidedDataCollectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setUserProvidedDataCollectionEnabled(boolean value) { + + userProvidedDataCollectionEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether this property accepts user-provided data sent to it.
+     * 
+ * + * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearUserProvidedDataCollectionEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + userProvidedDataCollectionEnabled_ = false; + onChanged(); + return this; + } + + private boolean automaticallyDetectedDataCollectionEnabled_; + + /** + * + * + *
+     * Optional. Whether this property allows a Google Tag to automatically
+     * collect user-provided data from your website. This setting only takes
+     * effect if `user_provided_data_collection_enabled` is also true.
+     * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticallyDetectedDataCollectionEnabled. + */ + @java.lang.Override + public boolean getAutomaticallyDetectedDataCollectionEnabled() { + return automaticallyDetectedDataCollectionEnabled_; + } + + /** + * + * + *
+     * Optional. Whether this property allows a Google Tag to automatically
+     * collect user-provided data from your website. This setting only takes
+     * effect if `user_provided_data_collection_enabled` is also true.
+     * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The automaticallyDetectedDataCollectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setAutomaticallyDetectedDataCollectionEnabled(boolean value) { + + automaticallyDetectedDataCollectionEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether this property allows a Google Tag to automatically
+     * collect user-provided data from your website. This setting only takes
+     * effect if `user_provided_data_collection_enabled` is also true.
+     * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutomaticallyDetectedDataCollectionEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + automaticallyDetectedDataCollectionEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UserProvidedDataSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UserProvidedDataSettings) + private static final com.google.analytics.admin.v1alpha.UserProvidedDataSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UserProvidedDataSettings(); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProvidedDataSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java new file mode 100644 index 000000000000..b59c5571dc64 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class UserProvidedDataSettingsName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/userProvidedDataSettings"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected UserProvidedDataSettingsName() { + property = null; + } + + private UserProvidedDataSettingsName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static UserProvidedDataSettingsName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static UserProvidedDataSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, + "UserProvidedDataSettingsName.parse: formattedString not in valid format"); + return of(matchMap.get("property")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (UserProvidedDataSettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY.instantiate("property", property); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + UserProvidedDataSettingsName that = ((UserProvidedDataSettingsName) o); + return Objects.equals(this.property, that.property); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + return h; + } + + /** Builder for properties/{property}/userProvidedDataSettings. */ + public static class Builder { + private String property; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder(UserProvidedDataSettingsName userProvidedDataSettingsName) { + this.property = userProvidedDataSettingsName.property; + } + + public UserProvidedDataSettingsName build() { + return new UserProvidedDataSettingsName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsOrBuilder.java new file mode 100644 index 000000000000..ef042c9d9ea1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +@com.google.protobuf.Generated +public interface UserProvidedDataSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UserProvidedDataSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of this setting.
+   * Format: properties/{property}/userProvidedDataSettings
+   * Example: "properties/1000/userProvidedDataSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of this setting.
+   * Format: properties/{property}/userProvidedDataSettings
+   * Example: "properties/1000/userProvidedDataSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Whether this property accepts user-provided data sent to it.
+   * 
+ * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userProvidedDataCollectionEnabled. + */ + boolean getUserProvidedDataCollectionEnabled(); + + /** + * + * + *
+   * Optional. Whether this property allows a Google Tag to automatically
+   * collect user-provided data from your website. This setting only takes
+   * effect if `user_provided_data_collection_enabled` is also true.
+   * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticallyDetectedDataCollectionEnabled. + */ + boolean getAutomaticallyDetectedDataCollectionEnabled(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto index a1d497d16ada..567686a65507 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index 2b5ea77d99de..af2055300082 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -1602,7 +1602,7 @@ service AnalyticsAdminService { option (google.api.method_signature) = "name"; } - // Returns the singleton data retention settings for this property. + // Returns the reporting identity settings for this property. rpc GetReportingIdentitySettings(GetReportingIdentitySettingsRequest) returns (ReportingIdentitySettings) { option (google.api.http) = { @@ -1610,6 +1610,15 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Looks up settings related to user-provided data for a property. + rpc GetUserProvidedDataSettings(GetUserProvidedDataSettingsRequest) + returns (UserProvidedDataSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/userProvidedDataSettings}" + }; + option (google.api.method_signature) = "name"; + } } // The request for a Data Access Record Report. @@ -1750,17 +1759,17 @@ message GetAccountRequest { // Request message for ListAccounts RPC. message ListAccountsRequest { - // The maximum number of resources to return. The service may return + // Optional. 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 = 1; + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListAccounts` call. + // Optional. 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. - string page_token = 2; + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; // Whether to include soft-deleted (ie: "trashed") Accounts in the // results. Accounts can be inspected to determine whether they are deleted or @@ -1854,17 +1863,17 @@ message ListPropertiesRequest { // ``` string filter = 1 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of resources to return. The service may return + // Optional. 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; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListProperties` call. + // Optional. 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. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Whether to include soft-deleted (ie: "trashed") Properties in the // results. Properties can be inspected to determine whether they are deleted @@ -1958,17 +1967,17 @@ message ListFirebaseLinksRequest { } ]; - // The maximum number of resources to return. The service may return + // Optional. 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; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListFirebaseLinks` call. + // Optional. A page token, received from a previous `ListFirebaseLinks` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListFirebaseLinks` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListFirebaseLinks RPC @@ -2046,17 +2055,17 @@ message ListGoogleAdsLinksRequest { } ]; - // The maximum number of resources to return. + // Optional. 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; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListGoogleAdsLinks` call. + // Optional. 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. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListGoogleAdsLinks RPC. @@ -2085,17 +2094,17 @@ message GetDataSharingSettingsRequest { // Request message for ListAccountSummaries RPC. message ListAccountSummariesRequest { - // 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) - int32 page_size = 1; + // Optional. 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) + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; - // 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. - string page_token = 2; + // Optional. 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. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListAccountSummaries RPC. @@ -2273,16 +2282,17 @@ message ListMeasurementProtocolSecretsRequest { } ]; - // The maximum number of resources to return. + // Optional. 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. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // 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. - string page_token = 3; + // Optional. 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. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListMeasurementProtocolSecret RPC @@ -2362,18 +2372,18 @@ message ListSKAdNetworkConversionValueSchemasRequest { } ]; - // The maximum number of resources to return. The service may return + // Optional. 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; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous + // Optional. A page token, received from a previous // `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the // subsequent page. When paginating, all other parameters provided to // `ListSKAdNetworkConversionValueSchema` must match the call that provided // the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListSKAdNetworkConversionValueSchemas RPC @@ -2484,16 +2494,16 @@ message ListConversionEventsRequest { } ]; - // The maximum number of resources to return. + // Optional. 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; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // 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. - string page_token = 3; + // Optional. 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. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListConversionEvents RPC. @@ -2572,16 +2582,16 @@ message ListKeyEventsRequest { } ]; - // The maximum number of resources to return. + // Optional. 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; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListKeyEvents` call. + // Optional. A page token, received from a previous `ListKeyEvents` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListKeyEvents` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListKeyEvents RPC. @@ -2907,17 +2917,17 @@ message ListCustomDimensionsRequest { } ]; - // The maximum number of resources to return. + // Optional. 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; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListCustomDimensions` call. - // Provide this to retrieve the subsequent page. + // Optional. A page token, received from a previous `ListCustomDimensions` + // 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. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListCustomDimensions RPC. @@ -4625,3 +4635,15 @@ message GetReportingIdentitySettingsRequest { } ]; } + +// Request message for GetUserProvidedDataSettings RPC +message GetUserProvidedDataSettingsRequest { + // Required. The name of the user provided data settings to retrieve. + // Format: properties/{property}/userProvidedDataSettings + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/UserProvidedDataSettings" + } + ]; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto index c17562fb6a9f..39497c2c2b60 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto index 61862f7fde25..2c1a3b932b5a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto index 9dbbe1bf0cc1..f96a8d57c119 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto index a31eb4cb1330..12481d71591c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index d666b945c24b..d253a61e5c84 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -253,6 +253,9 @@ enum ChangeHistoryResourceType { // ReportingIdentitySettings resource REPORTING_IDENTITY_SETTINGS = 34; + + // UserProvidedDataSettings resource + USER_PROVIDED_DATA_SETTINGS = 35; } // Status of the Google Signals settings. @@ -365,12 +368,14 @@ message Account { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Account" pattern: "accounts/{account}" + plural: "accounts" + singular: "account" }; - // Output only. Resource name of this account. + // Identifier. Resource name of this account. // Format: accounts/{account} // Example: "accounts/100" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Time when this account was originally created. google.protobuf.Timestamp create_time = 2 @@ -406,12 +411,14 @@ message Property { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Property" pattern: "properties/{property}" + plural: "properties" + singular: "property" }; - // Output only. Resource name of this property. + // Identifier. Resource name of this property. // Format: properties/{property_id} // Example: "properties/1000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The property type for this Property resource. When creating a // property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then @@ -491,6 +498,8 @@ message DataStream { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataStream" pattern: "properties/{property}/dataStreams/{data_stream}" + plural: "dataStreams" + singular: "dataStream" }; // Data specific to web streams. @@ -565,10 +574,10 @@ message DataStream { IosAppStreamData ios_app_stream_data = 8; } - // Output only. Resource name of this Data Stream. + // Identifier. Resource name of this Data Stream. // Format: properties/{property_id}/dataStreams/{stream_id} // Example: "properties/1000/dataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. The type of this DataStream resource. DataStreamType type = 2 [ @@ -597,10 +606,12 @@ message FirebaseLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/FirebaseLink" pattern: "properties/{property}/firebaseLinks/{firebase_link}" + plural: "firebaseLinks" + singular: "firebaseLink" }; - // Output only. Example format: properties/1234/firebaseLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Identifier. Example format: properties/1234/firebaseLinks/5678 + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. Firebase project resource name. When creating a FirebaseLink, // you may provide this resource name using either a project number or project @@ -622,12 +633,14 @@ message GlobalSiteTag { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GlobalSiteTag" pattern: "properties/{property}/dataStreams/{data_stream}/globalSiteTag" + plural: "globalSiteTags" + singular: "globalSiteTag" }; - // Output only. Resource name for this GlobalSiteTag resource. + // Identifier. Resource name for this GlobalSiteTag resource. // Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag // Example: "properties/123/dataStreams/456/globalSiteTag" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. JavaScript code snippet to be pasted as the first item into the // head tag of every webpage to measure. @@ -639,13 +652,15 @@ message GoogleAdsLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GoogleAdsLink" pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" + plural: "googleAdsLinks" + singular: "googleAdsLink" }; - // Output only. Format: + // Identifier. Format: // properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} // // Note: googleAdsLinkId is not the Google Ads customer ID. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. Google Ads customer ID. string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; @@ -678,12 +693,14 @@ message DataSharingSettings { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataSharingSettings" pattern: "accounts/{account}/dataSharingSettings" + plural: "dataSharingSettings" + singular: "dataSharingSettings" }; - // Output only. Resource name. + // Identifier. Resource name. // Format: accounts/{account}/dataSharingSettings // Example: "accounts/1000/dataSharingSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Allows Google technical support representatives access to your Google // Analytics data and account when necessary to provide service and find @@ -730,12 +747,14 @@ message AccountSummary { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/AccountSummary" pattern: "accountSummaries/{account_summary}" + plural: "accountSummaries" + singular: "accountSummary" }; - // Resource name for this account summary. + // Identifier. Resource name for this account summary. // Format: accountSummaries/{account_id} // Example: "accountSummaries/1000" - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Resource name of account referred to by this account summary // Format: accounts/{account_id} @@ -779,12 +798,14 @@ message MeasurementProtocolSecret { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + plural: "measurementProtocolSecrets" + singular: "measurementProtocolSecret" }; - // Output only. Resource name of this secret. This secret may be a child of - // any type of stream. Format: + // Identifier. 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]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Human-readable display name for this secret. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; @@ -800,13 +821,15 @@ message SKAdNetworkConversionValueSchema { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema" pattern: "properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}" + plural: "skAdNetworkConversionValueSchemas" + singular: "skAdNetworkConversionValueSchema" }; - // Output only. Resource name of the schema. This will be child of ONLY an iOS + // Identifier. Resource name of the schema. This will be child of ONLY an iOS // stream, and there can be at most one such child under an iOS stream. // Format: // properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. The conversion value settings for the first postback window. // These differ from values for postback window two and three in that they @@ -1042,6 +1065,9 @@ message ChangeHistoryChange { // A snapshot of a ReportingIdentitySettings resource in change history. ReportingIdentitySettings reporting_identity_settings = 34; + + // A snapshot of a UserProvidedDataSettings resource in change history. + UserProvidedDataSettings user_provided_data_settings = 35; } } @@ -1066,14 +1092,16 @@ message DisplayVideo360AdvertiserLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" pattern: "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}" + plural: "displayVideo360AdvertiserLinks" + singular: "displayVideo360AdvertiserLink" }; - // Output only. The resource name for this DisplayVideo360AdvertiserLink + // Identifier. 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]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The Display & Video 360 Advertiser's advertiser ID. string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; @@ -1112,14 +1140,16 @@ message DisplayVideo360AdvertiserLinkProposal { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" pattern: "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}" + plural: "displayVideo360AdvertiserLinkProposals" + singular: "displayVideo360AdvertiserLinkProposal" }; - // Output only. The resource name for this + // Identifier. The resource name for this // DisplayVideo360AdvertiserLinkProposal resource. Format: // properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} // // Note: proposalId is not the Display & Video 360 Advertiser ID - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The Display & Video 360 Advertiser's advertiser ID. string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; @@ -1163,13 +1193,15 @@ message SearchAds360Link { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/SearchAds360Link" pattern: "properties/{property}/searchAds360Links/{search_ads_360_link}" + plural: "searchAds360Links" + singular: "searchAds360Link" }; - // Output only. The resource name for this SearchAds360Link resource. + // Identifier. 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]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. This field represents the Advertiser ID of the Search Ads 360 // Advertiser. that has been linked. @@ -1223,6 +1255,8 @@ message ConversionEvent { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/ConversionEvent" pattern: "properties/{property}/conversionEvents/{conversion_event}" + plural: "conversionEvents" + singular: "conversionEvent" }; // Defines a default value/currency for a conversion event. Both value and @@ -1253,9 +1287,9 @@ message ConversionEvent { ONCE_PER_SESSION = 2; } - // Output only. Resource name of this conversion event. + // Identifier. Resource name of this conversion event. // Format: properties/{property}/conversionEvents/{conversion_event} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The event name for this conversion event. // Examples: 'click', 'purchase' @@ -1381,6 +1415,8 @@ message CustomDimension { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomDimension" pattern: "properties/{property}/customDimensions/{custom_dimension}" + plural: "customDimensions" + singular: "customDimension" }; // Valid values for the scope of this dimension. @@ -1398,9 +1434,9 @@ message CustomDimension { ITEM = 3; } - // Output only. Resource name for this CustomDimension resource. + // Identifier. Resource name for this CustomDimension resource. // Format: properties/{property}/customDimensions/{customDimension} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. Tagging parameter name for this custom dimension. // @@ -1449,6 +1485,8 @@ message CustomMetric { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomMetric" pattern: "properties/{property}/customMetrics/{custom_metric}" + plural: "customMetrics" + singular: "customMetric" }; // Possible types of representing the custom metric's value. @@ -1512,9 +1550,9 @@ message CustomMetric { REVENUE_DATA = 2; } - // Output only. Resource name for this CustomMetric resource. + // Identifier. Resource name for this CustomMetric resource. // Format: properties/{property}/customMetrics/{customMetric} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. Tagging name for this custom metric. // @@ -1613,9 +1651,9 @@ message CalculatedMetric { REVENUE_DATA = 2; } - // Output only. Resource name for this CalculatedMetric. + // Identifier. Resource name for this CalculatedMetric. // Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}' - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. Description for this calculated metric. // Max length of 4096 characters. @@ -1659,6 +1697,8 @@ message DataRetentionSettings { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataRetentionSettings" pattern: "properties/{property}/dataRetentionSettings" + plural: "dataRetentionSettings" + singular: "dataRetentionSettings" }; // Valid values for the data retention duration. @@ -1685,9 +1725,9 @@ message DataRetentionSettings { FIFTY_MONTHS = 6; } - // Output only. Resource name for this DataRetentionSetting resource. + // Identifier. Resource name for this DataRetentionSetting resource. // Format: properties/{property}/dataRetentionSettings - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. The length of time that event-level data is retained. RetentionDuration event_data_retention = 2 @@ -2220,3 +2260,29 @@ message ReportingIdentitySettings { // The strategy used for identifying user identities in reports. ReportingIdentity reporting_identity = 2; } + +// Configuration for user-provided data collection. This is a singleton resource +// for a Google Analytics property. +message UserProvidedDataSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/UserProvidedDataSettings" + pattern: "properties/{property}/userProvidedDataSettings" + plural: "userProvidedDataSettings" + singular: "userProvidedDataSettings" + }; + + // Identifier. Resource name of this setting. + // Format: properties/{property}/userProvidedDataSettings + // Example: "properties/1000/userProvidedDataSettings" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Whether this property accepts user-provided data sent to it. + bool user_provided_data_collection_enabled = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether this property allows a Google Tag to automatically + // collect user-provided data from your website. This setting only takes + // effect if `user_provided_data_collection_enabled` is also true. + bool automatically_detected_data_collection_enabled = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto index 89e062a890a8..4a2e00a5103c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml index 83a7d5a97f6f..ffdb423a0ac4 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.101.0 + 0.102.0 proto-google-analytics-admin-v1beta Proto library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.101.0 + 0.102.0 diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/AsyncGetUserProvidedDataSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/AsyncGetUserProvidedDataSettings.java new file mode 100644 index 000000000000..2d032e31bfff --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/AsyncGetUserProvidedDataSettings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettingsName; +import com.google.api.core.ApiFuture; + +public class AsyncGetUserProvidedDataSettings { + + public static void main(String[] args) throws Exception { + asyncGetUserProvidedDataSettings(); + } + + public static void asyncGetUserProvidedDataSettings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetUserProvidedDataSettingsRequest request = + GetUserProvidedDataSettingsRequest.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.getUserProvidedDataSettingsCallable().futureCall(request); + // Do something. + UserProvidedDataSettings response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettings.java new file mode 100644 index 000000000000..21e3fd38ef6a --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettings.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettingsName; + +public class SyncGetUserProvidedDataSettings { + + public static void main(String[] args) throws Exception { + syncGetUserProvidedDataSettings(); + } + + public static void syncGetUserProvidedDataSettings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetUserProvidedDataSettingsRequest request = + GetUserProvidedDataSettingsRequest.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .build(); + UserProvidedDataSettings response = + analyticsAdminServiceClient.getUserProvidedDataSettings(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsString.java new file mode 100644 index 000000000000..b0422d15e677 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_String_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettingsName; + +public class SyncGetUserProvidedDataSettingsString { + + public static void main(String[] args) throws Exception { + syncGetUserProvidedDataSettingsString(); + } + + public static void syncGetUserProvidedDataSettingsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String name = UserProvidedDataSettingsName.of("[PROPERTY]").toString(); + UserProvidedDataSettings response = + analyticsAdminServiceClient.getUserProvidedDataSettings(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsUserprovideddatasettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsUserprovideddatasettingsname.java new file mode 100644 index 000000000000..02814ee08767 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsUserprovideddatasettingsname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_Userprovideddatasettingsname_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettingsName; + +public class SyncGetUserProvidedDataSettingsUserprovideddatasettingsname { + + public static void main(String[] args) throws Exception { + syncGetUserProvidedDataSettingsUserprovideddatasettingsname(); + } + + public static void syncGetUserProvidedDataSettingsUserprovideddatasettingsname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + UserProvidedDataSettings response = + analyticsAdminServiceClient.getUserProvidedDataSettings(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_Userprovideddatasettingsname_sync] diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 54b22f7c7845..908620a0b824 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.101.0 + 0.102.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.101.0' +implementation 'com.google.analytics:google-analytics-data:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.101.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.102.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-data/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index d1e19d83cc7b..8ca14d506502 100644 --- a/java-analytics-data/google-analytics-data-bom/pom.xml +++ b/java-analytics-data/google-analytics-data-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.102.0 + 0.103.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-data - 0.102.0 + 0.103.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.102.0 + 0.103.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.102.0 + 0.103.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.102.0 + 0.103.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.102.0 + 0.103.0 diff --git a/java-analytics-data/google-analytics-data/pom.xml b/java-analytics-data/google-analytics-data/pom.xml index 90ec56e85939..8112ea3ba5ac 100644 --- a/java-analytics-data/google-analytics-data/pom.xml +++ b/java-analytics-data/google-analytics-data/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-data - 0.102.0 + 0.103.0 jar Google Analytics Data provides programmatic methods to access report data in Google Analytics App+Web properties. com.google.analytics google-analytics-data-parent - 0.102.0 + 0.103.0 google-analytics-data diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java index 50c335897e5d..3534b78bc29a 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java @@ -140,28 +140,6 @@ * * * - *

SheetExportAudienceList - *

Exports an audience list of users to a Google Sheet. After creating an audience, the users are not immediately available for listing. First, a request to `CreateAudienceList` is necessary to create an audience list of users, and then second, this method is used to export those users in the audience list to a Google Sheet. - *

See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. - *

Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. - *

This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • sheetExportAudienceList(SheetExportAudienceListRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • sheetExportAudienceList(AudienceListName name) - *

  • sheetExportAudienceList(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • sheetExportAudienceListCallable() - *

- * - * - * *

GetAudienceList *

Gets configuration metadata about a specific audience list. This method can be used to understand an audience list after it has been created. *

See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. @@ -364,6 +342,40 @@ * * * + * + *

RunReport + *

Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • runReport(RunReportRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • runReportCallable() + *

+ * + * + * + *

GetMetadata + *

Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics property identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. + *

For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getMetadata(GetMetadataRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getMetadata(MetadataName name) + *

  • getMetadata(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getMetadataCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -995,189 +1007,6 @@ public final QueryAudienceListResponse queryAudienceList(QueryAudienceListReques return stub.queryAudienceListCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports an audience list of users to a Google Sheet. After creating an audience, the users are - * not immediately available for listing. First, a request to `CreateAudienceList` is necessary to - * create an audience list of users, and then second, this method is used to export those users in - * the audience list to a Google Sheet. - * - *

See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - *

Audiences in Google Analytics 4 allow you to segment your users in the ways that are - * important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - *

This method is introduced at alpha stability with the intention of gathering feedback on - * syntax and capabilities before entering beta. To give your feedback on this API, complete the - * [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   AudienceListName name = AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]");
-   *   SheetExportAudienceListResponse response =
-   *       alphaAnalyticsDataClient.sheetExportAudienceList(name);
-   * }
-   * }
- * - * @param name Required. The name of the audience list to retrieve users from. Format: - * `properties/{property}/audienceLists/{audience_list}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SheetExportAudienceListResponse sheetExportAudienceList(AudienceListName name) { - SheetExportAudienceListRequest request = - SheetExportAudienceListRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return sheetExportAudienceList(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports an audience list of users to a Google Sheet. After creating an audience, the users are - * not immediately available for listing. First, a request to `CreateAudienceList` is necessary to - * create an audience list of users, and then second, this method is used to export those users in - * the audience list to a Google Sheet. - * - *

See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - *

Audiences in Google Analytics 4 allow you to segment your users in the ways that are - * important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - *

This method is introduced at alpha stability with the intention of gathering feedback on - * syntax and capabilities before entering beta. To give your feedback on this API, complete the - * [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   String name = AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]").toString();
-   *   SheetExportAudienceListResponse response =
-   *       alphaAnalyticsDataClient.sheetExportAudienceList(name);
-   * }
-   * }
- * - * @param name Required. The name of the audience list to retrieve users from. Format: - * `properties/{property}/audienceLists/{audience_list}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SheetExportAudienceListResponse sheetExportAudienceList(String name) { - SheetExportAudienceListRequest request = - SheetExportAudienceListRequest.newBuilder().setName(name).build(); - return sheetExportAudienceList(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports an audience list of users to a Google Sheet. After creating an audience, the users are - * not immediately available for listing. First, a request to `CreateAudienceList` is necessary to - * create an audience list of users, and then second, this method is used to export those users in - * the audience list to a Google Sheet. - * - *

See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - *

Audiences in Google Analytics 4 allow you to segment your users in the ways that are - * important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - *

This method is introduced at alpha stability with the intention of gathering feedback on - * syntax and capabilities before entering beta. To give your feedback on this API, complete the - * [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   SheetExportAudienceListRequest request =
-   *       SheetExportAudienceListRequest.newBuilder()
-   *           .setName(AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]").toString())
-   *           .setOffset(-1019779949)
-   *           .setLimit(102976443)
-   *           .build();
-   *   SheetExportAudienceListResponse response =
-   *       alphaAnalyticsDataClient.sheetExportAudienceList(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SheetExportAudienceListResponse sheetExportAudienceList( - SheetExportAudienceListRequest request) { - return sheetExportAudienceListCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports an audience list of users to a Google Sheet. After creating an audience, the users are - * not immediately available for listing. First, a request to `CreateAudienceList` is necessary to - * create an audience list of users, and then second, this method is used to export those users in - * the audience list to a Google Sheet. - * - *

See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - *

Audiences in Google Analytics 4 allow you to segment your users in the ways that are - * important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - *

This method is introduced at alpha stability with the intention of gathering feedback on - * syntax and capabilities before entering beta. To give your feedback on this API, complete the - * [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   SheetExportAudienceListRequest request =
-   *       SheetExportAudienceListRequest.newBuilder()
-   *           .setName(AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]").toString())
-   *           .setOffset(-1019779949)
-   *           .setLimit(102976443)
-   *           .build();
-   *   ApiFuture future =
-   *       alphaAnalyticsDataClient.sheetExportAudienceListCallable().futureCall(request);
-   *   // Do something.
-   *   SheetExportAudienceListResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - sheetExportAudienceListCallable() { - return stub.sheetExportAudienceListCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets configuration metadata about a specific audience list. This method can be used to @@ -2793,6 +2622,245 @@ public final ListReportTasksPagedResponse listReportTasks(ListReportTasksRequest return stub.listReportTasksCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a customized report of your Google Analytics event data. Reports contain statistics + * derived from data collected by the Google Analytics tracking code. The data returned from the + * API is as a table with columns for the requested dimensions and metrics. Metrics are individual + * measurements of user activity on your property, such as active users or event count. Dimensions + * break down metrics across some common criteria, such as country or event name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+   *   RunReportRequest request =
+   *       RunReportRequest.newBuilder()
+   *           .setProperty("property-993141291")
+   *           .addAllDimensions(new ArrayList())
+   *           .addAllMetrics(new ArrayList())
+   *           .addAllDateRanges(new ArrayList())
+   *           .setDimensionFilter(FilterExpression.newBuilder().build())
+   *           .setMetricFilter(FilterExpression.newBuilder().build())
+   *           .setOffset(-1019779949)
+   *           .setLimit(102976443)
+   *           .addAllMetricAggregations(new ArrayList())
+   *           .addAllOrderBys(new ArrayList())
+   *           .setCurrencyCode("currencyCode1004773790")
+   *           .setCohortSpec(CohortSpec.newBuilder().build())
+   *           .setKeepEmptyRows(true)
+   *           .setReturnPropertyQuota(true)
+   *           .addAllComparisons(new ArrayList())
+   *           .setConversionSpec(ConversionSpec.newBuilder().build())
+   *           .build();
+   *   RunReportResponse response = alphaAnalyticsDataClient.runReport(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RunReportResponse runReport(RunReportRequest request) { + return runReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a customized report of your Google Analytics event data. Reports contain statistics + * derived from data collected by the Google Analytics tracking code. The data returned from the + * API is as a table with columns for the requested dimensions and metrics. Metrics are individual + * measurements of user activity on your property, such as active users or event count. Dimensions + * break down metrics across some common criteria, such as country or event name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+   *   RunReportRequest request =
+   *       RunReportRequest.newBuilder()
+   *           .setProperty("property-993141291")
+   *           .addAllDimensions(new ArrayList())
+   *           .addAllMetrics(new ArrayList())
+   *           .addAllDateRanges(new ArrayList())
+   *           .setDimensionFilter(FilterExpression.newBuilder().build())
+   *           .setMetricFilter(FilterExpression.newBuilder().build())
+   *           .setOffset(-1019779949)
+   *           .setLimit(102976443)
+   *           .addAllMetricAggregations(new ArrayList())
+   *           .addAllOrderBys(new ArrayList())
+   *           .setCurrencyCode("currencyCode1004773790")
+   *           .setCohortSpec(CohortSpec.newBuilder().build())
+   *           .setKeepEmptyRows(true)
+   *           .setReturnPropertyQuota(true)
+   *           .addAllComparisons(new ArrayList())
+   *           .setConversionSpec(ConversionSpec.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       alphaAnalyticsDataClient.runReportCallable().futureCall(request);
+   *   // Do something.
+   *   RunReportResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable runReportCallable() { + return stub.runReportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the + * dimensions and metrics. In this method, a Google Analytics property identifier is specified in + * the request, and the metadata response includes Custom dimensions and metrics as well as + * Universal metadata. + * + *

For example if a custom metric with parameter name `levels_unlocked` is registered to a + * property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata + * are dimensions and metrics applicable to any property such as `country` and `totalUsers`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+   *   MetadataName name = MetadataName.of("[PROPERTY]");
+   *   Metadata response = alphaAnalyticsDataClient.getMetadata(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the metadata to retrieve. This name field is + * specified in the URL path and not URL parameters. Property is a numeric Google Analytics + * property identifier. To learn more, see [where to find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + *

Example: properties/1234/metadata + *

Set the Property ID to 0 for dimensions and metrics common to all properties. In this + * special mode, this method will not return custom dimensions and metrics. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Metadata getMetadata(MetadataName name) { + GetMetadataRequest request = + GetMetadataRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMetadata(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the + * dimensions and metrics. In this method, a Google Analytics property identifier is specified in + * the request, and the metadata response includes Custom dimensions and metrics as well as + * Universal metadata. + * + *

For example if a custom metric with parameter name `levels_unlocked` is registered to a + * property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata + * are dimensions and metrics applicable to any property such as `country` and `totalUsers`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+   *   String name = MetadataName.of("[PROPERTY]").toString();
+   *   Metadata response = alphaAnalyticsDataClient.getMetadata(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the metadata to retrieve. This name field is + * specified in the URL path and not URL parameters. Property is a numeric Google Analytics + * property identifier. To learn more, see [where to find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + *

Example: properties/1234/metadata + *

Set the Property ID to 0 for dimensions and metrics common to all properties. In this + * special mode, this method will not return custom dimensions and metrics. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Metadata getMetadata(String name) { + GetMetadataRequest request = GetMetadataRequest.newBuilder().setName(name).build(); + return getMetadata(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the + * dimensions and metrics. In this method, a Google Analytics property identifier is specified in + * the request, and the metadata response includes Custom dimensions and metrics as well as + * Universal metadata. + * + *

For example if a custom metric with parameter name `levels_unlocked` is registered to a + * property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata + * are dimensions and metrics applicable to any property such as `country` and `totalUsers`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+   *   GetMetadataRequest request =
+   *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
+   *   Metadata response = alphaAnalyticsDataClient.getMetadata(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Metadata getMetadata(GetMetadataRequest request) { + return getMetadataCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the + * dimensions and metrics. In this method, a Google Analytics property identifier is specified in + * the request, and the metadata response includes Custom dimensions and metrics as well as + * Universal metadata. + * + *

For example if a custom metric with parameter name `levels_unlocked` is registered to a + * property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata + * are dimensions and metrics applicable to any property such as `country` and `totalUsers`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+   *   GetMetadataRequest request =
+   *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
+   *   ApiFuture future =
+   *       alphaAnalyticsDataClient.getMetadataCallable().futureCall(request);
+   *   // Do something.
+   *   Metadata response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getMetadataCallable() { + return stub.getMetadataCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java index b18e3b420043..7bf2a4425ff3 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java @@ -144,12 +144,6 @@ public UnaryCallSettings createAudienceLis return ((AlphaAnalyticsDataStubSettings) getStubSettings()).queryAudienceListSettings(); } - /** Returns the object with the settings used for calls to sheetExportAudienceList. */ - public UnaryCallSettings - sheetExportAudienceListSettings() { - return ((AlphaAnalyticsDataStubSettings) getStubSettings()).sheetExportAudienceListSettings(); - } - /** Returns the object with the settings used for calls to getAudienceList. */ public UnaryCallSettings getAudienceListSettings() { return ((AlphaAnalyticsDataStubSettings) getStubSettings()).getAudienceListSettings(); @@ -220,6 +214,16 @@ public UnaryCallSettings getReportTaskSettings return ((AlphaAnalyticsDataStubSettings) getStubSettings()).listReportTasksSettings(); } + /** Returns the object with the settings used for calls to runReport. */ + public UnaryCallSettings runReportSettings() { + return ((AlphaAnalyticsDataStubSettings) getStubSettings()).runReportSettings(); + } + + /** Returns the object with the settings used for calls to getMetadata. */ + public UnaryCallSettings getMetadataSettings() { + return ((AlphaAnalyticsDataStubSettings) getStubSettings()).getMetadataSettings(); + } + public static final AlphaAnalyticsDataSettings create(AlphaAnalyticsDataStubSettings stub) throws IOException { return new AlphaAnalyticsDataSettings.Builder(stub.toBuilder()).build(); @@ -357,13 +361,6 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().queryAudienceListSettings(); } - /** Returns the builder for the settings used for calls to sheetExportAudienceList. */ - public UnaryCallSettings.Builder< - SheetExportAudienceListRequest, SheetExportAudienceListResponse> - sheetExportAudienceListSettings() { - return getStubSettingsBuilder().sheetExportAudienceListSettings(); - } - /** Returns the builder for the settings used for calls to getAudienceList. */ public UnaryCallSettings.Builder getAudienceListSettings() { @@ -434,6 +431,16 @@ public UnaryCallSettings.Builder getReportTask return getStubSettingsBuilder().listReportTasksSettings(); } + /** Returns the builder for the settings used for calls to runReport. */ + public UnaryCallSettings.Builder runReportSettings() { + return getStubSettingsBuilder().runReportSettings(); + } + + /** Returns the builder for the settings used for calls to getMetadata. */ + public UnaryCallSettings.Builder getMetadataSettings() { + return getStubSettingsBuilder().getMetadataSettings(); + } + @Override public AlphaAnalyticsDataSettings build() throws IOException { return new AlphaAnalyticsDataSettings(this); diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json index e2d6c5294bee..139c1f3163b5 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json @@ -22,6 +22,9 @@ "GetAudienceList": { "methods": ["getAudienceList", "getAudienceList", "getAudienceList", "getAudienceListCallable"] }, + "GetMetadata": { + "methods": ["getMetadata", "getMetadata", "getMetadata", "getMetadataCallable"] + }, "GetPropertyQuotasSnapshot": { "methods": ["getPropertyQuotasSnapshot", "getPropertyQuotasSnapshot", "getPropertyQuotasSnapshot", "getPropertyQuotasSnapshotCallable"] }, @@ -49,8 +52,8 @@ "RunFunnelReport": { "methods": ["runFunnelReport", "runFunnelReportCallable"] }, - "SheetExportAudienceList": { - "methods": ["sheetExportAudienceList", "sheetExportAudienceList", "sheetExportAudienceList", "sheetExportAudienceListCallable"] + "RunReport": { + "methods": ["runReport", "runReportCallable"] } } } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java index cbc33d099e7a..0a327e94cada 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java @@ -26,6 +26,7 @@ import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.CreateReportTaskRequest; import com.google.analytics.data.v1alpha.GetAudienceListRequest; +import com.google.analytics.data.v1alpha.GetMetadataRequest; import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.GetReportTaskRequest; @@ -35,6 +36,7 @@ import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse; import com.google.analytics.data.v1alpha.ListReportTasksRequest; import com.google.analytics.data.v1alpha.ListReportTasksResponse; +import com.google.analytics.data.v1alpha.Metadata; import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; import com.google.analytics.data.v1alpha.QueryAudienceListRequest; import com.google.analytics.data.v1alpha.QueryAudienceListResponse; @@ -45,8 +47,8 @@ import com.google.analytics.data.v1alpha.ReportTaskMetadata; import com.google.analytics.data.v1alpha.RunFunnelReportRequest; import com.google.analytics.data.v1alpha.RunFunnelReportResponse; -import com.google.analytics.data.v1alpha.SheetExportAudienceListRequest; -import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse; +import com.google.analytics.data.v1alpha.RunReportRequest; +import com.google.analytics.data.v1alpha.RunReportResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; @@ -92,11 +94,6 @@ public UnaryCallable createAudienceListCal throw new UnsupportedOperationException("Not implemented: queryAudienceListCallable()"); } - public UnaryCallable - sheetExportAudienceListCallable() { - throw new UnsupportedOperationException("Not implemented: sheetExportAudienceListCallable()"); - } - public UnaryCallable getAudienceListCallable() { throw new UnsupportedOperationException("Not implemented: getAudienceListCallable()"); } @@ -165,6 +162,14 @@ public UnaryCallable listReport throw new UnsupportedOperationException("Not implemented: listReportTasksCallable()"); } + public UnaryCallable runReportCallable() { + throw new UnsupportedOperationException("Not implemented: runReportCallable()"); + } + + public UnaryCallable getMetadataCallable() { + throw new UnsupportedOperationException("Not implemented: getMetadataCallable()"); + } + @Override public abstract void close(); } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java index 46e0578970f3..21903cda268b 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java @@ -26,6 +26,7 @@ import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.CreateReportTaskRequest; import com.google.analytics.data.v1alpha.GetAudienceListRequest; +import com.google.analytics.data.v1alpha.GetMetadataRequest; import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.GetReportTaskRequest; @@ -35,6 +36,7 @@ import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse; import com.google.analytics.data.v1alpha.ListReportTasksRequest; import com.google.analytics.data.v1alpha.ListReportTasksResponse; +import com.google.analytics.data.v1alpha.Metadata; import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; import com.google.analytics.data.v1alpha.QueryAudienceListRequest; import com.google.analytics.data.v1alpha.QueryAudienceListResponse; @@ -45,8 +47,8 @@ import com.google.analytics.data.v1alpha.ReportTaskMetadata; import com.google.analytics.data.v1alpha.RunFunnelReportRequest; import com.google.analytics.data.v1alpha.RunFunnelReportResponse; -import com.google.analytics.data.v1alpha.SheetExportAudienceListRequest; -import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse; +import com.google.analytics.data.v1alpha.RunReportRequest; +import com.google.analytics.data.v1alpha.RunReportResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -174,9 +176,6 @@ public class AlphaAnalyticsDataStubSettings extends StubSettingsbuilder() .add("https://www.googleapis.com/auth/analytics") .add("https://www.googleapis.com/auth/analytics.readonly") - .add("https://www.googleapis.com/auth/drive") - .add("https://www.googleapis.com/auth/drive.file") - .add("https://www.googleapis.com/auth/spreadsheets") .build(); private final UnaryCallSettings @@ -186,8 +185,6 @@ public class AlphaAnalyticsDataStubSettings extends StubSettings queryAudienceListSettings; - private final UnaryCallSettings - sheetExportAudienceListSettings; private final UnaryCallSettings getAudienceListSettings; private final PagedCallSettings< ListAudienceListsRequest, ListAudienceListsResponse, ListAudienceListsPagedResponse> @@ -212,6 +209,8 @@ public class AlphaAnalyticsDataStubSettings extends StubSettings listReportTasksSettings; + private final UnaryCallSettings runReportSettings; + private final UnaryCallSettings getMetadataSettings; private static final PagedListDescriptor< ListAudienceListsRequest, ListAudienceListsResponse, AudienceList> @@ -424,12 +423,6 @@ public UnaryCallSettings createAudienceLis return queryAudienceListSettings; } - /** Returns the object with the settings used for calls to sheetExportAudienceList. */ - public UnaryCallSettings - sheetExportAudienceListSettings() { - return sheetExportAudienceListSettings; - } - /** Returns the object with the settings used for calls to getAudienceList. */ public UnaryCallSettings getAudienceListSettings() { return getAudienceListSettings; @@ -498,6 +491,16 @@ public UnaryCallSettings getReportTaskSettings return listReportTasksSettings; } + /** Returns the object with the settings used for calls to runReport. */ + public UnaryCallSettings runReportSettings() { + return runReportSettings; + } + + /** Returns the object with the settings used for calls to getMetadata. */ + public UnaryCallSettings getMetadataSettings() { + return getMetadataSettings; + } + public AlphaAnalyticsDataStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -614,7 +617,6 @@ protected AlphaAnalyticsDataStubSettings(Builder settingsBuilder) throws IOExcep createAudienceListOperationSettings = settingsBuilder.createAudienceListOperationSettings().build(); queryAudienceListSettings = settingsBuilder.queryAudienceListSettings().build(); - sheetExportAudienceListSettings = settingsBuilder.sheetExportAudienceListSettings().build(); getAudienceListSettings = settingsBuilder.getAudienceListSettings().build(); listAudienceListsSettings = settingsBuilder.listAudienceListsSettings().build(); createRecurringAudienceListSettings = @@ -628,6 +630,8 @@ protected AlphaAnalyticsDataStubSettings(Builder settingsBuilder) throws IOExcep queryReportTaskSettings = settingsBuilder.queryReportTaskSettings().build(); getReportTaskSettings = settingsBuilder.getReportTaskSettings().build(); listReportTasksSettings = settingsBuilder.listReportTasksSettings().build(); + runReportSettings = settingsBuilder.runReportSettings().build(); + getMetadataSettings = settingsBuilder.getMetadataSettings().build(); } @Override @@ -652,9 +656,6 @@ public static class Builder createAudienceListOperationSettings; private final UnaryCallSettings.Builder queryAudienceListSettings; - private final UnaryCallSettings.Builder< - SheetExportAudienceListRequest, SheetExportAudienceListResponse> - sheetExportAudienceListSettings; private final UnaryCallSettings.Builder getAudienceListSettings; private final PagedCallSettings.Builder< @@ -684,6 +685,8 @@ public static class Builder private final PagedCallSettings.Builder< ListReportTasksRequest, ListReportTasksResponse, ListReportTasksPagedResponse> listReportTasksSettings; + private final UnaryCallSettings.Builder runReportSettings; + private final UnaryCallSettings.Builder getMetadataSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -736,7 +739,6 @@ protected Builder(ClientContext clientContext) { createAudienceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createAudienceListOperationSettings = OperationCallSettings.newBuilder(); queryAudienceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - sheetExportAudienceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getAudienceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAudienceListsSettings = PagedCallSettings.newBuilder(LIST_AUDIENCE_LISTS_PAGE_STR_FACT); createRecurringAudienceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -749,13 +751,14 @@ protected Builder(ClientContext clientContext) { queryReportTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getReportTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listReportTasksSettings = PagedCallSettings.newBuilder(LIST_REPORT_TASKS_PAGE_STR_FACT); + runReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getMetadataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( runFunnelReportSettings, createAudienceListSettings, queryAudienceListSettings, - sheetExportAudienceListSettings, getAudienceListSettings, listAudienceListsSettings, createRecurringAudienceListSettings, @@ -765,7 +768,9 @@ protected Builder(ClientContext clientContext) { createReportTaskSettings, queryReportTaskSettings, getReportTaskSettings, - listReportTasksSettings); + listReportTasksSettings, + runReportSettings, + getMetadataSettings); initDefaults(this); } @@ -777,7 +782,6 @@ protected Builder(AlphaAnalyticsDataStubSettings settings) { createAudienceListOperationSettings = settings.createAudienceListOperationSettings.toBuilder(); queryAudienceListSettings = settings.queryAudienceListSettings.toBuilder(); - sheetExportAudienceListSettings = settings.sheetExportAudienceListSettings.toBuilder(); getAudienceListSettings = settings.getAudienceListSettings.toBuilder(); listAudienceListsSettings = settings.listAudienceListsSettings.toBuilder(); createRecurringAudienceListSettings = @@ -790,13 +794,14 @@ protected Builder(AlphaAnalyticsDataStubSettings settings) { queryReportTaskSettings = settings.queryReportTaskSettings.toBuilder(); getReportTaskSettings = settings.getReportTaskSettings.toBuilder(); listReportTasksSettings = settings.listReportTasksSettings.toBuilder(); + runReportSettings = settings.runReportSettings.toBuilder(); + getMetadataSettings = settings.getMetadataSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( runFunnelReportSettings, createAudienceListSettings, queryAudienceListSettings, - sheetExportAudienceListSettings, getAudienceListSettings, listAudienceListsSettings, createRecurringAudienceListSettings, @@ -806,7 +811,9 @@ protected Builder(AlphaAnalyticsDataStubSettings settings) { createReportTaskSettings, queryReportTaskSettings, getReportTaskSettings, - listReportTasksSettings); + listReportTasksSettings, + runReportSettings, + getMetadataSettings); } private static Builder createDefault() { @@ -849,11 +856,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - builder - .sheetExportAudienceListSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - builder .getAudienceListSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -904,6 +906,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .runReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getMetadataSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createAudienceListOperationSettings() .setInitialCallSettings( @@ -995,13 +1007,6 @@ public Builder applyToAllUnaryMethods( return queryAudienceListSettings; } - /** Returns the builder for the settings used for calls to sheetExportAudienceList. */ - public UnaryCallSettings.Builder< - SheetExportAudienceListRequest, SheetExportAudienceListResponse> - sheetExportAudienceListSettings() { - return sheetExportAudienceListSettings; - } - /** Returns the builder for the settings used for calls to getAudienceList. */ public UnaryCallSettings.Builder getAudienceListSettings() { @@ -1072,6 +1077,16 @@ public UnaryCallSettings.Builder getReportTask return listReportTasksSettings; } + /** Returns the builder for the settings used for calls to runReport. */ + public UnaryCallSettings.Builder runReportSettings() { + return runReportSettings; + } + + /** Returns the builder for the settings used for calls to getMetadata. */ + public UnaryCallSettings.Builder getMetadataSettings() { + return getMetadataSettings; + } + @Override public AlphaAnalyticsDataStubSettings build() throws IOException { return new AlphaAnalyticsDataStubSettings(this); diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java index 0f5427b71d04..461342e88a44 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java @@ -26,6 +26,7 @@ import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.CreateReportTaskRequest; import com.google.analytics.data.v1alpha.GetAudienceListRequest; +import com.google.analytics.data.v1alpha.GetMetadataRequest; import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.GetReportTaskRequest; @@ -35,6 +36,7 @@ import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse; import com.google.analytics.data.v1alpha.ListReportTasksRequest; import com.google.analytics.data.v1alpha.ListReportTasksResponse; +import com.google.analytics.data.v1alpha.Metadata; import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; import com.google.analytics.data.v1alpha.QueryAudienceListRequest; import com.google.analytics.data.v1alpha.QueryAudienceListResponse; @@ -45,8 +47,8 @@ import com.google.analytics.data.v1alpha.ReportTaskMetadata; import com.google.analytics.data.v1alpha.RunFunnelReportRequest; import com.google.analytics.data.v1alpha.RunFunnelReportResponse; -import com.google.analytics.data.v1alpha.SheetExportAudienceListRequest; -import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse; +import com.google.analytics.data.v1alpha.RunReportRequest; +import com.google.analytics.data.v1alpha.RunReportResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -110,21 +112,6 @@ public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor< - SheetExportAudienceListRequest, SheetExportAudienceListResponse> - sheetExportAudienceListMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.data.v1alpha.AlphaAnalyticsData/SheetExportAudienceList") - .setRequestMarshaller( - ProtoUtils.marshaller(SheetExportAudienceListRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SheetExportAudienceListResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - private static final MethodDescriptor getAudienceListMethodDescriptor = MethodDescriptor.newBuilder() @@ -250,6 +237,25 @@ public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + runReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/RunReport") + .setRequestMarshaller(ProtoUtils.marshaller(RunReportRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RunReportResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getMetadataMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/GetMetadata") + .setRequestMarshaller(ProtoUtils.marshaller(GetMetadataRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Metadata.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable runFunnelReportCallable; private final UnaryCallable createAudienceListCallable; @@ -257,8 +263,6 @@ public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { createAudienceListOperationCallable; private final UnaryCallable queryAudienceListCallable; - private final UnaryCallable - sheetExportAudienceListCallable; private final UnaryCallable getAudienceListCallable; private final UnaryCallable listAudienceListsCallable; @@ -285,6 +289,8 @@ public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { listReportTasksCallable; private final UnaryCallable listReportTasksPagedCallable; + private final UnaryCallable runReportCallable; + private final UnaryCallable getMetadataCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -363,19 +369,6 @@ protected GrpcAlphaAnalyticsDataStub( return builder.build(); }) .build(); - GrpcCallSettings - sheetExportAudienceListTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(sheetExportAudienceListMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); GrpcCallSettings getAudienceListTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAudienceListMethodDescriptor) @@ -493,6 +486,27 @@ protected GrpcAlphaAnalyticsDataStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings runReportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("property", String.valueOf(request.getProperty())); + return builder.build(); + }) + .build(); + GrpcCallSettings getMetadataTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMetadataMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); this.runFunnelReportCallable = callableFactory.createUnaryCallable( @@ -513,11 +527,6 @@ protected GrpcAlphaAnalyticsDataStub( queryAudienceListTransportSettings, settings.queryAudienceListSettings(), clientContext); - this.sheetExportAudienceListCallable = - callableFactory.createUnaryCallable( - sheetExportAudienceListTransportSettings, - settings.sheetExportAudienceListSettings(), - clientContext); this.getAudienceListCallable = callableFactory.createUnaryCallable( getAudienceListTransportSettings, settings.getAudienceListSettings(), clientContext); @@ -577,6 +586,12 @@ protected GrpcAlphaAnalyticsDataStub( this.listReportTasksPagedCallable = callableFactory.createPagedCallable( listReportTasksTransportSettings, settings.listReportTasksSettings(), clientContext); + this.runReportCallable = + callableFactory.createUnaryCallable( + runReportTransportSettings, settings.runReportSettings(), clientContext); + this.getMetadataCallable = + callableFactory.createUnaryCallable( + getMetadataTransportSettings, settings.getMetadataSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -608,12 +623,6 @@ public UnaryCallable createAudienceListCal return queryAudienceListCallable; } - @Override - public UnaryCallable - sheetExportAudienceListCallable() { - return sheetExportAudienceListCallable; - } - @Override public UnaryCallable getAudienceListCallable() { return getAudienceListCallable; @@ -693,6 +702,16 @@ public UnaryCallable listReport return listReportTasksPagedCallable; } + @Override + public UnaryCallable runReportCallable() { + return runReportCallable; + } + + @Override + public UnaryCallable getMetadataCallable() { + return getMetadataCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java index 4bb39875c09f..285e4d1ce76d 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java @@ -26,6 +26,7 @@ import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.CreateReportTaskRequest; import com.google.analytics.data.v1alpha.GetAudienceListRequest; +import com.google.analytics.data.v1alpha.GetMetadataRequest; import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.GetReportTaskRequest; @@ -35,6 +36,7 @@ import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse; import com.google.analytics.data.v1alpha.ListReportTasksRequest; import com.google.analytics.data.v1alpha.ListReportTasksResponse; +import com.google.analytics.data.v1alpha.Metadata; import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; import com.google.analytics.data.v1alpha.QueryAudienceListRequest; import com.google.analytics.data.v1alpha.QueryAudienceListResponse; @@ -45,8 +47,8 @@ import com.google.analytics.data.v1alpha.ReportTaskMetadata; import com.google.analytics.data.v1alpha.RunFunnelReportRequest; import com.google.analytics.data.v1alpha.RunFunnelReportResponse; -import com.google.analytics.data.v1alpha.SheetExportAudienceListRequest; -import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse; +import com.google.analytics.data.v1alpha.RunReportRequest; +import com.google.analytics.data.v1alpha.RunReportResponse; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -206,46 +208,6 @@ public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { .build()) .build(); - private static final ApiMethodDescriptor< - SheetExportAudienceListRequest, SheetExportAudienceListResponse> - sheetExportAudienceListMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.data.v1alpha.AlphaAnalyticsData/SheetExportAudienceList") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/audienceLists/*}:exportSheet", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SheetExportAudienceListResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - private static final ApiMethodDescriptor getAudienceListMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -617,6 +579,77 @@ public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { .build()) .build(); + private static final ApiMethodDescriptor + runReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/RunReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{property=properties/*}:runReport", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "property", request.getProperty()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMetadataMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/GetMetadata") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/metadata}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Metadata.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable runFunnelReportCallable; private final UnaryCallable createAudienceListCallable; @@ -624,8 +657,6 @@ public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { createAudienceListOperationCallable; private final UnaryCallable queryAudienceListCallable; - private final UnaryCallable - sheetExportAudienceListCallable; private final UnaryCallable getAudienceListCallable; private final UnaryCallable listAudienceListsCallable; @@ -652,6 +683,8 @@ public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { listReportTasksCallable; private final UnaryCallable listReportTasksPagedCallable; + private final UnaryCallable runReportCallable; + private final UnaryCallable getMetadataCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -736,20 +769,6 @@ protected HttpJsonAlphaAnalyticsDataStub( return builder.build(); }) .build(); - HttpJsonCallSettings - sheetExportAudienceListTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(sheetExportAudienceListMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); HttpJsonCallSettings getAudienceListTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAudienceListMethodDescriptor) @@ -880,6 +899,29 @@ protected HttpJsonAlphaAnalyticsDataStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings runReportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("property", String.valueOf(request.getProperty())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getMetadataTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMetadataMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); this.runFunnelReportCallable = callableFactory.createUnaryCallable( @@ -900,11 +942,6 @@ protected HttpJsonAlphaAnalyticsDataStub( queryAudienceListTransportSettings, settings.queryAudienceListSettings(), clientContext); - this.sheetExportAudienceListCallable = - callableFactory.createUnaryCallable( - sheetExportAudienceListTransportSettings, - settings.sheetExportAudienceListSettings(), - clientContext); this.getAudienceListCallable = callableFactory.createUnaryCallable( getAudienceListTransportSettings, settings.getAudienceListSettings(), clientContext); @@ -964,6 +1001,12 @@ protected HttpJsonAlphaAnalyticsDataStub( this.listReportTasksPagedCallable = callableFactory.createPagedCallable( listReportTasksTransportSettings, settings.listReportTasksSettings(), clientContext); + this.runReportCallable = + callableFactory.createUnaryCallable( + runReportTransportSettings, settings.runReportSettings(), clientContext); + this.getMetadataCallable = + callableFactory.createUnaryCallable( + getMetadataTransportSettings, settings.getMetadataSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -975,7 +1018,6 @@ public static List getMethodDescriptors() { methodDescriptors.add(runFunnelReportMethodDescriptor); methodDescriptors.add(createAudienceListMethodDescriptor); methodDescriptors.add(queryAudienceListMethodDescriptor); - methodDescriptors.add(sheetExportAudienceListMethodDescriptor); methodDescriptors.add(getAudienceListMethodDescriptor); methodDescriptors.add(listAudienceListsMethodDescriptor); methodDescriptors.add(createRecurringAudienceListMethodDescriptor); @@ -986,6 +1028,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(queryReportTaskMethodDescriptor); methodDescriptors.add(getReportTaskMethodDescriptor); methodDescriptors.add(listReportTasksMethodDescriptor); + methodDescriptors.add(runReportMethodDescriptor); + methodDescriptors.add(getMetadataMethodDescriptor); return methodDescriptors; } @@ -1015,12 +1059,6 @@ public UnaryCallable createAudienceListCal return queryAudienceListCallable; } - @Override - public UnaryCallable - sheetExportAudienceListCallable() { - return sheetExportAudienceListCallable; - } - @Override public UnaryCallable getAudienceListCallable() { return getAudienceListCallable; @@ -1100,6 +1138,16 @@ public UnaryCallable listReport return listReportTasksPagedCallable; } + @Override + public UnaryCallable runReportCallable() { + return runReportCallable; + } + + @Override + public UnaryCallable getMetadataCallable() { + return getMetadataCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/Version.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/Version.java index de5fc05e236e..83711853cc09 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/Version.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-analytics-data:current} - static final String VERSION = "0.102.0"; + static final String VERSION = "0.103.0"; // {x-version-update-end} } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/Version.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/Version.java index 9377ea78985e..0381139d5ee6 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/Version.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-analytics-data:current} - static final String VERSION = "0.102.0"; + static final String VERSION = "0.103.0"; // {x-version-update-end} } diff --git a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json index 16d454c3db04..d7abe0dc7d28 100644 --- a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json +++ b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json @@ -197,6 +197,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.Comparison", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.Comparison$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.ComparisonMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.ComparisonMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.ConversionMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.ConversionMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.ConversionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.ConversionSpec$AttributionModel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.ConversionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.CreateAudienceListRequest", "queryAllDeclaredConstructors": true, @@ -359,6 +440,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.DimensionMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.DimensionMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.DimensionValue", "queryAllDeclaredConstructors": true, @@ -791,6 +890,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.GetMetadataRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.GetMetadataRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -971,6 +1088,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.Metadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.Metadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.Metric", "queryAllDeclaredConstructors": true, @@ -1016,6 +1151,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.MetricMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.MetricMetadata$BlockedReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.MetricMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.MetricType", "queryAllDeclaredConstructors": true, @@ -1502,6 +1664,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.RunReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.RunReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.RunReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.RunReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.SamplingLevel", "queryAllDeclaredConstructors": true, @@ -1529,6 +1727,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.Section", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.Segment", "queryAllDeclaredConstructors": true, @@ -1799,42 +2006,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.analytics.data.v1alpha.SheetExportAudienceListRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.data.v1alpha.SheetExportAudienceListRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.data.v1alpha.SheetExportAudienceListResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.data.v1alpha.SheetExportAudienceListResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.analytics.data.v1alpha.StringFilter", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java index cae281d9a3ed..0098e8b5ad91 100644 --- a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java +++ b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java @@ -319,100 +319,6 @@ public void queryAudienceListExceptionTest() throws Exception { } } - @Test - public void sheetExportAudienceListTest() throws Exception { - SheetExportAudienceListResponse expectedResponse = - SheetExportAudienceListResponse.newBuilder() - .setSpreadsheetUri("spreadsheetUri1336397312") - .setSpreadsheetId("spreadsheetId1844224519") - .setRowCount(1340416618) - .setAudienceList(AudienceList.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - AudienceListName name = AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]"); - - SheetExportAudienceListResponse actualResponse = client.sheetExportAudienceList(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void sheetExportAudienceListExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AudienceListName name = AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]"); - client.sheetExportAudienceList(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void sheetExportAudienceListTest2() throws Exception { - SheetExportAudienceListResponse expectedResponse = - SheetExportAudienceListResponse.newBuilder() - .setSpreadsheetUri("spreadsheetUri1336397312") - .setSpreadsheetId("spreadsheetId1844224519") - .setRowCount(1340416618) - .setAudienceList(AudienceList.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-6618/audienceLists/audienceList-6618"; - - SheetExportAudienceListResponse actualResponse = client.sheetExportAudienceList(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void sheetExportAudienceListExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-6618/audienceLists/audienceList-6618"; - client.sheetExportAudienceList(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void getAudienceListTest() throws Exception { AudienceList expectedResponse = @@ -1377,4 +1283,190 @@ public void listReportTasksExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void runReportTest() throws Exception { + RunReportResponse expectedResponse = + RunReportResponse.newBuilder() + .addAllDimensionHeaders(new ArrayList()) + .addAllMetricHeaders(new ArrayList()) + .addAllRows(new ArrayList()) + .addAllTotals(new ArrayList()) + .addAllMaximums(new ArrayList()) + .addAllMinimums(new ArrayList()) + .setRowCount(1340416618) + .setMetadata(ResponseMetaData.newBuilder().build()) + .setPropertyQuota(PropertyQuota.newBuilder().build()) + .setKind("kind3292052") + .setNextPageToken("nextPageToken-1386094857") + .build(); + mockService.addResponse(expectedResponse); + + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setMetricFilter(FilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .addAllMetricAggregations(new ArrayList()) + .addAllOrderBys(new ArrayList()) + .setCurrencyCode("currencyCode1004773790") + .setCohortSpec(CohortSpec.newBuilder().build()) + .setKeepEmptyRows(true) + .setReturnPropertyQuota(true) + .addAllComparisons(new ArrayList()) + .setConversionSpec(ConversionSpec.newBuilder().build()) + .build(); + + RunReportResponse actualResponse = client.runReport(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setMetricFilter(FilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .addAllMetricAggregations(new ArrayList()) + .addAllOrderBys(new ArrayList()) + .setCurrencyCode("currencyCode1004773790") + .setCohortSpec(CohortSpec.newBuilder().build()) + .setKeepEmptyRows(true) + .setReturnPropertyQuota(true) + .addAllComparisons(new ArrayList()) + .setConversionSpec(ConversionSpec.newBuilder().build()) + .build(); + client.runReport(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMetadataTest() throws Exception { + Metadata expectedResponse = + Metadata.newBuilder() + .setName(MetadataName.of("[PROPERTY]").toString()) + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllComparisons(new ArrayList()) + .addAllConversions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + MetadataName name = MetadataName.of("[PROPERTY]"); + + Metadata actualResponse = client.getMetadata(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getMetadataExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MetadataName name = MetadataName.of("[PROPERTY]"); + client.getMetadata(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMetadataTest2() throws Exception { + Metadata expectedResponse = + Metadata.newBuilder() + .setName(MetadataName.of("[PROPERTY]").toString()) + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllComparisons(new ArrayList()) + .addAllConversions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-8635/metadata"; + + Metadata actualResponse = client.getMetadata(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getMetadataExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-8635/metadata"; + client.getMetadata(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java index 8044314a9c4b..777e49a02e54 100644 --- a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java +++ b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java @@ -317,90 +317,6 @@ public void queryAudienceListExceptionTest() throws Exception { } } - @Test - public void sheetExportAudienceListTest() throws Exception { - SheetExportAudienceListResponse expectedResponse = - SheetExportAudienceListResponse.newBuilder() - .setSpreadsheetUri("spreadsheetUri1336397312") - .setSpreadsheetId("spreadsheetId1844224519") - .setRowCount(1340416618) - .setAudienceList(AudienceList.newBuilder().build()) - .build(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - AudienceListName name = AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]"); - - SheetExportAudienceListResponse actualResponse = client.sheetExportAudienceList(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SheetExportAudienceListRequest actualRequest = - ((SheetExportAudienceListRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void sheetExportAudienceListExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAlphaAnalyticsData.addException(exception); - - try { - AudienceListName name = AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]"); - client.sheetExportAudienceList(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void sheetExportAudienceListTest2() throws Exception { - SheetExportAudienceListResponse expectedResponse = - SheetExportAudienceListResponse.newBuilder() - .setSpreadsheetUri("spreadsheetUri1336397312") - .setSpreadsheetId("spreadsheetId1844224519") - .setRowCount(1340416618) - .setAudienceList(AudienceList.newBuilder().build()) - .build(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - String name = "name3373707"; - - SheetExportAudienceListResponse actualResponse = client.sheetExportAudienceList(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SheetExportAudienceListRequest actualRequest = - ((SheetExportAudienceListRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void sheetExportAudienceListExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAlphaAnalyticsData.addException(exception); - - try { - String name = "name3373707"; - client.sheetExportAudienceList(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void getAudienceListTest() throws Exception { AudienceList expectedResponse = @@ -1269,4 +1185,188 @@ public void listReportTasksExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void runReportTest() throws Exception { + RunReportResponse expectedResponse = + RunReportResponse.newBuilder() + .addAllDimensionHeaders(new ArrayList()) + .addAllMetricHeaders(new ArrayList()) + .addAllRows(new ArrayList()) + .addAllTotals(new ArrayList()) + .addAllMaximums(new ArrayList()) + .addAllMinimums(new ArrayList()) + .setRowCount(1340416618) + .setMetadata(ResponseMetaData.newBuilder().build()) + .setPropertyQuota(PropertyQuota.newBuilder().build()) + .setKind("kind3292052") + .setNextPageToken("nextPageToken-1386094857") + .build(); + mockAlphaAnalyticsData.addResponse(expectedResponse); + + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("property-993141291") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setMetricFilter(FilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .addAllMetricAggregations(new ArrayList()) + .addAllOrderBys(new ArrayList()) + .setCurrencyCode("currencyCode1004773790") + .setCohortSpec(CohortSpec.newBuilder().build()) + .setKeepEmptyRows(true) + .setReturnPropertyQuota(true) + .addAllComparisons(new ArrayList()) + .setConversionSpec(ConversionSpec.newBuilder().build()) + .build(); + + RunReportResponse actualResponse = client.runReport(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlphaAnalyticsData.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunReportRequest actualRequest = ((RunReportRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); + Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); + Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); + Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); + Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); + Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); + Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); + Assert.assertEquals( + request.getMetricAggregationsList(), actualRequest.getMetricAggregationsList()); + Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); + Assert.assertEquals(request.getCurrencyCode(), actualRequest.getCurrencyCode()); + Assert.assertEquals(request.getCohortSpec(), actualRequest.getCohortSpec()); + Assert.assertEquals(request.getKeepEmptyRows(), actualRequest.getKeepEmptyRows()); + Assert.assertEquals(request.getReturnPropertyQuota(), actualRequest.getReturnPropertyQuota()); + Assert.assertEquals(request.getComparisonsList(), actualRequest.getComparisonsList()); + Assert.assertEquals(request.getConversionSpec(), actualRequest.getConversionSpec()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlphaAnalyticsData.addException(exception); + + try { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("property-993141291") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setMetricFilter(FilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .addAllMetricAggregations(new ArrayList()) + .addAllOrderBys(new ArrayList()) + .setCurrencyCode("currencyCode1004773790") + .setCohortSpec(CohortSpec.newBuilder().build()) + .setKeepEmptyRows(true) + .setReturnPropertyQuota(true) + .addAllComparisons(new ArrayList()) + .setConversionSpec(ConversionSpec.newBuilder().build()) + .build(); + client.runReport(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMetadataTest() throws Exception { + Metadata expectedResponse = + Metadata.newBuilder() + .setName(MetadataName.of("[PROPERTY]").toString()) + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllComparisons(new ArrayList()) + .addAllConversions(new ArrayList()) + .build(); + mockAlphaAnalyticsData.addResponse(expectedResponse); + + MetadataName name = MetadataName.of("[PROPERTY]"); + + Metadata actualResponse = client.getMetadata(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlphaAnalyticsData.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMetadataRequest actualRequest = ((GetMetadataRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMetadataExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlphaAnalyticsData.addException(exception); + + try { + MetadataName name = MetadataName.of("[PROPERTY]"); + client.getMetadata(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMetadataTest2() throws Exception { + Metadata expectedResponse = + Metadata.newBuilder() + .setName(MetadataName.of("[PROPERTY]").toString()) + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllComparisons(new ArrayList()) + .addAllConversions(new ArrayList()) + .build(); + mockAlphaAnalyticsData.addResponse(expectedResponse); + + String name = "name3373707"; + + Metadata actualResponse = client.getMetadata(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlphaAnalyticsData.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMetadataRequest actualRequest = ((GetMetadataRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMetadataExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlphaAnalyticsData.addException(exception); + + try { + String name = "name3373707"; + client.getMetadata(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java index 05352f92f8c2..0a8e5073c749 100644 --- a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java +++ b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java @@ -123,29 +123,6 @@ public void queryAudienceList( } } - @Override - public void sheetExportAudienceList( - SheetExportAudienceListRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SheetExportAudienceListResponse) { - requests.add(request); - responseObserver.onNext(((SheetExportAudienceListResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SheetExportAudienceList, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - SheetExportAudienceListResponse.class.getName(), - Exception.class.getName()))); - } - } - @Override public void getAudienceList( GetAudienceListRequest request, StreamObserver responseObserver) { @@ -364,4 +341,45 @@ public void listReportTasks( Exception.class.getName()))); } } + + @Override + public void runReport( + RunReportRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RunReportResponse) { + requests.add(request); + responseObserver.onNext(((RunReportResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RunReport, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RunReportResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMetadata(GetMetadataRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Metadata) { + requests.add(request); + responseObserver.onNext(((Metadata) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetMetadata, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Metadata.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml index 99a13a4a06df..8be1b31600f8 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.102.0 + 0.103.0 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.102.0 + 0.103.0 diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java b/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java index bf1b05fc2ef9..d5d05e88c5ce 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java @@ -176,57 +176,6 @@ private AlphaAnalyticsDataGrpc() {} return getQueryAudienceListMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest, - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse> - getSheetExportAudienceListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SheetExportAudienceList", - requestType = com.google.analytics.data.v1alpha.SheetExportAudienceListRequest.class, - responseType = com.google.analytics.data.v1alpha.SheetExportAudienceListResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest, - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse> - getSheetExportAudienceListMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest, - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse> - getSheetExportAudienceListMethod; - if ((getSheetExportAudienceListMethod = AlphaAnalyticsDataGrpc.getSheetExportAudienceListMethod) - == null) { - synchronized (AlphaAnalyticsDataGrpc.class) { - if ((getSheetExportAudienceListMethod = - AlphaAnalyticsDataGrpc.getSheetExportAudienceListMethod) - == null) { - AlphaAnalyticsDataGrpc.getSheetExportAudienceListMethod = - getSheetExportAudienceListMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SheetExportAudienceList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AlphaAnalyticsDataMethodDescriptorSupplier("SheetExportAudienceList")) - .build(); - } - } - } - return getSheetExportAudienceListMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.data.v1alpha.GetAudienceListRequest, com.google.analytics.data.v1alpha.AudienceList> @@ -720,6 +669,99 @@ private AlphaAnalyticsDataGrpc() {} return getListReportTasksMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.RunReportRequest, + com.google.analytics.data.v1alpha.RunReportResponse> + getRunReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunReport", + requestType = com.google.analytics.data.v1alpha.RunReportRequest.class, + responseType = com.google.analytics.data.v1alpha.RunReportResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.RunReportRequest, + com.google.analytics.data.v1alpha.RunReportResponse> + getRunReportMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.RunReportRequest, + com.google.analytics.data.v1alpha.RunReportResponse> + getRunReportMethod; + if ((getRunReportMethod = AlphaAnalyticsDataGrpc.getRunReportMethod) == null) { + synchronized (AlphaAnalyticsDataGrpc.class) { + if ((getRunReportMethod = AlphaAnalyticsDataGrpc.getRunReportMethod) == null) { + AlphaAnalyticsDataGrpc.getRunReportMethod = + getRunReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.data.v1alpha.RunReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.data.v1alpha.RunReportResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AlphaAnalyticsDataMethodDescriptorSupplier("RunReport")) + .build(); + } + } + } + return getRunReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.GetMetadataRequest, + com.google.analytics.data.v1alpha.Metadata> + getGetMetadataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMetadata", + requestType = com.google.analytics.data.v1alpha.GetMetadataRequest.class, + responseType = com.google.analytics.data.v1alpha.Metadata.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.GetMetadataRequest, + com.google.analytics.data.v1alpha.Metadata> + getGetMetadataMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.GetMetadataRequest, + com.google.analytics.data.v1alpha.Metadata> + getGetMetadataMethod; + if ((getGetMetadataMethod = AlphaAnalyticsDataGrpc.getGetMetadataMethod) == null) { + synchronized (AlphaAnalyticsDataGrpc.class) { + if ((getGetMetadataMethod = AlphaAnalyticsDataGrpc.getGetMetadataMethod) == null) { + AlphaAnalyticsDataGrpc.getGetMetadataMethod = + getGetMetadataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetadata")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.data.v1alpha.GetMetadataRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.data.v1alpha.Metadata.getDefaultInstance())) + .setSchemaDescriptor( + new AlphaAnalyticsDataMethodDescriptorSupplier("GetMetadata")) + .build(); + } + } + } + return getGetMetadataMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AlphaAnalyticsDataStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -873,37 +915,6 @@ default void queryAudienceList( getQueryAudienceListMethod(), responseObserver); } - /** - * - * - *
-     * Exports an audience list of users to a Google Sheet. After creating an
-     * audience, the users are not immediately available for listing. First, a
-     * request to `CreateAudienceList` is necessary to create an audience list of
-     * users, and then second, this method is used to export those users in the
-     * audience list to a Google Sheet.
-     * See [Creating an Audience
-     * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
-     * for an introduction to Audience Lists with examples.
-     * Audiences in Google Analytics 4 allow you to segment your users in the ways
-     * that are important to your business. To learn more, see
-     * https://support.google.com/analytics/answer/9267572.
-     * This method is introduced at alpha stability with the intention of
-     * gathering feedback on syntax and capabilities before entering beta. To give
-     * your feedback on this API, complete the
-     * [Google Analytics Audience Export API
-     * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
-     * 
- */ - default void sheetExportAudienceList( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSheetExportAudienceListMethod(), responseObserver); - } - /** * * @@ -1121,6 +1132,48 @@ default void listReportTasks( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListReportTasksMethod(), responseObserver); } + + /** + * + * + *
+     * Returns a customized report of your Google Analytics event data. Reports
+     * contain statistics derived from data collected by the Google Analytics
+     * tracking code. The data returned from the API is as a table with columns
+     * for the requested dimensions and metrics. Metrics are individual
+     * measurements of user activity on your property, such as active users or
+     * event count. Dimensions break down metrics across some common criteria,
+     * such as country or event name.
+     * 
+ */ + default void runReport( + com.google.analytics.data.v1alpha.RunReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns metadata for dimensions and metrics available in reporting methods.
+     * Used to explore the dimensions and metrics. In this method, a Google
+     * Analytics property identifier is specified in the request, and
+     * the metadata response includes Custom dimensions and metrics as well as
+     * Universal metadata.
+     * For example if a custom metric with parameter name `levels_unlocked` is
+     * registered to a property, the Metadata response will contain
+     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
+     * metrics applicable to any property such as `country` and `totalUsers`.
+     * 
+ */ + default void getMetadata( + com.google.analytics.data.v1alpha.GetMetadataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMetadataMethod(), responseObserver); + } } /** @@ -1254,39 +1307,6 @@ public void queryAudienceList( responseObserver); } - /** - * - * - *
-     * Exports an audience list of users to a Google Sheet. After creating an
-     * audience, the users are not immediately available for listing. First, a
-     * request to `CreateAudienceList` is necessary to create an audience list of
-     * users, and then second, this method is used to export those users in the
-     * audience list to a Google Sheet.
-     * See [Creating an Audience
-     * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
-     * for an introduction to Audience Lists with examples.
-     * Audiences in Google Analytics 4 allow you to segment your users in the ways
-     * that are important to your business. To learn more, see
-     * https://support.google.com/analytics/answer/9267572.
-     * This method is introduced at alpha stability with the intention of
-     * gathering feedback on syntax and capabilities before entering beta. To give
-     * your feedback on this API, complete the
-     * [Google Analytics Audience Export API
-     * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
-     * 
- */ - public void sheetExportAudienceList( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSheetExportAudienceListMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -1524,6 +1544,51 @@ public void listReportTasks( request, responseObserver); } + + /** + * + * + *
+     * Returns a customized report of your Google Analytics event data. Reports
+     * contain statistics derived from data collected by the Google Analytics
+     * tracking code. The data returned from the API is as a table with columns
+     * for the requested dimensions and metrics. Metrics are individual
+     * measurements of user activity on your property, such as active users or
+     * event count. Dimensions break down metrics across some common criteria,
+     * such as country or event name.
+     * 
+ */ + public void runReport( + com.google.analytics.data.v1alpha.RunReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunReportMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns metadata for dimensions and metrics available in reporting methods.
+     * Used to explore the dimensions and metrics. In this method, a Google
+     * Analytics property identifier is specified in the request, and
+     * the metadata response includes Custom dimensions and metrics as well as
+     * Universal metadata.
+     * For example if a custom metric with parameter name `levels_unlocked` is
+     * registered to a property, the Metadata response will contain
+     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
+     * metrics applicable to any property such as `country` and `totalUsers`.
+     * 
+ */ + public void getMetadata( + com.google.analytics.data.v1alpha.GetMetadataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMetadataMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1634,36 +1699,6 @@ public com.google.analytics.data.v1alpha.QueryAudienceListResponse queryAudience getChannel(), getQueryAudienceListMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Exports an audience list of users to a Google Sheet. After creating an
-     * audience, the users are not immediately available for listing. First, a
-     * request to `CreateAudienceList` is necessary to create an audience list of
-     * users, and then second, this method is used to export those users in the
-     * audience list to a Google Sheet.
-     * See [Creating an Audience
-     * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
-     * for an introduction to Audience Lists with examples.
-     * Audiences in Google Analytics 4 allow you to segment your users in the ways
-     * that are important to your business. To learn more, see
-     * https://support.google.com/analytics/answer/9267572.
-     * This method is introduced at alpha stability with the intention of
-     * gathering feedback on syntax and capabilities before entering beta. To give
-     * your feedback on this API, complete the
-     * [Google Analytics Audience Export API
-     * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
-     * 
- */ - public com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - sheetExportAudienceList( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSheetExportAudienceListMethod(), getCallOptions(), request); - } - /** * * @@ -1872,6 +1907,47 @@ public com.google.analytics.data.v1alpha.ListReportTasksResponse listReportTasks return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReportTasksMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Returns a customized report of your Google Analytics event data. Reports
+     * contain statistics derived from data collected by the Google Analytics
+     * tracking code. The data returned from the API is as a table with columns
+     * for the requested dimensions and metrics. Metrics are individual
+     * measurements of user activity on your property, such as active users or
+     * event count. Dimensions break down metrics across some common criteria,
+     * such as country or event name.
+     * 
+ */ + public com.google.analytics.data.v1alpha.RunReportResponse runReport( + com.google.analytics.data.v1alpha.RunReportRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRunReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns metadata for dimensions and metrics available in reporting methods.
+     * Used to explore the dimensions and metrics. In this method, a Google
+     * Analytics property identifier is specified in the request, and
+     * the metadata response includes Custom dimensions and metrics as well as
+     * Universal metadata.
+     * For example if a custom metric with parameter name `levels_unlocked` is
+     * registered to a property, the Metadata response will contain
+     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
+     * metrics applicable to any property such as `country` and `totalUsers`.
+     * 
+ */ + public com.google.analytics.data.v1alpha.Metadata getMetadata( + com.google.analytics.data.v1alpha.GetMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMetadataMethod(), getCallOptions(), request); + } } /** @@ -1979,35 +2055,6 @@ public com.google.analytics.data.v1alpha.QueryAudienceListResponse queryAudience getChannel(), getQueryAudienceListMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Exports an audience list of users to a Google Sheet. After creating an
-     * audience, the users are not immediately available for listing. First, a
-     * request to `CreateAudienceList` is necessary to create an audience list of
-     * users, and then second, this method is used to export those users in the
-     * audience list to a Google Sheet.
-     * See [Creating an Audience
-     * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
-     * for an introduction to Audience Lists with examples.
-     * Audiences in Google Analytics 4 allow you to segment your users in the ways
-     * that are important to your business. To learn more, see
-     * https://support.google.com/analytics/answer/9267572.
-     * This method is introduced at alpha stability with the intention of
-     * gathering feedback on syntax and capabilities before entering beta. To give
-     * your feedback on this API, complete the
-     * [Google Analytics Audience Export API
-     * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
-     * 
- */ - public com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - sheetExportAudienceList( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSheetExportAudienceListMethod(), getCallOptions(), request); - } - /** * * @@ -2206,6 +2253,46 @@ public com.google.analytics.data.v1alpha.ListReportTasksResponse listReportTasks return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReportTasksMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Returns a customized report of your Google Analytics event data. Reports
+     * contain statistics derived from data collected by the Google Analytics
+     * tracking code. The data returned from the API is as a table with columns
+     * for the requested dimensions and metrics. Metrics are individual
+     * measurements of user activity on your property, such as active users or
+     * event count. Dimensions break down metrics across some common criteria,
+     * such as country or event name.
+     * 
+ */ + public com.google.analytics.data.v1alpha.RunReportResponse runReport( + com.google.analytics.data.v1alpha.RunReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns metadata for dimensions and metrics available in reporting methods.
+     * Used to explore the dimensions and metrics. In this method, a Google
+     * Analytics property identifier is specified in the request, and
+     * the metadata response includes Custom dimensions and metrics as well as
+     * Universal metadata.
+     * For example if a custom metric with parameter name `levels_unlocked` is
+     * registered to a property, the Metadata response will contain
+     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
+     * metrics applicable to any property such as `country` and `totalUsers`.
+     * 
+ */ + public com.google.analytics.data.v1alpha.Metadata getMetadata( + com.google.analytics.data.v1alpha.GetMetadataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMetadataMethod(), getCallOptions(), request); + } } /** @@ -2314,36 +2401,6 @@ protected AlphaAnalyticsDataFutureStub build( getChannel().newCall(getQueryAudienceListMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Exports an audience list of users to a Google Sheet. After creating an
-     * audience, the users are not immediately available for listing. First, a
-     * request to `CreateAudienceList` is necessary to create an audience list of
-     * users, and then second, this method is used to export those users in the
-     * audience list to a Google Sheet.
-     * See [Creating an Audience
-     * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
-     * for an introduction to Audience Lists with examples.
-     * Audiences in Google Analytics 4 allow you to segment your users in the ways
-     * that are important to your business. To learn more, see
-     * https://support.google.com/analytics/answer/9267572.
-     * This method is introduced at alpha stability with the intention of
-     * gathering feedback on syntax and capabilities before entering beta. To give
-     * your feedback on this API, complete the
-     * [Google Analytics Audience Export API
-     * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse> - sheetExportAudienceList( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSheetExportAudienceListMethod(), getCallOptions()), request); - } - /** * * @@ -2554,22 +2611,65 @@ protected AlphaAnalyticsDataFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListReportTasksMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Returns a customized report of your Google Analytics event data. Reports
+     * contain statistics derived from data collected by the Google Analytics
+     * tracking code. The data returned from the API is as a table with columns
+     * for the requested dimensions and metrics. Metrics are individual
+     * measurements of user activity on your property, such as active users or
+     * event count. Dimensions break down metrics across some common criteria,
+     * such as country or event name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.data.v1alpha.RunReportResponse> + runReport(com.google.analytics.data.v1alpha.RunReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunReportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns metadata for dimensions and metrics available in reporting methods.
+     * Used to explore the dimensions and metrics. In this method, a Google
+     * Analytics property identifier is specified in the request, and
+     * the metadata response includes Custom dimensions and metrics as well as
+     * Universal metadata.
+     * For example if a custom metric with parameter name `levels_unlocked` is
+     * registered to a property, the Metadata response will contain
+     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
+     * metrics applicable to any property such as `country` and `totalUsers`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.data.v1alpha.Metadata> + getMetadata(com.google.analytics.data.v1alpha.GetMetadataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request); + } } private static final int METHODID_RUN_FUNNEL_REPORT = 0; private static final int METHODID_CREATE_AUDIENCE_LIST = 1; private static final int METHODID_QUERY_AUDIENCE_LIST = 2; - private static final int METHODID_SHEET_EXPORT_AUDIENCE_LIST = 3; - private static final int METHODID_GET_AUDIENCE_LIST = 4; - private static final int METHODID_LIST_AUDIENCE_LISTS = 5; - private static final int METHODID_CREATE_RECURRING_AUDIENCE_LIST = 6; - private static final int METHODID_GET_RECURRING_AUDIENCE_LIST = 7; - private static final int METHODID_LIST_RECURRING_AUDIENCE_LISTS = 8; - private static final int METHODID_GET_PROPERTY_QUOTAS_SNAPSHOT = 9; - private static final int METHODID_CREATE_REPORT_TASK = 10; - private static final int METHODID_QUERY_REPORT_TASK = 11; - private static final int METHODID_GET_REPORT_TASK = 12; - private static final int METHODID_LIST_REPORT_TASKS = 13; + private static final int METHODID_GET_AUDIENCE_LIST = 3; + private static final int METHODID_LIST_AUDIENCE_LISTS = 4; + private static final int METHODID_CREATE_RECURRING_AUDIENCE_LIST = 5; + private static final int METHODID_GET_RECURRING_AUDIENCE_LIST = 6; + private static final int METHODID_LIST_RECURRING_AUDIENCE_LISTS = 7; + private static final int METHODID_GET_PROPERTY_QUOTAS_SNAPSHOT = 8; + private static final int METHODID_CREATE_REPORT_TASK = 9; + private static final int METHODID_QUERY_REPORT_TASK = 10; + private static final int METHODID_GET_REPORT_TASK = 11; + private static final int METHODID_LIST_REPORT_TASKS = 12; + private static final int METHODID_RUN_REPORT = 13; + private static final int METHODID_GET_METADATA = 14; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2607,13 +2707,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.data.v1alpha.QueryAudienceListResponse>) responseObserver); break; - case METHODID_SHEET_EXPORT_AUDIENCE_LIST: - serviceImpl.sheetExportAudienceList( - (com.google.analytics.data.v1alpha.SheetExportAudienceListRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse>) - responseObserver); - break; case METHODID_GET_AUDIENCE_LIST: serviceImpl.getAudienceList( (com.google.analytics.data.v1alpha.GetAudienceListRequest) request, @@ -2678,6 +2771,18 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.data.v1alpha.ListReportTasksResponse>) responseObserver); break; + case METHODID_RUN_REPORT: + serviceImpl.runReport( + (com.google.analytics.data.v1alpha.RunReportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_METADATA: + serviceImpl.getMetadata( + (com.google.analytics.data.v1alpha.GetMetadataRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -2716,13 +2821,6 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.data.v1alpha.QueryAudienceListRequest, com.google.analytics.data.v1alpha.QueryAudienceListResponse>( service, METHODID_QUERY_AUDIENCE_LIST))) - .addMethod( - getSheetExportAudienceListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest, - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse>( - service, METHODID_SHEET_EXPORT_AUDIENCE_LIST))) .addMethod( getGetAudienceListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2792,6 +2890,19 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.data.v1alpha.ListReportTasksRequest, com.google.analytics.data.v1alpha.ListReportTasksResponse>( service, METHODID_LIST_REPORT_TASKS))) + .addMethod( + getRunReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.data.v1alpha.RunReportRequest, + com.google.analytics.data.v1alpha.RunReportResponse>( + service, METHODID_RUN_REPORT))) + .addMethod( + getGetMetadataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.data.v1alpha.GetMetadataRequest, + com.google.analytics.data.v1alpha.Metadata>(service, METHODID_GET_METADATA))) .build(); } @@ -2846,7 +2957,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getRunFunnelReportMethod()) .addMethod(getCreateAudienceListMethod()) .addMethod(getQueryAudienceListMethod()) - .addMethod(getSheetExportAudienceListMethod()) .addMethod(getGetAudienceListMethod()) .addMethod(getListAudienceListsMethod()) .addMethod(getCreateRecurringAudienceListMethod()) @@ -2857,6 +2967,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getQueryReportTaskMethod()) .addMethod(getGetReportTaskMethod()) .addMethod(getListReportTasksMethod()) + .addMethod(getRunReportMethod()) + .addMethod(getGetMetadataMethod()) .build(); } } diff --git a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml index c99df7606c8b..9ca4d1283058 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.102.0 + 0.103.0 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.102.0 + 0.103.0 diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index 350aad9131a5..a799b8b6ce88 100644 --- a/java-analytics-data/pom.xml +++ b/java-analytics-data/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.102.0 + 0.103.0 Google Analytics Data Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-data - 0.102.0 + 0.103.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.102.0 + 0.103.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.102.0 + 0.103.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.102.0 + 0.103.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.102.0 + 0.103.0 diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml index 99d674e1a189..80280d20ddec 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.102.0 + 0.103.0 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.102.0 + 0.103.0 diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java index 9a8c630c0a62..db96472debea 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java @@ -104,14 +104,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_data_v1alpha_QueryAudienceListResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_data_v1alpha_QueryAudienceListResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_data_v1alpha_AudienceRow_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -172,6 +164,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_data_v1alpha_ListReportTasksResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_data_v1alpha_ListReportTasksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_Metadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -300,25 +308,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "audience_rows\030\002 \003(\0132*.google.analytics.data.v1alpha.AudienceRow\022\026\n" + "\trow_count\030\003 \001(\005H\001\210\001\001B\020\n" + "\016_audience_listB\014\n\n" - + "_row_count\"\212\001\n" - + "\036SheetExportAudienceListRequest\022?\n" - + "\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")analyticsdata.googleapis.com/AudienceList\022\023\n" - + "\006offset\030\002 \001(\003B\003\340A\001\022\022\n" - + "\005limit\030\003 \001(\003B\003\340A\001\"\204\002\n" - + "\037SheetExportAudienceListResponse\022\034\n" - + "\017spreadsheet_uri\030\001 \001(\tH\000\210\001\001\022\033\n" - + "\016spreadsheet_id\030\002 \001(\tH\001\210\001\001\022\026\n" - + "\trow_count\030\003 \001(\005H\002\210\001\001\022G\n\r" - + "audience_list\030\004 \001(\0132+.google" - + ".analytics.data.v1alpha.AudienceListH\003\210\001\001B\022\n" - + "\020_spreadsheet_uriB\021\n" - + "\017_spreadsheet_idB\014\n\n" - + "_row_countB\020\n" - + "\016_audience_list\"^\n" + + "_row_count\"^\n" + "\013AudienceRow\022O\n" - + "\020dimension_values\030\001 \003(\01325.goog" - + "le.analytics.data.v1alpha.AudienceDimensionValue\"0\n" + + "\020dimension_values\030\001 \003(\01325.google.a" + + "nalytics.data.v1alpha.AudienceDimensionValue\"0\n" + "\021AudienceDimension\022\033\n" + "\016dimension_name\030\001 \001(\tB\003\340A\001\"6\n" + "\026AudienceDimensionValue\022\017\n" @@ -330,12 +323,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132(.google.analytics.data.v1alpha.DateRangeB\003\340A\001\022:\n" + "\006funnel\030\003" + " \001(\0132%.google.analytics.data.v1alpha.FunnelB\003\340A\001\022M\n" - + "\020funnel_breakdown\030\004 \001(\0132." - + ".google.analytics.data.v1alpha.FunnelBreakdownB\003\340A\001\022P\n" - + "\022funnel_next_action\030\005 \001(\0132" - + "/.google.analytics.data.v1alpha.FunnelNextActionB\003\340A\001\022u\n" - + "\031funnel_visualization_type\030\006 \001(\0162M.google.analytics.data.v1alpha" - + ".RunFunnelReportRequest.FunnelVisualizationTypeB\003\340A\001\022=\n" + + "\020funnel_breakdown\030\004 \001(\0132..goo" + + "gle.analytics.data.v1alpha.FunnelBreakdownB\003\340A\001\022P\n" + + "\022funnel_next_action\030\005 \001(\0132/.go" + + "ogle.analytics.data.v1alpha.FunnelNextActionB\003\340A\001\022u\n" + + "\031funnel_visualization_type\030\006 \001(\0162M.google.analytics.data.v1alpha.Run" + + "FunnelReportRequest.FunnelVisualizationTypeB\003\340A\001\022=\n" + "\010segments\030\007" + " \003(\0132&.google.analytics.data.v1alpha.SegmentB\003\340A\001\022\022\n" + "\005limit\030\t \001(\003B\003\340A\001\022N\n" @@ -351,30 +344,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.analytics.data.v1alpha.FunnelSubReport\022L\n" + "\024funnel_visualization\030\002" + " \001(\0132..google.analytics.data.v1alpha.FunnelSubReport\022D\n" - + "\016property_quota\030\003 \001" - + "(\0132,.google.analytics.data.v1alpha.PropertyQuota\022\014\n" + + "\016property_quota\030\003 \001(\0132," + + ".google.analytics.data.v1alpha.PropertyQuota\022\014\n" + "\004kind\030\004 \001(\t\"\305\014\n\n" + "ReportTask\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022Z\n" - + "\021report_definition\030\002" - + " \001(\0132:.google.analytics.data.v1alpha.ReportTask.ReportDefinitionB\003\340A\001\022V\n" - + "\017report_metadata\030\003 \001(\01328.google.analytics.data" - + ".v1alpha.ReportTask.ReportMetadataB\003\340A\003\032\222\006\n" + + "\021report_definition\030\002 \001" + + "(\0132:.google.analytics.data.v1alpha.ReportTask.ReportDefinitionB\003\340A\001\022V\n" + + "\017report_metadata\030\003" + + " \001(\01328.google.analytics.data.v1alpha.ReportTask.ReportMetadataB\003\340A\003\032\222\006\n" + "\020ReportDefinition\022A\n\n" - + "dimensions\030\002 \003(\013" - + "2(.google.analytics.data.v1alpha.DimensionB\003\340A\001\022;\n" + + "dimensions\030\002 \003(\0132(.g" + + "oogle.analytics.data.v1alpha.DimensionB\003\340A\001\022;\n" + "\007metrics\030\003" + " \003(\0132%.google.analytics.data.v1alpha.MetricB\003\340A\001\022B\n" + "\013date_ranges\030\004" + " \003(\0132(.google.analytics.data.v1alpha.DateRangeB\003\340A\001\022N\n" - + "\020dimension_filter\030\005 \001" - + "(\0132/.google.analytics.data.v1alpha.FilterExpressionB\003\340A\001\022K\n\r" - + "metric_filter\030\006 \001(\0132" - + "/.google.analytics.data.v1alpha.FilterExpressionB\003\340A\001\022\023\n" + + "\020dimension_filter\030\005 \001(\0132/" + + ".google.analytics.data.v1alpha.FilterExpressionB\003\340A\001\022K\n\r" + + "metric_filter\030\006 \001(\0132/.go" + + "ogle.analytics.data.v1alpha.FilterExpressionB\003\340A\001\022\023\n" + "\006offset\030\007 \001(\003B\003\340A\001\022\022\n" + "\005limit\030\010 \001(\003B\003\340A\001\022R\n" - + "\023metric_aggregations\030\t " - + "\003(\01620.google.analytics.data.v1alpha.MetricAggregationB\003\340A\001\022>\n" + + "\023metric_aggregations\030\t \003(\0162" + + "0.google.analytics.data.v1alpha.MetricAggregationB\003\340A\001\022>\n" + "\torder_bys\030\n" + " \003(\0132&.google.analytics.data.v1alpha.OrderByB\003\340A\001\022\032\n\r" + "currency_code\030\013 \001(\tB\003\340A\001\022C\n" @@ -382,16 +375,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132).google.analytics.data.v1alpha.CohortSpecB\003\340A\001\022\034\n" + "\017keep_empty_rows\030\r" + " \001(\010B\003\340A\001\022N\n" - + "\016sampling_level\030\016 \001(\0162,.goog" - + "le.analytics.data.v1alpha.SamplingLevelB\003\340A\001H\000\210\001\001B\021\n" + + "\016sampling_level\030\016 \001(\0162,.google.a" + + "nalytics.data.v1alpha.SamplingLevelB\003\340A\001H\000\210\001\001B\021\n" + "\017_sampling_level\032\337\003\n" + "\016ReportMetadata\022W\n" - + "\005state\030\001 \001(\0162>.google.analytic" - + "s.data.v1alpha.ReportTask.ReportMetadata.StateB\003\340A\003H\000\210\001\001\022A\n" - + "\023begin_creating_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\022*\n" + + "\005state\030\001 \001(\0162>.google.analytics.da" + + "ta.v1alpha.ReportTask.ReportMetadata.StateB\003\340A\003H\000\210\001\001\022A\n" + + "\023begin_creating_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\022*\n" + "\035creation_quota_tokens_charged\030\003 \001(\005B\003\340A\003\022 \n" - + "\016task_row_count\030\004 \001(\005B\003\340A\003H\002\210\001\001\022\037\n\r" + + "\016task_row_count\030\004 \001(\005B\003\340A\003H\002\210\001\001\022\037\n" + + "\r" + "error_message\030\005 \001(\tB\003\340A\003H\003\210\001\001\022!\n" + "\017total_row_count\030\006 \001(\005B\003\340A\003H\004\210\001\001\"D\n" + "\005State\022\025\n" @@ -404,12 +398,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_task_row_countB\020\n" + "\016_error_messageB\022\n" + "\020_total_row_count:v\352As\n" - + "\'analyticsdata.googleapis.com/ReportTask\022/pr" - + "operties/{property}/reportTasks/{report_task}*\013reportTasks2\n" + + "\'analyticsdata.googleapis.com/ReportTask\022/proper" + + "ties/{property}/reportTasks/{report_task}*\013reportTasks2\n" + "reportTask\"\237\001\n" + "\027CreateReportTaskRequest\022?\n" - + "\006parent\030\001 \001(\tB/\340A\002\372" - + "A)\022\'analyticsdata.googleapis.com/ReportTask\022C\n" + + "\006parent\030\001 \001(\tB/\340A\002\372A)\022\'" + + "analyticsdata.googleapis.com/ReportTask\022C\n" + "\013report_task\030\002" + " \001(\0132).google.analytics.data.v1alpha.ReportTaskB\003\340A\002\"\024\n" + "\022ReportTaskMetadata\"T\n" @@ -418,8 +412,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006offset\030\002 \001(\003B\003\340A\001\022\022\n" + "\005limit\030\003 \001(\003B\003\340A\001\"\321\003\n" + "\027QueryReportTaskResponse\022I\n" - + "\021dimension_headers\030\001 \003(\0132..go" - + "ogle.analytics.data.v1alpha.DimensionHeader\022C\n" + + "\021dimension_headers\030\001 \003(\0132..google" + + ".analytics.data.v1alpha.DimensionHeader\022C\n" + "\016metric_headers\030\002" + " \003(\0132+.google.analytics.data.v1alpha.MetricHeader\0220\n" + "\004rows\030\003 \003(\0132\".google.analytics.data.v1alpha.Row\0222\n" @@ -437,26 +431,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\214\001\n" + "\027ListReportTasksResponse\022?\n" - + "\014report_tasks\030\001" - + " \003(\0132).google.analytics.data.v1alpha.ReportTask\022\034\n" + + "\014report_tasks\030\001 \003" + + "(\0132).google.analytics.data.v1alpha.ReportTask\022\034\n" + "\017next_page_token\030\002 \001(\tH\000\210\001\001B\022\n" - + "\020_next_page_token2\305\031\n" + + "\020_next_page_token\"\374\006\n" + + "\020RunReportRequest\022\025\n" + + "\010property\030\001 \001(\tB\003\340A\002\022A\n\n" + + "dimensions\030\002 \003(\0132" + + "(.google.analytics.data.v1alpha.DimensionB\003\340A\001\022;\n" + + "\007metrics\030\003" + + " \003(\0132%.google.analytics.data.v1alpha.MetricB\003\340A\001\022B\n" + + "\013date_ranges\030\004" + + " \003(\0132(.google.analytics.data.v1alpha.DateRangeB\003\340A\001\022N\n" + + "\020dimension_filter\030\005 \001(" + + "\0132/.google.analytics.data.v1alpha.FilterExpressionB\003\340A\001\022K\n\r" + + "metric_filter\030\006 \001(\0132/" + + ".google.analytics.data.v1alpha.FilterExpressionB\003\340A\001\022\023\n" + + "\006offset\030\007 \001(\003B\003\340A\001\022\022\n" + + "\005limit\030\010 \001(\003B\003\340A\001\022R\n" + + "\023metric_aggregations\030\t \003" + + "(\01620.google.analytics.data.v1alpha.MetricAggregationB\003\340A\001\022>\n" + + "\torder_bys\030\n" + + " \003(\0132&.google.analytics.data.v1alpha.OrderByB\003\340A\001\022\032\n\r" + + "currency_code\030\013 \001(\tB\003\340A\001\022C\n" + + "\013cohort_spec\030\014" + + " \001(\0132).google.analytics.data.v1alpha.CohortSpecB\003\340A\001\022\034\n" + + "\017keep_empty_rows\030\r" + + " \001(\010B\003\340A\001\022\"\n" + + "\025return_property_quota\030\016 \001(\010B\003\340A\001\022C\n" + + "\013comparisons\030\017" + + " \003(\0132).google.analytics.data.v1alpha.ComparisonB\003\340A\001\022K\n" + + "\017conversion_spec\030\020" + + " \001(\0132-.google.analytics.data.v1alpha.ConversionSpecB\003\340A\001\"\321\004\n" + + "\021RunReportResponse\022I\n" + + "\021dimension_headers\030\001 \003(\0132" + + "..google.analytics.data.v1alpha.DimensionHeader\022C\n" + + "\016metric_headers\030\002" + + " \003(\0132+.google.analytics.data.v1alpha.MetricHeader\0220\n" + + "\004rows\030\003 \003(\0132\".google.analytics.data.v1alpha.Row\0222\n" + + "\006totals\030\004 \003(\0132\".google.analytics.data.v1alpha.Row\0224\n" + + "\010maximums\030\005 \003(\0132\".google.analytics.data.v1alpha.Row\0224\n" + + "\010minimums\030\006 \003(\0132\".google.analytics.data.v1alpha.Row\022\021\n" + + "\trow_count\030\007 \001(\005\022A\n" + + "\010metadata\030\010 \001(\0132/.google.analytics.data.v1alpha.ResponseMetaData\022D\n" + + "\016property_quota\030\t \001(\0132,.g" + + "oogle.analytics.data.v1alpha.PropertyQuota\022\014\n" + + "\004kind\030\n" + + " \001(\t\022\034\n" + + "\017next_page_token\030\013 \001(\tH\000\210\001\001B\022\n" + + "\020_next_page_token\"Q\n" + + "\022GetMetadataRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%analyticsdata.googleapis.com/Metadata\"\372\002\n" + + "\010Metadata\022\014\n" + + "\004name\030\003 \001(\t\022D\n\n" + + "dimensions\030\001 \003(\01320.google.analytics.data.v1alpha.DimensionMetadata\022>\n" + + "\007metrics\030\002 \003(\0132-.google.analytics.data.v1alpha.MetricMetadata\022F\n" + + "\013comparisons\030\004" + + " \003(\01321.google.analytics.data.v1alpha.ComparisonMetadata\022F\n" + + "\013conversions\030\005 " + + "\003(\01321.google.analytics.data.v1alpha.ConversionMetadata:J\352AG\n" + + "%analyticsdata.googl" + + "eapis.com/Metadata\022\036properties/{property}/metadata2\250\031\n" + "\022AlphaAnalyticsData\022\275\001\n" - + "\017RunFunnelReport\0225.google.analytics.data.v1alpha.RunFunnelReportRequest\0326." - + "google.analytics.data.v1alpha.RunFunnelR" - + "eportResponse\";\202\323\344\223\0025\"0/v1alpha/{property=properties/*}:runFunnelReport:\001*\022\361\001\n" - + "\022CreateAudienceList\0228.google.analytics.dat" - + "a.v1alpha.CreateAudienceListRequest\032\035.google.longrunning.Operation\"\201\001\312A$\n" - + "\014AudienceList\022\024AudienceListMetadata\332A\024parent,au" - + "dience_list\202\323\344\223\002=\",/v1alpha/{parent=properties/*}/audienceLists:\r" + + "\017RunFunnelReport\0225.google.analytics.data.v1" + + "alpha.RunFunnelReportRequest\0326.google.analytics.data.v1alpha.RunFunnelReportResp" + + "onse\";\202\323\344\223\0025\"0/v1alpha/{property=properties/*}:runFunnelReport:\001*\022\361\001\n" + + "\022CreateAudienceList\0228.google.analytics.data.v1alpha" + + ".CreateAudienceListRequest\032\035.google.longrunning.Operation\"\201\001\312A$\n" + + "\014AudienceList\022\024AudienceListMetadata\332A\024parent,audience_li" + + "st\202\323\344\223\002=\",/v1alpha/{parent=properties/*}/audienceLists:\r" + "audience_list\022\314\001\n" - + "\021QueryAudienceList\0227.google.analytics." - + "data.v1alpha.QueryAudienceListRequest\0328.google.analytics.data.v1alpha.QueryAudie" - + "nceListResponse\"D\332A\004name\202\323\344\223\0027\"2/v1alpha" - + "/{name=properties/*/audienceLists/*}:query:\001*\022\344\001\n" - + "\027SheetExportAudienceList\022=.google.analytics.data.v1alpha.SheetExportAud" - + "ienceListRequest\032>.google.analytics.data.v1alpha.SheetExportAudienceListResponse" - + "\"J\332A\004name\202\323\344\223\002=\"8/v1alpha/{name=properties/*/audienceLists/*}:exportSheet:\001*\022\262\001\n" + + "\021QueryAudienceList\0227.google.analytics.data.v1al" + + "pha.QueryAudienceListRequest\0328.google.analytics.data.v1alpha.QueryAudienceListRe" + + "sponse\"D\332A\004name\202\323\344\223\0027\"2/v1alpha/{name=properties/*/audienceLists/*}:query:\001*\022\262\001\n" + "\017GetAudienceList\0225.google.analytics.data" + ".v1alpha.GetAudienceListRequest\032+.google" + ".analytics.data.v1alpha.AudienceList\";\332A" @@ -495,14 +543,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*/v1alpha/{name=properties/*/reportTasks/*}\022\275\001\n" + "\017ListReportTasks\0225.google.analytics.data.v1alpha.ListReportTasksRequest\0326" + ".google.analytics.data.v1alpha.ListRepor" - + "tTasksResponse\";\332A\006parent\202\323\344\223\002,\022*/v1alph" - + "a/{parent=properties/*}/reportTasks\032\375\001\312A" - + "\034analyticsdata.googleapis.com\322A\332\001https:/" - + "/www.googleapis.com/auth/analytics,https://www.googleapis.com/auth/analytics.rea" - + "donly,https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/driv" - + "e.file,https://www.googleapis.com/auth/spreadsheetsB\301\001\n" - + "!com.google.analytics.data.v1alphaB\025AnalyticsDataApiProtoP\001ZAgoog" - + "le.golang.org/genproto/googleapis/analytics/data/v1alpha;data\352A?\n" + + "tTasksResponse\";\332A\006parent\202\323\344\223\002,\022*/v1alpha/{parent=properties/*}/reportTasks\022\245\001\n" + + "\tRunReport\022/.google.analytics.data.v1alph" + + "a.RunReportRequest\0320.google.analytics.da" + + "ta.v1alpha.RunReportResponse\"5\202\323\344\223\002/\"*/v" + + "1alpha/{property=properties/*}:runReport:\001*\022\237\001\n" + + "\013GetMetadata\0221.google.analytics.data.v1alpha.GetMetadataRequest\032\'.google." + + "analytics.data.v1alpha.Metadata\"4\332A\004name" + + "\202\323\344\223\002\'\022%/v1alpha/{name=properties/*/meta" + + "data}\032~\312A\034analyticsdata.googleapis.com\322A" + + "\\https://www.googleapis.com/auth/analyti" + + "cs,https://www.googleapis.com/auth/analytics.readonlyB\301\001\n" + + "!com.google.analytics.data.v1alphaB\025AnalyticsDataApiProtoP\001ZAgo" + + "ogle.golang.org/genproto/googleapis/analytics/data/v1alpha;data\352A?\n" + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}b\006proto3" }; descriptor = @@ -660,24 +713,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AudienceList", "AudienceRows", "RowCount", }); - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_descriptor = - getDescriptor().getMessageType(16); - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_descriptor, - new java.lang.String[] { - "Name", "Offset", "Limit", - }); - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_descriptor = - getDescriptor().getMessageType(17); - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_descriptor, - new java.lang.String[] { - "SpreadsheetUri", "SpreadsheetId", "RowCount", "AudienceList", - }); internal_static_google_analytics_data_v1alpha_AudienceRow_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(16); internal_static_google_analytics_data_v1alpha_AudienceRow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_AudienceRow_descriptor, @@ -685,7 +722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionValues", }); internal_static_google_analytics_data_v1alpha_AudienceDimension_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(17); internal_static_google_analytics_data_v1alpha_AudienceDimension_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_AudienceDimension_descriptor, @@ -693,7 +730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionName", }); internal_static_google_analytics_data_v1alpha_AudienceDimensionValue_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(18); internal_static_google_analytics_data_v1alpha_AudienceDimensionValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_AudienceDimensionValue_descriptor, @@ -701,7 +738,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "OneValue", }); internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(19); internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor, @@ -718,7 +755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReturnPropertyQuota", }); internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(20); internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor, @@ -726,7 +763,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FunnelTable", "FunnelVisualization", "PropertyQuota", "Kind", }); internal_static_google_analytics_data_v1alpha_ReportTask_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(21); internal_static_google_analytics_data_v1alpha_ReportTask_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ReportTask_descriptor, @@ -767,7 +804,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalRowCount", }); internal_static_google_analytics_data_v1alpha_CreateReportTaskRequest_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(22); internal_static_google_analytics_data_v1alpha_CreateReportTaskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CreateReportTaskRequest_descriptor, @@ -775,13 +812,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReportTask", }); internal_static_google_analytics_data_v1alpha_ReportTaskMetadata_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(23); internal_static_google_analytics_data_v1alpha_ReportTaskMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ReportTaskMetadata_descriptor, new java.lang.String[] {}); internal_static_google_analytics_data_v1alpha_QueryReportTaskRequest_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(24); internal_static_google_analytics_data_v1alpha_QueryReportTaskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_QueryReportTaskRequest_descriptor, @@ -789,7 +826,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Offset", "Limit", }); internal_static_google_analytics_data_v1alpha_QueryReportTaskResponse_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(25); internal_static_google_analytics_data_v1alpha_QueryReportTaskResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_QueryReportTaskResponse_descriptor, @@ -804,7 +841,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Metadata", }); internal_static_google_analytics_data_v1alpha_GetReportTaskRequest_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(26); internal_static_google_analytics_data_v1alpha_GetReportTaskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_GetReportTaskRequest_descriptor, @@ -812,7 +849,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_data_v1alpha_ListReportTasksRequest_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(27); internal_static_google_analytics_data_v1alpha_ListReportTasksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ListReportTasksRequest_descriptor, @@ -820,13 +857,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_data_v1alpha_ListReportTasksResponse_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(28); internal_static_google_analytics_data_v1alpha_ListReportTasksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ListReportTasksResponse_descriptor, new java.lang.String[] { "ReportTasks", "NextPageToken", }); + internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor, + new java.lang.String[] { + "Property", + "Dimensions", + "Metrics", + "DateRanges", + "DimensionFilter", + "MetricFilter", + "Offset", + "Limit", + "MetricAggregations", + "OrderBys", + "CurrencyCode", + "CohortSpec", + "KeepEmptyRows", + "ReturnPropertyQuota", + "Comparisons", + "ConversionSpec", + }); + internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor, + new java.lang.String[] { + "DimensionHeaders", + "MetricHeaders", + "Rows", + "Totals", + "Maximums", + "Minimums", + "RowCount", + "Metadata", + "PropertyQuota", + "Kind", + "NextPageToken", + }); + internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_data_v1alpha_Metadata_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_Metadata_descriptor, + new java.lang.String[] { + "Name", "Dimensions", "Metrics", "Comparisons", "Conversions", + }); descriptor.resolveAllFeaturesImmutable(); com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Comparison.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Comparison.java new file mode 100644 index 000000000000..d69144739cb4 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Comparison.java @@ -0,0 +1,1297 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Defines an individual comparison. Most requests will include multiple
+ * comparisons so that the report compares between the comparisons.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Comparison} + */ +@com.google.protobuf.Generated +public final class Comparison extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Comparison) + ComparisonOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Comparison"); + } + + // Use Comparison.newBuilder() to construct. + private Comparison(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Comparison() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Comparison_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Comparison_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Comparison.class, + com.google.analytics.data.v1alpha.Comparison.Builder.class); + } + + private int bitField0_; + private int oneComparisonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneComparison_; + + public enum OneComparisonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DIMENSION_FILTER(2), + COMPARISON(3), + ONECOMPARISON_NOT_SET(0); + private final int value; + + private OneComparisonCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneComparisonCase valueOf(int value) { + return forNumber(value); + } + + public static OneComparisonCase forNumber(int value) { + switch (value) { + case 2: + return DIMENSION_FILTER; + case 3: + return COMPARISON; + case 0: + return ONECOMPARISON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneComparisonCase getOneComparisonCase() { + return OneComparisonCase.forNumber(oneComparisonCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Each comparison produces separate rows in the response. In the response,
+   * this comparison is identified by this name. If name is unspecified, we will
+   * use the saved comparisons display name.
+   * 
+ * + * optional string name = 1; + * + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Each comparison produces separate rows in the response. In the response,
+   * this comparison is identified by this name. If name is unspecified, we will
+   * use the saved comparisons display name.
+   * 
+ * + * optional string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Each comparison produces separate rows in the response. In the response,
+   * this comparison is identified by this name. If name is unspecified, we will
+   * use the saved comparisons display name.
+   * 
+ * + * optional string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSION_FILTER_FIELD_NUMBER = 2; + + /** + * + * + *
+   * A basic comparison.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + * + * @return Whether the dimensionFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionFilter() { + return oneComparisonCase_ == 2; + } + + /** + * + * + *
+   * A basic comparison.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + * + * @return The dimensionFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { + if (oneComparisonCase_ == 2) { + return (com.google.analytics.data.v1alpha.FilterExpression) oneComparison_; + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + + /** + * + * + *
+   * A basic comparison.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { + if (oneComparisonCase_ == 2) { + return (com.google.analytics.data.v1alpha.FilterExpression) oneComparison_; + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + + public static final int COMPARISON_FIELD_NUMBER = 3; + + /** + * + * + *
+   * A saved comparison identified by the comparison's resource name.
+   * For example, 'comparisons/1234'.
+   * 
+ * + * string comparison = 3; + * + * @return Whether the comparison field is set. + */ + public boolean hasComparison() { + return oneComparisonCase_ == 3; + } + + /** + * + * + *
+   * A saved comparison identified by the comparison's resource name.
+   * For example, 'comparisons/1234'.
+   * 
+ * + * string comparison = 3; + * + * @return The comparison. + */ + public java.lang.String getComparison() { + java.lang.Object ref = ""; + if (oneComparisonCase_ == 3) { + ref = oneComparison_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (oneComparisonCase_ == 3) { + oneComparison_ = s; + } + return s; + } + } + + /** + * + * + *
+   * A saved comparison identified by the comparison's resource name.
+   * For example, 'comparisons/1234'.
+   * 
+ * + * string comparison = 3; + * + * @return The bytes for comparison. + */ + public com.google.protobuf.ByteString getComparisonBytes() { + java.lang.Object ref = ""; + if (oneComparisonCase_ == 3) { + ref = oneComparison_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneComparisonCase_ == 3) { + oneComparison_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (oneComparisonCase_ == 2) { + output.writeMessage(2, (com.google.analytics.data.v1alpha.FilterExpression) oneComparison_); + } + if (oneComparisonCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, oneComparison_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (oneComparisonCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.data.v1alpha.FilterExpression) oneComparison_); + } + if (oneComparisonCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, oneComparison_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.Comparison)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.Comparison other = + (com.google.analytics.data.v1alpha.Comparison) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName().equals(other.getName())) return false; + } + if (!getOneComparisonCase().equals(other.getOneComparisonCase())) return false; + switch (oneComparisonCase_) { + case 2: + if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; + break; + case 3: + if (!getComparison().equals(other.getComparison())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + switch (oneComparisonCase_) { + case 2: + hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDimensionFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + getComparison().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Comparison parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Comparison parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Comparison parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.Comparison prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines an individual comparison. Most requests will include multiple
+   * comparisons so that the report compares between the comparisons.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Comparison} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Comparison) + com.google.analytics.data.v1alpha.ComparisonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Comparison_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Comparison_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Comparison.class, + com.google.analytics.data.v1alpha.Comparison.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.Comparison.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (dimensionFilterBuilder_ != null) { + dimensionFilterBuilder_.clear(); + } + oneComparisonCase_ = 0; + oneComparison_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Comparison_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Comparison getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.Comparison.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Comparison build() { + com.google.analytics.data.v1alpha.Comparison result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Comparison buildPartial() { + com.google.analytics.data.v1alpha.Comparison result = + new com.google.analytics.data.v1alpha.Comparison(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.data.v1alpha.Comparison result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.analytics.data.v1alpha.Comparison result) { + result.oneComparisonCase_ = oneComparisonCase_; + result.oneComparison_ = this.oneComparison_; + if (oneComparisonCase_ == 2 && dimensionFilterBuilder_ != null) { + result.oneComparison_ = dimensionFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.Comparison) { + return mergeFrom((com.google.analytics.data.v1alpha.Comparison) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.Comparison other) { + if (other == com.google.analytics.data.v1alpha.Comparison.getDefaultInstance()) return this; + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getOneComparisonCase()) { + case DIMENSION_FILTER: + { + mergeDimensionFilter(other.getDimensionFilter()); + break; + } + case COMPARISON: + { + oneComparisonCase_ = 3; + oneComparison_ = other.oneComparison_; + onChanged(); + break; + } + case ONECOMPARISON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + oneComparisonCase_ = 2; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + oneComparisonCase_ = 3; + oneComparison_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneComparisonCase_ = 0; + private java.lang.Object oneComparison_; + + public OneComparisonCase getOneComparisonCase() { + return OneComparisonCase.forNumber(oneComparisonCase_); + } + + public Builder clearOneComparison() { + oneComparisonCase_ = 0; + oneComparison_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Each comparison produces separate rows in the response. In the response,
+     * this comparison is identified by this name. If name is unspecified, we will
+     * use the saved comparisons display name.
+     * 
+ * + * optional string name = 1; + * + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Each comparison produces separate rows in the response. In the response,
+     * this comparison is identified by this name. If name is unspecified, we will
+     * use the saved comparisons display name.
+     * 
+ * + * optional string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Each comparison produces separate rows in the response. In the response,
+     * this comparison is identified by this name. If name is unspecified, we will
+     * use the saved comparisons display name.
+     * 
+ * + * optional string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Each comparison produces separate rows in the response. In the response,
+     * this comparison is identified by this name. If name is unspecified, we will
+     * use the saved comparisons display name.
+     * 
+ * + * optional string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Each comparison produces separate rows in the response. In the response,
+     * this comparison is identified by this name. If name is unspecified, we will
+     * use the saved comparisons display name.
+     * 
+ * + * optional string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Each comparison produces separate rows in the response. In the response,
+     * this comparison is identified by this name. If name is unspecified, we will
+     * use the saved comparisons display name.
+     * 
+ * + * optional string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + dimensionFilterBuilder_; + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + * + * @return Whether the dimensionFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionFilter() { + return oneComparisonCase_ == 2; + } + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + * + * @return The dimensionFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { + if (dimensionFilterBuilder_ == null) { + if (oneComparisonCase_ == 2) { + return (com.google.analytics.data.v1alpha.FilterExpression) oneComparison_; + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } else { + if (oneComparisonCase_ == 2) { + return dimensionFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + public Builder setDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneComparison_ = value; + onChanged(); + } else { + dimensionFilterBuilder_.setMessage(value); + } + oneComparisonCase_ = 2; + return this; + } + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + public Builder setDimensionFilter( + com.google.analytics.data.v1alpha.FilterExpression.Builder builderForValue) { + if (dimensionFilterBuilder_ == null) { + oneComparison_ = builderForValue.build(); + onChanged(); + } else { + dimensionFilterBuilder_.setMessage(builderForValue.build()); + } + oneComparisonCase_ = 2; + return this; + } + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (oneComparisonCase_ == 2 + && oneComparison_ + != com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()) { + oneComparison_ = + com.google.analytics.data.v1alpha.FilterExpression.newBuilder( + (com.google.analytics.data.v1alpha.FilterExpression) oneComparison_) + .mergeFrom(value) + .buildPartial(); + } else { + oneComparison_ = value; + } + onChanged(); + } else { + if (oneComparisonCase_ == 2) { + dimensionFilterBuilder_.mergeFrom(value); + } else { + dimensionFilterBuilder_.setMessage(value); + } + } + oneComparisonCase_ = 2; + return this; + } + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + public Builder clearDimensionFilter() { + if (dimensionFilterBuilder_ == null) { + if (oneComparisonCase_ == 2) { + oneComparisonCase_ = 0; + oneComparison_ = null; + onChanged(); + } + } else { + if (oneComparisonCase_ == 2) { + oneComparisonCase_ = 0; + oneComparison_ = null; + } + dimensionFilterBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + public com.google.analytics.data.v1alpha.FilterExpression.Builder getDimensionFilterBuilder() { + return internalGetDimensionFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + if ((oneComparisonCase_ == 2) && (dimensionFilterBuilder_ != null)) { + return dimensionFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneComparisonCase_ == 2) { + return (com.google.analytics.data.v1alpha.FilterExpression) oneComparison_; + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A basic comparison.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + internalGetDimensionFilterFieldBuilder() { + if (dimensionFilterBuilder_ == null) { + if (!(oneComparisonCase_ == 2)) { + oneComparison_ = com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + dimensionFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.FilterExpression) oneComparison_, + getParentForChildren(), + isClean()); + oneComparison_ = null; + } + oneComparisonCase_ = 2; + onChanged(); + return dimensionFilterBuilder_; + } + + /** + * + * + *
+     * A saved comparison identified by the comparison's resource name.
+     * For example, 'comparisons/1234'.
+     * 
+ * + * string comparison = 3; + * + * @return Whether the comparison field is set. + */ + @java.lang.Override + public boolean hasComparison() { + return oneComparisonCase_ == 3; + } + + /** + * + * + *
+     * A saved comparison identified by the comparison's resource name.
+     * For example, 'comparisons/1234'.
+     * 
+ * + * string comparison = 3; + * + * @return The comparison. + */ + @java.lang.Override + public java.lang.String getComparison() { + java.lang.Object ref = ""; + if (oneComparisonCase_ == 3) { + ref = oneComparison_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (oneComparisonCase_ == 3) { + oneComparison_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A saved comparison identified by the comparison's resource name.
+     * For example, 'comparisons/1234'.
+     * 
+ * + * string comparison = 3; + * + * @return The bytes for comparison. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComparisonBytes() { + java.lang.Object ref = ""; + if (oneComparisonCase_ == 3) { + ref = oneComparison_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneComparisonCase_ == 3) { + oneComparison_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A saved comparison identified by the comparison's resource name.
+     * For example, 'comparisons/1234'.
+     * 
+ * + * string comparison = 3; + * + * @param value The comparison to set. + * @return This builder for chaining. + */ + public Builder setComparison(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oneComparisonCase_ = 3; + oneComparison_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * A saved comparison identified by the comparison's resource name.
+     * For example, 'comparisons/1234'.
+     * 
+ * + * string comparison = 3; + * + * @return This builder for chaining. + */ + public Builder clearComparison() { + if (oneComparisonCase_ == 3) { + oneComparisonCase_ = 0; + oneComparison_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * A saved comparison identified by the comparison's resource name.
+     * For example, 'comparisons/1234'.
+     * 
+ * + * string comparison = 3; + * + * @param value The bytes for comparison to set. + * @return This builder for chaining. + */ + public Builder setComparisonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oneComparisonCase_ = 3; + oneComparison_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.Comparison) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Comparison) + private static final com.google.analytics.data.v1alpha.Comparison DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Comparison(); + } + + public static com.google.analytics.data.v1alpha.Comparison getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Comparison parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Comparison getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonMetadata.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonMetadata.java new file mode 100644 index 000000000000..2b77a9886416 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonMetadata.java @@ -0,0 +1,981 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The metadata for a single comparison.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.ComparisonMetadata} + */ +@com.google.protobuf.Generated +public final class ComparisonMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.ComparisonMetadata) + ComparisonMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComparisonMetadata"); + } + + // Use ComparisonMetadata.newBuilder() to construct. + private ComparisonMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComparisonMetadata() { + apiName_ = ""; + uiName_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ComparisonMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ComparisonMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.ComparisonMetadata.class, + com.google.analytics.data.v1alpha.ComparisonMetadata.Builder.class); + } + + public static final int API_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiName_ = ""; + + /** + * + * + *
+   * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+   * `comparison` field. For example, 'comparisons/1234'.
+   * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + @java.lang.Override + public java.lang.String getApiName() { + java.lang.Object ref = apiName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiName_ = s; + return s; + } + } + + /** + * + * + *
+   * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+   * `comparison` field. For example, 'comparisons/1234'.
+   * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiNameBytes() { + java.lang.Object ref = apiName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UI_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uiName_ = ""; + + /** + * + * + *
+   * This comparison's name within the Google Analytics user interface.
+   * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + @java.lang.Override + public java.lang.String getUiName() { + java.lang.Object ref = uiName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uiName_ = s; + return s; + } + } + + /** + * + * + *
+   * This comparison's name within the Google Analytics user interface.
+   * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUiNameBytes() { + java.lang.Object ref = uiName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * This comparison's description.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * This comparison's description.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uiName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uiName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.ComparisonMetadata)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.ComparisonMetadata other = + (com.google.analytics.data.v1alpha.ComparisonMetadata) obj; + + if (!getApiName().equals(other.getApiName())) return false; + if (!getUiName().equals(other.getUiName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + API_NAME_FIELD_NUMBER; + hash = (53 * hash) + getApiName().hashCode(); + hash = (37 * hash) + UI_NAME_FIELD_NUMBER; + hash = (53 * hash) + getUiName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.ComparisonMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The metadata for a single comparison.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.ComparisonMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.ComparisonMetadata) + com.google.analytics.data.v1alpha.ComparisonMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ComparisonMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ComparisonMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.ComparisonMetadata.class, + com.google.analytics.data.v1alpha.ComparisonMetadata.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.ComparisonMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiName_ = ""; + uiName_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ComparisonMetadata_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ComparisonMetadata getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.ComparisonMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ComparisonMetadata build() { + com.google.analytics.data.v1alpha.ComparisonMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ComparisonMetadata buildPartial() { + com.google.analytics.data.v1alpha.ComparisonMetadata result = + new com.google.analytics.data.v1alpha.ComparisonMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.data.v1alpha.ComparisonMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiName_ = apiName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uiName_ = uiName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.ComparisonMetadata) { + return mergeFrom((com.google.analytics.data.v1alpha.ComparisonMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.ComparisonMetadata other) { + if (other == com.google.analytics.data.v1alpha.ComparisonMetadata.getDefaultInstance()) + return this; + if (!other.getApiName().isEmpty()) { + apiName_ = other.apiName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUiName().isEmpty()) { + uiName_ = other.uiName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uiName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object apiName_ = ""; + + /** + * + * + *
+     * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+     * `comparison` field. For example, 'comparisons/1234'.
+     * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + public java.lang.String getApiName() { + java.lang.Object ref = apiName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+     * `comparison` field. For example, 'comparisons/1234'.
+     * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + public com.google.protobuf.ByteString getApiNameBytes() { + java.lang.Object ref = apiName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+     * `comparison` field. For example, 'comparisons/1234'.
+     * 
+ * + * string api_name = 1; + * + * @param value The apiName to set. + * @return This builder for chaining. + */ + public Builder setApiName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+     * `comparison` field. For example, 'comparisons/1234'.
+     * 
+ * + * string api_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearApiName() { + apiName_ = getDefaultInstance().getApiName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+     * `comparison` field. For example, 'comparisons/1234'.
+     * 
+ * + * string api_name = 1; + * + * @param value The bytes for apiName to set. + * @return This builder for chaining. + */ + public Builder setApiNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uiName_ = ""; + + /** + * + * + *
+     * This comparison's name within the Google Analytics user interface.
+     * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + public java.lang.String getUiName() { + java.lang.Object ref = uiName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uiName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This comparison's name within the Google Analytics user interface.
+     * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + public com.google.protobuf.ByteString getUiNameBytes() { + java.lang.Object ref = uiName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This comparison's name within the Google Analytics user interface.
+     * 
+ * + * string ui_name = 2; + * + * @param value The uiName to set. + * @return This builder for chaining. + */ + public Builder setUiName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uiName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * This comparison's name within the Google Analytics user interface.
+     * 
+ * + * string ui_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearUiName() { + uiName_ = getDefaultInstance().getUiName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * This comparison's name within the Google Analytics user interface.
+     * 
+ * + * string ui_name = 2; + * + * @param value The bytes for uiName to set. + * @return This builder for chaining. + */ + public Builder setUiNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uiName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * This comparison's description.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This comparison's description.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This comparison's description.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * This comparison's description.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * This comparison's description.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.ComparisonMetadata) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.ComparisonMetadata) + private static final com.google.analytics.data.v1alpha.ComparisonMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.ComparisonMetadata(); + } + + public static com.google.analytics.data.v1alpha.ComparisonMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComparisonMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ComparisonMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonMetadataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonMetadataOrBuilder.java new file mode 100644 index 000000000000..1d4bf1b7914e --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonMetadataOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface ComparisonMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.ComparisonMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+   * `comparison` field. For example, 'comparisons/1234'.
+   * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + java.lang.String getApiName(); + + /** + * + * + *
+   * This comparison's resource name. Usable in [Comparison](#Comparison)'s
+   * `comparison` field. For example, 'comparisons/1234'.
+   * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + com.google.protobuf.ByteString getApiNameBytes(); + + /** + * + * + *
+   * This comparison's name within the Google Analytics user interface.
+   * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + java.lang.String getUiName(); + + /** + * + * + *
+   * This comparison's name within the Google Analytics user interface.
+   * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + com.google.protobuf.ByteString getUiNameBytes(); + + /** + * + * + *
+   * This comparison's description.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * This comparison's description.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonOrBuilder.java new file mode 100644 index 000000000000..715420c41445 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ComparisonOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface ComparisonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Comparison) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Each comparison produces separate rows in the response. In the response,
+   * this comparison is identified by this name. If name is unspecified, we will
+   * use the saved comparisons display name.
+   * 
+ * + * optional string name = 1; + * + * @return Whether the name field is set. + */ + boolean hasName(); + + /** + * + * + *
+   * Each comparison produces separate rows in the response. In the response,
+   * this comparison is identified by this name. If name is unspecified, we will
+   * use the saved comparisons display name.
+   * 
+ * + * optional string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Each comparison produces separate rows in the response. In the response,
+   * this comparison is identified by this name. If name is unspecified, we will
+   * use the saved comparisons display name.
+   * 
+ * + * optional string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * A basic comparison.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + * + * @return Whether the dimensionFilter field is set. + */ + boolean hasDimensionFilter(); + + /** + * + * + *
+   * A basic comparison.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + * + * @return The dimensionFilter. + */ + com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter(); + + /** + * + * + *
+   * A basic comparison.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 2; + */ + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder(); + + /** + * + * + *
+   * A saved comparison identified by the comparison's resource name.
+   * For example, 'comparisons/1234'.
+   * 
+ * + * string comparison = 3; + * + * @return Whether the comparison field is set. + */ + boolean hasComparison(); + + /** + * + * + *
+   * A saved comparison identified by the comparison's resource name.
+   * For example, 'comparisons/1234'.
+   * 
+ * + * string comparison = 3; + * + * @return The comparison. + */ + java.lang.String getComparison(); + + /** + * + * + *
+   * A saved comparison identified by the comparison's resource name.
+   * For example, 'comparisons/1234'.
+   * 
+ * + * string comparison = 3; + * + * @return The bytes for comparison. + */ + com.google.protobuf.ByteString getComparisonBytes(); + + com.google.analytics.data.v1alpha.Comparison.OneComparisonCase getOneComparisonCase(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionMetadata.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionMetadata.java new file mode 100644 index 000000000000..0c605571405c --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionMetadata.java @@ -0,0 +1,822 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The metadata for a single conversion.
+ *
+ * <aside class="caution">
+ * This feature may not be available to your Google Analytics property. The
+ * Google Analytics team is actively working to expand this feature to more
+ * properties. Please reach out to your
+ * <a href="https://support.google.com/analytics/gethelp">support team</a> if
+ * you have questions about the eligibility of your property.
+ * </aside>
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.ConversionMetadata} + */ +@com.google.protobuf.Generated +public final class ConversionMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.ConversionMetadata) + ConversionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversionMetadata"); + } + + // Use ConversionMetadata.newBuilder() to construct. + private ConversionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversionMetadata() { + conversionAction_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.ConversionMetadata.class, + com.google.analytics.data.v1alpha.ConversionMetadata.Builder.class); + } + + public static final int CONVERSION_ACTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversionAction_ = ""; + + /** + * + * + *
+   * The unique identifier of the conversion action. This ID is used to specify
+   * which conversions to include in a report by populating the
+   * `conversion_actions` field in the `ConversionsSpec` of a report request.
+   * For example, 'conversionActions/1234'.
+   * 
+ * + * string conversion_action = 1; + * + * @return The conversionAction. + */ + @java.lang.Override + public java.lang.String getConversionAction() { + java.lang.Object ref = conversionAction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversionAction_ = s; + return s; + } + } + + /** + * + * + *
+   * The unique identifier of the conversion action. This ID is used to specify
+   * which conversions to include in a report by populating the
+   * `conversion_actions` field in the `ConversionsSpec` of a report request.
+   * For example, 'conversionActions/1234'.
+   * 
+ * + * string conversion_action = 1; + * + * @return The bytes for conversionAction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversionActionBytes() { + java.lang.Object ref = conversionAction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * This conversion's name within the Google Analytics user interface.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * This conversion's name within the Google Analytics user interface.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conversionAction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, conversionAction_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conversionAction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, conversionAction_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.ConversionMetadata)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.ConversionMetadata other = + (com.google.analytics.data.v1alpha.ConversionMetadata) obj; + + if (!getConversionAction().equals(other.getConversionAction())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONVERSION_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getConversionAction().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.ConversionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The metadata for a single conversion.
+   *
+   * <aside class="caution">
+   * This feature may not be available to your Google Analytics property. The
+   * Google Analytics team is actively working to expand this feature to more
+   * properties. Please reach out to your
+   * <a href="https://support.google.com/analytics/gethelp">support team</a> if
+   * you have questions about the eligibility of your property.
+   * </aside>
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.ConversionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.ConversionMetadata) + com.google.analytics.data.v1alpha.ConversionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.ConversionMetadata.class, + com.google.analytics.data.v1alpha.ConversionMetadata.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.ConversionMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionAction_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionMetadata_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionMetadata getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.ConversionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionMetadata build() { + com.google.analytics.data.v1alpha.ConversionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionMetadata buildPartial() { + com.google.analytics.data.v1alpha.ConversionMetadata result = + new com.google.analytics.data.v1alpha.ConversionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.data.v1alpha.ConversionMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversionAction_ = conversionAction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.ConversionMetadata) { + return mergeFrom((com.google.analytics.data.v1alpha.ConversionMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.ConversionMetadata other) { + if (other == com.google.analytics.data.v1alpha.ConversionMetadata.getDefaultInstance()) + return this; + if (!other.getConversionAction().isEmpty()) { + conversionAction_ = other.conversionAction_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + conversionAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object conversionAction_ = ""; + + /** + * + * + *
+     * The unique identifier of the conversion action. This ID is used to specify
+     * which conversions to include in a report by populating the
+     * `conversion_actions` field in the `ConversionsSpec` of a report request.
+     * For example, 'conversionActions/1234'.
+     * 
+ * + * string conversion_action = 1; + * + * @return The conversionAction. + */ + public java.lang.String getConversionAction() { + java.lang.Object ref = conversionAction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversionAction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The unique identifier of the conversion action. This ID is used to specify
+     * which conversions to include in a report by populating the
+     * `conversion_actions` field in the `ConversionsSpec` of a report request.
+     * For example, 'conversionActions/1234'.
+     * 
+ * + * string conversion_action = 1; + * + * @return The bytes for conversionAction. + */ + public com.google.protobuf.ByteString getConversionActionBytes() { + java.lang.Object ref = conversionAction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The unique identifier of the conversion action. This ID is used to specify
+     * which conversions to include in a report by populating the
+     * `conversion_actions` field in the `ConversionsSpec` of a report request.
+     * For example, 'conversionActions/1234'.
+     * 
+ * + * string conversion_action = 1; + * + * @param value The conversionAction to set. + * @return This builder for chaining. + */ + public Builder setConversionAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversionAction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique identifier of the conversion action. This ID is used to specify
+     * which conversions to include in a report by populating the
+     * `conversion_actions` field in the `ConversionsSpec` of a report request.
+     * For example, 'conversionActions/1234'.
+     * 
+ * + * string conversion_action = 1; + * + * @return This builder for chaining. + */ + public Builder clearConversionAction() { + conversionAction_ = getDefaultInstance().getConversionAction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique identifier of the conversion action. This ID is used to specify
+     * which conversions to include in a report by populating the
+     * `conversion_actions` field in the `ConversionsSpec` of a report request.
+     * For example, 'conversionActions/1234'.
+     * 
+ * + * string conversion_action = 1; + * + * @param value The bytes for conversionAction to set. + * @return This builder for chaining. + */ + public Builder setConversionActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversionAction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * This conversion's name within the Google Analytics user interface.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This conversion's name within the Google Analytics user interface.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This conversion's name within the Google Analytics user interface.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * This conversion's name within the Google Analytics user interface.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * This conversion's name within the Google Analytics user interface.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.ConversionMetadata) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.ConversionMetadata) + private static final com.google.analytics.data.v1alpha.ConversionMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.ConversionMetadata(); + } + + public static com.google.analytics.data.v1alpha.ConversionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionMetadataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionMetadataOrBuilder.java new file mode 100644 index 000000000000..cca6117d35b2 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionMetadataOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface ConversionMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.ConversionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The unique identifier of the conversion action. This ID is used to specify
+   * which conversions to include in a report by populating the
+   * `conversion_actions` field in the `ConversionsSpec` of a report request.
+   * For example, 'conversionActions/1234'.
+   * 
+ * + * string conversion_action = 1; + * + * @return The conversionAction. + */ + java.lang.String getConversionAction(); + + /** + * + * + *
+   * The unique identifier of the conversion action. This ID is used to specify
+   * which conversions to include in a report by populating the
+   * `conversion_actions` field in the `ConversionsSpec` of a report request.
+   * For example, 'conversionActions/1234'.
+   * 
+ * + * string conversion_action = 1; + * + * @return The bytes for conversionAction. + */ + com.google.protobuf.ByteString getConversionActionBytes(); + + /** + * + * + *
+   * This conversion's name within the Google Analytics user interface.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * This conversion's name within the Google Analytics user interface.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionSpec.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionSpec.java new file mode 100644 index 000000000000..e1e1cef112ca --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionSpec.java @@ -0,0 +1,1118 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Controls conversion reporting.
+ *
+ * <aside class="caution">
+ * This feature may not be available to your Google Analytics property. The
+ * Google Analytics team is actively working to expand this feature to more
+ * properties. Please reach out to your
+ * <a href="https://support.google.com/analytics/gethelp">support team</a> if
+ * you have questions about the eligibility of your property.
+ * </aside>
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.ConversionSpec} + */ +@com.google.protobuf.Generated +public final class ConversionSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.ConversionSpec) + ConversionSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversionSpec"); + } + + // Use ConversionSpec.newBuilder() to construct. + private ConversionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversionSpec() { + conversionActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + attributionModel_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.ConversionSpec.class, + com.google.analytics.data.v1alpha.ConversionSpec.Builder.class); + } + + /** + * + * + *
+   * Attribution model to use in the Conversion Report
+   * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.ConversionSpec.AttributionModel} + */ + public enum AttributionModel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified attribution model.
+     * 
+ * + * ATTRIBUTION_MODEL_UNSPECIFIED = 0; + */ + ATTRIBUTION_MODEL_UNSPECIFIED(0), + /** + * + * + *
+     * Attribution was based on the paid and organic data driven model
+     * 
+ * + * DATA_DRIVEN = 1; + */ + DATA_DRIVEN(1), + /** + * + * + *
+     * Attribution was based on the paid and organic last click model
+     * 
+ * + * LAST_CLICK = 2; + */ + LAST_CLICK(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AttributionModel"); + } + + /** + * + * + *
+     * Unspecified attribution model.
+     * 
+ * + * ATTRIBUTION_MODEL_UNSPECIFIED = 0; + */ + public static final int ATTRIBUTION_MODEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Attribution was based on the paid and organic data driven model
+     * 
+ * + * DATA_DRIVEN = 1; + */ + public static final int DATA_DRIVEN_VALUE = 1; + + /** + * + * + *
+     * Attribution was based on the paid and organic last click model
+     * 
+ * + * LAST_CLICK = 2; + */ + public static final int LAST_CLICK_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AttributionModel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AttributionModel forNumber(int value) { + switch (value) { + case 0: + return ATTRIBUTION_MODEL_UNSPECIFIED; + case 1: + return DATA_DRIVEN; + case 2: + return LAST_CLICK; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AttributionModel findValueByNumber(int number) { + return AttributionModel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ConversionSpec.getDescriptor().getEnumTypes().get(0); + } + + private static final AttributionModel[] VALUES = values(); + + public static AttributionModel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AttributionModel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.ConversionSpec.AttributionModel) + } + + public static final int CONVERSION_ACTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList conversionActions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The conversion action IDs to include in the report. If empty, all
+   * conversions are included. Valid conversion action IDs can be retrieved from
+   * the `conversion_action` field within the `conversions` list in the
+   * response of the `GetMetadata` method. For example,
+   * 'conversionActions/1234'.
+   * 
+ * + * repeated string conversion_actions = 1; + * + * @return A list containing the conversionActions. + */ + public com.google.protobuf.ProtocolStringList getConversionActionsList() { + return conversionActions_; + } + + /** + * + * + *
+   * The conversion action IDs to include in the report. If empty, all
+   * conversions are included. Valid conversion action IDs can be retrieved from
+   * the `conversion_action` field within the `conversions` list in the
+   * response of the `GetMetadata` method. For example,
+   * 'conversionActions/1234'.
+   * 
+ * + * repeated string conversion_actions = 1; + * + * @return The count of conversionActions. + */ + public int getConversionActionsCount() { + return conversionActions_.size(); + } + + /** + * + * + *
+   * The conversion action IDs to include in the report. If empty, all
+   * conversions are included. Valid conversion action IDs can be retrieved from
+   * the `conversion_action` field within the `conversions` list in the
+   * response of the `GetMetadata` method. For example,
+   * 'conversionActions/1234'.
+   * 
+ * + * repeated string conversion_actions = 1; + * + * @param index The index of the element to return. + * @return The conversionActions at the given index. + */ + public java.lang.String getConversionActions(int index) { + return conversionActions_.get(index); + } + + /** + * + * + *
+   * The conversion action IDs to include in the report. If empty, all
+   * conversions are included. Valid conversion action IDs can be retrieved from
+   * the `conversion_action` field within the `conversions` list in the
+   * response of the `GetMetadata` method. For example,
+   * 'conversionActions/1234'.
+   * 
+ * + * repeated string conversion_actions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the conversionActions at the given index. + */ + public com.google.protobuf.ByteString getConversionActionsBytes(int index) { + return conversionActions_.getByteString(index); + } + + public static final int ATTRIBUTION_MODEL_FIELD_NUMBER = 2; + private int attributionModel_ = 0; + + /** + * + * + *
+   * The attribution model to use in the Conversion Report. If unspecified,
+   * `DATA_DRIVEN` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @return The enum numeric value on the wire for attributionModel. + */ + @java.lang.Override + public int getAttributionModelValue() { + return attributionModel_; + } + + /** + * + * + *
+   * The attribution model to use in the Conversion Report. If unspecified,
+   * `DATA_DRIVEN` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @return The attributionModel. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel getAttributionModel() { + com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel result = + com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel.forNumber( + attributionModel_); + return result == null + ? com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < conversionActions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, conversionActions_.getRaw(i)); + } + if (attributionModel_ + != com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel + .ATTRIBUTION_MODEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, attributionModel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < conversionActions_.size(); i++) { + dataSize += computeStringSizeNoTag(conversionActions_.getRaw(i)); + } + size += dataSize; + size += 1 * getConversionActionsList().size(); + } + if (attributionModel_ + != com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel + .ATTRIBUTION_MODEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, attributionModel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.ConversionSpec)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.ConversionSpec other = + (com.google.analytics.data.v1alpha.ConversionSpec) obj; + + if (!getConversionActionsList().equals(other.getConversionActionsList())) return false; + if (attributionModel_ != other.attributionModel_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConversionActionsCount() > 0) { + hash = (37 * hash) + CONVERSION_ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConversionActionsList().hashCode(); + } + hash = (37 * hash) + ATTRIBUTION_MODEL_FIELD_NUMBER; + hash = (53 * hash) + attributionModel_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.ConversionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Controls conversion reporting.
+   *
+   * <aside class="caution">
+   * This feature may not be available to your Google Analytics property. The
+   * Google Analytics team is actively working to expand this feature to more
+   * properties. Please reach out to your
+   * <a href="https://support.google.com/analytics/gethelp">support team</a> if
+   * you have questions about the eligibility of your property.
+   * </aside>
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.ConversionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.ConversionSpec) + com.google.analytics.data.v1alpha.ConversionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.ConversionSpec.class, + com.google.analytics.data.v1alpha.ConversionSpec.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.ConversionSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + attributionModel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_ConversionSpec_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionSpec getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.ConversionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionSpec build() { + com.google.analytics.data.v1alpha.ConversionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionSpec buildPartial() { + com.google.analytics.data.v1alpha.ConversionSpec result = + new com.google.analytics.data.v1alpha.ConversionSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.data.v1alpha.ConversionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + conversionActions_.makeImmutable(); + result.conversionActions_ = conversionActions_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributionModel_ = attributionModel_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.ConversionSpec) { + return mergeFrom((com.google.analytics.data.v1alpha.ConversionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.ConversionSpec other) { + if (other == com.google.analytics.data.v1alpha.ConversionSpec.getDefaultInstance()) + return this; + if (!other.conversionActions_.isEmpty()) { + if (conversionActions_.isEmpty()) { + conversionActions_ = other.conversionActions_; + bitField0_ |= 0x00000001; + } else { + ensureConversionActionsIsMutable(); + conversionActions_.addAll(other.conversionActions_); + } + onChanged(); + } + if (other.attributionModel_ != 0) { + setAttributionModelValue(other.getAttributionModelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureConversionActionsIsMutable(); + conversionActions_.add(s); + break; + } // case 10 + case 16: + { + attributionModel_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList conversionActions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureConversionActionsIsMutable() { + if (!conversionActions_.isModifiable()) { + conversionActions_ = new com.google.protobuf.LazyStringArrayList(conversionActions_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @return A list containing the conversionActions. + */ + public com.google.protobuf.ProtocolStringList getConversionActionsList() { + conversionActions_.makeImmutable(); + return conversionActions_; + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @return The count of conversionActions. + */ + public int getConversionActionsCount() { + return conversionActions_.size(); + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @param index The index of the element to return. + * @return The conversionActions at the given index. + */ + public java.lang.String getConversionActions(int index) { + return conversionActions_.get(index); + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the conversionActions at the given index. + */ + public com.google.protobuf.ByteString getConversionActionsBytes(int index) { + return conversionActions_.getByteString(index); + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @param index The index to set the value at. + * @param value The conversionActions to set. + * @return This builder for chaining. + */ + public Builder setConversionActions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionActionsIsMutable(); + conversionActions_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @param value The conversionActions to add. + * @return This builder for chaining. + */ + public Builder addConversionActions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionActionsIsMutable(); + conversionActions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @param values The conversionActions to add. + * @return This builder for chaining. + */ + public Builder addAllConversionActions(java.lang.Iterable values) { + ensureConversionActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversionActions_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @return This builder for chaining. + */ + public Builder clearConversionActions() { + conversionActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The conversion action IDs to include in the report. If empty, all
+     * conversions are included. Valid conversion action IDs can be retrieved from
+     * the `conversion_action` field within the `conversions` list in the
+     * response of the `GetMetadata` method. For example,
+     * 'conversionActions/1234'.
+     * 
+ * + * repeated string conversion_actions = 1; + * + * @param value The bytes of the conversionActions to add. + * @return This builder for chaining. + */ + public Builder addConversionActionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureConversionActionsIsMutable(); + conversionActions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int attributionModel_ = 0; + + /** + * + * + *
+     * The attribution model to use in the Conversion Report. If unspecified,
+     * `DATA_DRIVEN` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @return The enum numeric value on the wire for attributionModel. + */ + @java.lang.Override + public int getAttributionModelValue() { + return attributionModel_; + } + + /** + * + * + *
+     * The attribution model to use in the Conversion Report. If unspecified,
+     * `DATA_DRIVEN` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @param value The enum numeric value on the wire for attributionModel to set. + * @return This builder for chaining. + */ + public Builder setAttributionModelValue(int value) { + attributionModel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The attribution model to use in the Conversion Report. If unspecified,
+     * `DATA_DRIVEN` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @return The attributionModel. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel getAttributionModel() { + com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel result = + com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel.forNumber( + attributionModel_); + return result == null + ? com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The attribution model to use in the Conversion Report. If unspecified,
+     * `DATA_DRIVEN` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @param value The attributionModel to set. + * @return This builder for chaining. + */ + public Builder setAttributionModel( + com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + attributionModel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The attribution model to use in the Conversion Report. If unspecified,
+     * `DATA_DRIVEN` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearAttributionModel() { + bitField0_ = (bitField0_ & ~0x00000002); + attributionModel_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.ConversionSpec) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.ConversionSpec) + private static final com.google.analytics.data.v1alpha.ConversionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.ConversionSpec(); + } + + public static com.google.analytics.data.v1alpha.ConversionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionSpecOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionSpecOrBuilder.java new file mode 100644 index 000000000000..780166ccb039 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ConversionSpecOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface ConversionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.ConversionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The conversion action IDs to include in the report. If empty, all
+   * conversions are included. Valid conversion action IDs can be retrieved from
+   * the `conversion_action` field within the `conversions` list in the
+   * response of the `GetMetadata` method. For example,
+   * 'conversionActions/1234'.
+   * 
+ * + * repeated string conversion_actions = 1; + * + * @return A list containing the conversionActions. + */ + java.util.List getConversionActionsList(); + + /** + * + * + *
+   * The conversion action IDs to include in the report. If empty, all
+   * conversions are included. Valid conversion action IDs can be retrieved from
+   * the `conversion_action` field within the `conversions` list in the
+   * response of the `GetMetadata` method. For example,
+   * 'conversionActions/1234'.
+   * 
+ * + * repeated string conversion_actions = 1; + * + * @return The count of conversionActions. + */ + int getConversionActionsCount(); + + /** + * + * + *
+   * The conversion action IDs to include in the report. If empty, all
+   * conversions are included. Valid conversion action IDs can be retrieved from
+   * the `conversion_action` field within the `conversions` list in the
+   * response of the `GetMetadata` method. For example,
+   * 'conversionActions/1234'.
+   * 
+ * + * repeated string conversion_actions = 1; + * + * @param index The index of the element to return. + * @return The conversionActions at the given index. + */ + java.lang.String getConversionActions(int index); + + /** + * + * + *
+   * The conversion action IDs to include in the report. If empty, all
+   * conversions are included. Valid conversion action IDs can be retrieved from
+   * the `conversion_action` field within the `conversions` list in the
+   * response of the `GetMetadata` method. For example,
+   * 'conversionActions/1234'.
+   * 
+ * + * repeated string conversion_actions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the conversionActions at the given index. + */ + com.google.protobuf.ByteString getConversionActionsBytes(int index); + + /** + * + * + *
+   * The attribution model to use in the Conversion Report. If unspecified,
+   * `DATA_DRIVEN` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @return The enum numeric value on the wire for attributionModel. + */ + int getAttributionModelValue(); + + /** + * + * + *
+   * The attribution model to use in the Conversion Report. If unspecified,
+   * `DATA_DRIVEN` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2; + * + * + * @return The attributionModel. + */ + com.google.analytics.data.v1alpha.ConversionSpec.AttributionModel getAttributionModel(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java new file mode 100644 index 000000000000..3b5fdb3fec97 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java @@ -0,0 +1,2023 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Explains a dimension.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionMetadata} + */ +@com.google.protobuf.Generated +public final class DimensionMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.DimensionMetadata) + DimensionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DimensionMetadata"); + } + + // Use DimensionMetadata.newBuilder() to construct. + private DimensionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DimensionMetadata() { + apiName_ = ""; + uiName_ = ""; + description_ = ""; + deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + category_ = ""; + sections_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionMetadata.class, + com.google.analytics.data.v1alpha.DimensionMetadata.Builder.class); + } + + public static final int API_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiName_ = ""; + + /** + * + * + *
+   * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+   * example, `eventName`.
+   * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + @java.lang.Override + public java.lang.String getApiName() { + java.lang.Object ref = apiName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiName_ = s; + return s; + } + } + + /** + * + * + *
+   * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+   * example, `eventName`.
+   * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiNameBytes() { + java.lang.Object ref = apiName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UI_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uiName_ = ""; + + /** + * + * + *
+   * This dimension's name within the Google Analytics user interface. For
+   * example, `Event name`.
+   * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + @java.lang.Override + public java.lang.String getUiName() { + java.lang.Object ref = uiName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uiName_ = s; + return s; + } + } + + /** + * + * + *
+   * This dimension's name within the Google Analytics user interface. For
+   * example, `Event name`.
+   * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUiNameBytes() { + java.lang.Object ref = uiName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Description of how this dimension is used and calculated.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Description of how this dimension is used and calculated.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATED_API_NAMES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList deprecatedApiNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Still usable but deprecated names for this dimension. If populated, this
+   * dimension is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the dimension will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return A list containing the deprecatedApiNames. + */ + public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() { + return deprecatedApiNames_; + } + + /** + * + * + *
+   * Still usable but deprecated names for this dimension. If populated, this
+   * dimension is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the dimension will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return The count of deprecatedApiNames. + */ + public int getDeprecatedApiNamesCount() { + return deprecatedApiNames_.size(); + } + + /** + * + * + *
+   * Still usable but deprecated names for this dimension. If populated, this
+   * dimension is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the dimension will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the element to return. + * @return The deprecatedApiNames at the given index. + */ + public java.lang.String getDeprecatedApiNames(int index) { + return deprecatedApiNames_.get(index); + } + + /** + * + * + *
+   * Still usable but deprecated names for this dimension. If populated, this
+   * dimension is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the dimension will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the deprecatedApiNames at the given index. + */ + public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) { + return deprecatedApiNames_.getByteString(index); + } + + public static final int CUSTOM_DEFINITION_FIELD_NUMBER = 5; + private boolean customDefinition_ = false; + + /** + * + * + *
+   * True if the dimension is custom to this property. This includes user,
+   * event, & item scoped custom dimensions; to learn more about custom
+   * dimensions, see https://support.google.com/analytics/answer/14240153. This
+   * also include custom channel groups; to learn more about custom channel
+   * groups, see https://support.google.com/analytics/answer/13051316.
+   * 
+ * + * bool custom_definition = 5; + * + * @return The customDefinition. + */ + @java.lang.Override + public boolean getCustomDefinition() { + return customDefinition_; + } + + public static final int CATEGORY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object category_ = ""; + + /** + * + * + *
+   * The display name of the category that this dimension belongs to. Similar
+   * dimensions and metrics are categorized together.
+   * 
+ * + * string category = 6; + * + * @return The category. + */ + @java.lang.Override + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } + } + + /** + * + * + *
+   * The display name of the category that this dimension belongs to. Similar
+   * dimensions and metrics are categorized together.
+   * 
+ * + * string category = 6; + * + * @return The bytes for category. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECTIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList sections_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.analytics.data.v1alpha.Section> + sections_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.analytics.data.v1alpha.Section>() { + public com.google.analytics.data.v1alpha.Section convert(int from) { + com.google.analytics.data.v1alpha.Section result = + com.google.analytics.data.v1alpha.Section.forNumber(from); + return result == null + ? com.google.analytics.data.v1alpha.Section.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return A list containing the sections. + */ + @java.lang.Override + public java.util.List getSectionsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.analytics.data.v1alpha.Section>(sections_, sections_converter_); + } + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return The count of sections. + */ + @java.lang.Override + public int getSectionsCount() { + return sections_.size(); + } + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param index The index of the element to return. + * @return The sections at the given index. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Section getSections(int index) { + return sections_converter_.convert(sections_.getInt(index)); + } + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return A list containing the enum numeric values on the wire for sections. + */ + @java.lang.Override + public java.util.List getSectionsValueList() { + return sections_; + } + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sections at the given index. + */ + @java.lang.Override + public int getSectionsValue(int index) { + return sections_.getInt(index); + } + + private int sectionsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uiName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < deprecatedApiNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, deprecatedApiNames_.getRaw(i)); + } + if (customDefinition_ != false) { + output.writeBool(5, customDefinition_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(category_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, category_); + } + if (getSectionsList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(sectionsMemoizedSerializedSize); + } + for (int i = 0; i < sections_.size(); i++) { + output.writeEnumNoTag(sections_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uiName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + { + int dataSize = 0; + for (int i = 0; i < deprecatedApiNames_.size(); i++) { + dataSize += computeStringSizeNoTag(deprecatedApiNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getDeprecatedApiNamesList().size(); + } + if (customDefinition_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, customDefinition_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(category_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, category_); + } + { + int dataSize = 0; + for (int i = 0; i < sections_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(sections_.getInt(i)); + } + size += dataSize; + if (!getSectionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + sectionsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.DimensionMetadata)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.DimensionMetadata other = + (com.google.analytics.data.v1alpha.DimensionMetadata) obj; + + if (!getApiName().equals(other.getApiName())) return false; + if (!getUiName().equals(other.getUiName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDeprecatedApiNamesList().equals(other.getDeprecatedApiNamesList())) return false; + if (getCustomDefinition() != other.getCustomDefinition()) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!sections_.equals(other.sections_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + API_NAME_FIELD_NUMBER; + hash = (53 * hash) + getApiName().hashCode(); + hash = (37 * hash) + UI_NAME_FIELD_NUMBER; + hash = (53 * hash) + getUiName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getDeprecatedApiNamesCount() > 0) { + hash = (37 * hash) + DEPRECATED_API_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedApiNamesList().hashCode(); + } + hash = (37 * hash) + CUSTOM_DEFINITION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustomDefinition()); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getCategory().hashCode(); + if (getSectionsCount() > 0) { + hash = (37 * hash) + SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + sections_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.DimensionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Explains a dimension.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionMetadata) + com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionMetadata.class, + com.google.analytics.data.v1alpha.DimensionMetadata.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.DimensionMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiName_ = ""; + uiName_ = ""; + description_ = ""; + deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customDefinition_ = false; + category_ = ""; + sections_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionMetadata getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionMetadata build() { + com.google.analytics.data.v1alpha.DimensionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionMetadata buildPartial() { + com.google.analytics.data.v1alpha.DimensionMetadata result = + new com.google.analytics.data.v1alpha.DimensionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.data.v1alpha.DimensionMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiName_ = apiName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uiName_ = uiName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + deprecatedApiNames_.makeImmutable(); + result.deprecatedApiNames_ = deprecatedApiNames_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customDefinition_ = customDefinition_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + sections_.makeImmutable(); + result.sections_ = sections_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.DimensionMetadata) { + return mergeFrom((com.google.analytics.data.v1alpha.DimensionMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionMetadata other) { + if (other == com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance()) + return this; + if (!other.getApiName().isEmpty()) { + apiName_ = other.apiName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUiName().isEmpty()) { + uiName_ = other.uiName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.deprecatedApiNames_.isEmpty()) { + if (deprecatedApiNames_.isEmpty()) { + deprecatedApiNames_ = other.deprecatedApiNames_; + bitField0_ |= 0x00000008; + } else { + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.addAll(other.deprecatedApiNames_); + } + onChanged(); + } + if (other.getCustomDefinition() != false) { + setCustomDefinition(other.getCustomDefinition()); + } + if (!other.getCategory().isEmpty()) { + category_ = other.category_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.sections_.isEmpty()) { + if (sections_.isEmpty()) { + sections_ = other.sections_; + sections_.makeImmutable(); + bitField0_ |= 0x00000040; + } else { + ensureSectionsIsMutable(); + sections_.addAll(other.sections_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uiName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.add(s); + break; + } // case 34 + case 40: + { + customDefinition_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + category_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + int tmpRaw = input.readEnum(); + ensureSectionsIsMutable(); + sections_.addInt(tmpRaw); + break; + } // case 56 + case 58: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSectionsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + sections_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object apiName_ = ""; + + /** + * + * + *
+     * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+     * example, `eventName`.
+     * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + public java.lang.String getApiName() { + java.lang.Object ref = apiName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+     * example, `eventName`.
+     * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + public com.google.protobuf.ByteString getApiNameBytes() { + java.lang.Object ref = apiName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+     * example, `eventName`.
+     * 
+ * + * string api_name = 1; + * + * @param value The apiName to set. + * @return This builder for chaining. + */ + public Builder setApiName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+     * example, `eventName`.
+     * 
+ * + * string api_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearApiName() { + apiName_ = getDefaultInstance().getApiName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+     * example, `eventName`.
+     * 
+ * + * string api_name = 1; + * + * @param value The bytes for apiName to set. + * @return This builder for chaining. + */ + public Builder setApiNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uiName_ = ""; + + /** + * + * + *
+     * This dimension's name within the Google Analytics user interface. For
+     * example, `Event name`.
+     * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + public java.lang.String getUiName() { + java.lang.Object ref = uiName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uiName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This dimension's name within the Google Analytics user interface. For
+     * example, `Event name`.
+     * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + public com.google.protobuf.ByteString getUiNameBytes() { + java.lang.Object ref = uiName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This dimension's name within the Google Analytics user interface. For
+     * example, `Event name`.
+     * 
+ * + * string ui_name = 2; + * + * @param value The uiName to set. + * @return This builder for chaining. + */ + public Builder setUiName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uiName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * This dimension's name within the Google Analytics user interface. For
+     * example, `Event name`.
+     * 
+ * + * string ui_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearUiName() { + uiName_ = getDefaultInstance().getUiName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * This dimension's name within the Google Analytics user interface. For
+     * example, `Event name`.
+     * 
+ * + * string ui_name = 2; + * + * @param value The bytes for uiName to set. + * @return This builder for chaining. + */ + public Builder setUiNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uiName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Description of how this dimension is used and calculated.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Description of how this dimension is used and calculated.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Description of how this dimension is used and calculated.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Description of how this dimension is used and calculated.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Description of how this dimension is used and calculated.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList deprecatedApiNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDeprecatedApiNamesIsMutable() { + if (!deprecatedApiNames_.isModifiable()) { + deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(deprecatedApiNames_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return A list containing the deprecatedApiNames. + */ + public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() { + deprecatedApiNames_.makeImmutable(); + return deprecatedApiNames_; + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return The count of deprecatedApiNames. + */ + public int getDeprecatedApiNamesCount() { + return deprecatedApiNames_.size(); + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the element to return. + * @return The deprecatedApiNames at the given index. + */ + public java.lang.String getDeprecatedApiNames(int index) { + return deprecatedApiNames_.get(index); + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the deprecatedApiNames at the given index. + */ + public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) { + return deprecatedApiNames_.getByteString(index); + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index to set the value at. + * @param value The deprecatedApiNames to set. + * @return This builder for chaining. + */ + public Builder setDeprecatedApiNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param value The deprecatedApiNames to add. + * @return This builder for chaining. + */ + public Builder addDeprecatedApiNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param values The deprecatedApiNames to add. + * @return This builder for chaining. + */ + public Builder addAllDeprecatedApiNames(java.lang.Iterable values) { + ensureDeprecatedApiNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deprecatedApiNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return This builder for chaining. + */ + public Builder clearDeprecatedApiNames() { + deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Still usable but deprecated names for this dimension. If populated, this
+     * dimension is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the dimension will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param value The bytes of the deprecatedApiNames to add. + * @return This builder for chaining. + */ + public Builder addDeprecatedApiNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean customDefinition_; + + /** + * + * + *
+     * True if the dimension is custom to this property. This includes user,
+     * event, & item scoped custom dimensions; to learn more about custom
+     * dimensions, see https://support.google.com/analytics/answer/14240153. This
+     * also include custom channel groups; to learn more about custom channel
+     * groups, see https://support.google.com/analytics/answer/13051316.
+     * 
+ * + * bool custom_definition = 5; + * + * @return The customDefinition. + */ + @java.lang.Override + public boolean getCustomDefinition() { + return customDefinition_; + } + + /** + * + * + *
+     * True if the dimension is custom to this property. This includes user,
+     * event, & item scoped custom dimensions; to learn more about custom
+     * dimensions, see https://support.google.com/analytics/answer/14240153. This
+     * also include custom channel groups; to learn more about custom channel
+     * groups, see https://support.google.com/analytics/answer/13051316.
+     * 
+ * + * bool custom_definition = 5; + * + * @param value The customDefinition to set. + * @return This builder for chaining. + */ + public Builder setCustomDefinition(boolean value) { + + customDefinition_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * True if the dimension is custom to this property. This includes user,
+     * event, & item scoped custom dimensions; to learn more about custom
+     * dimensions, see https://support.google.com/analytics/answer/14240153. This
+     * also include custom channel groups; to learn more about custom channel
+     * groups, see https://support.google.com/analytics/answer/13051316.
+     * 
+ * + * bool custom_definition = 5; + * + * @return This builder for chaining. + */ + public Builder clearCustomDefinition() { + bitField0_ = (bitField0_ & ~0x00000010); + customDefinition_ = false; + onChanged(); + return this; + } + + private java.lang.Object category_ = ""; + + /** + * + * + *
+     * The display name of the category that this dimension belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 6; + * + * @return The category. + */ + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The display name of the category that this dimension belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 6; + * + * @return The bytes for category. + */ + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The display name of the category that this dimension belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 6; + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + category_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The display name of the category that this dimension belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 6; + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + category_ = getDefaultInstance().getCategory(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * The display name of the category that this dimension belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 6; + * + * @param value The bytes for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList sections_ = emptyIntList(); + + private void ensureSectionsIsMutable() { + if (!sections_.isModifiable()) { + sections_ = makeMutableCopy(sections_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return A list containing the sections. + */ + public java.util.List getSectionsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.analytics.data.v1alpha.Section>(sections_, sections_converter_); + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return The count of sections. + */ + public int getSectionsCount() { + return sections_.size(); + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param index The index of the element to return. + * @return The sections at the given index. + */ + public com.google.analytics.data.v1alpha.Section getSections(int index) { + return sections_converter_.convert(sections_.getInt(index)); + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param index The index to set the value at. + * @param value The sections to set. + * @return This builder for chaining. + */ + public Builder setSections(int index, com.google.analytics.data.v1alpha.Section value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionsIsMutable(); + sections_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param value The sections to add. + * @return This builder for chaining. + */ + public Builder addSections(com.google.analytics.data.v1alpha.Section value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionsIsMutable(); + sections_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param values The sections to add. + * @return This builder for chaining. + */ + public Builder addAllSections( + java.lang.Iterable values) { + ensureSectionsIsMutable(); + for (com.google.analytics.data.v1alpha.Section value : values) { + sections_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return This builder for chaining. + */ + public Builder clearSections() { + sections_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return A list containing the enum numeric values on the wire for sections. + */ + public java.util.List getSectionsValueList() { + sections_.makeImmutable(); + return sections_; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sections at the given index. + */ + public int getSectionsValue(int index) { + return sections_.getInt(index); + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for sections to set. + * @return This builder for chaining. + */ + public Builder setSectionsValue(int index, int value) { + ensureSectionsIsMutable(); + sections_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param value The enum numeric value on the wire for sections to add. + * @return This builder for chaining. + */ + public Builder addSectionsValue(int value) { + ensureSectionsIsMutable(); + sections_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this dimension applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param values The enum numeric values on the wire for sections to add. + * @return This builder for chaining. + */ + public Builder addAllSectionsValue(java.lang.Iterable values) { + ensureSectionsIsMutable(); + for (int value : values) { + sections_.addInt(value); + } + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.DimensionMetadata) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionMetadata) + private static final com.google.analytics.data.v1alpha.DimensionMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionMetadata(); + } + + public static com.google.analytics.data.v1alpha.DimensionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DimensionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java new file mode 100644 index 000000000000..8dd66dd4935f --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java @@ -0,0 +1,288 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface DimensionMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.DimensionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+   * example, `eventName`.
+   * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + java.lang.String getApiName(); + + /** + * + * + *
+   * This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For
+   * example, `eventName`.
+   * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + com.google.protobuf.ByteString getApiNameBytes(); + + /** + * + * + *
+   * This dimension's name within the Google Analytics user interface. For
+   * example, `Event name`.
+   * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + java.lang.String getUiName(); + + /** + * + * + *
+   * This dimension's name within the Google Analytics user interface. For
+   * example, `Event name`.
+   * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + com.google.protobuf.ByteString getUiNameBytes(); + + /** + * + * + *
+   * Description of how this dimension is used and calculated.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Description of how this dimension is used and calculated.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Still usable but deprecated names for this dimension. If populated, this
+   * dimension is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the dimension will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return A list containing the deprecatedApiNames. + */ + java.util.List getDeprecatedApiNamesList(); + + /** + * + * + *
+   * Still usable but deprecated names for this dimension. If populated, this
+   * dimension is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the dimension will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return The count of deprecatedApiNames. + */ + int getDeprecatedApiNamesCount(); + + /** + * + * + *
+   * Still usable but deprecated names for this dimension. If populated, this
+   * dimension is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the dimension will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the element to return. + * @return The deprecatedApiNames at the given index. + */ + java.lang.String getDeprecatedApiNames(int index); + + /** + * + * + *
+   * Still usable but deprecated names for this dimension. If populated, this
+   * dimension is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the dimension will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the deprecatedApiNames at the given index. + */ + com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index); + + /** + * + * + *
+   * True if the dimension is custom to this property. This includes user,
+   * event, & item scoped custom dimensions; to learn more about custom
+   * dimensions, see https://support.google.com/analytics/answer/14240153. This
+   * also include custom channel groups; to learn more about custom channel
+   * groups, see https://support.google.com/analytics/answer/13051316.
+   * 
+ * + * bool custom_definition = 5; + * + * @return The customDefinition. + */ + boolean getCustomDefinition(); + + /** + * + * + *
+   * The display name of the category that this dimension belongs to. Similar
+   * dimensions and metrics are categorized together.
+   * 
+ * + * string category = 6; + * + * @return The category. + */ + java.lang.String getCategory(); + + /** + * + * + *
+   * The display name of the category that this dimension belongs to. Similar
+   * dimensions and metrics are categorized together.
+   * 
+ * + * string category = 6; + * + * @return The bytes for category. + */ + com.google.protobuf.ByteString getCategoryBytes(); + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return A list containing the sections. + */ + java.util.List getSectionsList(); + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return The count of sections. + */ + int getSectionsCount(); + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param index The index of the element to return. + * @return The sections at the given index. + */ + com.google.analytics.data.v1alpha.Section getSections(int index); + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @return A list containing the enum numeric values on the wire for sections. + */ + java.util.List getSectionsValueList(); + + /** + * + * + *
+   * Specifies the Google Analytics sections this dimension applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 7; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sections at the given index. + */ + int getSectionsValue(int index); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java index 83cd94bd4ad3..4045816fec69 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java @@ -150,7 +150,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(4); + .get(5); } private static final EventCriteriaScoping[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java index da142b3648bf..99758e9d9b9d 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java @@ -150,7 +150,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(5); + .get(6); } private static final EventExclusionDuration[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java index f7a2db05dd79..e27f4889e30c 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java @@ -84,8 +84,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -106,8 +106,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -128,8 +128,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -149,8 +149,8 @@ public int getSamplingMetadatasCount() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -170,8 +170,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(i * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -572,8 +572,8 @@ private void ensureSamplingMetadatasIsMutable() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -597,8 +597,8 @@ private void ensureSamplingMetadatasIsMutable() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -621,8 +621,8 @@ public int getSamplingMetadatasCount() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -645,8 +645,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(i * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -676,8 +676,8 @@ public Builder setSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -704,8 +704,8 @@ public Builder setSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -734,8 +734,8 @@ public Builder addSamplingMetadatas(com.google.analytics.data.v1alpha.SamplingMe * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -765,8 +765,8 @@ public Builder addSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -793,8 +793,8 @@ public Builder addSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -821,8 +821,8 @@ public Builder addSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -849,8 +849,8 @@ public Builder addAllSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -876,8 +876,8 @@ public Builder clearSamplingMetadatas() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -903,8 +903,8 @@ public Builder removeSamplingMetadatas(int index) { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -924,8 +924,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -949,8 +949,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -974,8 +974,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -996,8 +996,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -1019,8 +1019,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder addSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java index 81b930aac2a9..0fff5488500a 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java @@ -34,8 +34,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -52,8 +52,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -70,8 +70,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -88,8 +88,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -107,8 +107,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in the order that date - * ranges were specified in the request. + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. * * However if the results are not sampled, this field will not be defined. * diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java new file mode 100644 index 000000000000..a5f631693159 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java @@ -0,0 +1,680 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/analytics_data_api.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Request for a property's dimension and metric metadata.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.GetMetadataRequest} + */ +@com.google.protobuf.Generated +public final class GetMetadataRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.GetMetadataRequest) + GetMetadataRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMetadataRequest"); + } + + // Use GetMetadataRequest.newBuilder() to construct. + private GetMetadataRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMetadataRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.GetMetadataRequest.class, + com.google.analytics.data.v1alpha.GetMetadataRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the metadata to retrieve. This name field is
+   * specified in the URL path and not URL parameters. Property is a numeric
+   * Google Analytics property identifier. To learn more, see [where to find
+   * your Property
+   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+   *
+   * Example: properties/1234/metadata
+   *
+   * Set the Property ID to 0 for dimensions and metrics common to all
+   * properties. In this special mode, this method will not return custom
+   * dimensions and metrics.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the metadata to retrieve. This name field is
+   * specified in the URL path and not URL parameters. Property is a numeric
+   * Google Analytics property identifier. To learn more, see [where to find
+   * your Property
+   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+   *
+   * Example: properties/1234/metadata
+   *
+   * Set the Property ID to 0 for dimensions and metrics common to all
+   * properties. In this special mode, this method will not return custom
+   * dimensions and metrics.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.GetMetadataRequest)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.GetMetadataRequest other = + (com.google.analytics.data.v1alpha.GetMetadataRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.GetMetadataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for a property's dimension and metric metadata.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.GetMetadataRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.GetMetadataRequest) + com.google.analytics.data.v1alpha.GetMetadataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.GetMetadataRequest.class, + com.google.analytics.data.v1alpha.GetMetadataRequest.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.GetMetadataRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.GetMetadataRequest getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.GetMetadataRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.GetMetadataRequest build() { + com.google.analytics.data.v1alpha.GetMetadataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.GetMetadataRequest buildPartial() { + com.google.analytics.data.v1alpha.GetMetadataRequest result = + new com.google.analytics.data.v1alpha.GetMetadataRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.data.v1alpha.GetMetadataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.GetMetadataRequest) { + return mergeFrom((com.google.analytics.data.v1alpha.GetMetadataRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.GetMetadataRequest other) { + if (other == com.google.analytics.data.v1alpha.GetMetadataRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the metadata to retrieve. This name field is
+     * specified in the URL path and not URL parameters. Property is a numeric
+     * Google Analytics property identifier. To learn more, see [where to find
+     * your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     *
+     * Example: properties/1234/metadata
+     *
+     * Set the Property ID to 0 for dimensions and metrics common to all
+     * properties. In this special mode, this method will not return custom
+     * dimensions and metrics.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the metadata to retrieve. This name field is
+     * specified in the URL path and not URL parameters. Property is a numeric
+     * Google Analytics property identifier. To learn more, see [where to find
+     * your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     *
+     * Example: properties/1234/metadata
+     *
+     * Set the Property ID to 0 for dimensions and metrics common to all
+     * properties. In this special mode, this method will not return custom
+     * dimensions and metrics.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the metadata to retrieve. This name field is
+     * specified in the URL path and not URL parameters. Property is a numeric
+     * Google Analytics property identifier. To learn more, see [where to find
+     * your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     *
+     * Example: properties/1234/metadata
+     *
+     * Set the Property ID to 0 for dimensions and metrics common to all
+     * properties. In this special mode, this method will not return custom
+     * dimensions and metrics.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the metadata to retrieve. This name field is
+     * specified in the URL path and not URL parameters. Property is a numeric
+     * Google Analytics property identifier. To learn more, see [where to find
+     * your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     *
+     * Example: properties/1234/metadata
+     *
+     * Set the Property ID to 0 for dimensions and metrics common to all
+     * properties. In this special mode, this method will not return custom
+     * dimensions and metrics.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the metadata to retrieve. This name field is
+     * specified in the URL path and not URL parameters. Property is a numeric
+     * Google Analytics property identifier. To learn more, see [where to find
+     * your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     *
+     * Example: properties/1234/metadata
+     *
+     * Set the Property ID to 0 for dimensions and metrics common to all
+     * properties. In this special mode, this method will not return custom
+     * dimensions and metrics.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.GetMetadataRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.GetMetadataRequest) + private static final com.google.analytics.data.v1alpha.GetMetadataRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.GetMetadataRequest(); + } + + public static com.google.analytics.data.v1alpha.GetMetadataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMetadataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.GetMetadataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java new file mode 100644 index 000000000000..647c466f8406 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/analytics_data_api.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface GetMetadataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.GetMetadataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the metadata to retrieve. This name field is
+   * specified in the URL path and not URL parameters. Property is a numeric
+   * Google Analytics property identifier. To learn more, see [where to find
+   * your Property
+   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+   *
+   * Example: properties/1234/metadata
+   *
+   * Set the Property ID to 0 for dimensions and metrics common to all
+   * properties. In this special mode, this method will not return custom
+   * dimensions and metrics.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the metadata to retrieve. This name field is
+   * specified in the URL path and not URL parameters. Property is a numeric
+   * Google Analytics property identifier. To learn more, see [where to find
+   * your Property
+   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+   *
+   * Example: properties/1234/metadata
+   *
+   * Set the Property ID to 0 for dimensions and metrics common to all
+   * properties. In this special mode, this method will not return custom
+   * dimensions and metrics.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java new file mode 100644 index 000000000000..e1b75e76be74 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java @@ -0,0 +1,2680 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/analytics_data_api.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The dimensions, metrics and comparisons currently accepted in reporting
+ * methods.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Metadata} + */ +@com.google.protobuf.Generated +public final class Metadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Metadata"); + } + + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Metadata() { + name_ = ""; + dimensions_ = java.util.Collections.emptyList(); + metrics_ = java.util.Collections.emptyList(); + comparisons_ = java.util.Collections.emptyList(); + conversions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Metadata.class, + com.google.analytics.data.v1alpha.Metadata.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Resource name of this metadata.
+   * 
+ * + * string name = 3; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Resource name of this metadata.
+   * 
+ * + * string name = 3; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dimensions_; + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + @java.lang.Override + public java.util.List getDimensionsList() { + return dimensions_; + } + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + @java.lang.Override + public java.util.List + getDimensionsOrBuilderList() { + return dimensions_; + } + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + @java.lang.Override + public int getDimensionsCount() { + return dimensions_.size(); + } + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index) { + return dimensions_.get(index); + } + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder getDimensionsOrBuilder( + int index) { + return dimensions_.get(index); + } + + public static final int METRICS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List metrics_; + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index) { + return metrics_.get(index); + } + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricMetadataOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int COMPARISONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List comparisons_; + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + @java.lang.Override + public java.util.List getComparisonsList() { + return comparisons_; + } + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + @java.lang.Override + public java.util.List + getComparisonsOrBuilderList() { + return comparisons_; + } + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + @java.lang.Override + public int getComparisonsCount() { + return comparisons_.size(); + } + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ComparisonMetadata getComparisons(int index) { + return comparisons_.get(index); + } + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ComparisonMetadataOrBuilder getComparisonsOrBuilder( + int index) { + return comparisons_.get(index); + } + + public static final int CONVERSIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List conversions_; + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + @java.lang.Override + public java.util.List getConversionsList() { + return conversions_; + } + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + @java.lang.Override + public java.util.List + getConversionsOrBuilderList() { + return conversions_; + } + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + @java.lang.Override + public int getConversionsCount() { + return conversions_.size(); + } + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionMetadata getConversions(int index) { + return conversions_.get(index); + } + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionMetadataOrBuilder getConversionsOrBuilder( + int index) { + return conversions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dimensions_.size(); i++) { + output.writeMessage(1, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(2, metrics_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, name_); + } + for (int i = 0; i < comparisons_.size(); i++) { + output.writeMessage(4, comparisons_.get(i)); + } + for (int i = 0; i < conversions_.size(); i++) { + output.writeMessage(5, conversions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metrics_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_); + } + for (int i = 0; i < comparisons_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, comparisons_.get(i)); + } + for (int i = 0; i < conversions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, conversions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.Metadata)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.Metadata other = + (com.google.analytics.data.v1alpha.Metadata) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDimensionsList().equals(other.getDimensionsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getComparisonsList().equals(other.getComparisonsList())) return false; + if (!getConversionsList().equals(other.getConversionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDimensionsCount() > 0) { + hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionsList().hashCode(); + } + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getComparisonsCount() > 0) { + hash = (37 * hash) + COMPARISONS_FIELD_NUMBER; + hash = (53 * hash) + getComparisonsList().hashCode(); + } + if (getConversionsCount() > 0) { + hash = (37 * hash) + CONVERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getConversionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Metadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Metadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Metadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.Metadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The dimensions, metrics and comparisons currently accepted in reporting
+   * methods.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Metadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Metadata) + com.google.analytics.data.v1alpha.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Metadata.class, + com.google.analytics.data.v1alpha.Metadata.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.Metadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + } else { + dimensions_ = null; + dimensionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (comparisonsBuilder_ == null) { + comparisons_ = java.util.Collections.emptyList(); + } else { + comparisons_ = null; + comparisonsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (conversionsBuilder_ == null) { + conversions_ = java.util.Collections.emptyList(); + } else { + conversions_ = null; + conversionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_Metadata_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Metadata getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.Metadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Metadata build() { + com.google.analytics.data.v1alpha.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Metadata buildPartial() { + com.google.analytics.data.v1alpha.Metadata result = + new com.google.analytics.data.v1alpha.Metadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.analytics.data.v1alpha.Metadata result) { + if (dimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dimensions_ = java.util.Collections.unmodifiableList(dimensions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dimensions_ = dimensions_; + } else { + result.dimensions_ = dimensionsBuilder_.build(); + } + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (comparisonsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + comparisons_ = java.util.Collections.unmodifiableList(comparisons_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.comparisons_ = comparisons_; + } else { + result.comparisons_ = comparisonsBuilder_.build(); + } + if (conversionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + conversions_ = java.util.Collections.unmodifiableList(conversions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.conversions_ = conversions_; + } else { + result.conversions_ = conversionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.data.v1alpha.Metadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.Metadata) { + return mergeFrom((com.google.analytics.data.v1alpha.Metadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.Metadata other) { + if (other == com.google.analytics.data.v1alpha.Metadata.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (dimensionsBuilder_ == null) { + if (!other.dimensions_.isEmpty()) { + if (dimensions_.isEmpty()) { + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDimensionsIsMutable(); + dimensions_.addAll(other.dimensions_); + } + onChanged(); + } + } else { + if (!other.dimensions_.isEmpty()) { + if (dimensionsBuilder_.isEmpty()) { + dimensionsBuilder_.dispose(); + dimensionsBuilder_ = null; + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + dimensionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDimensionsFieldBuilder() + : null; + } else { + dimensionsBuilder_.addAllMessages(other.dimensions_); + } + } + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + metricsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (comparisonsBuilder_ == null) { + if (!other.comparisons_.isEmpty()) { + if (comparisons_.isEmpty()) { + comparisons_ = other.comparisons_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureComparisonsIsMutable(); + comparisons_.addAll(other.comparisons_); + } + onChanged(); + } + } else { + if (!other.comparisons_.isEmpty()) { + if (comparisonsBuilder_.isEmpty()) { + comparisonsBuilder_.dispose(); + comparisonsBuilder_ = null; + comparisons_ = other.comparisons_; + bitField0_ = (bitField0_ & ~0x00000008); + comparisonsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComparisonsFieldBuilder() + : null; + } else { + comparisonsBuilder_.addAllMessages(other.comparisons_); + } + } + } + if (conversionsBuilder_ == null) { + if (!other.conversions_.isEmpty()) { + if (conversions_.isEmpty()) { + conversions_ = other.conversions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureConversionsIsMutable(); + conversions_.addAll(other.conversions_); + } + onChanged(); + } + } else { + if (!other.conversions_.isEmpty()) { + if (conversionsBuilder_.isEmpty()) { + conversionsBuilder_.dispose(); + conversionsBuilder_ = null; + conversions_ = other.conversions_; + bitField0_ = (bitField0_ & ~0x00000010); + conversionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConversionsFieldBuilder() + : null; + } else { + conversionsBuilder_.addAllMessages(other.conversions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.DimensionMetadata m = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionMetadata.parser(), + extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1alpha.MetricMetadata m = + input.readMessage( + com.google.analytics.data.v1alpha.MetricMetadata.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + case 34: + { + com.google.analytics.data.v1alpha.ComparisonMetadata m = + input.readMessage( + com.google.analytics.data.v1alpha.ComparisonMetadata.parser(), + extensionRegistry); + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.add(m); + } else { + comparisonsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.analytics.data.v1alpha.ConversionMetadata m = + input.readMessage( + com.google.analytics.data.v1alpha.ConversionMetadata.parser(), + extensionRegistry); + if (conversionsBuilder_ == null) { + ensureConversionsIsMutable(); + conversions_.add(m); + } else { + conversionsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Resource name of this metadata.
+     * 
+ * + * string name = 3; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Resource name of this metadata.
+     * 
+ * + * string name = 3; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Resource name of this metadata.
+     * 
+ * + * string name = 3; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource name of this metadata.
+     * 
+ * + * string name = 3; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource name of this metadata.
+     * 
+ * + * string name = 3; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List dimensions_ = + java.util.Collections.emptyList(); + + private void ensureDimensionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dimensions_ = + new java.util.ArrayList( + dimensions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DimensionMetadata, + com.google.analytics.data.v1alpha.DimensionMetadata.Builder, + com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder> + dimensionsBuilder_; + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public java.util.List getDimensionsList() { + if (dimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensions_); + } else { + return dimensionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public int getDimensionsCount() { + if (dimensionsBuilder_ == null) { + return dimensions_.size(); + } else { + return dimensionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder setDimensions( + int index, com.google.analytics.data.v1alpha.DimensionMetadata value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.set(index, value); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder setDimensions( + int index, com.google.analytics.data.v1alpha.DimensionMetadata.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder addDimensions(com.google.analytics.data.v1alpha.DimensionMetadata value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder addDimensions( + int index, com.google.analytics.data.v1alpha.DimensionMetadata value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(index, value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder addDimensions( + com.google.analytics.data.v1alpha.DimensionMetadata.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder addDimensions( + int index, com.google.analytics.data.v1alpha.DimensionMetadata.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder addAllDimensions( + java.lang.Iterable values) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); + onChanged(); + } else { + dimensionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder clearDimensions() { + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dimensionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public Builder removeDimensions(int index) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.remove(index); + onChanged(); + } else { + dimensionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public com.google.analytics.data.v1alpha.DimensionMetadata.Builder getDimensionsBuilder( + int index) { + return internalGetDimensionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder getDimensionsOrBuilder( + int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public java.util.List + getDimensionsOrBuilderList() { + if (dimensionsBuilder_ != null) { + return dimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensions_); + } + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public com.google.analytics.data.v1alpha.DimensionMetadata.Builder addDimensionsBuilder() { + return internalGetDimensionsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance()); + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public com.google.analytics.data.v1alpha.DimensionMetadata.Builder addDimensionsBuilder( + int index) { + return internalGetDimensionsFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance()); + } + + /** + * + * + *
+     * The dimension descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + public java.util.List + getDimensionsBuilderList() { + return internalGetDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DimensionMetadata, + com.google.analytics.data.v1alpha.DimensionMetadata.Builder, + com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder> + internalGetDimensionsFieldBuilder() { + if (dimensionsBuilder_ == null) { + dimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DimensionMetadata, + com.google.analytics.data.v1alpha.DimensionMetadata.Builder, + com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder>( + dimensions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + dimensions_ = null; + } + return dimensionsBuilder_; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + metrics_ = + new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.MetricMetadata, + com.google.analytics.data.v1alpha.MetricMetadata.Builder, + com.google.analytics.data.v1alpha.MetricMetadataOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder setMetrics(int index, com.google.analytics.data.v1alpha.MetricMetadata value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder setMetrics( + int index, com.google.analytics.data.v1alpha.MetricMetadata.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder addMetrics(com.google.analytics.data.v1alpha.MetricMetadata value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder addMetrics(int index, com.google.analytics.data.v1alpha.MetricMetadata value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder addMetrics( + com.google.analytics.data.v1alpha.MetricMetadata.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder addMetrics( + int index, com.google.analytics.data.v1alpha.MetricMetadata.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public com.google.analytics.data.v1alpha.MetricMetadata.Builder getMetricsBuilder(int index) { + return internalGetMetricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public com.google.analytics.data.v1alpha.MetricMetadataOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public com.google.analytics.data.v1alpha.MetricMetadata.Builder addMetricsBuilder() { + return internalGetMetricsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance()); + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public com.google.analytics.data.v1alpha.MetricMetadata.Builder addMetricsBuilder(int index) { + return internalGetMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance()); + } + + /** + * + * + *
+     * The metric descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + public java.util.List + getMetricsBuilderList() { + return internalGetMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.MetricMetadata, + com.google.analytics.data.v1alpha.MetricMetadata.Builder, + com.google.analytics.data.v1alpha.MetricMetadataOrBuilder> + internalGetMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.MetricMetadata, + com.google.analytics.data.v1alpha.MetricMetadata.Builder, + com.google.analytics.data.v1alpha.MetricMetadataOrBuilder>( + metrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List comparisons_ = + java.util.Collections.emptyList(); + + private void ensureComparisonsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + comparisons_ = + new java.util.ArrayList( + comparisons_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.ComparisonMetadata, + com.google.analytics.data.v1alpha.ComparisonMetadata.Builder, + com.google.analytics.data.v1alpha.ComparisonMetadataOrBuilder> + comparisonsBuilder_; + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public java.util.List + getComparisonsList() { + if (comparisonsBuilder_ == null) { + return java.util.Collections.unmodifiableList(comparisons_); + } else { + return comparisonsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public int getComparisonsCount() { + if (comparisonsBuilder_ == null) { + return comparisons_.size(); + } else { + return comparisonsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public com.google.analytics.data.v1alpha.ComparisonMetadata getComparisons(int index) { + if (comparisonsBuilder_ == null) { + return comparisons_.get(index); + } else { + return comparisonsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder setComparisons( + int index, com.google.analytics.data.v1alpha.ComparisonMetadata value) { + if (comparisonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonsIsMutable(); + comparisons_.set(index, value); + onChanged(); + } else { + comparisonsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder setComparisons( + int index, com.google.analytics.data.v1alpha.ComparisonMetadata.Builder builderForValue) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.set(index, builderForValue.build()); + onChanged(); + } else { + comparisonsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder addComparisons(com.google.analytics.data.v1alpha.ComparisonMetadata value) { + if (comparisonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonsIsMutable(); + comparisons_.add(value); + onChanged(); + } else { + comparisonsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder addComparisons( + int index, com.google.analytics.data.v1alpha.ComparisonMetadata value) { + if (comparisonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonsIsMutable(); + comparisons_.add(index, value); + onChanged(); + } else { + comparisonsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder addComparisons( + com.google.analytics.data.v1alpha.ComparisonMetadata.Builder builderForValue) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.add(builderForValue.build()); + onChanged(); + } else { + comparisonsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder addComparisons( + int index, com.google.analytics.data.v1alpha.ComparisonMetadata.Builder builderForValue) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.add(index, builderForValue.build()); + onChanged(); + } else { + comparisonsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder addAllComparisons( + java.lang.Iterable values) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, comparisons_); + onChanged(); + } else { + comparisonsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder clearComparisons() { + if (comparisonsBuilder_ == null) { + comparisons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + comparisonsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public Builder removeComparisons(int index) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.remove(index); + onChanged(); + } else { + comparisonsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public com.google.analytics.data.v1alpha.ComparisonMetadata.Builder getComparisonsBuilder( + int index) { + return internalGetComparisonsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public com.google.analytics.data.v1alpha.ComparisonMetadataOrBuilder getComparisonsOrBuilder( + int index) { + if (comparisonsBuilder_ == null) { + return comparisons_.get(index); + } else { + return comparisonsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public java.util.List + getComparisonsOrBuilderList() { + if (comparisonsBuilder_ != null) { + return comparisonsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(comparisons_); + } + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public com.google.analytics.data.v1alpha.ComparisonMetadata.Builder addComparisonsBuilder() { + return internalGetComparisonsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.ComparisonMetadata.getDefaultInstance()); + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public com.google.analytics.data.v1alpha.ComparisonMetadata.Builder addComparisonsBuilder( + int index) { + return internalGetComparisonsFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.ComparisonMetadata.getDefaultInstance()); + } + + /** + * + * + *
+     * The comparison descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + public java.util.List + getComparisonsBuilderList() { + return internalGetComparisonsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.ComparisonMetadata, + com.google.analytics.data.v1alpha.ComparisonMetadata.Builder, + com.google.analytics.data.v1alpha.ComparisonMetadataOrBuilder> + internalGetComparisonsFieldBuilder() { + if (comparisonsBuilder_ == null) { + comparisonsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.ComparisonMetadata, + com.google.analytics.data.v1alpha.ComparisonMetadata.Builder, + com.google.analytics.data.v1alpha.ComparisonMetadataOrBuilder>( + comparisons_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + comparisons_ = null; + } + return comparisonsBuilder_; + } + + private java.util.List conversions_ = + java.util.Collections.emptyList(); + + private void ensureConversionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + conversions_ = + new java.util.ArrayList( + conversions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.ConversionMetadata, + com.google.analytics.data.v1alpha.ConversionMetadata.Builder, + com.google.analytics.data.v1alpha.ConversionMetadataOrBuilder> + conversionsBuilder_; + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public java.util.List + getConversionsList() { + if (conversionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversions_); + } else { + return conversionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public int getConversionsCount() { + if (conversionsBuilder_ == null) { + return conversions_.size(); + } else { + return conversionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public com.google.analytics.data.v1alpha.ConversionMetadata getConversions(int index) { + if (conversionsBuilder_ == null) { + return conversions_.get(index); + } else { + return conversionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder setConversions( + int index, com.google.analytics.data.v1alpha.ConversionMetadata value) { + if (conversionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionsIsMutable(); + conversions_.set(index, value); + onChanged(); + } else { + conversionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder setConversions( + int index, com.google.analytics.data.v1alpha.ConversionMetadata.Builder builderForValue) { + if (conversionsBuilder_ == null) { + ensureConversionsIsMutable(); + conversions_.set(index, builderForValue.build()); + onChanged(); + } else { + conversionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder addConversions(com.google.analytics.data.v1alpha.ConversionMetadata value) { + if (conversionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionsIsMutable(); + conversions_.add(value); + onChanged(); + } else { + conversionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder addConversions( + int index, com.google.analytics.data.v1alpha.ConversionMetadata value) { + if (conversionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionsIsMutable(); + conversions_.add(index, value); + onChanged(); + } else { + conversionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder addConversions( + com.google.analytics.data.v1alpha.ConversionMetadata.Builder builderForValue) { + if (conversionsBuilder_ == null) { + ensureConversionsIsMutable(); + conversions_.add(builderForValue.build()); + onChanged(); + } else { + conversionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder addConversions( + int index, com.google.analytics.data.v1alpha.ConversionMetadata.Builder builderForValue) { + if (conversionsBuilder_ == null) { + ensureConversionsIsMutable(); + conversions_.add(index, builderForValue.build()); + onChanged(); + } else { + conversionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder addAllConversions( + java.lang.Iterable values) { + if (conversionsBuilder_ == null) { + ensureConversionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversions_); + onChanged(); + } else { + conversionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder clearConversions() { + if (conversionsBuilder_ == null) { + conversions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conversionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public Builder removeConversions(int index) { + if (conversionsBuilder_ == null) { + ensureConversionsIsMutable(); + conversions_.remove(index); + onChanged(); + } else { + conversionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public com.google.analytics.data.v1alpha.ConversionMetadata.Builder getConversionsBuilder( + int index) { + return internalGetConversionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public com.google.analytics.data.v1alpha.ConversionMetadataOrBuilder getConversionsOrBuilder( + int index) { + if (conversionsBuilder_ == null) { + return conversions_.get(index); + } else { + return conversionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public java.util.List + getConversionsOrBuilderList() { + if (conversionsBuilder_ != null) { + return conversionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversions_); + } + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public com.google.analytics.data.v1alpha.ConversionMetadata.Builder addConversionsBuilder() { + return internalGetConversionsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.ConversionMetadata.getDefaultInstance()); + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public com.google.analytics.data.v1alpha.ConversionMetadata.Builder addConversionsBuilder( + int index) { + return internalGetConversionsFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.ConversionMetadata.getDefaultInstance()); + } + + /** + * + * + *
+     * The conversion descriptions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + public java.util.List + getConversionsBuilderList() { + return internalGetConversionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.ConversionMetadata, + com.google.analytics.data.v1alpha.ConversionMetadata.Builder, + com.google.analytics.data.v1alpha.ConversionMetadataOrBuilder> + internalGetConversionsFieldBuilder() { + if (conversionsBuilder_ == null) { + conversionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.ConversionMetadata, + com.google.analytics.data.v1alpha.ConversionMetadata.Builder, + com.google.analytics.data.v1alpha.ConversionMetadataOrBuilder>( + conversions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + conversions_ = null; + } + return conversionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.Metadata) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Metadata) + private static final com.google.analytics.data.v1alpha.Metadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Metadata(); + } + + public static com.google.analytics.data.v1alpha.Metadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Metadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java new file mode 100644 index 000000000000..869cbd9c5102 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MetadataName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/metadata"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected MetadataName() { + property = null; + } + + private MetadataName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MetadataName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static MetadataName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, "MetadataName.parse: formattedString not in valid format"); + return of(matchMap.get("property")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MetadataName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY.instantiate("property", property); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MetadataName that = ((MetadataName) o); + return Objects.equals(this.property, that.property); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + return h; + } + + /** Builder for properties/{property}/metadata. */ + public static class Builder { + private String property; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder(MetadataName metadataName) { + this.property = metadataName.property; + } + + public MetadataName build() { + return new MetadataName(this); + } + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java new file mode 100644 index 000000000000..d5a4c68e2ad8 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java @@ -0,0 +1,278 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/analytics_data_api.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface MetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of this metadata.
+   * 
+ * + * string name = 3; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Resource name of this metadata.
+   * 
+ * + * string name = 3; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + java.util.List getDimensionsList(); + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index); + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + int getDimensionsCount(); + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + java.util.List + getDimensionsOrBuilderList(); + + /** + * + * + *
+   * The dimension descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; + */ + com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder getDimensionsOrBuilder(int index); + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + java.util.List getMetricsList(); + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index); + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + int getMetricsCount(); + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + java.util.List + getMetricsOrBuilderList(); + + /** + * + * + *
+   * The metric descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; + */ + com.google.analytics.data.v1alpha.MetricMetadataOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + java.util.List getComparisonsList(); + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + com.google.analytics.data.v1alpha.ComparisonMetadata getComparisons(int index); + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + int getComparisonsCount(); + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + java.util.List + getComparisonsOrBuilderList(); + + /** + * + * + *
+   * The comparison descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ComparisonMetadata comparisons = 4; + */ + com.google.analytics.data.v1alpha.ComparisonMetadataOrBuilder getComparisonsOrBuilder(int index); + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + java.util.List getConversionsList(); + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + com.google.analytics.data.v1alpha.ConversionMetadata getConversions(int index); + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + int getConversionsCount(); + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + java.util.List + getConversionsOrBuilderList(); + + /** + * + * + *
+   * The conversion descriptions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.ConversionMetadata conversions = 5; + */ + com.google.analytics.data.v1alpha.ConversionMetadataOrBuilder getConversionsOrBuilder(int index); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java index 3004b5bdf898..75f5121fe0b3 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java @@ -215,7 +215,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(6); + .get(7); } private static final MetricAggregation[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java new file mode 100644 index 000000000000..86dd7926bbb3 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java @@ -0,0 +1,3093 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Explains a metric.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.MetricMetadata} + */ +@com.google.protobuf.Generated +public final class MetricMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.MetricMetadata) + MetricMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MetricMetadata"); + } + + // Use MetricMetadata.newBuilder() to construct. + private MetricMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetricMetadata() { + apiName_ = ""; + uiName_ = ""; + description_ = ""; + deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + type_ = 0; + expression_ = ""; + blockedReasons_ = emptyIntList(); + category_ = ""; + sections_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricMetadata.class, + com.google.analytics.data.v1alpha.MetricMetadata.Builder.class); + } + + /** + * + * + *
+   * Justifications for why this metric is blocked.
+   * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.MetricMetadata.BlockedReason} + */ + public enum BlockedReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Will never be specified in API response.
+     * 
+ * + * BLOCKED_REASON_UNSPECIFIED = 0; + */ + BLOCKED_REASON_UNSPECIFIED(0), + /** + * + * + *
+     * If present, your access is blocked to revenue related metrics for this
+     * property, and this metric is revenue related.
+     * 
+ * + * NO_REVENUE_METRICS = 1; + */ + NO_REVENUE_METRICS(1), + /** + * + * + *
+     * If present, your access is blocked to cost related metrics for this
+     * property, and this metric is cost related.
+     * 
+ * + * NO_COST_METRICS = 2; + */ + NO_COST_METRICS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BlockedReason"); + } + + /** + * + * + *
+     * Will never be specified in API response.
+     * 
+ * + * BLOCKED_REASON_UNSPECIFIED = 0; + */ + public static final int BLOCKED_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * If present, your access is blocked to revenue related metrics for this
+     * property, and this metric is revenue related.
+     * 
+ * + * NO_REVENUE_METRICS = 1; + */ + public static final int NO_REVENUE_METRICS_VALUE = 1; + + /** + * + * + *
+     * If present, your access is blocked to cost related metrics for this
+     * property, and this metric is cost related.
+     * 
+ * + * NO_COST_METRICS = 2; + */ + public static final int NO_COST_METRICS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BlockedReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BlockedReason forNumber(int value) { + switch (value) { + case 0: + return BLOCKED_REASON_UNSPECIFIED; + case 1: + return NO_REVENUE_METRICS; + case 2: + return NO_COST_METRICS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockedReason findValueByNumber(int number) { + return BlockedReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.data.v1alpha.MetricMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final BlockedReason[] VALUES = values(); + + public static BlockedReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BlockedReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.MetricMetadata.BlockedReason) + } + + public static final int API_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiName_ = ""; + + /** + * + * + *
+   * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+   * `eventCount`.
+   * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + @java.lang.Override + public java.lang.String getApiName() { + java.lang.Object ref = apiName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiName_ = s; + return s; + } + } + + /** + * + * + *
+   * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+   * `eventCount`.
+   * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiNameBytes() { + java.lang.Object ref = apiName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UI_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uiName_ = ""; + + /** + * + * + *
+   * This metric's name within the Google Analytics user interface. For example,
+   * `Event count`.
+   * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + @java.lang.Override + public java.lang.String getUiName() { + java.lang.Object ref = uiName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uiName_ = s; + return s; + } + } + + /** + * + * + *
+   * This metric's name within the Google Analytics user interface. For example,
+   * `Event count`.
+   * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUiNameBytes() { + java.lang.Object ref = uiName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Description of how this metric is used and calculated.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Description of how this metric is used and calculated.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATED_API_NAMES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList deprecatedApiNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Still usable but deprecated names for this metric. If populated, this
+   * metric is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the metric will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return A list containing the deprecatedApiNames. + */ + public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() { + return deprecatedApiNames_; + } + + /** + * + * + *
+   * Still usable but deprecated names for this metric. If populated, this
+   * metric is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the metric will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return The count of deprecatedApiNames. + */ + public int getDeprecatedApiNamesCount() { + return deprecatedApiNames_.size(); + } + + /** + * + * + *
+   * Still usable but deprecated names for this metric. If populated, this
+   * metric is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the metric will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the element to return. + * @return The deprecatedApiNames at the given index. + */ + public java.lang.String getDeprecatedApiNames(int index) { + return deprecatedApiNames_.get(index); + } + + /** + * + * + *
+   * Still usable but deprecated names for this metric. If populated, this
+   * metric is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the metric will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the deprecatedApiNames at the given index. + */ + public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) { + return deprecatedApiNames_.getByteString(index); + } + + public static final int TYPE_FIELD_NUMBER = 5; + private int type_ = 0; + + /** + * + * + *
+   * The type of this metric.
+   * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * The type of this metric.
+   * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricType getType() { + com.google.analytics.data.v1alpha.MetricType result = + com.google.analytics.data.v1alpha.MetricType.forNumber(type_); + return result == null ? com.google.analytics.data.v1alpha.MetricType.UNRECOGNIZED : result; + } + + public static final int EXPRESSION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object expression_ = ""; + + /** + * + * + *
+   * The mathematical expression for this derived metric. Can be used in
+   * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+   * are not expressions, and for non-expressions, this field is empty.
+   * 
+ * + * string expression = 6; + * + * @return The expression. + */ + @java.lang.Override + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expression_ = s; + return s; + } + } + + /** + * + * + *
+   * The mathematical expression for this derived metric. Can be used in
+   * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+   * are not expressions, and for non-expressions, this field is empty.
+   * 
+ * + * string expression = 6; + * + * @return The bytes for expression. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_DEFINITION_FIELD_NUMBER = 7; + private boolean customDefinition_ = false; + + /** + * + * + *
+   * True if the metric is a custom metric for this property.
+   * 
+ * + * bool custom_definition = 7; + * + * @return The customDefinition. + */ + @java.lang.Override + public boolean getCustomDefinition() { + return customDefinition_; + } + + public static final int BLOCKED_REASONS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList blockedReasons_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason> + blockedReasons_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason>() { + public com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason convert( + int from) { + com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason result = + com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason.forNumber(from); + return result == null + ? com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return A list containing the blockedReasons. + */ + @java.lang.Override + public java.util.List + getBlockedReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason>( + blockedReasons_, blockedReasons_converter_); + } + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return The count of blockedReasons. + */ + @java.lang.Override + public int getBlockedReasonsCount() { + return blockedReasons_.size(); + } + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param index The index of the element to return. + * @return The blockedReasons at the given index. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason getBlockedReasons( + int index) { + return blockedReasons_converter_.convert(blockedReasons_.getInt(index)); + } + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return A list containing the enum numeric values on the wire for blockedReasons. + */ + @java.lang.Override + public java.util.List getBlockedReasonsValueList() { + return blockedReasons_; + } + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of blockedReasons at the given index. + */ + @java.lang.Override + public int getBlockedReasonsValue(int index) { + return blockedReasons_.getInt(index); + } + + private int blockedReasonsMemoizedSerializedSize; + + public static final int CATEGORY_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object category_ = ""; + + /** + * + * + *
+   * The display name of the category that this metrics belongs to. Similar
+   * dimensions and metrics are categorized together.
+   * 
+ * + * string category = 9; + * + * @return The category. + */ + @java.lang.Override + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } + } + + /** + * + * + *
+   * The display name of the category that this metrics belongs to. Similar
+   * dimensions and metrics are categorized together.
+   * 
+ * + * string category = 9; + * + * @return The bytes for category. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECTIONS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList sections_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.analytics.data.v1alpha.Section> + sections_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.analytics.data.v1alpha.Section>() { + public com.google.analytics.data.v1alpha.Section convert(int from) { + com.google.analytics.data.v1alpha.Section result = + com.google.analytics.data.v1alpha.Section.forNumber(from); + return result == null + ? com.google.analytics.data.v1alpha.Section.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return A list containing the sections. + */ + @java.lang.Override + public java.util.List getSectionsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.analytics.data.v1alpha.Section>(sections_, sections_converter_); + } + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return The count of sections. + */ + @java.lang.Override + public int getSectionsCount() { + return sections_.size(); + } + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param index The index of the element to return. + * @return The sections at the given index. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Section getSections(int index) { + return sections_converter_.convert(sections_.getInt(index)); + } + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return A list containing the enum numeric values on the wire for sections. + */ + @java.lang.Override + public java.util.List getSectionsValueList() { + return sections_; + } + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sections at the given index. + */ + @java.lang.Override + public int getSectionsValue(int index) { + return sections_.getInt(index); + } + + private int sectionsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uiName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < deprecatedApiNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, deprecatedApiNames_.getRaw(i)); + } + if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expression_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, expression_); + } + if (customDefinition_ != false) { + output.writeBool(7, customDefinition_); + } + if (getBlockedReasonsList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(blockedReasonsMemoizedSerializedSize); + } + for (int i = 0; i < blockedReasons_.size(); i++) { + output.writeEnumNoTag(blockedReasons_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(category_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, category_); + } + if (getSectionsList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(sectionsMemoizedSerializedSize); + } + for (int i = 0; i < sections_.size(); i++) { + output.writeEnumNoTag(sections_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uiName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uiName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + { + int dataSize = 0; + for (int i = 0; i < deprecatedApiNames_.size(); i++) { + dataSize += computeStringSizeNoTag(deprecatedApiNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getDeprecatedApiNamesList().size(); + } + if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expression_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, expression_); + } + if (customDefinition_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, customDefinition_); + } + { + int dataSize = 0; + for (int i = 0; i < blockedReasons_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(blockedReasons_.getInt(i)); + } + size += dataSize; + if (!getBlockedReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + blockedReasonsMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(category_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, category_); + } + { + int dataSize = 0; + for (int i = 0; i < sections_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(sections_.getInt(i)); + } + size += dataSize; + if (!getSectionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + sectionsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.MetricMetadata)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.MetricMetadata other = + (com.google.analytics.data.v1alpha.MetricMetadata) obj; + + if (!getApiName().equals(other.getApiName())) return false; + if (!getUiName().equals(other.getUiName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDeprecatedApiNamesList().equals(other.getDeprecatedApiNamesList())) return false; + if (type_ != other.type_) return false; + if (!getExpression().equals(other.getExpression())) return false; + if (getCustomDefinition() != other.getCustomDefinition()) return false; + if (!blockedReasons_.equals(other.blockedReasons_)) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!sections_.equals(other.sections_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + API_NAME_FIELD_NUMBER; + hash = (53 * hash) + getApiName().hashCode(); + hash = (37 * hash) + UI_NAME_FIELD_NUMBER; + hash = (53 * hash) + getUiName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getDeprecatedApiNamesCount() > 0) { + hash = (37 * hash) + DEPRECATED_API_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedApiNamesList().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); + hash = (37 * hash) + CUSTOM_DEFINITION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustomDefinition()); + if (getBlockedReasonsCount() > 0) { + hash = (37 * hash) + BLOCKED_REASONS_FIELD_NUMBER; + hash = (53 * hash) + blockedReasons_.hashCode(); + } + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getCategory().hashCode(); + if (getSectionsCount() > 0) { + hash = (37 * hash) + SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + sections_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.MetricMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Explains a metric.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.MetricMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricMetadata) + com.google.analytics.data.v1alpha.MetricMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricMetadata.class, + com.google.analytics.data.v1alpha.MetricMetadata.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.MetricMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiName_ = ""; + uiName_ = ""; + description_ = ""; + deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + type_ = 0; + expression_ = ""; + customDefinition_ = false; + blockedReasons_ = emptyIntList(); + category_ = ""; + sections_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricMetadata getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricMetadata build() { + com.google.analytics.data.v1alpha.MetricMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricMetadata buildPartial() { + com.google.analytics.data.v1alpha.MetricMetadata result = + new com.google.analytics.data.v1alpha.MetricMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.data.v1alpha.MetricMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiName_ = apiName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uiName_ = uiName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + deprecatedApiNames_.makeImmutable(); + result.deprecatedApiNames_ = deprecatedApiNames_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.expression_ = expression_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.customDefinition_ = customDefinition_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + blockedReasons_.makeImmutable(); + result.blockedReasons_ = blockedReasons_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + sections_.makeImmutable(); + result.sections_ = sections_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.MetricMetadata) { + return mergeFrom((com.google.analytics.data.v1alpha.MetricMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricMetadata other) { + if (other == com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance()) + return this; + if (!other.getApiName().isEmpty()) { + apiName_ = other.apiName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUiName().isEmpty()) { + uiName_ = other.uiName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.deprecatedApiNames_.isEmpty()) { + if (deprecatedApiNames_.isEmpty()) { + deprecatedApiNames_ = other.deprecatedApiNames_; + bitField0_ |= 0x00000008; + } else { + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.addAll(other.deprecatedApiNames_); + } + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getExpression().isEmpty()) { + expression_ = other.expression_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getCustomDefinition() != false) { + setCustomDefinition(other.getCustomDefinition()); + } + if (!other.blockedReasons_.isEmpty()) { + if (blockedReasons_.isEmpty()) { + blockedReasons_ = other.blockedReasons_; + blockedReasons_.makeImmutable(); + bitField0_ |= 0x00000080; + } else { + ensureBlockedReasonsIsMutable(); + blockedReasons_.addAll(other.blockedReasons_); + } + onChanged(); + } + if (!other.getCategory().isEmpty()) { + category_ = other.category_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.sections_.isEmpty()) { + if (sections_.isEmpty()) { + sections_ = other.sections_; + sections_.makeImmutable(); + bitField0_ |= 0x00000200; + } else { + ensureSectionsIsMutable(); + sections_.addAll(other.sections_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uiName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.add(s); + break; + } // case 34 + case 40: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + expression_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + customDefinition_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + int tmpRaw = input.readEnum(); + ensureBlockedReasonsIsMutable(); + blockedReasons_.addInt(tmpRaw); + break; + } // case 64 + case 66: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBlockedReasonsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + blockedReasons_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 66 + case 74: + { + category_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: + { + int tmpRaw = input.readEnum(); + ensureSectionsIsMutable(); + sections_.addInt(tmpRaw); + break; + } // case 80 + case 82: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSectionsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + sections_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object apiName_ = ""; + + /** + * + * + *
+     * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+     * `eventCount`.
+     * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + public java.lang.String getApiName() { + java.lang.Object ref = apiName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+     * `eventCount`.
+     * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + public com.google.protobuf.ByteString getApiNameBytes() { + java.lang.Object ref = apiName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+     * `eventCount`.
+     * 
+ * + * string api_name = 1; + * + * @param value The apiName to set. + * @return This builder for chaining. + */ + public Builder setApiName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+     * `eventCount`.
+     * 
+ * + * string api_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearApiName() { + apiName_ = getDefaultInstance().getApiName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+     * `eventCount`.
+     * 
+ * + * string api_name = 1; + * + * @param value The bytes for apiName to set. + * @return This builder for chaining. + */ + public Builder setApiNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uiName_ = ""; + + /** + * + * + *
+     * This metric's name within the Google Analytics user interface. For example,
+     * `Event count`.
+     * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + public java.lang.String getUiName() { + java.lang.Object ref = uiName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uiName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This metric's name within the Google Analytics user interface. For example,
+     * `Event count`.
+     * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + public com.google.protobuf.ByteString getUiNameBytes() { + java.lang.Object ref = uiName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uiName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This metric's name within the Google Analytics user interface. For example,
+     * `Event count`.
+     * 
+ * + * string ui_name = 2; + * + * @param value The uiName to set. + * @return This builder for chaining. + */ + public Builder setUiName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uiName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * This metric's name within the Google Analytics user interface. For example,
+     * `Event count`.
+     * 
+ * + * string ui_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearUiName() { + uiName_ = getDefaultInstance().getUiName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * This metric's name within the Google Analytics user interface. For example,
+     * `Event count`.
+     * 
+ * + * string ui_name = 2; + * + * @param value The bytes for uiName to set. + * @return This builder for chaining. + */ + public Builder setUiNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uiName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Description of how this metric is used and calculated.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Description of how this metric is used and calculated.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Description of how this metric is used and calculated.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Description of how this metric is used and calculated.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Description of how this metric is used and calculated.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList deprecatedApiNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDeprecatedApiNamesIsMutable() { + if (!deprecatedApiNames_.isModifiable()) { + deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(deprecatedApiNames_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return A list containing the deprecatedApiNames. + */ + public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() { + deprecatedApiNames_.makeImmutable(); + return deprecatedApiNames_; + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return The count of deprecatedApiNames. + */ + public int getDeprecatedApiNamesCount() { + return deprecatedApiNames_.size(); + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the element to return. + * @return The deprecatedApiNames at the given index. + */ + public java.lang.String getDeprecatedApiNames(int index) { + return deprecatedApiNames_.get(index); + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the deprecatedApiNames at the given index. + */ + public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) { + return deprecatedApiNames_.getByteString(index); + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index to set the value at. + * @param value The deprecatedApiNames to set. + * @return This builder for chaining. + */ + public Builder setDeprecatedApiNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param value The deprecatedApiNames to add. + * @return This builder for chaining. + */ + public Builder addDeprecatedApiNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param values The deprecatedApiNames to add. + * @return This builder for chaining. + */ + public Builder addAllDeprecatedApiNames(java.lang.Iterable values) { + ensureDeprecatedApiNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deprecatedApiNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return This builder for chaining. + */ + public Builder clearDeprecatedApiNames() { + deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Still usable but deprecated names for this metric. If populated, this
+     * metric is available by either `apiName` or one of `deprecatedApiNames`
+     * for a period of time. After the deprecation period, the metric will be
+     * available only by `apiName`.
+     * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param value The bytes of the deprecatedApiNames to add. + * @return This builder for chaining. + */ + public Builder addDeprecatedApiNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * The type of this metric.
+     * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * The type of this metric.
+     * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of this metric.
+     * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricType getType() { + com.google.analytics.data.v1alpha.MetricType result = + com.google.analytics.data.v1alpha.MetricType.forNumber(type_); + return result == null ? com.google.analytics.data.v1alpha.MetricType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * The type of this metric.
+     * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.analytics.data.v1alpha.MetricType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of this metric.
+     * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object expression_ = ""; + + /** + * + * + *
+     * The mathematical expression for this derived metric. Can be used in
+     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+     * are not expressions, and for non-expressions, this field is empty.
+     * 
+ * + * string expression = 6; + * + * @return The expression. + */ + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The mathematical expression for this derived metric. Can be used in
+     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+     * are not expressions, and for non-expressions, this field is empty.
+     * 
+ * + * string expression = 6; + * + * @return The bytes for expression. + */ + public com.google.protobuf.ByteString getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The mathematical expression for this derived metric. Can be used in
+     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+     * are not expressions, and for non-expressions, this field is empty.
+     * 
+ * + * string expression = 6; + * + * @param value The expression to set. + * @return This builder for chaining. + */ + public Builder setExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + expression_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The mathematical expression for this derived metric. Can be used in
+     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+     * are not expressions, and for non-expressions, this field is empty.
+     * 
+ * + * string expression = 6; + * + * @return This builder for chaining. + */ + public Builder clearExpression() { + expression_ = getDefaultInstance().getExpression(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * The mathematical expression for this derived metric. Can be used in
+     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+     * are not expressions, and for non-expressions, this field is empty.
+     * 
+ * + * string expression = 6; + * + * @param value The bytes for expression to set. + * @return This builder for chaining. + */ + public Builder setExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + expression_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean customDefinition_; + + /** + * + * + *
+     * True if the metric is a custom metric for this property.
+     * 
+ * + * bool custom_definition = 7; + * + * @return The customDefinition. + */ + @java.lang.Override + public boolean getCustomDefinition() { + return customDefinition_; + } + + /** + * + * + *
+     * True if the metric is a custom metric for this property.
+     * 
+ * + * bool custom_definition = 7; + * + * @param value The customDefinition to set. + * @return This builder for chaining. + */ + public Builder setCustomDefinition(boolean value) { + + customDefinition_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * True if the metric is a custom metric for this property.
+     * 
+ * + * bool custom_definition = 7; + * + * @return This builder for chaining. + */ + public Builder clearCustomDefinition() { + bitField0_ = (bitField0_ & ~0x00000040); + customDefinition_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList blockedReasons_ = emptyIntList(); + + private void ensureBlockedReasonsIsMutable() { + if (!blockedReasons_.isModifiable()) { + blockedReasons_ = makeMutableCopy(blockedReasons_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return A list containing the blockedReasons. + */ + public java.util.List + getBlockedReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason>( + blockedReasons_, blockedReasons_converter_); + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return The count of blockedReasons. + */ + public int getBlockedReasonsCount() { + return blockedReasons_.size(); + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param index The index of the element to return. + * @return The blockedReasons at the given index. + */ + public com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason getBlockedReasons( + int index) { + return blockedReasons_converter_.convert(blockedReasons_.getInt(index)); + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param index The index to set the value at. + * @param value The blockedReasons to set. + * @return This builder for chaining. + */ + public Builder setBlockedReasons( + int index, com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedReasonsIsMutable(); + blockedReasons_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param value The blockedReasons to add. + * @return This builder for chaining. + */ + public Builder addBlockedReasons( + com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedReasonsIsMutable(); + blockedReasons_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param values The blockedReasons to add. + * @return This builder for chaining. + */ + public Builder addAllBlockedReasons( + java.lang.Iterable + values) { + ensureBlockedReasonsIsMutable(); + for (com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason value : values) { + blockedReasons_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return This builder for chaining. + */ + public Builder clearBlockedReasons() { + blockedReasons_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return A list containing the enum numeric values on the wire for blockedReasons. + */ + public java.util.List getBlockedReasonsValueList() { + blockedReasons_.makeImmutable(); + return blockedReasons_; + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of blockedReasons at the given index. + */ + public int getBlockedReasonsValue(int index) { + return blockedReasons_.getInt(index); + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for blockedReasons to set. + * @return This builder for chaining. + */ + public Builder setBlockedReasonsValue(int index, int value) { + ensureBlockedReasonsIsMutable(); + blockedReasons_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param value The enum numeric value on the wire for blockedReasons to add. + * @return This builder for chaining. + */ + public Builder addBlockedReasonsValue(int value) { + ensureBlockedReasonsIsMutable(); + blockedReasons_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * If reasons are specified, your access is blocked to this metric for this
+     * property. API requests from you to this property for this metric will
+     * succeed; however, the report will contain only zeros for this metric. API
+     * requests with metric filters on blocked metrics will fail. If reasons are
+     * empty, you have access to this metric.
+     *
+     * To learn more, see [Access and data-restriction
+     * management](https://support.google.com/analytics/answer/10851388).
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param values The enum numeric values on the wire for blockedReasons to add. + * @return This builder for chaining. + */ + public Builder addAllBlockedReasonsValue(java.lang.Iterable values) { + ensureBlockedReasonsIsMutable(); + for (int value : values) { + blockedReasons_.addInt(value); + } + onChanged(); + return this; + } + + private java.lang.Object category_ = ""; + + /** + * + * + *
+     * The display name of the category that this metrics belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 9; + * + * @return The category. + */ + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The display name of the category that this metrics belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 9; + * + * @return The bytes for category. + */ + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The display name of the category that this metrics belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 9; + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + category_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * The display name of the category that this metrics belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 9; + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + category_ = getDefaultInstance().getCategory(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * The display name of the category that this metrics belongs to. Similar
+     * dimensions and metrics are categorized together.
+     * 
+ * + * string category = 9; + * + * @param value The bytes for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList sections_ = emptyIntList(); + + private void ensureSectionsIsMutable() { + if (!sections_.isModifiable()) { + sections_ = makeMutableCopy(sections_); + } + bitField0_ |= 0x00000200; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return A list containing the sections. + */ + public java.util.List getSectionsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.analytics.data.v1alpha.Section>(sections_, sections_converter_); + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return The count of sections. + */ + public int getSectionsCount() { + return sections_.size(); + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param index The index of the element to return. + * @return The sections at the given index. + */ + public com.google.analytics.data.v1alpha.Section getSections(int index) { + return sections_converter_.convert(sections_.getInt(index)); + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param index The index to set the value at. + * @param value The sections to set. + * @return This builder for chaining. + */ + public Builder setSections(int index, com.google.analytics.data.v1alpha.Section value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionsIsMutable(); + sections_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param value The sections to add. + * @return This builder for chaining. + */ + public Builder addSections(com.google.analytics.data.v1alpha.Section value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionsIsMutable(); + sections_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param values The sections to add. + * @return This builder for chaining. + */ + public Builder addAllSections( + java.lang.Iterable values) { + ensureSectionsIsMutable(); + for (com.google.analytics.data.v1alpha.Section value : values) { + sections_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return This builder for chaining. + */ + public Builder clearSections() { + sections_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return A list containing the enum numeric values on the wire for sections. + */ + public java.util.List getSectionsValueList() { + sections_.makeImmutable(); + return sections_; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sections at the given index. + */ + public int getSectionsValue(int index) { + return sections_.getInt(index); + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for sections to set. + * @return This builder for chaining. + */ + public Builder setSectionsValue(int index, int value) { + ensureSectionsIsMutable(); + sections_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param value The enum numeric value on the wire for sections to add. + * @return This builder for chaining. + */ + public Builder addSectionsValue(int value) { + ensureSectionsIsMutable(); + sections_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the Google Analytics sections this metric applies to.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param values The enum numeric values on the wire for sections to add. + * @return This builder for chaining. + */ + public Builder addAllSectionsValue(java.lang.Iterable values) { + ensureSectionsIsMutable(); + for (int value : values) { + sections_.addInt(value); + } + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.MetricMetadata) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricMetadata) + private static final com.google.analytics.data.v1alpha.MetricMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricMetadata(); + } + + public static com.google.analytics.data.v1alpha.MetricMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java new file mode 100644 index 000000000000..cbf728d605e3 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java @@ -0,0 +1,448 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface MetricMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.MetricMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+   * `eventCount`.
+   * 
+ * + * string api_name = 1; + * + * @return The apiName. + */ + java.lang.String getApiName(); + + /** + * + * + *
+   * A metric name. Usable in [Metric](#Metric)'s `name`. For example,
+   * `eventCount`.
+   * 
+ * + * string api_name = 1; + * + * @return The bytes for apiName. + */ + com.google.protobuf.ByteString getApiNameBytes(); + + /** + * + * + *
+   * This metric's name within the Google Analytics user interface. For example,
+   * `Event count`.
+   * 
+ * + * string ui_name = 2; + * + * @return The uiName. + */ + java.lang.String getUiName(); + + /** + * + * + *
+   * This metric's name within the Google Analytics user interface. For example,
+   * `Event count`.
+   * 
+ * + * string ui_name = 2; + * + * @return The bytes for uiName. + */ + com.google.protobuf.ByteString getUiNameBytes(); + + /** + * + * + *
+   * Description of how this metric is used and calculated.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Description of how this metric is used and calculated.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Still usable but deprecated names for this metric. If populated, this
+   * metric is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the metric will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return A list containing the deprecatedApiNames. + */ + java.util.List getDeprecatedApiNamesList(); + + /** + * + * + *
+   * Still usable but deprecated names for this metric. If populated, this
+   * metric is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the metric will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @return The count of deprecatedApiNames. + */ + int getDeprecatedApiNamesCount(); + + /** + * + * + *
+   * Still usable but deprecated names for this metric. If populated, this
+   * metric is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the metric will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the element to return. + * @return The deprecatedApiNames at the given index. + */ + java.lang.String getDeprecatedApiNames(int index); + + /** + * + * + *
+   * Still usable but deprecated names for this metric. If populated, this
+   * metric is available by either `apiName` or one of `deprecatedApiNames`
+   * for a period of time. After the deprecation period, the metric will be
+   * available only by `apiName`.
+   * 
+ * + * repeated string deprecated_api_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the deprecatedApiNames at the given index. + */ + com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index); + + /** + * + * + *
+   * The type of this metric.
+   * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * The type of this metric.
+   * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 5; + * + * @return The type. + */ + com.google.analytics.data.v1alpha.MetricType getType(); + + /** + * + * + *
+   * The mathematical expression for this derived metric. Can be used in
+   * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+   * are not expressions, and for non-expressions, this field is empty.
+   * 
+ * + * string expression = 6; + * + * @return The expression. + */ + java.lang.String getExpression(); + + /** + * + * + *
+   * The mathematical expression for this derived metric. Can be used in
+   * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+   * are not expressions, and for non-expressions, this field is empty.
+   * 
+ * + * string expression = 6; + * + * @return The bytes for expression. + */ + com.google.protobuf.ByteString getExpressionBytes(); + + /** + * + * + *
+   * True if the metric is a custom metric for this property.
+   * 
+ * + * bool custom_definition = 7; + * + * @return The customDefinition. + */ + boolean getCustomDefinition(); + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return A list containing the blockedReasons. + */ + java.util.List + getBlockedReasonsList(); + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return The count of blockedReasons. + */ + int getBlockedReasonsCount(); + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param index The index of the element to return. + * @return The blockedReasons at the given index. + */ + com.google.analytics.data.v1alpha.MetricMetadata.BlockedReason getBlockedReasons(int index); + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @return A list containing the enum numeric values on the wire for blockedReasons. + */ + java.util.List getBlockedReasonsValueList(); + + /** + * + * + *
+   * If reasons are specified, your access is blocked to this metric for this
+   * property. API requests from you to this property for this metric will
+   * succeed; however, the report will contain only zeros for this metric. API
+   * requests with metric filters on blocked metrics will fail. If reasons are
+   * empty, you have access to this metric.
+   *
+   * To learn more, see [Access and data-restriction
+   * management](https://support.google.com/analytics/answer/10851388).
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of blockedReasons at the given index. + */ + int getBlockedReasonsValue(int index); + + /** + * + * + *
+   * The display name of the category that this metrics belongs to. Similar
+   * dimensions and metrics are categorized together.
+   * 
+ * + * string category = 9; + * + * @return The category. + */ + java.lang.String getCategory(); + + /** + * + * + *
+   * The display name of the category that this metrics belongs to. Similar
+   * dimensions and metrics are categorized together.
+   * 
+ * + * string category = 9; + * + * @return The bytes for category. + */ + com.google.protobuf.ByteString getCategoryBytes(); + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return A list containing the sections. + */ + java.util.List getSectionsList(); + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return The count of sections. + */ + int getSectionsCount(); + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param index The index of the element to return. + * @return The sections at the given index. + */ + com.google.analytics.data.v1alpha.Section getSections(int index); + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @return A list containing the enum numeric values on the wire for sections. + */ + java.util.List getSectionsValueList(); + + /** + * + * + *
+   * Specifies the Google Analytics sections this metric applies to.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Section sections = 10; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sections at the given index. + */ + int getSectionsValue(int index); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java index 4af2e83f09df..f5ef59320c75 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java @@ -398,7 +398,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(7); + .get(8); } private static final MetricType[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java index 2680ec82e426..4d77edc42e09 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_data_v1alpha_Metric_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_data_v1alpha_Metric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_Comparison_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_Comparison_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -320,6 +324,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_ConversionSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_ConversionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_ComparisonMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_ComparisonMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_ConversionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_ConversionMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -356,7 +380,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Metric\022\014\n" + "\004name\030\001 \001(\t\022\022\n\n" + "expression\030\002 \001(\t\022\021\n" - + "\tinvisible\030\003 \001(\010\"\261\002\n" + + "\tinvisible\030\003 \001(\010\"\235\001\n\n" + + "Comparison\022\021\n" + + "\004name\030\001 \001(\tH\001\210\001\001\022K\n" + + "\020dimension_filter\030\002 \001(\0132/.google." + + "analytics.data.v1alpha.FilterExpressionH\000\022\024\n\n" + + "comparison\030\003 \001(\tH\000B\020\n" + + "\016one_comparisonB\007\n" + + "\005_name\"\261\002\n" + "\020FilterExpression\022H\n" + "\tand_group\030\001" + " \001(\01323.google.analytics.data.v1alpha.FilterExpressionListH\000\022G\n" @@ -455,7 +486,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006WEEKLY\020\002\022\013\n" + "\007MONTHLY\020\003\"*\n" + "\024CohortReportSettings\022\022\n\n" - + "accumulate\030\001 \001(\010\"\232\006\n" + + "accumulate\030\001 \001(\010\"\323\006\n" + "\020ResponseMetaData\022 \n" + "\030data_loss_from_other_row\030\003 \001(\010\022s\n" + "\033schema_restriction_response\030\004 \001(\0132I.google.analytics.data.v1alp" @@ -465,15 +496,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014empty_reason\030\007 \001(\tH\003\210\001\001\022$\n" + "\027subject_to_thresholding\030\010 \001(\010H\004\210\001\001\022K\n" + "\022sampling_metadatas\030\t \003(\0132/.go" - + "ogle.analytics.data.v1alpha.SamplingMetadata\032\277\002\n" + + "ogle.analytics.data.v1alpha.SamplingMetadata\0227\n" + + "\007section\030\n" + + " \001(\0162&.google.analytics.data.v1alpha.Section\032\277\002\n" + "\031SchemaRestrictionResponse\022\205\001\n" - + "\032active_metric_restrictions\030\001 \003(\0132a.google" - + ".analytics.data.v1alpha.ResponseMetaData" - + ".SchemaRestrictionResponse.ActiveMetricRestriction\032\231\001\n" + + "\032active_metric_restrictions\030\001 \003(\0132a.google.analytics.data.v1alpha" + + ".ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction\032\231\001\n" + "\027ActiveMetricRestriction\022\030\n" + "\013metric_name\030\001 \001(\tH\000\210\001\001\022T\n" - + "\027restricted_metric_types\030\002" - + " \003(\01623.google.analytics.data.v1alpha.RestrictedMetricTypeB\016\n" + + "\027restricted_metric_types\030\002 \003(\01623.goo" + + "gle.analytics.data.v1alpha.RestrictedMetricTypeB\016\n" + "\014_metric_nameB\036\n" + "\034_schema_restriction_responseB\020\n" + "\016_currency_codeB\014\n\n" @@ -494,19 +526,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tone_value\"+\n" + "\013MetricValue\022\017\n" + "\005value\030\004 \001(\tH\000B\013\n" - + "\tone_value\"\351\003\n" - + "\r" + + "\tone_value\"\351\003\n\r" + "PropertyQuota\022B\n" - + "\016tokens_per_day\030\001 \001(\0132*" - + ".google.analytics.data.v1alpha.QuotaStatus\022C\n" + + "\016tokens_per_day\030\001" + + " \001(\0132*.google.analytics.data.v1alpha.QuotaStatus\022C\n" + "\017tokens_per_hour\030\002" + " \001(\0132*.google.analytics.data.v1alpha.QuotaStatus\022G\n" - + "\023concurrent_requests\030\003" - + " \001(\0132*.google.analytics.data.v1alpha.QuotaStatus\022V\n" + + "\023concurrent_requests\030\003 \001(\0132*." + + "google.analytics.data.v1alpha.QuotaStatus\022V\n" + "\"server_errors_per_project_per_hour\030\004" + " \001(\0132*.google.analytics.data.v1alpha.QuotaStatus\022]\n" - + ")potentially_thresholded_requests_per_hour\030\005 " - + "\001(\0132*.google.analytics.data.v1alpha.QuotaStatus\022O\n" + + ")potentially_thresholded_requests_per_hour\030\005" + + " \001(\0132*.google.analytics.data.v1alpha.QuotaStatus\022O\n" + "\033tokens_per_project_per_hour\030\006" + " \001(\0132*.google.analytics.data.v1alpha.QuotaStatus\"2\n" + "\013QuotaStatus\022\020\n" @@ -530,226 +561,271 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027is_directly_followed_by\030\002 \001(\010\022G\n" + "\037within_duration_from_prior_step\030\003" + " \001(\0132\031.google.protobuf.DurationH\000\210\001\001\022P\n" - + "\021filter_expression\030\004 \001(\01325." - + "google.analytics.data.v1alpha.FunnelFilterExpressionB\"\n" + + "\021filter_expression\030\004" + + " \001(\01325.google.analytics.data.v1alpha.FunnelFilterExpressionB\"\n" + " _within_duration_from_prior_step\"\234\002\n" + "\017FunnelSubReport\022I\n" - + "\021dimension_headers\030\001" - + " \003(\0132..google.analytics.data.v1alpha.DimensionHeader\022C\n" + + "\021dimension_headers\030\001 \003(\0132..googl" + + "e.analytics.data.v1alpha.DimensionHeader\022C\n" + "\016metric_headers\030\002" + " \003(\0132+.google.analytics.data.v1alpha.MetricHeader\0220\n" + "\004rows\030\003 \003(\0132\".google.analytics.data.v1alpha.Row\022G\n" - + "\010metadata\030\004 \001(\013" - + "25.google.analytics.data.v1alpha.FunnelResponseMetadata\"\252\001\n" + + "\010metadata\030\004" + + " \001(\01325.google.analytics.data.v1alpha.FunnelResponseMetadata\"\252\001\n" + "\013UserSegment\022S\n" - + "\027user_inclusion_criteria\030\001" - + " \001(\01322.google.analytics.data.v1alpha.UserSegmentCriteria\022F\n" - + "\texclusion\030\002" - + " \001(\01323.google.analytics.data.v1alpha.UserSegmentExclusion\"\303\001\n" + + "\027user_inclusion_criteria\030\001 \001(" + + "\01322.google.analytics.data.v1alpha.UserSegmentCriteria\022F\n" + + "\texclusion\030\002 \001(\01323.googl" + + "e.analytics.data.v1alpha.UserSegmentExclusion\"\303\001\n" + "\023UserSegmentCriteria\022V\n" - + "\024and_condition_groups\030\001 \003" - + "(\01328.google.analytics.data.v1alpha.UserSegmentConditionGroup\022T\n" - + "\023and_sequence_groups\030\002" - + " \003(\01327.google.analytics.data.v1alpha.UserSegmentSequenceGroup\"\305\001\n" + + "\024and_condition_groups\030\001" + + " \003(\01328.google.analytics.data.v1alpha.UserSegmentConditionGroup\022T\n" + + "\023and_sequence_groups\030\002 \003(\01327.google.anal" + + "ytics.data.v1alpha.UserSegmentSequenceGroup\"\305\001\n" + "\031UserSegmentConditionGroup\022M\n" - + "\021condition_scoping\030\001 " - + "\001(\01622.google.analytics.data.v1alpha.UserCriteriaScoping\022Y\n" - + "\031segment_filter_expression\030\002" - + " \001(\01326.google.analytics.data.v1alpha.SegmentFilterExpression\"\364\001\n" + + "\021condition_scoping\030\001" + + " \001(\01622.google.analytics.data.v1alpha.UserCriteriaScoping\022Y\n" + + "\031segment_filter_expression\030\002 \001(\01326.google.ana" + + "lytics.data.v1alpha.SegmentFilterExpression\"\364\001\n" + "\030UserSegmentSequenceGroup\022L\n" - + "\020sequence_scoping\030\001 \001(" - + "\01622.google.analytics.data.v1alpha.UserCriteriaScoping\022<\n" + + "\020sequence_scoping\030\001" + + " \001(\01622.google.analytics.data.v1alpha.UserCriteriaScoping\022<\n" + "\031sequence_maximum_duration\030\002 \001(\0132\031.google.protobuf.Duration\022L\n" - + "\023user_sequence_steps\030\003" - + " \003(\0132/.google.analytics.data.v1alpha.UserSequenceStep\"\330\001\n" + + "\023user_sequence_steps\030\003 \003(" + + "\0132/.google.analytics.data.v1alpha.UserSequenceStep\"\330\001\n" + "\020UserSequenceStep\022\037\n" + "\027is_directly_followed_by\030\001 \001(\010\022H\n" - + "\014step_scoping\030\002 \001(\01622.google.a" - + "nalytics.data.v1alpha.UserCriteriaScoping\022Y\n" - + "\031segment_filter_expression\030\003 \001(\01326.g" - + "oogle.analytics.data.v1alpha.SegmentFilterExpression\"\302\001\n" + + "\014step_scoping\030\002" + + " \001(\01622.google.analytics.data.v1alpha.UserCriteriaScoping\022Y\n" + + "\031segment_filter_expression\030\003" + + " \001(\01326.google.analytics.data.v1alpha.SegmentFilterExpression\"\302\001\n" + "\024UserSegmentExclusion\022U\n" - + "\027user_exclusion_duration\030\001 \001(\01624.google." - + "analytics.data.v1alpha.UserExclusionDuration\022S\n" - + "\027user_exclusion_criteria\030\002 \001(\01322." - + "google.analytics.data.v1alpha.UserSegmentCriteria\"\266\001\n" + + "\027user_exclusion_duration\030\001" + + " \001(\01624.google.analytics.data.v1alpha.UserExclusionDuration\022S\n" + + "\027user_exclusion_criteria\030\002" + + " \001(\01322.google.analytics.data.v1alpha.UserSegmentCriteria\"\266\001\n" + "\016SessionSegment\022Y\n" - + "\032session_inclusion_criteria\030\001 \001(\01325.google.analyt" - + "ics.data.v1alpha.SessionSegmentCriteria\022I\n" - + "\texclusion\030\002" - + " \001(\01326.google.analytics.data.v1alpha.SessionSegmentExclusion\"s\n" + + "\032session_inclusion_criteria\030\001 \001(" + + "\01325.google.analytics.data.v1alpha.SessionSegmentCriteria\022I\n" + + "\texclusion\030\002 \001(\01326.go" + + "ogle.analytics.data.v1alpha.SessionSegmentExclusion\"s\n" + "\026SessionSegmentCriteria\022Y\n" - + "\024and_condition_groups\030\001" - + " \003(\0132;.google.analytics.data.v1alpha.SessionSegmentConditionGroup\"\313\001\n" + + "\024and_condition_groups\030\001 \003(\0132;.google.ana" + + "lytics.data.v1alpha.SessionSegmentConditionGroup\"\313\001\n" + "\034SessionSegmentConditionGroup\022P\n" - + "\021condition_scoping\030\001" - + " \001(\01625.google.analytics.data.v1alpha.SessionCriteriaScoping\022Y\n" - + "\031segment_filter_expression\030\002 \001(\01326.google.analytics" - + ".data.v1alpha.SegmentFilterExpression\"\321\001\n" + + "\021condition_scoping\030\001 \001(\01625.google.an" + + "alytics.data.v1alpha.SessionCriteriaScoping\022Y\n" + + "\031segment_filter_expression\030\002 \001(\01326" + + ".google.analytics.data.v1alpha.SegmentFilterExpression\"\321\001\n" + "\027SessionSegmentExclusion\022[\n" - + "\032session_exclusion_duration\030\001 \001(\01627.google.analytics" - + ".data.v1alpha.SessionExclusionDuration\022Y\n" - + "\032session_exclusion_criteria\030\002 \001(\01325.goo" - + "gle.analytics.data.v1alpha.SessionSegmentCriteria\"\256\001\n" + + "\032session_exclusion_duration\030\001 \001(\01627" + + ".google.analytics.data.v1alpha.SessionExclusionDuration\022Y\n" + + "\032session_exclusion_criteria\030\002" + + " \001(\01325.google.analytics.data.v1alpha.SessionSegmentCriteria\"\256\001\n" + "\014EventSegment\022U\n" - + "\030event_inclusion_criteria\030\001" - + " \001(\01323.google.analytics.data.v1alpha.EventSegmentCriteria\022G\n" - + "\texclusion\030\002" - + " \001(\01324.google.analytics.data.v1alpha.EventSegmentExclusion\"o\n" + + "\030event_inclusion_criteria\030\001 \001(\01323." + + "google.analytics.data.v1alpha.EventSegmentCriteria\022G\n" + + "\texclusion\030\002 \001(\01324.google.a" + + "nalytics.data.v1alpha.EventSegmentExclusion\"o\n" + "\024EventSegmentCriteria\022W\n" - + "\024and_condition_groups\030\001 \003(\013" - + "29.google.analytics.data.v1alpha.EventSegmentConditionGroup\"\307\001\n" + + "\024and_condition_groups\030\001" + + " \003(\01329.google.analytics.data.v1alpha.EventSegmentConditionGroup\"\307\001\n" + "\032EventSegmentConditionGroup\022N\n" - + "\021condition_scoping\030\001 \001(\01623." - + "google.analytics.data.v1alpha.EventCriteriaScoping\022Y\n" - + "\031segment_filter_expression\030\002" - + " \001(\01326.google.analytics.data.v1alpha.SegmentFilterExpression\"\307\001\n" + + "\021condition_scoping\030\001" + + " \001(\01623.google.analytics.data.v1alpha.EventCriteriaScoping\022Y\n" + + "\031segment_filter_expression\030\002 \001(\01326.google.analytic" + + "s.data.v1alpha.SegmentFilterExpression\"\307\001\n" + "\025EventSegmentExclusion\022W\n" - + "\030event_exclusion_duration\030\001 \001(" - + "\01625.google.analytics.data.v1alpha.EventExclusionDuration\022U\n" - + "\030event_exclusion_criteria\030\002" - + " \001(\01323.google.analytics.data.v1alpha.EventSegmentCriteria\"\200\002\n" + + "\030event_exclusion_duration\030\001" + + " \001(\01625.google.analytics.data.v1alpha.EventExclusionDuration\022U\n" + + "\030event_exclusion_criteria\030\002 \001(\01323.google.ana" + + "lytics.data.v1alpha.EventSegmentCriteria\"\200\002\n" + "\007Segment\022\014\n" + "\004name\030\001 \001(\t\022B\n" + "\014user_segment\030\002" + " \001(\0132*.google.analytics.data.v1alpha.UserSegmentH\000\022H\n" - + "\017session_segment\030\003" - + " \001(\0132-.google.analytics.data.v1alpha.SessionSegmentH\000\022D\n\r" - + "event_segment\030\004" - + " \001(\0132+.google.analytics.data.v1alpha.EventSegmentH\000B\023\n" + + "\017session_segment\030\003 \001(\0132" + + "-.google.analytics.data.v1alpha.SessionSegmentH\000\022D\n\r" + + "event_segment\030\004 \001(\0132+.google" + + ".analytics.data.v1alpha.EventSegmentH\000B\023\n" + "\021one_segment_scope\"\257\003\n" + "\027SegmentFilterExpression\022O\n" - + "\tand_group\030\001" - + " \001(\0132:.google.analytics.data.v1alpha.SegmentFilterExpressionListH\000\022N\n" - + "\010or_group\030\002" - + " \001(\0132:.google.analytics.data.v1alpha.SegmentFilterExpressionListH\000\022P\n" - + "\016not_expression\030\003" - + " \001(\01326.google.analytics.data.v1alpha.SegmentFilterExpressionH\000\022F\n" - + "\016segment_filter\030\004" - + " \001(\0132,.google.analytics.data.v1alpha.SegmentFilterH\000\022Q\n" - + "\024segment_event_filter\030\005" - + " \001(\01321.google.analytics.data.v1alpha.SegmentEventFilterH\000B\006\n" + + "\tand_group\030\001 \001(\0132:.google.anal" + + "ytics.data.v1alpha.SegmentFilterExpressionListH\000\022N\n" + + "\010or_group\030\002 \001(\0132:.google.anal" + + "ytics.data.v1alpha.SegmentFilterExpressionListH\000\022P\n" + + "\016not_expression\030\003 \001(\01326.googl" + + "e.analytics.data.v1alpha.SegmentFilterExpressionH\000\022F\n" + + "\016segment_filter\030\004 \001(\0132,.goo" + + "gle.analytics.data.v1alpha.SegmentFilterH\000\022Q\n" + + "\024segment_event_filter\030\005 \001(\01321.googl" + + "e.analytics.data.v1alpha.SegmentEventFilterH\000B\006\n" + "\004expr\"j\n" + "\033SegmentFilterExpressionList\022K\n" - + "\013expressions\030\001" - + " \003(\01326.google.analytics.data.v1alpha.SegmentFilterExpression\"\233\003\n\r" + + "\013expressions\030\001 \003(\01326.google.analy" + + "tics.data.v1alpha.SegmentFilterExpression\"\233\003\n\r" + "SegmentFilter\022\022\n\n" + "field_name\030\001 \001(\t\022D\n\r" + "string_filter\030\004" + " \001(\0132+.google.analytics.data.v1alpha.StringFilterH\000\022E\n" - + "\016in_list_filter\030\005 \001(\0132+.g" - + "oogle.analytics.data.v1alpha.InListFilterH\000\022F\n" + + "\016in_list_filter\030\005" + + " \001(\0132+.google.analytics.data.v1alpha.InListFilterH\000\022F\n" + "\016numeric_filter\030\006" + " \001(\0132,.google.analytics.data.v1alpha.NumericFilterH\000\022F\n" - + "\016between_filter\030\007" - + " \001(\0132,.google.analytics.data.v1alpha.BetweenFilterH\000\022K\n" - + "\016filter_scoping\030\010" - + " \001(\01323.google.analytics.data.v1alpha.SegmentFilterScopingB\014\n\n" + + "\016between_filter\030\007 \001(\0132,.g" + + "oogle.analytics.data.v1alpha.BetweenFilterH\000\022K\n" + + "\016filter_scoping\030\010 \001(\01323.google.an" + + "alytics.data.v1alpha.SegmentFilterScopingB\014\n\n" + "one_filter\"R\n" + "\024SegmentFilterScoping\022!\n" + "\024at_any_point_in_time\030\001 \001(\010H\000\210\001\001B\027\n" + "\025_at_any_point_in_time\"\327\001\n" + "\022SegmentEventFilter\022\027\n\n" + "event_name\030\001 \001(\tH\000\210\001\001\022q\n" - + "#segment_parameter_filter_expression\030\002 \001(\0132?.google.analytics.data." - + "v1alpha.SegmentParameterFilterExpressionH\001\210\001\001B\r\n" + + "#segment_parameter_filter_expression\030\002 \001(\0132?.googl" + + "e.analytics.data.v1alpha.SegmentParameterFilterExpressionH\001\210\001\001B\r\n" + "\013_event_nameB&\n" + "$_segment_parameter_filter_expression\"\223\003\n" + " SegmentParameterFilterExpression\022X\n" - + "\tand_group\030\001 \001(\0132C.g" - + "oogle.analytics.data.v1alpha.SegmentParameterFilterExpressionListH\000\022W\n" - + "\010or_group\030\002" - + " \001(\0132C.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListH\000\022Y\n" - + "\016not_expression\030\003 \001(\0132?.google.analytics." - + "data.v1alpha.SegmentParameterFilterExpressionH\000\022Y\n" - + "\030segment_parameter_filter\030\004 \001(" - + "\01325.google.analytics.data.v1alpha.SegmentParameterFilterH\000B\006\n" + + "\tand_group\030\001 \001(\0132C.google.analytics.data.v1" + + "alpha.SegmentParameterFilterExpressionListH\000\022W\n" + + "\010or_group\030\002 \001(\0132C.google.analytic" + + "s.data.v1alpha.SegmentParameterFilterExpressionListH\000\022Y\n" + + "\016not_expression\030\003 \001(\0132?." + + "google.analytics.data.v1alpha.SegmentParameterFilterExpressionH\000\022Y\n" + + "\030segment_parameter_filter\030\004" + + " \001(\01325.google.analytics.data.v1alpha.SegmentParameterFilterH\000B\006\n" + "\004expr\"|\n" + "$SegmentParameterFilterExpressionList\022T\n" - + "\013expressions\030\001" - + " \003(\0132?.google.analytics.data.v1alpha.SegmentParameterFilterExpression\"\351\003\n" + + "\013expressions\030\001 \003(\0132?.google.analyt" + + "ics.data.v1alpha.SegmentParameterFilterExpression\"\351\003\n" + "\026SegmentParameterFilter\022\036\n" + "\024event_parameter_name\030\001 \001(\tH\000\022\035\n" + "\023item_parameter_name\030\002 \001(\tH\000\022D\n\r" - + "string_filter\030\004" - + " \001(\0132+.google.analytics.data.v1alpha.StringFilterH\001\022E\n" - + "\016in_list_filter\030\005" - + " \001(\0132+.google.analytics.data.v1alpha.InListFilterH\001\022F\n" + + "string_filter\030\004 \001" + + "(\0132+.google.analytics.data.v1alpha.StringFilterH\001\022E\n" + + "\016in_list_filter\030\005 \001(\0132+.goog" + + "le.analytics.data.v1alpha.InListFilterH\001\022F\n" + "\016numeric_filter\030\006" + " \001(\0132,.google.analytics.data.v1alpha.NumericFilterH\001\022F\n" - + "\016between_filter\030\007 \001(\0132" - + ",.google.analytics.data.v1alpha.BetweenFilterH\001\022T\n" - + "\016filter_scoping\030\010 \001(\0132<.google" - + ".analytics.data.v1alpha.SegmentParameterFilterScopingB\017\n\r" + + "\016between_filter\030\007" + + " \001(\0132,.google.analytics.data.v1alpha.BetweenFilterH\001\022T\n" + + "\016filter_scoping\030\010" + + " \001(\0132<.google.analytics.data.v1alpha.SegmentParameterFilterScopingB\017\n\r" + "one_parameterB\014\n\n" + "one_filter\"Y\n" + "\035SegmentParameterFilterScoping\022 \n" + "\023in_any_n_day_period\030\001 \001(\003H\000\210\001\001B\026\n" + "\024_in_any_n_day_period\"\262\003\n" + "\026FunnelFilterExpression\022N\n" - + "\tand_group\030\001 \001(\01329.google.analytics" - + ".data.v1alpha.FunnelFilterExpressionListH\000\022M\n" - + "\010or_group\030\002 \001(\01329.google.analytics." - + "data.v1alpha.FunnelFilterExpressionListH\000\022O\n" - + "\016not_expression\030\003 \001(\01325.google.analy" - + "tics.data.v1alpha.FunnelFilterExpressionH\000\022O\n" - + "\023funnel_field_filter\030\004 \001(\01320.google" - + ".analytics.data.v1alpha.FunnelFieldFilterH\000\022O\n" - + "\023funnel_event_filter\030\005 \001(\01320.googl" - + "e.analytics.data.v1alpha.FunnelEventFilterH\000B\006\n" + + "\tand_group\030\001 \001(\01329" + + ".google.analytics.data.v1alpha.FunnelFilterExpressionListH\000\022M\n" + + "\010or_group\030\002 \001(\01329." + + "google.analytics.data.v1alpha.FunnelFilterExpressionListH\000\022O\n" + + "\016not_expression\030\003 \001" + + "(\01325.google.analytics.data.v1alpha.FunnelFilterExpressionH\000\022O\n" + + "\023funnel_field_filter\030\004" + + " \001(\01320.google.analytics.data.v1alpha.FunnelFieldFilterH\000\022O\n" + + "\023funnel_event_filter\030\005" + + " \001(\01320.google.analytics.data.v1alpha.FunnelEventFilterH\000B\006\n" + "\004expr\"h\n" + "\032FunnelFilterExpressionList\022J\n" - + "\013expressions\030\001 \003(\01325.google.analyti" - + "cs.data.v1alpha.FunnelFilterExpression\"\322\002\n" - + "\021FunnelFieldFilter\022\022\n\n" + + "\013expressions\030\001 \003(\013" + + "25.google.analytics.data.v1alpha.FunnelFilterExpression\"\322\002\n" + + "\021FunnelFieldFilter\022\022\n" + + "\n" + "field_name\030\001 \001(\t\022D\n\r" - + "string_filter\030\004" - + " \001(\0132+.google.analytics.data.v1alpha.StringFilterH\000\022E\n" - + "\016in_list_filter\030\005" - + " \001(\0132+.google.analytics.data.v1alpha.InListFilterH\000\022F\n" + + "string_filter\030\004 \001(\013" + + "2+.google.analytics.data.v1alpha.StringFilterH\000\022E\n" + + "\016in_list_filter\030\005 \001(\0132+.google" + + ".analytics.data.v1alpha.InListFilterH\000\022F\n" + "\016numeric_filter\030\006" + " \001(\0132,.google.analytics.data.v1alpha.NumericFilterH\000\022F\n" - + "\016between_filter\030\007 \001(\0132,." - + "google.analytics.data.v1alpha.BetweenFilterH\000B\014\n\n" + + "\016between_filter\030\007" + + " \001(\0132,.google.analytics.data.v1alpha.BetweenFilterH\000B\014\n\n" + "one_filter\"\323\001\n" + "\021FunnelEventFilter\022\027\n\n" + "event_name\030\001 \001(\tH\000\210\001\001\022o\n" - + "\"funnel_parameter_filter_expression\030\002 \001(\0132>.google." - + "analytics.data.v1alpha.FunnelParameterFilterExpressionH\001\210\001\001B\r\n" + + "\"funnel_parameter_filter_expression\030\002" + + " \001(\0132>.google.analytics.data.v1alpha.FunnelParameterFilterExpressionH\001\210\001\001B\r\n" + "\013_event_nameB%\n" + "#_funnel_parameter_filter_expression\"\215\003\n" + "\037FunnelParameterFilterExpression\022W\n" - + "\tand_group\030\001 \001(\0132B.google.analytics.data.v1alpha" - + ".FunnelParameterFilterExpressionListH\000\022V\n" - + "\010or_group\030\002 \001(\0132B.google.analytics.data" - + ".v1alpha.FunnelParameterFilterExpressionListH\000\022X\n" - + "\016not_expression\030\003 \001(\0132>.google." - + "analytics.data.v1alpha.FunnelParameterFilterExpressionH\000\022W\n" - + "\027funnel_parameter_filter\030\004" - + " \001(\01324.google.analytics.data.v1alpha.FunnelParameterFilterH\000B\006\n" + + "\tand_group\030\001 \001(\0132B.google.analy" + + "tics.data.v1alpha.FunnelParameterFilterExpressionListH\000\022V\n" + + "\010or_group\030\002 \001(\0132B.goog" + + "le.analytics.data.v1alpha.FunnelParameterFilterExpressionListH\000\022X\n" + + "\016not_expression\030\003" + + " \001(\0132>.google.analytics.data.v1alpha.FunnelParameterFilterExpressionH\000\022W\n" + + "\027funnel_parameter_filter\030\004 \001(\01324.google.anal" + + "ytics.data.v1alpha.FunnelParameterFilterH\000B\006\n" + "\004expr\"z\n" + "#FunnelParameterFilterExpressionList\022S\n" - + "\013expressions\030\001 \003(\0132>.google.analytics.data.v1" - + "alpha.FunnelParameterFilterExpression\"\222\003\n" + + "\013expressions\030\001 \003(\0132>.google." + + "analytics.data.v1alpha.FunnelParameterFilterExpression\"\222\003\n" + "\025FunnelParameterFilter\022\036\n" + "\024event_parameter_name\030\001 \001(\tH\000\022\035\n" + "\023item_parameter_name\030\002 \001(\tH\000\022D\n\r" + "string_filter\030\004" + " \001(\0132+.google.analytics.data.v1alpha.StringFilterH\001\022E\n" - + "\016in_list_filter\030\005" - + " \001(\0132+.google.analytics.data.v1alpha.InListFilterH\001\022F\n" + + "\016in_list_filter\030\005 \001(\0132+." + + "google.analytics.data.v1alpha.InListFilterH\001\022F\n" + "\016numeric_filter\030\006" + " \001(\0132,.google.analytics.data.v1alpha.NumericFilterH\001\022F\n" - + "\016between_filter\030\007 " - + "\001(\0132,.google.analytics.data.v1alpha.BetweenFilterH\001B\017\n\r" + + "\016between_filter\030\007" + + " \001(\0132,.google.analytics.data.v1alpha.BetweenFilterH\001B\017\n\r" + "one_parameterB\014\n\n" + "one_filter\"e\n" + "\026FunnelResponseMetadata\022K\n" - + "\022sampling_metadatas\030\001" - + " \003(\0132/.google.analytics.data.v1alpha.SamplingMetadata\"K\n" + + "\022sampling_metadatas\030\001 \003(\0132/.goog" + + "le.analytics.data.v1alpha.SamplingMetadata\"K\n" + "\020SamplingMetadata\022\032\n" + "\022samples_read_count\030\001 \001(\003\022\033\n" - + "\023sampling_space_size\030\002 \001(\003*\257\001\n" + + "\023sampling_space_size\030\002 \001(\003\"\337\001\n" + + "\016ConversionSpec\022\032\n" + + "\022conversion_actions\030\001 \003(\t\022Y\n" + + "\021attribution_model\030\002 \001(\0162>.goog" + + "le.analytics.data.v1alpha.ConversionSpec.AttributionModel\"V\n" + + "\020AttributionModel\022!\n" + + "\035ATTRIBUTION_MODEL_UNSPECIFIED\020\000\022\017\n" + + "\013DATA_DRIVEN\020\001\022\016\n\n" + + "LAST_CLICK\020\002\"\320\001\n" + + "\021DimensionMetadata\022\020\n" + + "\010api_name\030\001 \001(\t\022\017\n" + + "\007ui_name\030\002 \001(\t\022\023\n" + + "\013description\030\003 \001(\t\022\034\n" + + "\024deprecated_api_names\030\004 \003(\t\022\031\n" + + "\021custom_definition\030\005 \001(\010\022\020\n" + + "\010category\030\006 \001(\t\0228\n" + + "\010sections\030\007 \003(\0162&.google.analytics.data.v1alpha.Section\"\316\003\n" + + "\016MetricMetadata\022\020\n" + + "\010api_name\030\001 \001(\t\022\017\n" + + "\007ui_name\030\002 \001(\t\022\023\n" + + "\013description\030\003 \001(\t\022\034\n" + + "\024deprecated_api_names\030\004 \003(\t\0227\n" + + "\004type\030\005 \001(\0162).google.analytics.data.v1alpha.MetricType\022\022\n\n" + + "expression\030\006 \001(\t\022\031\n" + + "\021custom_definition\030\007 \001(\010\022T\n" + + "\017blocked_reasons\030\010 \003(\0162;.google." + + "analytics.data.v1alpha.MetricMetadata.BlockedReason\022\020\n" + + "\010category\030\t \001(\t\0228\n" + + "\010sections\030\n" + + " \003(\0162&.google.analytics.data.v1alpha.Section\"\\\n\r" + + "BlockedReason\022\036\n" + + "\032BLOCKED_REASON_UNSPECIFIED\020\000\022\026\n" + + "\022NO_REVENUE_METRICS\020\001\022\023\n" + + "\017NO_COST_METRICS\020\002\"L\n" + + "\022ComparisonMetadata\022\020\n" + + "\010api_name\030\001 \001(\t\022\017\n" + + "\007ui_name\030\002 \001(\t\022\023\n" + + "\013description\030\003 \001(\t\"E\n" + + "\022ConversionMetadata\022\031\n" + + "\021conversion_action\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t*O\n" + + "\007Section\022\027\n" + + "\023SECTION_UNSPECIFIED\020\000\022\022\n" + + "\016SECTION_REPORT\020\001\022\027\n" + + "\023SECTION_ADVERTISING\020\002*\257\001\n" + "\023UserCriteriaScoping\022%\n" + "!USER_CRITERIA_SCOPING_UNSPECIFIED\020\000\022#\n" + "\037USER_CRITERIA_WITHIN_SAME_EVENT\020\001\022%\n" @@ -790,22 +866,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "TYPE_STANDARD\020\010\022\021\n\r" + "TYPE_CURRENCY\020\t\022\r\n" + "\tTYPE_FEET\020\n" - + "\022\016\n\n" - + "TYPE_MILES\020\013\022\017\n" - + "\013TYPE_METERS\020\014\022\023\n" - + "\017TYPE_KILOMETERS\020\r" - + "*_\n" - + "\024RestrictedMetricType\022&\n" - + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tCOST_DATA\020\001\022\020\n" - + "\014REVENUE_DATA\020\002*S\n\r" - + "SamplingLevel\022\036\n" - + "\032SAMPLING_LEVEL_UNSPECIFIED\020\000\022\007\n" - + "\003LOW\020\001\022\n\n" - + "\006MEDIUM\020\002\022\r\n" - + "\tUNSAMPLED\020\003B{\n" - + "!com.google.analytics.data.v1alphaB\021ReportingApiProtoP\001ZAgoogle.golang.or" - + "g/genproto/googleapis/analytics/data/v1alpha;datab\006proto3" + + "\022\016\n", + "\nTYPE_MILES\020\013\022\017\n\013TYPE_METERS\020\014\022\023\n\017TYPE_K" + + "ILOMETERS\020\r*_\n\024RestrictedMetricType\022&\n\"R" + + "ESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n\tC" + + "OST_DATA\020\001\022\020\n\014REVENUE_DATA\020\002*S\n\rSampling" + + "Level\022\036\n\032SAMPLING_LEVEL_UNSPECIFIED\020\000\022\007\n" + + "\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\r\n\tUNSAMPLED\020\003B{\n!com" + + ".google.analytics.data.v1alphaB\021Reportin" + + "gApiProtoP\001ZAgoogle.golang.org/genproto/" + + "googleapis/analytics/data/v1alpha;datab\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -863,8 +934,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Expression", "Invisible", }); - internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor = + internal_static_google_analytics_data_v1alpha_Comparison_descriptor = getDescriptor().getMessageType(4); + internal_static_google_analytics_data_v1alpha_Comparison_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_Comparison_descriptor, + new java.lang.String[] { + "Name", "DimensionFilter", "Comparison", "OneComparison", + }); + internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor = + getDescriptor().getMessageType(5); internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor, @@ -872,7 +951,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndGroup", "OrGroup", "NotExpression", "Filter", "Expr", }); internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(6); internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor, @@ -880,7 +959,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_Filter_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(7); internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Filter_descriptor, @@ -894,7 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_StringFilter_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_StringFilter_descriptor, @@ -902,7 +981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MatchType", "Value", "CaseSensitive", }); internal_static_google_analytics_data_v1alpha_InListFilter_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_InListFilter_descriptor, @@ -910,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Values", "CaseSensitive", }); internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor, @@ -918,7 +997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Value", }); internal_static_google_analytics_data_v1alpha_OrderBy_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_analytics_data_v1alpha_OrderBy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_OrderBy_descriptor, @@ -942,7 +1021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionName", "OrderType", }); internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor, @@ -950,13 +1029,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FromValue", "ToValue", }); internal_static_google_analytics_data_v1alpha_EmptyFilter_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_analytics_data_v1alpha_EmptyFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EmptyFilter_descriptor, new java.lang.String[] {}); internal_static_google_analytics_data_v1alpha_NumericValue_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_NumericValue_descriptor, @@ -964,7 +1043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Int64Value", "DoubleValue", "OneValue", }); internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_analytics_data_v1alpha_CohortSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor, @@ -972,7 +1051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Cohorts", "CohortsRange", "CohortReportSettings", }); internal_static_google_analytics_data_v1alpha_Cohort_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_analytics_data_v1alpha_Cohort_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Cohort_descriptor, @@ -980,7 +1059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Dimension", "DateRange", }); internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_analytics_data_v1alpha_CohortsRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor, @@ -988,7 +1067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Granularity", "StartOffset", "EndOffset", }); internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(18); internal_static_google_analytics_data_v1alpha_CohortReportSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor, @@ -996,7 +1075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Accumulate", }); internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(19); internal_static_google_analytics_data_v1alpha_ResponseMetaData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor, @@ -1008,6 +1087,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EmptyReason", "SubjectToThresholding", "SamplingMetadatas", + "Section", }); internal_static_google_analytics_data_v1alpha_ResponseMetaData_SchemaRestrictionResponse_descriptor = internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor.getNestedType(0); @@ -1027,7 +1107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MetricName", "RestrictedMetricTypes", }); internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor, @@ -1035,7 +1115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(21); internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor, @@ -1043,7 +1123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Type", }); internal_static_google_analytics_data_v1alpha_Row_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(22); internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Row_descriptor, @@ -1051,7 +1131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionValues", "MetricValues", }); internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(23); internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor, @@ -1059,7 +1139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "OneValue", }); internal_static_google_analytics_data_v1alpha_MetricValue_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(24); internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_MetricValue_descriptor, @@ -1067,7 +1147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "OneValue", }); internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(25); internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor, @@ -1080,7 +1160,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokensPerProjectPerHour", }); internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(26); internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor, @@ -1088,7 +1168,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Consumed", "Remaining", }); internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(27); internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor, @@ -1096,7 +1176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BreakdownDimension", "Limit", }); internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(28); internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor, @@ -1104,7 +1184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NextActionDimension", "Limit", }); internal_static_google_analytics_data_v1alpha_Funnel_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(29); internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Funnel_descriptor, @@ -1112,7 +1192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IsOpenFunnel", "Steps", }); internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(30); internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor, @@ -1120,7 +1200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "IsDirectlyFollowedBy", "WithinDurationFromPriorStep", "FilterExpression", }); internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(31); internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor, @@ -1128,7 +1208,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionHeaders", "MetricHeaders", "Rows", "Metadata", }); internal_static_google_analytics_data_v1alpha_UserSegment_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(32); internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegment_descriptor, @@ -1136,7 +1216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserInclusionCriteria", "Exclusion", }); internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(33); internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor, @@ -1144,7 +1224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndConditionGroups", "AndSequenceGroups", }); internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(34); internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor, @@ -1152,7 +1232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConditionScoping", "SegmentFilterExpression", }); internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(35); internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor, @@ -1160,7 +1240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SequenceScoping", "SequenceMaximumDuration", "UserSequenceSteps", }); internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(36); internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor, @@ -1168,7 +1248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IsDirectlyFollowedBy", "StepScoping", "SegmentFilterExpression", }); internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(37); internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor, @@ -1176,7 +1256,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserExclusionDuration", "UserExclusionCriteria", }); internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(38); internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor, @@ -1184,7 +1264,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionInclusionCriteria", "Exclusion", }); internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(39); internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor, @@ -1192,7 +1272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndConditionGroups", }); internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(40); internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor, @@ -1200,7 +1280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConditionScoping", "SegmentFilterExpression", }); internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(41); internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor, @@ -1208,7 +1288,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionExclusionDuration", "SessionExclusionCriteria", }); internal_static_google_analytics_data_v1alpha_EventSegment_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(42); internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EventSegment_descriptor, @@ -1216,7 +1296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventInclusionCriteria", "Exclusion", }); internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(43); internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor, @@ -1224,7 +1304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndConditionGroups", }); internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(44); internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor, @@ -1232,7 +1312,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConditionScoping", "SegmentFilterExpression", }); internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(45); internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor, @@ -1240,7 +1320,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventExclusionDuration", "EventExclusionCriteria", }); internal_static_google_analytics_data_v1alpha_Segment_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(46); internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Segment_descriptor, @@ -1248,7 +1328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "UserSegment", "SessionSegment", "EventSegment", "OneSegmentScope", }); internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(47); internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor, @@ -1256,7 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndGroup", "OrGroup", "NotExpression", "SegmentFilter", "SegmentEventFilter", "Expr", }); internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(48); internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor, @@ -1264,7 +1344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(49); internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor, @@ -1278,7 +1358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(50); internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor, @@ -1286,7 +1366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AtAnyPointInTime", }); internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(51); internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor, @@ -1294,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventName", "SegmentParameterFilterExpression", }); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(52); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor, @@ -1302,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndGroup", "OrGroup", "NotExpression", "SegmentParameterFilter", "Expr", }); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(53); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor, @@ -1310,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(54); internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor, @@ -1326,7 +1406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor = - getDescriptor().getMessageType(54); + getDescriptor().getMessageType(55); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor, @@ -1334,7 +1414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InAnyNDayPeriod", }); internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor = - getDescriptor().getMessageType(55); + getDescriptor().getMessageType(56); internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor, @@ -1347,7 +1427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expr", }); internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor = - getDescriptor().getMessageType(56); + getDescriptor().getMessageType(57); internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor, @@ -1355,7 +1435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor = - getDescriptor().getMessageType(57); + getDescriptor().getMessageType(58); internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor, @@ -1368,7 +1448,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor = - getDescriptor().getMessageType(58); + getDescriptor().getMessageType(59); internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor, @@ -1376,7 +1456,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventName", "FunnelParameterFilterExpression", }); internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor = - getDescriptor().getMessageType(59); + getDescriptor().getMessageType(60); internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor, @@ -1384,7 +1464,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndGroup", "OrGroup", "NotExpression", "FunnelParameterFilter", "Expr", }); internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor = - getDescriptor().getMessageType(60); + getDescriptor().getMessageType(61); internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor, @@ -1392,7 +1472,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor = - getDescriptor().getMessageType(61); + getDescriptor().getMessageType(62); internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor, @@ -1407,7 +1487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor = - getDescriptor().getMessageType(62); + getDescriptor().getMessageType(63); internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor, @@ -1415,13 +1495,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SamplingMetadatas", }); internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor = - getDescriptor().getMessageType(63); + getDescriptor().getMessageType(64); internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor, new java.lang.String[] { "SamplesReadCount", "SamplingSpaceSize", }); + internal_static_google_analytics_data_v1alpha_ConversionSpec_descriptor = + getDescriptor().getMessageType(65); + internal_static_google_analytics_data_v1alpha_ConversionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_ConversionSpec_descriptor, + new java.lang.String[] { + "ConversionActions", "AttributionModel", + }); + internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor = + getDescriptor().getMessageType(66); + internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor, + new java.lang.String[] { + "ApiName", + "UiName", + "Description", + "DeprecatedApiNames", + "CustomDefinition", + "Category", + "Sections", + }); + internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor = + getDescriptor().getMessageType(67); + internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor, + new java.lang.String[] { + "ApiName", + "UiName", + "Description", + "DeprecatedApiNames", + "Type", + "Expression", + "CustomDefinition", + "BlockedReasons", + "Category", + "Sections", + }); + internal_static_google_analytics_data_v1alpha_ComparisonMetadata_descriptor = + getDescriptor().getMessageType(68); + internal_static_google_analytics_data_v1alpha_ComparisonMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_ComparisonMetadata_descriptor, + new java.lang.String[] { + "ApiName", "UiName", "Description", + }); + internal_static_google_analytics_data_v1alpha_ConversionMetadata_descriptor = + getDescriptor().getMessageType(69); + internal_static_google_analytics_data_v1alpha_ConversionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_ConversionMetadata_descriptor, + new java.lang.String[] { + "ConversionAction", "DisplayName", + }); descriptor.resolveAllFeaturesImmutable(); com.google.protobuf.DurationProto.getDescriptor(); } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java index a685d59bcf3c..fb1c03933488 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java @@ -56,6 +56,7 @@ private ResponseMetaData() { timeZone_ = ""; emptyReason_ = ""; samplingMetadatas_ = java.util.Collections.emptyList(); + section_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -2961,12 +2962,12 @@ public boolean getSubjectToThresholding() { * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -2983,12 +2984,12 @@ public boolean getSubjectToThresholding() { * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -3005,12 +3006,12 @@ public boolean getSubjectToThresholding() { * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -3026,12 +3027,12 @@ public int getSamplingMetadatasCount() { * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -3047,12 +3048,12 @@ public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(i * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -3065,6 +3066,43 @@ public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMe return samplingMetadatas_.get(index); } + public static final int SECTION_FIELD_NUMBER = 10; + private int section_ = 0; + + /** + * + * + *
+   * Identifies the type of data in the report.
+   * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @return The enum numeric value on the wire for section. + */ + @java.lang.Override + public int getSectionValue() { + return section_; + } + + /** + * + * + *
+   * Identifies the type of data in the report.
+   * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @return The section. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Section getSection() { + com.google.analytics.data.v1alpha.Section result = + com.google.analytics.data.v1alpha.Section.forNumber(section_); + return result == null ? com.google.analytics.data.v1alpha.Section.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3100,6 +3138,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < samplingMetadatas_.size(); i++) { output.writeMessage(9, samplingMetadatas_.get(i)); } + if (section_ != com.google.analytics.data.v1alpha.Section.SECTION_UNSPECIFIED.getNumber()) { + output.writeEnum(10, section_); + } getUnknownFields().writeTo(output); } @@ -3133,6 +3174,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, samplingMetadatas_.get(i)); } + if (section_ != com.google.analytics.data.v1alpha.Section.SECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, section_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3172,6 +3216,7 @@ public boolean equals(final java.lang.Object obj) { if (getSubjectToThresholding() != other.getSubjectToThresholding()) return false; } if (!getSamplingMetadatasList().equals(other.getSamplingMetadatasList())) return false; + if (section_ != other.section_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3209,6 +3254,8 @@ public int hashCode() { hash = (37 * hash) + SAMPLING_METADATAS_FIELD_NUMBER; hash = (53 * hash) + getSamplingMetadatasList().hashCode(); } + hash = (37 * hash) + SECTION_FIELD_NUMBER; + hash = (53 * hash) + section_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3376,6 +3423,7 @@ public Builder clear() { samplingMetadatasBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); + section_ = 0; return this; } @@ -3453,6 +3501,9 @@ private void buildPartial0(com.google.analytics.data.v1alpha.ResponseMetaData re result.subjectToThresholding_ = subjectToThresholding_; to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.section_ = section_; + } result.bitField0_ |= to_bitField0_; } @@ -3520,6 +3571,9 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.ResponseMetaData othe } } } + if (other.section_ != 0) { + setSectionValue(other.getSectionValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3598,6 +3652,12 @@ public Builder mergeFrom( } break; } // case 74 + case 80: + { + section_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4528,12 +4588,12 @@ private void ensureSamplingMetadatasIsMutable() { * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4553,12 +4613,12 @@ private void ensureSamplingMetadatasIsMutable() { * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4577,12 +4637,12 @@ public int getSamplingMetadatasCount() { * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4601,12 +4661,12 @@ public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(i * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4632,12 +4692,12 @@ public Builder setSamplingMetadatas( * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4660,12 +4720,12 @@ public Builder setSamplingMetadatas( * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4690,12 +4750,12 @@ public Builder addSamplingMetadatas(com.google.analytics.data.v1alpha.SamplingMe * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4721,12 +4781,12 @@ public Builder addSamplingMetadatas( * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4749,12 +4809,12 @@ public Builder addSamplingMetadatas( * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4777,12 +4837,12 @@ public Builder addSamplingMetadatas( * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4805,12 +4865,12 @@ public Builder addAllSamplingMetadatas( * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4832,12 +4892,12 @@ public Builder clearSamplingMetadatas() { * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4859,12 +4919,12 @@ public Builder removeSamplingMetadatas(int index) { * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4880,12 +4940,12 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4905,12 +4965,12 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4930,12 +4990,12 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4952,12 +5012,12 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -4975,12 +5035,12 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder addSamplingMet * * *
-     * If this report's results are
+     * If this report results is
      * [sampled](https://support.google.com/analytics/answer/13331292), this
      * describes the percentage of events used in this report. One
      * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in the order that date
-     * ranges were specified in the request.
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
      *
      * However if the results are not sampled, this field will not be defined.
      * 
@@ -5012,6 +5072,101 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder addSamplingMet return samplingMetadatasBuilder_; } + private int section_ = 0; + + /** + * + * + *
+     * Identifies the type of data in the report.
+     * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @return The enum numeric value on the wire for section. + */ + @java.lang.Override + public int getSectionValue() { + return section_; + } + + /** + * + * + *
+     * Identifies the type of data in the report.
+     * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @param value The enum numeric value on the wire for section to set. + * @return This builder for chaining. + */ + public Builder setSectionValue(int value) { + section_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifies the type of data in the report.
+     * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @return The section. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Section getSection() { + com.google.analytics.data.v1alpha.Section result = + com.google.analytics.data.v1alpha.Section.forNumber(section_); + return result == null ? com.google.analytics.data.v1alpha.Section.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Identifies the type of data in the report.
+     * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @param value The section to set. + * @return This builder for chaining. + */ + public Builder setSection(com.google.analytics.data.v1alpha.Section value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + section_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifies the type of data in the report.
+     * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @return This builder for chaining. + */ + public Builder clearSection() { + bitField0_ = (bitField0_ & ~0x00000080); + section_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.ResponseMetaData) } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java index 2cc4b12393c7..ee6d96007329 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java @@ -300,12 +300,12 @@ public interface ResponseMetaDataOrBuilder * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -318,12 +318,12 @@ public interface ResponseMetaDataOrBuilder * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -336,12 +336,12 @@ public interface ResponseMetaDataOrBuilder * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -354,12 +354,12 @@ public interface ResponseMetaDataOrBuilder * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -373,12 +373,12 @@ public interface ResponseMetaDataOrBuilder * * *
-   * If this report's results are
+   * If this report results is
    * [sampled](https://support.google.com/analytics/answer/13331292), this
    * describes the percentage of events used in this report. One
    * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in the order that date
-   * ranges were specified in the request.
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
    *
    * However if the results are not sampled, this field will not be defined.
    * 
@@ -387,4 +387,30 @@ public interface ResponseMetaDataOrBuilder */ com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder( int index); + + /** + * + * + *
+   * Identifies the type of data in the report.
+   * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @return The enum numeric value on the wire for section. + */ + int getSectionValue(); + + /** + * + * + *
+   * Identifies the type of data in the report.
+   * 
+ * + * .google.analytics.data.v1alpha.Section section = 10; + * + * @return The section. + */ + com.google.analytics.data.v1alpha.Section getSection(); } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RestrictedMetricType.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RestrictedMetricType.java index 71cbad15149b..94e809ab849d 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RestrictedMetricType.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RestrictedMetricType.java @@ -171,7 +171,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(8); + .get(9); } private static final RestrictedMetricType[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java new file mode 100644 index 000000000000..5a53184c176b --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java @@ -0,0 +1,6162 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/analytics_data_api.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The request to generate a report.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.RunReportRequest} + */ +@com.google.protobuf.Generated +public final class RunReportRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.RunReportRequest) + RunReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RunReportRequest"); + } + + // Use RunReportRequest.newBuilder() to construct. + private RunReportRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RunReportRequest() { + property_ = ""; + dimensions_ = java.util.Collections.emptyList(); + metrics_ = java.util.Collections.emptyList(); + dateRanges_ = java.util.Collections.emptyList(); + metricAggregations_ = emptyIntList(); + orderBys_ = java.util.Collections.emptyList(); + currencyCode_ = ""; + comparisons_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.RunReportRequest.class, + com.google.analytics.data.v1alpha.RunReportRequest.Builder.class); + } + + private int bitField0_; + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + + /** + * + * + *
+   * Required. A Google Analytics property identifier whose events are tracked.
+   * Specified in the URL path and not the body. To learn more, see [where to
+   * find your Property
+   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+   * Within a batch request, this property should either be unspecified or
+   * consistent with the batch-level property.
+   *
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. A Google Analytics property identifier whose events are tracked.
+   * Specified in the URL path and not the body. To learn more, see [where to
+   * find your Property
+   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+   * Within a batch request, this property should either be unspecified or
+   * consistent with the batch-level property.
+   *
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List dimensions_; + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getDimensionsList() { + return dimensions_; + } + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDimensionsOrBuilderList() { + return dimensions_; + } + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDimensionsCount() { + return dimensions_.size(); + } + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Dimension getDimensions(int index) { + return dimensions_.get(index); + } + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionOrBuilder getDimensionsOrBuilder(int index) { + return dimensions_.get(index); + } + + public static final int METRICS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List metrics_; + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Metric getMetrics(int index) { + return metrics_.get(index); + } + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int DATE_RANGES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List dateRanges_; + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getDateRangesList() { + return dateRanges_; + } + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDateRangesOrBuilderList() { + return dateRanges_; + } + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDateRangesCount() { + return dateRanges_.size(); + } + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DateRange getDateRanges(int index) { + return dateRanges_.get(index); + } + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index) { + return dateRanges_.get(index); + } + + public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; + private com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; + + /** + * + * + *
+   * Optional. Dimension filters let you ask for only specific dimension values
+   * in the report. 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.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dimensionFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Dimension filters let you ask for only specific dimension values
+   * in the report. 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.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dimensionFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { + return dimensionFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : dimensionFilter_; + } + + /** + * + * + *
+   * Optional. Dimension filters let you ask for only specific dimension values
+   * in the report. 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.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { + return dimensionFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : dimensionFilter_; + } + + public static final int METRIC_FILTER_FIELD_NUMBER = 6; + private com.google.analytics.data.v1alpha.FilterExpression metricFilter_; + + /** + * + * + *
+   * Optional. The filter clause of metrics. Applied after aggregating the
+   * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+   * this filter.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricFilter field is set. + */ + @java.lang.Override + public boolean hasMetricFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The filter clause of metrics. Applied after aggregating the
+   * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+   * this filter.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() { + return metricFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : metricFilter_; + } + + /** + * + * + *
+   * Optional. The filter clause of metrics. Applied after aggregating the
+   * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+   * this filter.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder() { + return metricFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : metricFilter_; + } + + public static final int OFFSET_FIELD_NUMBER = 7; + private long offset_ = 0L; + + /** + * + * + *
+   * Optional. The row count of the start row. The first row is counted as row
+   * 0.
+   *
+   * When paging, the first request does not specify offset; or equivalently,
+   * sets offset to 0; the first request returns the first `limit` of rows. The
+   * second request sets offset to the `limit` of the first request; the second
+   * request returns the second `limit` of rows.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 offset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int LIMIT_FIELD_NUMBER = 8; + private long limit_ = 0L; + + /** + * + * + *
+   * Optional. The maximum number of rows to return. If unspecified, 10,000 rows
+   * are returned. The API returns a maximum of 250,000 rows per request, no
+   * matter how many you ask for. `limit` must be positive.
+   *
+   * The API can also return fewer rows than the requested `limit`, if there
+   * aren't as many dimension values 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).
+   * 
+ * + * int64 limit = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + public static final int METRIC_AGGREGATIONS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList metricAggregations_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.analytics.data.v1alpha.MetricAggregation> + metricAggregations_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.analytics.data.v1alpha.MetricAggregation>() { + public com.google.analytics.data.v1alpha.MetricAggregation convert(int from) { + com.google.analytics.data.v1alpha.MetricAggregation result = + com.google.analytics.data.v1alpha.MetricAggregation.forNumber(from); + return result == null + ? com.google.analytics.data.v1alpha.MetricAggregation.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the metricAggregations. + */ + @java.lang.Override + public java.util.List + getMetricAggregationsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.analytics.data.v1alpha.MetricAggregation>( + metricAggregations_, metricAggregations_converter_); + } + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of metricAggregations. + */ + @java.lang.Override + public int getMetricAggregationsCount() { + return metricAggregations_.size(); + } + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The metricAggregations at the given index. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricAggregation getMetricAggregations(int index) { + return metricAggregations_converter_.convert(metricAggregations_.getInt(index)); + } + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for metricAggregations. + */ + @java.lang.Override + public java.util.List getMetricAggregationsValueList() { + return metricAggregations_; + } + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of metricAggregations at the given index. + */ + @java.lang.Override + public int getMetricAggregationsValue(int index) { + return metricAggregations_.getInt(index); + } + + private int metricAggregationsMemoizedSerializedSize; + + public static final int ORDER_BYS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List orderBys_; + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getOrderBysList() { + return orderBys_; + } + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getOrderBysOrBuilderList() { + return orderBys_; + } + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getOrderBysCount() { + return orderBys_.size(); + } + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index) { + return orderBys_.get(index); + } + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.OrderByOrBuilder getOrderBysOrBuilder(int index) { + return orderBys_.get(index); + } + + public static final int CURRENCY_CODE_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object currencyCode_ = ""; + + /** + * + * + *
+   * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+   * If the field is empty, the report uses the property's default currency.
+   * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The currencyCode. + */ + @java.lang.Override + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+   * If the field is empty, the report uses the property's default currency.
+   * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for currencyCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COHORT_SPEC_FIELD_NUMBER = 12; + private com.google.analytics.data.v1alpha.CohortSpec cohortSpec_; + + /** + * + * + *
+   * Optional. Cohort group associated with this request. If there is a cohort
+   * group in the request the 'cohort' dimension must be present.
+   * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cohortSpec field is set. + */ + @java.lang.Override + public boolean hasCohortSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Cohort group associated with this request. If there is a cohort
+   * group in the request the 'cohort' dimension must be present.
+   * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cohortSpec. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.CohortSpec getCohortSpec() { + return cohortSpec_ == null + ? com.google.analytics.data.v1alpha.CohortSpec.getDefaultInstance() + : cohortSpec_; + } + + /** + * + * + *
+   * Optional. Cohort group associated with this request. If there is a cohort
+   * group in the request the 'cohort' dimension must be present.
+   * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuilder() { + return cohortSpec_ == null + ? com.google.analytics.data.v1alpha.CohortSpec.getDefaultInstance() + : cohortSpec_; + } + + public static final int KEEP_EMPTY_ROWS_FIELD_NUMBER = 13; + private boolean keepEmptyRows_ = false; + + /** + * + * + *
+   * Optional. If false or unspecified, each row with all metrics equal to 0
+   * will not be returned. If true, these rows will be returned if they are not
+   * separately removed by a filter.
+   *
+   * Regardless of this `keep_empty_rows` setting, only data recorded by the
+   * Google Analytics property can be displayed in a report.
+   *
+   * For example if a property never logs a `purchase` event, then a query for
+   * the `eventName` dimension and  `eventCount` metric will not have a row
+   * eventName: "purchase" and eventCount: 0.
+   * 
+ * + * bool keep_empty_rows = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keepEmptyRows. + */ + @java.lang.Override + public boolean getKeepEmptyRows() { + return keepEmptyRows_; + } + + public static final int RETURN_PROPERTY_QUOTA_FIELD_NUMBER = 14; + private boolean returnPropertyQuota_ = false; + + /** + * + * + *
+   * Optional. Toggles whether to return the current state of this Google
+   * Analytics property's quota. Quota is returned in
+   * [PropertyQuota](#PropertyQuota).
+   * 
+ * + * bool return_property_quota = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPropertyQuota. + */ + @java.lang.Override + public boolean getReturnPropertyQuota() { + return returnPropertyQuota_; + } + + public static final int COMPARISONS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private java.util.List comparisons_; + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getComparisonsList() { + return comparisons_; + } + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getComparisonsOrBuilderList() { + return comparisons_; + } + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getComparisonsCount() { + return comparisons_.size(); + } + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Comparison getComparisons(int index) { + return comparisons_.get(index); + } + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ComparisonOrBuilder getComparisonsOrBuilder(int index) { + return comparisons_.get(index); + } + + public static final int CONVERSION_SPEC_FIELD_NUMBER = 16; + private com.google.analytics.data.v1alpha.ConversionSpec conversionSpec_; + + /** + * + * + *
+   * Optional. Controls conversion reporting. This field is optional. If this
+   * field is set or any conversion metrics are requested, the report will be a
+   * conversion report.
+   * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversionSpec field is set. + */ + @java.lang.Override + public boolean hasConversionSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Controls conversion reporting. This field is optional. If this
+   * field is set or any conversion metrics are requested, the report will be a
+   * conversion report.
+   * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversionSpec. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionSpec getConversionSpec() { + return conversionSpec_ == null + ? com.google.analytics.data.v1alpha.ConversionSpec.getDefaultInstance() + : conversionSpec_; + } + + /** + * + * + *
+   * Optional. Controls conversion reporting. This field is optional. If this
+   * field is set or any conversion metrics are requested, the report will be a
+   * conversion report.
+   * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ConversionSpecOrBuilder getConversionSpecOrBuilder() { + return conversionSpec_ == null + ? com.google.analytics.data.v1alpha.ConversionSpec.getDefaultInstance() + : conversionSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, property_); + } + for (int i = 0; i < dimensions_.size(); i++) { + output.writeMessage(2, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(3, metrics_.get(i)); + } + for (int i = 0; i < dateRanges_.size(); i++) { + output.writeMessage(4, dateRanges_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getDimensionFilter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getMetricFilter()); + } + if (offset_ != 0L) { + output.writeInt64(7, offset_); + } + if (limit_ != 0L) { + output.writeInt64(8, limit_); + } + if (getMetricAggregationsList().size() > 0) { + output.writeUInt32NoTag(74); + output.writeUInt32NoTag(metricAggregationsMemoizedSerializedSize); + } + for (int i = 0; i < metricAggregations_.size(); i++) { + output.writeEnumNoTag(metricAggregations_.getInt(i)); + } + for (int i = 0; i < orderBys_.size(); i++) { + output.writeMessage(10, orderBys_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(currencyCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, currencyCode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getCohortSpec()); + } + if (keepEmptyRows_ != false) { + output.writeBool(13, keepEmptyRows_); + } + if (returnPropertyQuota_ != false) { + output.writeBool(14, returnPropertyQuota_); + } + for (int i = 0; i < comparisons_.size(); i++) { + output.writeMessage(15, comparisons_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(16, getConversionSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(property_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, property_); + } + for (int i = 0; i < dimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); + } + for (int i = 0; i < dateRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, dateRanges_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDimensionFilter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetricFilter()); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, offset_); + } + if (limit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, limit_); + } + { + int dataSize = 0; + for (int i = 0; i < metricAggregations_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + metricAggregations_.getInt(i)); + } + size += dataSize; + if (!getMetricAggregationsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + metricAggregationsMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < orderBys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, orderBys_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(currencyCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, currencyCode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCohortSpec()); + } + if (keepEmptyRows_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, keepEmptyRows_); + } + if (returnPropertyQuota_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, returnPropertyQuota_); + } + for (int i = 0; i < comparisons_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, comparisons_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getConversionSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.RunReportRequest)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.RunReportRequest other = + (com.google.analytics.data.v1alpha.RunReportRequest) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getDimensionsList().equals(other.getDimensionsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getDateRangesList().equals(other.getDateRangesList())) return false; + if (hasDimensionFilter() != other.hasDimensionFilter()) return false; + if (hasDimensionFilter()) { + if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; + } + if (hasMetricFilter() != other.hasMetricFilter()) return false; + if (hasMetricFilter()) { + if (!getMetricFilter().equals(other.getMetricFilter())) return false; + } + if (getOffset() != other.getOffset()) return false; + if (getLimit() != other.getLimit()) return false; + if (!metricAggregations_.equals(other.metricAggregations_)) return false; + if (!getOrderBysList().equals(other.getOrderBysList())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (hasCohortSpec() != other.hasCohortSpec()) return false; + if (hasCohortSpec()) { + if (!getCohortSpec().equals(other.getCohortSpec())) return false; + } + if (getKeepEmptyRows() != other.getKeepEmptyRows()) return false; + if (getReturnPropertyQuota() != other.getReturnPropertyQuota()) return false; + if (!getComparisonsList().equals(other.getComparisonsList())) return false; + if (hasConversionSpec() != other.hasConversionSpec()) return false; + if (hasConversionSpec()) { + if (!getConversionSpec().equals(other.getConversionSpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + if (getDimensionsCount() > 0) { + hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionsList().hashCode(); + } + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getDateRangesCount() > 0) { + hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getDateRangesList().hashCode(); + } + if (hasDimensionFilter()) { + hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDimensionFilter().hashCode(); + } + if (hasMetricFilter()) { + hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getMetricFilter().hashCode(); + } + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); + if (getMetricAggregationsCount() > 0) { + hash = (37 * hash) + METRIC_AGGREGATIONS_FIELD_NUMBER; + hash = (53 * hash) + metricAggregations_.hashCode(); + } + if (getOrderBysCount() > 0) { + hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; + hash = (53 * hash) + getOrderBysList().hashCode(); + } + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); + if (hasCohortSpec()) { + hash = (37 * hash) + COHORT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCohortSpec().hashCode(); + } + hash = (37 * hash) + KEEP_EMPTY_ROWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepEmptyRows()); + hash = (37 * hash) + RETURN_PROPERTY_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPropertyQuota()); + if (getComparisonsCount() > 0) { + hash = (37 * hash) + COMPARISONS_FIELD_NUMBER; + hash = (53 * hash) + getComparisonsList().hashCode(); + } + if (hasConversionSpec()) { + hash = (37 * hash) + CONVERSION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getConversionSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.RunReportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request to generate a report.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.RunReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunReportRequest) + com.google.analytics.data.v1alpha.RunReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.RunReportRequest.class, + com.google.analytics.data.v1alpha.RunReportRequest.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.RunReportRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDimensionsFieldBuilder(); + internalGetMetricsFieldBuilder(); + internalGetDateRangesFieldBuilder(); + internalGetDimensionFilterFieldBuilder(); + internalGetMetricFilterFieldBuilder(); + internalGetOrderBysFieldBuilder(); + internalGetCohortSpecFieldBuilder(); + internalGetComparisonsFieldBuilder(); + internalGetConversionSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + } else { + dimensions_ = null; + dimensionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + } else { + dateRanges_ = null; + dateRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + dimensionFilter_ = null; + if (dimensionFilterBuilder_ != null) { + dimensionFilterBuilder_.dispose(); + dimensionFilterBuilder_ = null; + } + metricFilter_ = null; + if (metricFilterBuilder_ != null) { + metricFilterBuilder_.dispose(); + metricFilterBuilder_ = null; + } + offset_ = 0L; + limit_ = 0L; + metricAggregations_ = emptyIntList(); + if (orderBysBuilder_ == null) { + orderBys_ = java.util.Collections.emptyList(); + } else { + orderBys_ = null; + orderBysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + currencyCode_ = ""; + cohortSpec_ = null; + if (cohortSpecBuilder_ != null) { + cohortSpecBuilder_.dispose(); + cohortSpecBuilder_ = null; + } + keepEmptyRows_ = false; + returnPropertyQuota_ = false; + if (comparisonsBuilder_ == null) { + comparisons_ = java.util.Collections.emptyList(); + } else { + comparisons_ = null; + comparisonsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + conversionSpec_ = null; + if (conversionSpecBuilder_ != null) { + conversionSpecBuilder_.dispose(); + conversionSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunReportRequest getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.RunReportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunReportRequest build() { + com.google.analytics.data.v1alpha.RunReportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunReportRequest buildPartial() { + com.google.analytics.data.v1alpha.RunReportRequest result = + new com.google.analytics.data.v1alpha.RunReportRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.data.v1alpha.RunReportRequest result) { + if (dimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dimensions_ = java.util.Collections.unmodifiableList(dimensions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dimensions_ = dimensions_; + } else { + result.dimensions_ = dimensionsBuilder_.build(); + } + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (dateRangesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.dateRanges_ = dateRanges_; + } else { + result.dateRanges_ = dateRangesBuilder_.build(); + } + if (orderBysBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + orderBys_ = java.util.Collections.unmodifiableList(orderBys_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.orderBys_ = orderBys_; + } else { + result.orderBys_ = orderBysBuilder_.build(); + } + if (comparisonsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + comparisons_ = java.util.Collections.unmodifiableList(comparisons_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.comparisons_ = comparisons_; + } else { + result.comparisons_ = comparisonsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.data.v1alpha.RunReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dimensionFilter_ = + dimensionFilterBuilder_ == null ? dimensionFilter_ : dimensionFilterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.metricFilter_ = + metricFilterBuilder_ == null ? metricFilter_ : metricFilterBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.offset_ = offset_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.limit_ = limit_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + metricAggregations_.makeImmutable(); + result.metricAggregations_ = metricAggregations_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.currencyCode_ = currencyCode_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.cohortSpec_ = cohortSpecBuilder_ == null ? cohortSpec_ : cohortSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.keepEmptyRows_ = keepEmptyRows_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.returnPropertyQuota_ = returnPropertyQuota_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.conversionSpec_ = + conversionSpecBuilder_ == null ? conversionSpec_ : conversionSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.RunReportRequest) { + return mergeFrom((com.google.analytics.data.v1alpha.RunReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportRequest other) { + if (other == com.google.analytics.data.v1alpha.RunReportRequest.getDefaultInstance()) + return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (dimensionsBuilder_ == null) { + if (!other.dimensions_.isEmpty()) { + if (dimensions_.isEmpty()) { + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDimensionsIsMutable(); + dimensions_.addAll(other.dimensions_); + } + onChanged(); + } + } else { + if (!other.dimensions_.isEmpty()) { + if (dimensionsBuilder_.isEmpty()) { + dimensionsBuilder_.dispose(); + dimensionsBuilder_ = null; + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + dimensionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDimensionsFieldBuilder() + : null; + } else { + dimensionsBuilder_.addAllMessages(other.dimensions_); + } + } + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + metricsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (dateRangesBuilder_ == null) { + if (!other.dateRanges_.isEmpty()) { + if (dateRanges_.isEmpty()) { + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDateRangesIsMutable(); + dateRanges_.addAll(other.dateRanges_); + } + onChanged(); + } + } else { + if (!other.dateRanges_.isEmpty()) { + if (dateRangesBuilder_.isEmpty()) { + dateRangesBuilder_.dispose(); + dateRangesBuilder_ = null; + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + dateRangesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDateRangesFieldBuilder() + : null; + } else { + dateRangesBuilder_.addAllMessages(other.dateRanges_); + } + } + } + if (other.hasDimensionFilter()) { + mergeDimensionFilter(other.getDimensionFilter()); + } + if (other.hasMetricFilter()) { + mergeMetricFilter(other.getMetricFilter()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + if (other.getLimit() != 0L) { + setLimit(other.getLimit()); + } + if (!other.metricAggregations_.isEmpty()) { + if (metricAggregations_.isEmpty()) { + metricAggregations_ = other.metricAggregations_; + metricAggregations_.makeImmutable(); + bitField0_ |= 0x00000100; + } else { + ensureMetricAggregationsIsMutable(); + metricAggregations_.addAll(other.metricAggregations_); + } + onChanged(); + } + if (orderBysBuilder_ == null) { + if (!other.orderBys_.isEmpty()) { + if (orderBys_.isEmpty()) { + orderBys_ = other.orderBys_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureOrderBysIsMutable(); + orderBys_.addAll(other.orderBys_); + } + onChanged(); + } + } else { + if (!other.orderBys_.isEmpty()) { + if (orderBysBuilder_.isEmpty()) { + orderBysBuilder_.dispose(); + orderBysBuilder_ = null; + orderBys_ = other.orderBys_; + bitField0_ = (bitField0_ & ~0x00000200); + orderBysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetOrderBysFieldBuilder() + : null; + } else { + orderBysBuilder_.addAllMessages(other.orderBys_); + } + } + } + if (!other.getCurrencyCode().isEmpty()) { + currencyCode_ = other.currencyCode_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasCohortSpec()) { + mergeCohortSpec(other.getCohortSpec()); + } + if (other.getKeepEmptyRows() != false) { + setKeepEmptyRows(other.getKeepEmptyRows()); + } + if (other.getReturnPropertyQuota() != false) { + setReturnPropertyQuota(other.getReturnPropertyQuota()); + } + if (comparisonsBuilder_ == null) { + if (!other.comparisons_.isEmpty()) { + if (comparisons_.isEmpty()) { + comparisons_ = other.comparisons_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureComparisonsIsMutable(); + comparisons_.addAll(other.comparisons_); + } + onChanged(); + } + } else { + if (!other.comparisons_.isEmpty()) { + if (comparisonsBuilder_.isEmpty()) { + comparisonsBuilder_.dispose(); + comparisonsBuilder_ = null; + comparisons_ = other.comparisons_; + bitField0_ = (bitField0_ & ~0x00004000); + comparisonsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComparisonsFieldBuilder() + : null; + } else { + comparisonsBuilder_.addAllMessages(other.comparisons_); + } + } + } + if (other.hasConversionSpec()) { + mergeConversionSpec(other.getConversionSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1alpha.Dimension m = + input.readMessage( + com.google.analytics.data.v1alpha.Dimension.parser(), extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1alpha.Metric m = + input.readMessage( + com.google.analytics.data.v1alpha.Metric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.data.v1alpha.DateRange m = + input.readMessage( + com.google.analytics.data.v1alpha.DateRange.parser(), extensionRegistry); + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(m); + } else { + dateRangesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetMetricFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + limit_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + int tmpRaw = input.readEnum(); + ensureMetricAggregationsIsMutable(); + metricAggregations_.addInt(tmpRaw); + break; + } // case 72 + case 74: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureMetricAggregationsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + metricAggregations_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 74 + case 82: + { + com.google.analytics.data.v1alpha.OrderBy m = + input.readMessage( + com.google.analytics.data.v1alpha.OrderBy.parser(), extensionRegistry); + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(m); + } else { + orderBysBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + input.readMessage( + internalGetCohortSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: + { + keepEmptyRows_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: + { + returnPropertyQuota_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 122: + { + com.google.analytics.data.v1alpha.Comparison m = + input.readMessage( + com.google.analytics.data.v1alpha.Comparison.parser(), extensionRegistry); + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.add(m); + } else { + comparisonsBuilder_.addMessage(m); + } + break; + } // case 122 + case 130: + { + input.readMessage( + internalGetConversionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + + /** + * + * + *
+     * Required. A Google Analytics property identifier whose events are tracked.
+     * Specified in the URL path and not the body. To learn more, see [where to
+     * find your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     * Within a batch request, this property should either be unspecified or
+     * consistent with the batch-level property.
+     *
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. A Google Analytics property identifier whose events are tracked.
+     * Specified in the URL path and not the body. To learn more, see [where to
+     * find your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     * Within a batch request, this property should either be unspecified or
+     * consistent with the batch-level property.
+     *
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. A Google Analytics property identifier whose events are tracked.
+     * Specified in the URL path and not the body. To learn more, see [where to
+     * find your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     * Within a batch request, this property should either be unspecified or
+     * consistent with the batch-level property.
+     *
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A Google Analytics property identifier whose events are tracked.
+     * Specified in the URL path and not the body. To learn more, see [where to
+     * find your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     * Within a batch request, this property should either be unspecified or
+     * consistent with the batch-level property.
+     *
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A Google Analytics property identifier whose events are tracked.
+     * Specified in the URL path and not the body. To learn more, see [where to
+     * find your Property
+     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+     * Within a batch request, this property should either be unspecified or
+     * consistent with the batch-level property.
+     *
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List dimensions_ = + java.util.Collections.emptyList(); + + private void ensureDimensionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dimensions_ = + new java.util.ArrayList(dimensions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder> + dimensionsBuilder_; + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getDimensionsList() { + if (dimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensions_); + } else { + return dimensionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDimensionsCount() { + if (dimensionsBuilder_ == null) { + return dimensions_.size(); + } else { + return dimensionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Dimension getDimensions(int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDimensions(int index, com.google.analytics.data.v1alpha.Dimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.set(index, value); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDimensions( + int index, com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDimensions(com.google.analytics.data.v1alpha.Dimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDimensions(int index, com.google.analytics.data.v1alpha.Dimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(index, value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDimensions( + com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDimensions( + int index, com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDimensions( + java.lang.Iterable values) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); + onChanged(); + } else { + dimensionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDimensions() { + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dimensionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDimensions(int index) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.remove(index); + onChanged(); + } else { + dimensionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Dimension.Builder getDimensionsBuilder(int index) { + return internalGetDimensionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.DimensionOrBuilder getDimensionsOrBuilder(int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDimensionsOrBuilderList() { + if (dimensionsBuilder_ != null) { + return dimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensions_); + } + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Dimension.Builder addDimensionsBuilder() { + return internalGetDimensionsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Dimension.Builder addDimensionsBuilder(int index) { + return internalGetDimensionsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The dimensions requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDimensionsBuilderList() { + return internalGetDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder> + internalGetDimensionsFieldBuilder() { + if (dimensionsBuilder_ == null) { + dimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder>( + dimensions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + dimensions_ = null; + } + return dimensionsBuilder_; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + metrics_ = new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Metric, + com.google.analytics.data.v1alpha.Metric.Builder, + com.google.analytics.data.v1alpha.MetricOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetrics(int index, com.google.analytics.data.v1alpha.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetrics( + int index, com.google.analytics.data.v1alpha.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetrics(com.google.analytics.data.v1alpha.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetrics(int index, com.google.analytics.data.v1alpha.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetrics(com.google.analytics.data.v1alpha.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetrics( + int index, com.google.analytics.data.v1alpha.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Metric.Builder getMetricsBuilder(int index) { + return internalGetMetricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.MetricOrBuilder getMetricsOrBuilder(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder() { + return internalGetMetricsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Metric.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder(int index) { + return internalGetMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Metric.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The metrics requested and displayed.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMetricsBuilderList() { + return internalGetMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Metric, + com.google.analytics.data.v1alpha.Metric.Builder, + com.google.analytics.data.v1alpha.MetricOrBuilder> + internalGetMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Metric, + com.google.analytics.data.v1alpha.Metric.Builder, + com.google.analytics.data.v1alpha.MetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List dateRanges_ = + java.util.Collections.emptyList(); + + private void ensureDateRangesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + dateRanges_ = + new java.util.ArrayList(dateRanges_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DateRange, + com.google.analytics.data.v1alpha.DateRange.Builder, + com.google.analytics.data.v1alpha.DateRangeOrBuilder> + dateRangesBuilder_; + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getDateRangesList() { + if (dateRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dateRanges_); + } else { + return dateRangesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDateRangesCount() { + if (dateRangesBuilder_ == null) { + return dateRanges_.size(); + } else { + return dateRangesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.DateRange getDateRanges(int index) { + if (dateRangesBuilder_ == null) { + return dateRanges_.get(index); + } else { + return dateRangesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDateRanges(int index, com.google.analytics.data.v1alpha.DateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.set(index, value); + onChanged(); + } else { + dateRangesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDateRanges( + int index, com.google.analytics.data.v1alpha.DateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDateRanges(com.google.analytics.data.v1alpha.DateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.add(value); + onChanged(); + } else { + dateRangesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDateRanges(int index, com.google.analytics.data.v1alpha.DateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.add(index, value); + onChanged(); + } else { + dateRangesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDateRanges( + com.google.analytics.data.v1alpha.DateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDateRanges( + int index, com.google.analytics.data.v1alpha.DateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDateRanges( + java.lang.Iterable values) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dateRanges_); + onChanged(); + } else { + dateRangesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDateRanges() { + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + dateRangesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDateRanges(int index) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.remove(index); + onChanged(); + } else { + dateRangesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.DateRange.Builder getDateRangesBuilder(int index) { + return internalGetDateRangesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index) { + if (dateRangesBuilder_ == null) { + return dateRanges_.get(index); + } else { + return dateRangesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDateRangesOrBuilderList() { + if (dateRangesBuilder_ != null) { + return dateRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dateRanges_); + } + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder() { + return internalGetDateRangesFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.DateRange.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(int index) { + return internalGetDateRangesFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.DateRange.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Date ranges of data 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 event data for the overlapping days is
+     * included in the response rows for both date ranges. In a cohort request,
+     * this `dateRanges` must be unspecified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDateRangesBuilderList() { + return internalGetDateRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DateRange, + com.google.analytics.data.v1alpha.DateRange.Builder, + com.google.analytics.data.v1alpha.DateRangeOrBuilder> + internalGetDateRangesFieldBuilder() { + if (dateRangesBuilder_ == null) { + dateRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DateRange, + com.google.analytics.data.v1alpha.DateRange.Builder, + com.google.analytics.data.v1alpha.DateRangeOrBuilder>( + dateRanges_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + dateRanges_ = null; + } + return dateRangesBuilder_; + } + + private com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + dimensionFilterBuilder_; + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dimensionFilter field is set. + */ + public boolean hasDimensionFilter() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dimensionFilter. + */ + public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { + if (dimensionFilterBuilder_ == null) { + return dimensionFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : dimensionFilter_; + } else { + return dimensionFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dimensionFilter_ = value; + } else { + dimensionFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDimensionFilter( + com.google.analytics.data.v1alpha.FilterExpression.Builder builderForValue) { + if (dimensionFilterBuilder_ == null) { + dimensionFilter_ = builderForValue.build(); + } else { + dimensionFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && dimensionFilter_ != null + && dimensionFilter_ + != com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()) { + getDimensionFilterBuilder().mergeFrom(value); + } else { + dimensionFilter_ = value; + } + } else { + dimensionFilterBuilder_.mergeFrom(value); + } + if (dimensionFilter_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDimensionFilter() { + bitField0_ = (bitField0_ & ~0x00000010); + dimensionFilter_ = null; + if (dimensionFilterBuilder_ != null) { + dimensionFilterBuilder_.dispose(); + dimensionFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.FilterExpression.Builder getDimensionFilterBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDimensionFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + if (dimensionFilterBuilder_ != null) { + return dimensionFilterBuilder_.getMessageOrBuilder(); + } else { + return dimensionFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : dimensionFilter_; + } + } + + /** + * + * + *
+     * Optional. Dimension filters let you ask for only specific dimension values
+     * in the report. 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.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + internalGetDimensionFilterFieldBuilder() { + if (dimensionFilterBuilder_ == null) { + dimensionFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( + getDimensionFilter(), getParentForChildren(), isClean()); + dimensionFilter_ = null; + } + return dimensionFilterBuilder_; + } + + private com.google.analytics.data.v1alpha.FilterExpression metricFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + metricFilterBuilder_; + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricFilter field is set. + */ + public boolean hasMetricFilter() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricFilter. + */ + public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() { + if (metricFilterBuilder_ == null) { + return metricFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : metricFilter_; + } else { + return metricFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricFilter(com.google.analytics.data.v1alpha.FilterExpression value) { + if (metricFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricFilter_ = value; + } else { + metricFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricFilter( + com.google.analytics.data.v1alpha.FilterExpression.Builder builderForValue) { + if (metricFilterBuilder_ == null) { + metricFilter_ = builderForValue.build(); + } else { + metricFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetricFilter(com.google.analytics.data.v1alpha.FilterExpression value) { + if (metricFilterBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && metricFilter_ != null + && metricFilter_ + != com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()) { + getMetricFilterBuilder().mergeFrom(value); + } else { + metricFilter_ = value; + } + } else { + metricFilterBuilder_.mergeFrom(value); + } + if (metricFilter_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetricFilter() { + bitField0_ = (bitField0_ & ~0x00000020); + metricFilter_ = null; + if (metricFilterBuilder_ != null) { + metricFilterBuilder_.dispose(); + metricFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.FilterExpression.Builder getMetricFilterBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetMetricFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder() { + if (metricFilterBuilder_ != null) { + return metricFilterBuilder_.getMessageOrBuilder(); + } else { + return metricFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : metricFilter_; + } + } + + /** + * + * + *
+     * Optional. The filter clause of metrics. Applied after aggregating the
+     * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+     * this filter.
+     * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + internalGetMetricFilterFieldBuilder() { + if (metricFilterBuilder_ == null) { + metricFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( + getMetricFilter(), getParentForChildren(), isClean()); + metricFilter_ = null; + } + return metricFilterBuilder_; + } + + private long offset_; + + /** + * + * + *
+     * Optional. The row count of the start row. The first row is counted as row
+     * 0.
+     *
+     * When paging, the first request does not specify offset; or equivalently,
+     * sets offset to 0; the first request returns the first `limit` of rows. The
+     * second request sets offset to the `limit` of the first request; the second
+     * request returns the second `limit` of rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + /** + * + * + *
+     * Optional. The row count of the start row. The first row is counted as row
+     * 0.
+     *
+     * When paging, the first request does not specify offset; or equivalently,
+     * sets offset to 0; the first request returns the first `limit` of rows. The
+     * second request sets offset to the `limit` of the first request; the second
+     * request returns the second `limit` of rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The row count of the start row. The first row is counted as row
+     * 0.
+     *
+     * When paging, the first request does not specify offset; or equivalently,
+     * sets offset to 0; the first request returns the first `limit` of rows. The
+     * second request sets offset to the `limit` of the first request; the second
+     * request returns the second `limit` of rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000040); + offset_ = 0L; + onChanged(); + return this; + } + + private long limit_; + + /** + * + * + *
+     * Optional. The maximum number of rows to return. If unspecified, 10,000 rows
+     * are returned. The API returns a maximum of 250,000 rows per request, no
+     * matter how many you ask for. `limit` must be positive.
+     *
+     * The API can also return fewer rows than the requested `limit`, if there
+     * aren't as many dimension values 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).
+     * 
+ * + * int64 limit = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + /** + * + * + *
+     * Optional. The maximum number of rows to return. If unspecified, 10,000 rows
+     * are returned. The API returns a maximum of 250,000 rows per request, no
+     * matter how many you ask for. `limit` must be positive.
+     *
+     * The API can also return fewer rows than the requested `limit`, if there
+     * aren't as many dimension values 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).
+     * 
+ * + * int64 limit = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(long value) { + + limit_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of rows to return. If unspecified, 10,000 rows
+     * are returned. The API returns a maximum of 250,000 rows per request, no
+     * matter how many you ask for. `limit` must be positive.
+     *
+     * The API can also return fewer rows than the requested `limit`, if there
+     * aren't as many dimension values 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).
+     * 
+ * + * int64 limit = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000080); + limit_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList metricAggregations_ = emptyIntList(); + + private void ensureMetricAggregationsIsMutable() { + if (!metricAggregations_.isModifiable()) { + metricAggregations_ = makeMutableCopy(metricAggregations_); + } + bitField0_ |= 0x00000100; + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the metricAggregations. + */ + public java.util.List + getMetricAggregationsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.analytics.data.v1alpha.MetricAggregation>( + metricAggregations_, metricAggregations_converter_); + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of metricAggregations. + */ + public int getMetricAggregationsCount() { + return metricAggregations_.size(); + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The metricAggregations at the given index. + */ + public com.google.analytics.data.v1alpha.MetricAggregation getMetricAggregations(int index) { + return metricAggregations_converter_.convert(metricAggregations_.getInt(index)); + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The metricAggregations to set. + * @return This builder for chaining. + */ + public Builder setMetricAggregations( + int index, com.google.analytics.data.v1alpha.MetricAggregation value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricAggregationsIsMutable(); + metricAggregations_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The metricAggregations to add. + * @return This builder for chaining. + */ + public Builder addMetricAggregations( + com.google.analytics.data.v1alpha.MetricAggregation value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricAggregationsIsMutable(); + metricAggregations_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The metricAggregations to add. + * @return This builder for chaining. + */ + public Builder addAllMetricAggregations( + java.lang.Iterable values) { + ensureMetricAggregationsIsMutable(); + for (com.google.analytics.data.v1alpha.MetricAggregation value : values) { + metricAggregations_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetricAggregations() { + metricAggregations_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for metricAggregations. + */ + public java.util.List getMetricAggregationsValueList() { + metricAggregations_.makeImmutable(); + return metricAggregations_; + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of metricAggregations at the given index. + */ + public int getMetricAggregationsValue(int index) { + return metricAggregations_.getInt(index); + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for metricAggregations to set. + * @return This builder for chaining. + */ + public Builder setMetricAggregationsValue(int index, int value) { + ensureMetricAggregationsIsMutable(); + metricAggregations_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for metricAggregations to add. + * @return This builder for chaining. + */ + public Builder addMetricAggregationsValue(int value) { + ensureMetricAggregationsIsMutable(); + metricAggregations_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+     * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+     * Aggregates including both comparisons and multiple date ranges will
+     * be aggregated based on the date ranges.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for metricAggregations to add. + * @return This builder for chaining. + */ + public Builder addAllMetricAggregationsValue(java.lang.Iterable values) { + ensureMetricAggregationsIsMutable(); + for (int value : values) { + metricAggregations_.addInt(value); + } + onChanged(); + return this; + } + + private java.util.List orderBys_ = + java.util.Collections.emptyList(); + + private void ensureOrderBysIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + orderBys_ = new java.util.ArrayList(orderBys_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.OrderBy, + com.google.analytics.data.v1alpha.OrderBy.Builder, + com.google.analytics.data.v1alpha.OrderByOrBuilder> + orderBysBuilder_; + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getOrderBysList() { + if (orderBysBuilder_ == null) { + return java.util.Collections.unmodifiableList(orderBys_); + } else { + return orderBysBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getOrderBysCount() { + if (orderBysBuilder_ == null) { + return orderBys_.size(); + } else { + return orderBysBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index) { + if (orderBysBuilder_ == null) { + return orderBys_.get(index); + } else { + return orderBysBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOrderBys(int index, com.google.analytics.data.v1alpha.OrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.set(index, value); + onChanged(); + } else { + orderBysBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOrderBys( + int index, com.google.analytics.data.v1alpha.OrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.set(index, builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOrderBys(com.google.analytics.data.v1alpha.OrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.add(value); + onChanged(); + } else { + orderBysBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOrderBys(int index, com.google.analytics.data.v1alpha.OrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.add(index, value); + onChanged(); + } else { + orderBysBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOrderBys(com.google.analytics.data.v1alpha.OrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOrderBys( + int index, com.google.analytics.data.v1alpha.OrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(index, builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllOrderBys( + java.lang.Iterable values) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderBys_); + onChanged(); + } else { + orderBysBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOrderBys() { + if (orderBysBuilder_ == null) { + orderBys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + orderBysBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeOrderBys(int index) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.remove(index); + onChanged(); + } else { + orderBysBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.OrderBy.Builder getOrderBysBuilder(int index) { + return internalGetOrderBysFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.OrderByOrBuilder getOrderBysOrBuilder(int index) { + if (orderBysBuilder_ == null) { + return orderBys_.get(index); + } else { + return orderBysBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getOrderBysOrBuilderList() { + if (orderBysBuilder_ != null) { + return orderBysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orderBys_); + } + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder() { + return internalGetOrderBysFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.OrderBy.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder(int index) { + return internalGetOrderBysFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.OrderBy.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Specifies how rows are ordered in the response.
+     * Requests including both comparisons and multiple date ranges will
+     * have order bys applied on the comparisons.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getOrderBysBuilderList() { + return internalGetOrderBysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.OrderBy, + com.google.analytics.data.v1alpha.OrderBy.Builder, + com.google.analytics.data.v1alpha.OrderByOrBuilder> + internalGetOrderBysFieldBuilder() { + if (orderBysBuilder_ == null) { + orderBysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.OrderBy, + com.google.analytics.data.v1alpha.OrderBy.Builder, + com.google.analytics.data.v1alpha.OrderByOrBuilder>( + orderBys_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + orderBys_ = null; + } + return orderBysBuilder_; + } + + private java.lang.Object currencyCode_ = ""; + + /** + * + * + *
+     * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+     * If the field is empty, the report uses the property's default currency.
+     * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The currencyCode. + */ + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+     * If the field is empty, the report uses the property's default currency.
+     * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for currencyCode. + */ + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+     * If the field is empty, the report uses the property's default currency.
+     * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + currencyCode_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+     * If the field is empty, the report uses the property's default currency.
+     * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCurrencyCode() { + currencyCode_ = getDefaultInstance().getCurrencyCode(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+     * If the field is empty, the report uses the property's default currency.
+     * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.CohortSpec cohortSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.CohortSpec, + com.google.analytics.data.v1alpha.CohortSpec.Builder, + com.google.analytics.data.v1alpha.CohortSpecOrBuilder> + cohortSpecBuilder_; + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cohortSpec field is set. + */ + public boolean hasCohortSpec() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cohortSpec. + */ + public com.google.analytics.data.v1alpha.CohortSpec getCohortSpec() { + if (cohortSpecBuilder_ == null) { + return cohortSpec_ == null + ? com.google.analytics.data.v1alpha.CohortSpec.getDefaultInstance() + : cohortSpec_; + } else { + return cohortSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCohortSpec(com.google.analytics.data.v1alpha.CohortSpec value) { + if (cohortSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cohortSpec_ = value; + } else { + cohortSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCohortSpec( + com.google.analytics.data.v1alpha.CohortSpec.Builder builderForValue) { + if (cohortSpecBuilder_ == null) { + cohortSpec_ = builderForValue.build(); + } else { + cohortSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCohortSpec(com.google.analytics.data.v1alpha.CohortSpec value) { + if (cohortSpecBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && cohortSpec_ != null + && cohortSpec_ != com.google.analytics.data.v1alpha.CohortSpec.getDefaultInstance()) { + getCohortSpecBuilder().mergeFrom(value); + } else { + cohortSpec_ = value; + } + } else { + cohortSpecBuilder_.mergeFrom(value); + } + if (cohortSpec_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCohortSpec() { + bitField0_ = (bitField0_ & ~0x00000800); + cohortSpec_ = null; + if (cohortSpecBuilder_ != null) { + cohortSpecBuilder_.dispose(); + cohortSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.CohortSpec.Builder getCohortSpecBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetCohortSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuilder() { + if (cohortSpecBuilder_ != null) { + return cohortSpecBuilder_.getMessageOrBuilder(); + } else { + return cohortSpec_ == null + ? com.google.analytics.data.v1alpha.CohortSpec.getDefaultInstance() + : cohortSpec_; + } + } + + /** + * + * + *
+     * Optional. Cohort group associated with this request. If there is a cohort
+     * group in the request the 'cohort' dimension must be present.
+     * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.CohortSpec, + com.google.analytics.data.v1alpha.CohortSpec.Builder, + com.google.analytics.data.v1alpha.CohortSpecOrBuilder> + internalGetCohortSpecFieldBuilder() { + if (cohortSpecBuilder_ == null) { + cohortSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.CohortSpec, + com.google.analytics.data.v1alpha.CohortSpec.Builder, + com.google.analytics.data.v1alpha.CohortSpecOrBuilder>( + getCohortSpec(), getParentForChildren(), isClean()); + cohortSpec_ = null; + } + return cohortSpecBuilder_; + } + + private boolean keepEmptyRows_; + + /** + * + * + *
+     * Optional. If false or unspecified, each row with all metrics equal to 0
+     * will not be returned. If true, these rows will be returned if they are not
+     * separately removed by a filter.
+     *
+     * Regardless of this `keep_empty_rows` setting, only data recorded by the
+     * Google Analytics property can be displayed in a report.
+     *
+     * For example if a property never logs a `purchase` event, then a query for
+     * the `eventName` dimension and  `eventCount` metric will not have a row
+     * eventName: "purchase" and eventCount: 0.
+     * 
+ * + * bool keep_empty_rows = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keepEmptyRows. + */ + @java.lang.Override + public boolean getKeepEmptyRows() { + return keepEmptyRows_; + } + + /** + * + * + *
+     * Optional. If false or unspecified, each row with all metrics equal to 0
+     * will not be returned. If true, these rows will be returned if they are not
+     * separately removed by a filter.
+     *
+     * Regardless of this `keep_empty_rows` setting, only data recorded by the
+     * Google Analytics property can be displayed in a report.
+     *
+     * For example if a property never logs a `purchase` event, then a query for
+     * the `eventName` dimension and  `eventCount` metric will not have a row
+     * eventName: "purchase" and eventCount: 0.
+     * 
+ * + * bool keep_empty_rows = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The keepEmptyRows to set. + * @return This builder for chaining. + */ + public Builder setKeepEmptyRows(boolean value) { + + keepEmptyRows_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If false or unspecified, each row with all metrics equal to 0
+     * will not be returned. If true, these rows will be returned if they are not
+     * separately removed by a filter.
+     *
+     * Regardless of this `keep_empty_rows` setting, only data recorded by the
+     * Google Analytics property can be displayed in a report.
+     *
+     * For example if a property never logs a `purchase` event, then a query for
+     * the `eventName` dimension and  `eventCount` metric will not have a row
+     * eventName: "purchase" and eventCount: 0.
+     * 
+ * + * bool keep_empty_rows = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKeepEmptyRows() { + bitField0_ = (bitField0_ & ~0x00001000); + keepEmptyRows_ = false; + onChanged(); + return this; + } + + private boolean returnPropertyQuota_; + + /** + * + * + *
+     * Optional. Toggles whether to return the current state of this Google
+     * Analytics property's quota. Quota is returned in
+     * [PropertyQuota](#PropertyQuota).
+     * 
+ * + * bool return_property_quota = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPropertyQuota. + */ + @java.lang.Override + public boolean getReturnPropertyQuota() { + return returnPropertyQuota_; + } + + /** + * + * + *
+     * Optional. Toggles whether to return the current state of this Google
+     * Analytics property's quota. Quota is returned in
+     * [PropertyQuota](#PropertyQuota).
+     * 
+ * + * bool return_property_quota = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPropertyQuota to set. + * @return This builder for chaining. + */ + public Builder setReturnPropertyQuota(boolean value) { + + returnPropertyQuota_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Toggles whether to return the current state of this Google
+     * Analytics property's quota. Quota is returned in
+     * [PropertyQuota](#PropertyQuota).
+     * 
+ * + * bool return_property_quota = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPropertyQuota() { + bitField0_ = (bitField0_ & ~0x00002000); + returnPropertyQuota_ = false; + onChanged(); + return this; + } + + private java.util.List comparisons_ = + java.util.Collections.emptyList(); + + private void ensureComparisonsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + comparisons_ = + new java.util.ArrayList(comparisons_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Comparison, + com.google.analytics.data.v1alpha.Comparison.Builder, + com.google.analytics.data.v1alpha.ComparisonOrBuilder> + comparisonsBuilder_; + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getComparisonsList() { + if (comparisonsBuilder_ == null) { + return java.util.Collections.unmodifiableList(comparisons_); + } else { + return comparisonsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getComparisonsCount() { + if (comparisonsBuilder_ == null) { + return comparisons_.size(); + } else { + return comparisonsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Comparison getComparisons(int index) { + if (comparisonsBuilder_ == null) { + return comparisons_.get(index); + } else { + return comparisonsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComparisons(int index, com.google.analytics.data.v1alpha.Comparison value) { + if (comparisonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonsIsMutable(); + comparisons_.set(index, value); + onChanged(); + } else { + comparisonsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComparisons( + int index, com.google.analytics.data.v1alpha.Comparison.Builder builderForValue) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.set(index, builderForValue.build()); + onChanged(); + } else { + comparisonsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComparisons(com.google.analytics.data.v1alpha.Comparison value) { + if (comparisonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonsIsMutable(); + comparisons_.add(value); + onChanged(); + } else { + comparisonsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComparisons(int index, com.google.analytics.data.v1alpha.Comparison value) { + if (comparisonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonsIsMutable(); + comparisons_.add(index, value); + onChanged(); + } else { + comparisonsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComparisons( + com.google.analytics.data.v1alpha.Comparison.Builder builderForValue) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.add(builderForValue.build()); + onChanged(); + } else { + comparisonsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComparisons( + int index, com.google.analytics.data.v1alpha.Comparison.Builder builderForValue) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.add(index, builderForValue.build()); + onChanged(); + } else { + comparisonsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllComparisons( + java.lang.Iterable values) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, comparisons_); + onChanged(); + } else { + comparisonsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearComparisons() { + if (comparisonsBuilder_ == null) { + comparisons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + comparisonsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeComparisons(int index) { + if (comparisonsBuilder_ == null) { + ensureComparisonsIsMutable(); + comparisons_.remove(index); + onChanged(); + } else { + comparisonsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Comparison.Builder getComparisonsBuilder(int index) { + return internalGetComparisonsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.ComparisonOrBuilder getComparisonsOrBuilder( + int index) { + if (comparisonsBuilder_ == null) { + return comparisons_.get(index); + } else { + return comparisonsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getComparisonsOrBuilderList() { + if (comparisonsBuilder_ != null) { + return comparisonsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(comparisons_); + } + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Comparison.Builder addComparisonsBuilder() { + return internalGetComparisonsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Comparison.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.Comparison.Builder addComparisonsBuilder(int index) { + return internalGetComparisonsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Comparison.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The configuration of comparisons requested and displayed. The
+     * request only requires a comparisons field in order to receive a comparison
+     * column in the response.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getComparisonsBuilderList() { + return internalGetComparisonsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Comparison, + com.google.analytics.data.v1alpha.Comparison.Builder, + com.google.analytics.data.v1alpha.ComparisonOrBuilder> + internalGetComparisonsFieldBuilder() { + if (comparisonsBuilder_ == null) { + comparisonsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Comparison, + com.google.analytics.data.v1alpha.Comparison.Builder, + com.google.analytics.data.v1alpha.ComparisonOrBuilder>( + comparisons_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + comparisons_ = null; + } + return comparisonsBuilder_; + } + + private com.google.analytics.data.v1alpha.ConversionSpec conversionSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.ConversionSpec, + com.google.analytics.data.v1alpha.ConversionSpec.Builder, + com.google.analytics.data.v1alpha.ConversionSpecOrBuilder> + conversionSpecBuilder_; + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversionSpec field is set. + */ + public boolean hasConversionSpec() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversionSpec. + */ + public com.google.analytics.data.v1alpha.ConversionSpec getConversionSpec() { + if (conversionSpecBuilder_ == null) { + return conversionSpec_ == null + ? com.google.analytics.data.v1alpha.ConversionSpec.getDefaultInstance() + : conversionSpec_; + } else { + return conversionSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConversionSpec(com.google.analytics.data.v1alpha.ConversionSpec value) { + if (conversionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionSpec_ = value; + } else { + conversionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConversionSpec( + com.google.analytics.data.v1alpha.ConversionSpec.Builder builderForValue) { + if (conversionSpecBuilder_ == null) { + conversionSpec_ = builderForValue.build(); + } else { + conversionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConversionSpec(com.google.analytics.data.v1alpha.ConversionSpec value) { + if (conversionSpecBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && conversionSpec_ != null + && conversionSpec_ + != com.google.analytics.data.v1alpha.ConversionSpec.getDefaultInstance()) { + getConversionSpecBuilder().mergeFrom(value); + } else { + conversionSpec_ = value; + } + } else { + conversionSpecBuilder_.mergeFrom(value); + } + if (conversionSpec_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConversionSpec() { + bitField0_ = (bitField0_ & ~0x00008000); + conversionSpec_ = null; + if (conversionSpecBuilder_ != null) { + conversionSpecBuilder_.dispose(); + conversionSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.ConversionSpec.Builder getConversionSpecBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetConversionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.data.v1alpha.ConversionSpecOrBuilder getConversionSpecOrBuilder() { + if (conversionSpecBuilder_ != null) { + return conversionSpecBuilder_.getMessageOrBuilder(); + } else { + return conversionSpec_ == null + ? com.google.analytics.data.v1alpha.ConversionSpec.getDefaultInstance() + : conversionSpec_; + } + } + + /** + * + * + *
+     * Optional. Controls conversion reporting. This field is optional. If this
+     * field is set or any conversion metrics are requested, the report will be a
+     * conversion report.
+     * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.ConversionSpec, + com.google.analytics.data.v1alpha.ConversionSpec.Builder, + com.google.analytics.data.v1alpha.ConversionSpecOrBuilder> + internalGetConversionSpecFieldBuilder() { + if (conversionSpecBuilder_ == null) { + conversionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.ConversionSpec, + com.google.analytics.data.v1alpha.ConversionSpec.Builder, + com.google.analytics.data.v1alpha.ConversionSpecOrBuilder>( + getConversionSpec(), getParentForChildren(), isClean()); + conversionSpec_ = null; + } + return conversionSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.RunReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunReportRequest) + private static final com.google.analytics.data.v1alpha.RunReportRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunReportRequest(); + } + + public static com.google.analytics.data.v1alpha.RunReportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunReportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java new file mode 100644 index 000000000000..b1414404a669 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java @@ -0,0 +1,837 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/analytics_data_api.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface RunReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.RunReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A Google Analytics property identifier whose events are tracked.
+   * Specified in the URL path and not the body. To learn more, see [where to
+   * find your Property
+   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+   * Within a batch request, this property should either be unspecified or
+   * consistent with the batch-level property.
+   *
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + java.lang.String getProperty(); + + /** + * + * + *
+   * Required. A Google Analytics property identifier whose events are tracked.
+   * Specified in the URL path and not the body. To learn more, see [where to
+   * find your Property
+   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
+   * Within a batch request, this property should either be unspecified or
+   * consistent with the batch-level property.
+   *
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getDimensionsList(); + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.Dimension getDimensions(int index); + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDimensionsCount(); + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDimensionsOrBuilderList(); + + /** + * + * + *
+   * Optional. The dimensions requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.DimensionOrBuilder getDimensionsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMetricsList(); + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.Metric getMetrics(int index); + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMetricsCount(); + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMetricsOrBuilderList(); + + /** + * + * + *
+   * Optional. The metrics requested and displayed.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.MetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getDateRangesList(); + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.DateRange getDateRanges(int index); + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDateRangesCount(); + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDateRangesOrBuilderList(); + + /** + * + * + *
+   * Optional. Date ranges of data 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 event data for the overlapping days is
+   * included in the response rows for both date ranges. In a cohort request,
+   * this `dateRanges` must be unspecified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Dimension filters let you ask for only specific dimension values
+   * in the report. 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.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dimensionFilter field is set. + */ + boolean hasDimensionFilter(); + + /** + * + * + *
+   * Optional. Dimension filters let you ask for only specific dimension values
+   * in the report. 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.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dimensionFilter. + */ + com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter(); + + /** + * + * + *
+   * Optional. Dimension filters let you ask for only specific dimension values
+   * in the report. 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.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder(); + + /** + * + * + *
+   * Optional. The filter clause of metrics. Applied after aggregating the
+   * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+   * this filter.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricFilter field is set. + */ + boolean hasMetricFilter(); + + /** + * + * + *
+   * Optional. The filter clause of metrics. Applied after aggregating the
+   * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+   * this filter.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricFilter. + */ + com.google.analytics.data.v1alpha.FilterExpression getMetricFilter(); + + /** + * + * + *
+   * Optional. The filter clause of metrics. Applied after aggregating the
+   * report's rows, similar to SQL having-clause. Dimensions cannot be used in
+   * this filter.
+   * 
+ * + * + * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder(); + + /** + * + * + *
+   * Optional. The row count of the start row. The first row is counted as row
+   * 0.
+   *
+   * When paging, the first request does not specify offset; or equivalently,
+   * sets offset to 0; the first request returns the first `limit` of rows. The
+   * second request sets offset to the `limit` of the first request; the second
+   * request returns the second `limit` of rows.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 offset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + long getOffset(); + + /** + * + * + *
+   * Optional. The maximum number of rows to return. If unspecified, 10,000 rows
+   * are returned. The API returns a maximum of 250,000 rows per request, no
+   * matter how many you ask for. `limit` must be positive.
+   *
+   * The API can also return fewer rows than the requested `limit`, if there
+   * aren't as many dimension values 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).
+   * 
+ * + * int64 limit = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The limit. + */ + long getLimit(); + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the metricAggregations. + */ + java.util.List getMetricAggregationsList(); + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of metricAggregations. + */ + int getMetricAggregationsCount(); + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The metricAggregations at the given index. + */ + com.google.analytics.data.v1alpha.MetricAggregation getMetricAggregations(int index); + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for metricAggregations. + */ + java.util.List getMetricAggregationsValueList(); + + /** + * + * + *
+   * Optional. Aggregation of metrics. Aggregated metric values will be shown in
+   * rows where the dimension_values are set to "RESERVED_(MetricAggregation)".
+   * Aggregates including both comparisons and multiple date ranges will
+   * be aggregated based on the date ranges.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of metricAggregations at the given index. + */ + int getMetricAggregationsValue(int index); + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getOrderBysList(); + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index); + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getOrderBysCount(); + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getOrderBysOrBuilderList(); + + /** + * + * + *
+   * Optional. Specifies how rows are ordered in the response.
+   * Requests including both comparisons and multiple date ranges will
+   * have order bys applied on the comparisons.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.OrderByOrBuilder getOrderBysOrBuilder(int index); + + /** + * + * + *
+   * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+   * If the field is empty, the report uses the property's default currency.
+   * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The currencyCode. + */ + java.lang.String getCurrencyCode(); + + /** + * + * + *
+   * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
+   * If the field is empty, the report uses the property's default currency.
+   * 
+ * + * string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for currencyCode. + */ + com.google.protobuf.ByteString getCurrencyCodeBytes(); + + /** + * + * + *
+   * Optional. Cohort group associated with this request. If there is a cohort
+   * group in the request the 'cohort' dimension must be present.
+   * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cohortSpec field is set. + */ + boolean hasCohortSpec(); + + /** + * + * + *
+   * Optional. Cohort group associated with this request. If there is a cohort
+   * group in the request the 'cohort' dimension must be present.
+   * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cohortSpec. + */ + com.google.analytics.data.v1alpha.CohortSpec getCohortSpec(); + + /** + * + * + *
+   * Optional. Cohort group associated with this request. If there is a cohort
+   * group in the request the 'cohort' dimension must be present.
+   * 
+ * + * + * .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuilder(); + + /** + * + * + *
+   * Optional. If false or unspecified, each row with all metrics equal to 0
+   * will not be returned. If true, these rows will be returned if they are not
+   * separately removed by a filter.
+   *
+   * Regardless of this `keep_empty_rows` setting, only data recorded by the
+   * Google Analytics property can be displayed in a report.
+   *
+   * For example if a property never logs a `purchase` event, then a query for
+   * the `eventName` dimension and  `eventCount` metric will not have a row
+   * eventName: "purchase" and eventCount: 0.
+   * 
+ * + * bool keep_empty_rows = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keepEmptyRows. + */ + boolean getKeepEmptyRows(); + + /** + * + * + *
+   * Optional. Toggles whether to return the current state of this Google
+   * Analytics property's quota. Quota is returned in
+   * [PropertyQuota](#PropertyQuota).
+   * 
+ * + * bool return_property_quota = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPropertyQuota. + */ + boolean getReturnPropertyQuota(); + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getComparisonsList(); + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.Comparison getComparisons(int index); + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getComparisonsCount(); + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getComparisonsOrBuilderList(); + + /** + * + * + *
+   * Optional. The configuration of comparisons requested and displayed. The
+   * request only requires a comparisons field in order to receive a comparison
+   * column in the response.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.ComparisonOrBuilder getComparisonsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Controls conversion reporting. This field is optional. If this
+   * field is set or any conversion metrics are requested, the report will be a
+   * conversion report.
+   * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversionSpec field is set. + */ + boolean hasConversionSpec(); + + /** + * + * + *
+   * Optional. Controls conversion reporting. This field is optional. If this
+   * field is set or any conversion metrics are requested, the report will be a
+   * conversion report.
+   * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversionSpec. + */ + com.google.analytics.data.v1alpha.ConversionSpec getConversionSpec(); + + /** + * + * + *
+   * Optional. Controls conversion reporting. This field is optional. If this
+   * field is set or any conversion metrics are requested, the report will be a
+   * conversion report.
+   * 
+ * + * + * .google.analytics.data.v1alpha.ConversionSpec conversion_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.data.v1alpha.ConversionSpecOrBuilder getConversionSpecOrBuilder(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java new file mode 100644 index 000000000000..89696661ea2a --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java @@ -0,0 +1,4684 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/analytics_data_api.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The response report table corresponding to a request.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.RunReportResponse} + */ +@com.google.protobuf.Generated +public final class RunReportResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.RunReportResponse) + RunReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RunReportResponse"); + } + + // Use RunReportResponse.newBuilder() to construct. + private RunReportResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RunReportResponse() { + dimensionHeaders_ = java.util.Collections.emptyList(); + metricHeaders_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + totals_ = java.util.Collections.emptyList(); + maximums_ = java.util.Collections.emptyList(); + minimums_ = java.util.Collections.emptyList(); + kind_ = ""; + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.RunReportResponse.class, + com.google.analytics.data.v1alpha.RunReportResponse.Builder.class); + } + + private int bitField0_; + public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dimensionHeaders_; + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public java.util.List + getDimensionHeadersList() { + return dimensionHeaders_; + } + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public java.util.List + getDimensionHeadersOrBuilderList() { + return dimensionHeaders_; + } + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public int getDimensionHeadersCount() { + return dimensionHeaders_.size(); + } + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) { + return dimensionHeaders_.get(index); + } + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( + int index) { + return dimensionHeaders_.get(index); + } + + public static final int METRIC_HEADERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List metricHeaders_; + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List getMetricHeadersList() { + return metricHeaders_; + } + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List + getMetricHeadersOrBuilderList() { + return metricHeaders_; + } + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public int getMetricHeadersCount() { + return metricHeaders_.size(); + } + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index) { + return metricHeaders_.get(index); + } + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + return metricHeaders_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List rows_; + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Row getRows(int index) { + return rows_.get(index); + } + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index) { + return rows_.get(index); + } + + public static final int TOTALS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List totals_; + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + @java.lang.Override + public java.util.List getTotalsList() { + return totals_; + } + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + @java.lang.Override + public java.util.List + getTotalsOrBuilderList() { + return totals_; + } + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + @java.lang.Override + public int getTotalsCount() { + return totals_.size(); + } + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Row getTotals(int index) { + return totals_.get(index); + } + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.RowOrBuilder getTotalsOrBuilder(int index) { + return totals_.get(index); + } + + public static final int MAXIMUMS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List maximums_; + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + @java.lang.Override + public java.util.List getMaximumsList() { + return maximums_; + } + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + @java.lang.Override + public java.util.List + getMaximumsOrBuilderList() { + return maximums_; + } + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + @java.lang.Override + public int getMaximumsCount() { + return maximums_.size(); + } + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Row getMaximums(int index) { + return maximums_.get(index); + } + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.RowOrBuilder getMaximumsOrBuilder(int index) { + return maximums_.get(index); + } + + public static final int MINIMUMS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List minimums_; + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + @java.lang.Override + public java.util.List getMinimumsList() { + return minimums_; + } + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + @java.lang.Override + public java.util.List + getMinimumsOrBuilderList() { + return minimums_; + } + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + @java.lang.Override + public int getMinimumsCount() { + return minimums_.size(); + } + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Row getMinimums(int index) { + return minimums_.get(index); + } + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.RowOrBuilder getMinimumsOrBuilder(int index) { + return minimums_.get(index); + } + + public static final int ROW_COUNT_FIELD_NUMBER = 7; + private int rowCount_ = 0; + + /** + * + * + *
+   * The total number of rows in the query result, regardless of the number of
+   * rows returned in the response. For example if a query returns 175 rows and
+   * includes limit = 50 in the API request, the response will contain row_count
+   * = 175 but only 50 rows.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int32 row_count = 7; + * + * @return The rowCount. + */ + @java.lang.Override + public int getRowCount() { + return rowCount_; + } + + public static final int METADATA_FIELD_NUMBER = 8; + private com.google.analytics.data.v1alpha.ResponseMetaData metadata_; + + /** + * + * + *
+   * Metadata for the report.
+   * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Metadata for the report.
+   * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ResponseMetaData getMetadata() { + return metadata_ == null + ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
+   * Metadata for the report.
+   * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() + : metadata_; + } + + public static final int PROPERTY_QUOTA_FIELD_NUMBER = 9; + private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; + + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + * + * @return Whether the propertyQuota field is set. + */ + @java.lang.Override + public boolean hasPropertyQuota() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + * + * @return The propertyQuota. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { + return propertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : propertyQuota_; + } + + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { + return propertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : propertyQuota_; + } + + public static final int KIND_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Identifies what kind of resource this message is. This `kind` is always the
+   * fixed string "analyticsData#runReport". Useful to distinguish between
+   * response types in JSON.
+   * 
+ * + * string kind = 10; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifies what kind of resource this message is. This `kind` is always the
+   * fixed string "analyticsData#runReport". Useful to distinguish between
+   * response types in JSON.
+   * 
+ * + * string kind = 10; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * optional string next_page_token = 11; + * + * @return Whether the nextPageToken field is set. + */ + @java.lang.Override + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * optional string next_page_token = 11; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * optional string next_page_token = 11; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dimensionHeaders_.size(); i++) { + output.writeMessage(1, dimensionHeaders_.get(i)); + } + for (int i = 0; i < metricHeaders_.size(); i++) { + output.writeMessage(2, metricHeaders_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(3, rows_.get(i)); + } + for (int i = 0; i < totals_.size(); i++) { + output.writeMessage(4, totals_.get(i)); + } + for (int i = 0; i < maximums_.size(); i++) { + output.writeMessage(5, maximums_.get(i)); + } + for (int i = 0; i < minimums_.size(); i++) { + output.writeMessage(6, minimums_.get(i)); + } + if (rowCount_ != 0) { + output.writeInt32(7, rowCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getPropertyQuota()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kind_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, kind_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dimensionHeaders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionHeaders_.get(i)); + } + for (int i = 0; i < metricHeaders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricHeaders_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rows_.get(i)); + } + for (int i = 0; i < totals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, totals_.get(i)); + } + for (int i = 0; i < maximums_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, maximums_.get(i)); + } + for (int i = 0; i < minimums_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, minimums_.get(i)); + } + if (rowCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, rowCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getPropertyQuota()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kind_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, kind_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.RunReportResponse)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.RunReportResponse other = + (com.google.analytics.data.v1alpha.RunReportResponse) obj; + + if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; + if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (!getTotalsList().equals(other.getTotalsList())) return false; + if (!getMaximumsList().equals(other.getMaximumsList())) return false; + if (!getMinimumsList().equals(other.getMinimumsList())) return false; + if (getRowCount() != other.getRowCount()) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (hasPropertyQuota() != other.hasPropertyQuota()) return false; + if (hasPropertyQuota()) { + if (!getPropertyQuota().equals(other.getPropertyQuota())) return false; + } + if (!getKind().equals(other.getKind())) return false; + if (hasNextPageToken() != other.hasNextPageToken()) return false; + if (hasNextPageToken()) { + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDimensionHeadersCount() > 0) { + hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionHeadersList().hashCode(); + } + if (getMetricHeadersCount() > 0) { + hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getMetricHeadersList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + if (getTotalsCount() > 0) { + hash = (37 * hash) + TOTALS_FIELD_NUMBER; + hash = (53 * hash) + getTotalsList().hashCode(); + } + if (getMaximumsCount() > 0) { + hash = (37 * hash) + MAXIMUMS_FIELD_NUMBER; + hash = (53 * hash) + getMaximumsList().hashCode(); + } + if (getMinimumsCount() > 0) { + hash = (37 * hash) + MINIMUMS_FIELD_NUMBER; + hash = (53 * hash) + getMinimumsList().hashCode(); + } + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRowCount(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasPropertyQuota()) { + hash = (37 * hash) + PROPERTY_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + getPropertyQuota().hashCode(); + } + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + if (hasNextPageToken()) { + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.data.v1alpha.RunReportResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The response report table corresponding to a request.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.RunReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunReportResponse) + com.google.analytics.data.v1alpha.RunReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.RunReportResponse.class, + com.google.analytics.data.v1alpha.RunReportResponse.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.RunReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDimensionHeadersFieldBuilder(); + internalGetMetricHeadersFieldBuilder(); + internalGetRowsFieldBuilder(); + internalGetTotalsFieldBuilder(); + internalGetMaximumsFieldBuilder(); + internalGetMinimumsFieldBuilder(); + internalGetMetadataFieldBuilder(); + internalGetPropertyQuotaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dimensionHeadersBuilder_ == null) { + dimensionHeaders_ = java.util.Collections.emptyList(); + } else { + dimensionHeaders_ = null; + dimensionHeadersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (metricHeadersBuilder_ == null) { + metricHeaders_ = java.util.Collections.emptyList(); + } else { + metricHeaders_ = null; + metricHeadersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + } else { + rows_ = null; + rowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (totalsBuilder_ == null) { + totals_ = java.util.Collections.emptyList(); + } else { + totals_ = null; + totalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (maximumsBuilder_ == null) { + maximums_ = java.util.Collections.emptyList(); + } else { + maximums_ = null; + maximumsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (minimumsBuilder_ == null) { + minimums_ = java.util.Collections.emptyList(); + } else { + minimums_ = null; + minimumsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + rowCount_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + propertyQuota_ = null; + if (propertyQuotaBuilder_ != null) { + propertyQuotaBuilder_.dispose(); + propertyQuotaBuilder_ = null; + } + kind_ = ""; + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunReportResponse getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.RunReportResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunReportResponse build() { + com.google.analytics.data.v1alpha.RunReportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunReportResponse buildPartial() { + com.google.analytics.data.v1alpha.RunReportResponse result = + new com.google.analytics.data.v1alpha.RunReportResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.data.v1alpha.RunReportResponse result) { + if (dimensionHeadersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensionHeaders_ = dimensionHeaders_; + } else { + result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); + } + if (metricHeadersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metricHeaders_ = metricHeaders_; + } else { + result.metricHeaders_ = metricHeadersBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + if (totalsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + totals_ = java.util.Collections.unmodifiableList(totals_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.totals_ = totals_; + } else { + result.totals_ = totalsBuilder_.build(); + } + if (maximumsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + maximums_ = java.util.Collections.unmodifiableList(maximums_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.maximums_ = maximums_; + } else { + result.maximums_ = maximumsBuilder_.build(); + } + if (minimumsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + minimums_ = java.util.Collections.unmodifiableList(minimums_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.minimums_ = minimums_; + } else { + result.minimums_ = minimumsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.data.v1alpha.RunReportResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rowCount_ = rowCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.propertyQuota_ = + propertyQuotaBuilder_ == null ? propertyQuota_ : propertyQuotaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.kind_ = kind_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.nextPageToken_ = nextPageToken_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.RunReportResponse) { + return mergeFrom((com.google.analytics.data.v1alpha.RunReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse other) { + if (other == com.google.analytics.data.v1alpha.RunReportResponse.getDefaultInstance()) + return this; + if (dimensionHeadersBuilder_ == null) { + if (!other.dimensionHeaders_.isEmpty()) { + if (dimensionHeaders_.isEmpty()) { + dimensionHeaders_ = other.dimensionHeaders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.addAll(other.dimensionHeaders_); + } + onChanged(); + } + } else { + if (!other.dimensionHeaders_.isEmpty()) { + if (dimensionHeadersBuilder_.isEmpty()) { + dimensionHeadersBuilder_.dispose(); + dimensionHeadersBuilder_ = null; + dimensionHeaders_ = other.dimensionHeaders_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionHeadersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDimensionHeadersFieldBuilder() + : null; + } else { + dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); + } + } + } + if (metricHeadersBuilder_ == null) { + if (!other.metricHeaders_.isEmpty()) { + if (metricHeaders_.isEmpty()) { + metricHeaders_ = other.metricHeaders_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricHeadersIsMutable(); + metricHeaders_.addAll(other.metricHeaders_); + } + onChanged(); + } + } else { + if (!other.metricHeaders_.isEmpty()) { + if (metricHeadersBuilder_.isEmpty()) { + metricHeadersBuilder_.dispose(); + metricHeadersBuilder_ = null; + metricHeaders_ = other.metricHeaders_; + bitField0_ = (bitField0_ & ~0x00000002); + metricHeadersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricHeadersFieldBuilder() + : null; + } else { + metricHeadersBuilder_.addAllMessages(other.metricHeaders_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000004); + rowsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRowsFieldBuilder() + : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + if (totalsBuilder_ == null) { + if (!other.totals_.isEmpty()) { + if (totals_.isEmpty()) { + totals_ = other.totals_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTotalsIsMutable(); + totals_.addAll(other.totals_); + } + onChanged(); + } + } else { + if (!other.totals_.isEmpty()) { + if (totalsBuilder_.isEmpty()) { + totalsBuilder_.dispose(); + totalsBuilder_ = null; + totals_ = other.totals_; + bitField0_ = (bitField0_ & ~0x00000008); + totalsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTotalsFieldBuilder() + : null; + } else { + totalsBuilder_.addAllMessages(other.totals_); + } + } + } + if (maximumsBuilder_ == null) { + if (!other.maximums_.isEmpty()) { + if (maximums_.isEmpty()) { + maximums_ = other.maximums_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureMaximumsIsMutable(); + maximums_.addAll(other.maximums_); + } + onChanged(); + } + } else { + if (!other.maximums_.isEmpty()) { + if (maximumsBuilder_.isEmpty()) { + maximumsBuilder_.dispose(); + maximumsBuilder_ = null; + maximums_ = other.maximums_; + bitField0_ = (bitField0_ & ~0x00000010); + maximumsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMaximumsFieldBuilder() + : null; + } else { + maximumsBuilder_.addAllMessages(other.maximums_); + } + } + } + if (minimumsBuilder_ == null) { + if (!other.minimums_.isEmpty()) { + if (minimums_.isEmpty()) { + minimums_ = other.minimums_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureMinimumsIsMutable(); + minimums_.addAll(other.minimums_); + } + onChanged(); + } + } else { + if (!other.minimums_.isEmpty()) { + if (minimumsBuilder_.isEmpty()) { + minimumsBuilder_.dispose(); + minimumsBuilder_ = null; + minimums_ = other.minimums_; + bitField0_ = (bitField0_ & ~0x00000020); + minimumsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMinimumsFieldBuilder() + : null; + } else { + minimumsBuilder_.addAllMessages(other.minimums_); + } + } + } + if (other.getRowCount() != 0) { + setRowCount(other.getRowCount()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasPropertyQuota()) { + mergePropertyQuota(other.getPropertyQuota()); + } + if (!other.getKind().isEmpty()) { + kind_ = other.kind_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasNextPageToken()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000400; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.DimensionHeader m = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionHeader.parser(), + extensionRegistry); + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(m); + } else { + dimensionHeadersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1alpha.MetricHeader m = + input.readMessage( + com.google.analytics.data.v1alpha.MetricHeader.parser(), extensionRegistry); + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(m); + } else { + metricHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1alpha.Row m = + input.readMessage( + com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.data.v1alpha.Row m = + input.readMessage( + com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry); + if (totalsBuilder_ == null) { + ensureTotalsIsMutable(); + totals_.add(m); + } else { + totalsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.analytics.data.v1alpha.Row m = + input.readMessage( + com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry); + if (maximumsBuilder_ == null) { + ensureMaximumsIsMutable(); + maximums_.add(m); + } else { + maximumsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.analytics.data.v1alpha.Row m = + input.readMessage( + com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry); + if (minimumsBuilder_ == null) { + ensureMinimumsIsMutable(); + minimums_.add(m); + } else { + minimumsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + rowCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dimensionHeaders_ = + java.util.Collections.emptyList(); + + private void ensureDimensionHeadersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = + new java.util.ArrayList( + dimensionHeaders_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DimensionHeader, + com.google.analytics.data.v1alpha.DimensionHeader.Builder, + com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> + dimensionHeadersBuilder_; + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public java.util.List + getDimensionHeadersList() { + if (dimensionHeadersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensionHeaders_); + } else { + return dimensionHeadersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public int getDimensionHeadersCount() { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.size(); + } else { + return dimensionHeadersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder setDimensionHeaders( + int index, com.google.analytics.data.v1alpha.DimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, value); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder setDimensionHeaders( + int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.DimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(value); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addDimensionHeaders( + int index, com.google.analytics.data.v1alpha.DimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, value); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addDimensionHeaders( + com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addDimensionHeaders( + int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addAllDimensionHeaders( + java.lang.Iterable values) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_); + onChanged(); + } else { + dimensionHeadersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder clearDimensionHeaders() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionHeadersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder removeDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.remove(index); + onChanged(); + } else { + dimensionHeadersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeader.Builder getDimensionHeadersBuilder( + int index) { + return internalGetDimensionHeadersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( + int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public java.util.List + getDimensionHeadersOrBuilderList() { + if (dimensionHeadersBuilder_ != null) { + return dimensionHeadersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensionHeaders_); + } + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() { + return internalGetDimensionHeadersFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder( + int index) { + return internalGetDimensionHeadersFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); + } + + /** + * + * + *
+     * Describes dimension columns. The number of DimensionHeaders and ordering of
+     * DimensionHeaders matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public java.util.List + getDimensionHeadersBuilderList() { + return internalGetDimensionHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DimensionHeader, + com.google.analytics.data.v1alpha.DimensionHeader.Builder, + com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> + internalGetDimensionHeadersFieldBuilder() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.DimensionHeader, + com.google.analytics.data.v1alpha.DimensionHeader.Builder, + com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>( + dimensionHeaders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dimensionHeaders_ = null; + } + return dimensionHeadersBuilder_; + } + + private java.util.List metricHeaders_ = + java.util.Collections.emptyList(); + + private void ensureMetricHeadersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = + new java.util.ArrayList(metricHeaders_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.MetricHeader, + com.google.analytics.data.v1alpha.MetricHeader.Builder, + com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> + metricHeadersBuilder_; + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public java.util.List getMetricHeadersList() { + if (metricHeadersBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricHeaders_); + } else { + return metricHeadersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public int getMetricHeadersCount() { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.size(); + } else { + return metricHeadersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.data.v1alpha.MetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, value); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders(com.google.analytics.data.v1alpha.MetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.add(value); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.data.v1alpha.MetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, value); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addAllMetricHeaders( + java.lang.Iterable values) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricHeaders_); + onChanged(); + } else { + metricHeadersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder clearMetricHeaders() { + if (metricHeadersBuilder_ == null) { + metricHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricHeadersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder removeMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.remove(index); + onChanged(); + } else { + metricHeadersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeader.Builder getMetricHeadersBuilder( + int index) { + return internalGetMetricHeadersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersOrBuilderList() { + if (metricHeadersBuilder_ != null) { + return metricHeadersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricHeaders_); + } + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder() { + return internalGetMetricHeadersFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder( + int index) { + return internalGetMetricHeadersFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); + } + + /** + * + * + *
+     * Describes metric columns. The number of MetricHeaders and ordering of
+     * MetricHeaders matches the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersBuilderList() { + return internalGetMetricHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.MetricHeader, + com.google.analytics.data.v1alpha.MetricHeader.Builder, + com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> + internalGetMetricHeadersFieldBuilder() { + if (metricHeadersBuilder_ == null) { + metricHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.MetricHeader, + com.google.analytics.data.v1alpha.MetricHeader.Builder, + com.google.analytics.data.v1alpha.MetricHeaderOrBuilder>( + metricHeaders_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + metricHeaders_ = null; + } + return metricHeadersBuilder_; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + rowsBuilder_; + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.Row getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder setRows(int index, com.google.analytics.data.v1alpha.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder setRows( + int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder addRows(com.google.analytics.data.v1alpha.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder addRows(int index, com.google.analytics.data.v1alpha.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder addRows(com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder addRows( + int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.Row.Builder getRowsBuilder(int index) { + return internalGetRowsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder() { + return internalGetRowsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder(int index) { + return internalGetRowsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public java.util.List getRowsBuilderList() { + return internalGetRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + internalGetRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder>( + rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private java.util.List totals_ = + java.util.Collections.emptyList(); + + private void ensureTotalsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + totals_ = new java.util.ArrayList(totals_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + totalsBuilder_; + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public java.util.List getTotalsList() { + if (totalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(totals_); + } else { + return totalsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public int getTotalsCount() { + if (totalsBuilder_ == null) { + return totals_.size(); + } else { + return totalsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public com.google.analytics.data.v1alpha.Row getTotals(int index) { + if (totalsBuilder_ == null) { + return totals_.get(index); + } else { + return totalsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder setTotals(int index, com.google.analytics.data.v1alpha.Row value) { + if (totalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTotalsIsMutable(); + totals_.set(index, value); + onChanged(); + } else { + totalsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder setTotals( + int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (totalsBuilder_ == null) { + ensureTotalsIsMutable(); + totals_.set(index, builderForValue.build()); + onChanged(); + } else { + totalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder addTotals(com.google.analytics.data.v1alpha.Row value) { + if (totalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTotalsIsMutable(); + totals_.add(value); + onChanged(); + } else { + totalsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder addTotals(int index, com.google.analytics.data.v1alpha.Row value) { + if (totalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTotalsIsMutable(); + totals_.add(index, value); + onChanged(); + } else { + totalsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder addTotals(com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (totalsBuilder_ == null) { + ensureTotalsIsMutable(); + totals_.add(builderForValue.build()); + onChanged(); + } else { + totalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder addTotals( + int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (totalsBuilder_ == null) { + ensureTotalsIsMutable(); + totals_.add(index, builderForValue.build()); + onChanged(); + } else { + totalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder addAllTotals( + java.lang.Iterable values) { + if (totalsBuilder_ == null) { + ensureTotalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, totals_); + onChanged(); + } else { + totalsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder clearTotals() { + if (totalsBuilder_ == null) { + totals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + totalsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public Builder removeTotals(int index) { + if (totalsBuilder_ == null) { + ensureTotalsIsMutable(); + totals_.remove(index); + onChanged(); + } else { + totalsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public com.google.analytics.data.v1alpha.Row.Builder getTotalsBuilder(int index) { + return internalGetTotalsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public com.google.analytics.data.v1alpha.RowOrBuilder getTotalsOrBuilder(int index) { + if (totalsBuilder_ == null) { + return totals_.get(index); + } else { + return totalsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public java.util.List + getTotalsOrBuilderList() { + if (totalsBuilder_ != null) { + return totalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(totals_); + } + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public com.google.analytics.data.v1alpha.Row.Builder addTotalsBuilder() { + return internalGetTotalsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public com.google.analytics.data.v1alpha.Row.Builder addTotalsBuilder(int index) { + return internalGetTotalsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + + /** + * + * + *
+     * If requested, the totaled values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + public java.util.List getTotalsBuilderList() { + return internalGetTotalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + internalGetTotalsFieldBuilder() { + if (totalsBuilder_ == null) { + totalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder>( + totals_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + totals_ = null; + } + return totalsBuilder_; + } + + private java.util.List maximums_ = + java.util.Collections.emptyList(); + + private void ensureMaximumsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + maximums_ = new java.util.ArrayList(maximums_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + maximumsBuilder_; + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public java.util.List getMaximumsList() { + if (maximumsBuilder_ == null) { + return java.util.Collections.unmodifiableList(maximums_); + } else { + return maximumsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public int getMaximumsCount() { + if (maximumsBuilder_ == null) { + return maximums_.size(); + } else { + return maximumsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public com.google.analytics.data.v1alpha.Row getMaximums(int index) { + if (maximumsBuilder_ == null) { + return maximums_.get(index); + } else { + return maximumsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder setMaximums(int index, com.google.analytics.data.v1alpha.Row value) { + if (maximumsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaximumsIsMutable(); + maximums_.set(index, value); + onChanged(); + } else { + maximumsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder setMaximums( + int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (maximumsBuilder_ == null) { + ensureMaximumsIsMutable(); + maximums_.set(index, builderForValue.build()); + onChanged(); + } else { + maximumsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder addMaximums(com.google.analytics.data.v1alpha.Row value) { + if (maximumsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaximumsIsMutable(); + maximums_.add(value); + onChanged(); + } else { + maximumsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder addMaximums(int index, com.google.analytics.data.v1alpha.Row value) { + if (maximumsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaximumsIsMutable(); + maximums_.add(index, value); + onChanged(); + } else { + maximumsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder addMaximums(com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (maximumsBuilder_ == null) { + ensureMaximumsIsMutable(); + maximums_.add(builderForValue.build()); + onChanged(); + } else { + maximumsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder addMaximums( + int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (maximumsBuilder_ == null) { + ensureMaximumsIsMutable(); + maximums_.add(index, builderForValue.build()); + onChanged(); + } else { + maximumsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder addAllMaximums( + java.lang.Iterable values) { + if (maximumsBuilder_ == null) { + ensureMaximumsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, maximums_); + onChanged(); + } else { + maximumsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder clearMaximums() { + if (maximumsBuilder_ == null) { + maximums_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + maximumsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public Builder removeMaximums(int index) { + if (maximumsBuilder_ == null) { + ensureMaximumsIsMutable(); + maximums_.remove(index); + onChanged(); + } else { + maximumsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public com.google.analytics.data.v1alpha.Row.Builder getMaximumsBuilder(int index) { + return internalGetMaximumsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public com.google.analytics.data.v1alpha.RowOrBuilder getMaximumsOrBuilder(int index) { + if (maximumsBuilder_ == null) { + return maximums_.get(index); + } else { + return maximumsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public java.util.List + getMaximumsOrBuilderList() { + if (maximumsBuilder_ != null) { + return maximumsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(maximums_); + } + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public com.google.analytics.data.v1alpha.Row.Builder addMaximumsBuilder() { + return internalGetMaximumsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public com.google.analytics.data.v1alpha.Row.Builder addMaximumsBuilder(int index) { + return internalGetMaximumsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + + /** + * + * + *
+     * If requested, the maximum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + public java.util.List getMaximumsBuilderList() { + return internalGetMaximumsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + internalGetMaximumsFieldBuilder() { + if (maximumsBuilder_ == null) { + maximumsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder>( + maximums_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + maximums_ = null; + } + return maximumsBuilder_; + } + + private java.util.List minimums_ = + java.util.Collections.emptyList(); + + private void ensureMinimumsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + minimums_ = new java.util.ArrayList(minimums_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + minimumsBuilder_; + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public java.util.List getMinimumsList() { + if (minimumsBuilder_ == null) { + return java.util.Collections.unmodifiableList(minimums_); + } else { + return minimumsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public int getMinimumsCount() { + if (minimumsBuilder_ == null) { + return minimums_.size(); + } else { + return minimumsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public com.google.analytics.data.v1alpha.Row getMinimums(int index) { + if (minimumsBuilder_ == null) { + return minimums_.get(index); + } else { + return minimumsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder setMinimums(int index, com.google.analytics.data.v1alpha.Row value) { + if (minimumsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMinimumsIsMutable(); + minimums_.set(index, value); + onChanged(); + } else { + minimumsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder setMinimums( + int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (minimumsBuilder_ == null) { + ensureMinimumsIsMutable(); + minimums_.set(index, builderForValue.build()); + onChanged(); + } else { + minimumsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder addMinimums(com.google.analytics.data.v1alpha.Row value) { + if (minimumsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMinimumsIsMutable(); + minimums_.add(value); + onChanged(); + } else { + minimumsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder addMinimums(int index, com.google.analytics.data.v1alpha.Row value) { + if (minimumsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMinimumsIsMutable(); + minimums_.add(index, value); + onChanged(); + } else { + minimumsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder addMinimums(com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (minimumsBuilder_ == null) { + ensureMinimumsIsMutable(); + minimums_.add(builderForValue.build()); + onChanged(); + } else { + minimumsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder addMinimums( + int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) { + if (minimumsBuilder_ == null) { + ensureMinimumsIsMutable(); + minimums_.add(index, builderForValue.build()); + onChanged(); + } else { + minimumsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder addAllMinimums( + java.lang.Iterable values) { + if (minimumsBuilder_ == null) { + ensureMinimumsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, minimums_); + onChanged(); + } else { + minimumsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder clearMinimums() { + if (minimumsBuilder_ == null) { + minimums_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + minimumsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public Builder removeMinimums(int index) { + if (minimumsBuilder_ == null) { + ensureMinimumsIsMutable(); + minimums_.remove(index); + onChanged(); + } else { + minimumsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public com.google.analytics.data.v1alpha.Row.Builder getMinimumsBuilder(int index) { + return internalGetMinimumsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public com.google.analytics.data.v1alpha.RowOrBuilder getMinimumsOrBuilder(int index) { + if (minimumsBuilder_ == null) { + return minimums_.get(index); + } else { + return minimumsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public java.util.List + getMinimumsOrBuilderList() { + if (minimumsBuilder_ != null) { + return minimumsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(minimums_); + } + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public com.google.analytics.data.v1alpha.Row.Builder addMinimumsBuilder() { + return internalGetMinimumsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public com.google.analytics.data.v1alpha.Row.Builder addMinimumsBuilder(int index) { + return internalGetMinimumsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + + /** + * + * + *
+     * If requested, the minimum values of metrics.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + public java.util.List getMinimumsBuilderList() { + return internalGetMinimumsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + internalGetMinimumsFieldBuilder() { + if (minimumsBuilder_ == null) { + minimumsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder>( + minimums_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + minimums_ = null; + } + return minimumsBuilder_; + } + + private int rowCount_; + + /** + * + * + *
+     * The total number of rows in the query result, regardless of the number of
+     * rows returned in the response. For example if a query returns 175 rows and
+     * includes limit = 50 in the API request, the response will contain row_count
+     * = 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 7; + * + * @return The rowCount. + */ + @java.lang.Override + public int getRowCount() { + return rowCount_; + } + + /** + * + * + *
+     * The total number of rows in the query result, regardless of the number of
+     * rows returned in the response. For example if a query returns 175 rows and
+     * includes limit = 50 in the API request, the response will contain row_count
+     * = 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 7; + * + * @param value The rowCount to set. + * @return This builder for chaining. + */ + public Builder setRowCount(int value) { + + rowCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * The total number of rows in the query result, regardless of the number of
+     * rows returned in the response. For example if a query returns 175 rows and
+     * includes limit = 50 in the API request, the response will contain row_count
+     * = 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 7; + * + * @return This builder for chaining. + */ + public Builder clearRowCount() { + bitField0_ = (bitField0_ & ~0x00000040); + rowCount_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.ResponseMetaData metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.ResponseMetaData, + com.google.analytics.data.v1alpha.ResponseMetaData.Builder, + com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder> + metadataBuilder_; + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + * + * @return The metadata. + */ + public com.google.analytics.data.v1alpha.ResponseMetaData getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + public Builder setMetadata(com.google.analytics.data.v1alpha.ResponseMetaData value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + public Builder setMetadata( + com.google.analytics.data.v1alpha.ResponseMetaData.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + public Builder mergeMetadata(com.google.analytics.data.v1alpha.ResponseMetaData value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && metadata_ != null + && metadata_ + != com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000080); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + public com.google.analytics.data.v1alpha.ResponseMetaData.Builder getMetadataBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + public com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
+     * Metadata for the report.
+     * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.ResponseMetaData, + com.google.analytics.data.v1alpha.ResponseMetaData.Builder, + com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.ResponseMetaData, + com.google.analytics.data.v1alpha.ResponseMetaData.Builder, + com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + propertyQuotaBuilder_; + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + * + * @return Whether the propertyQuota field is set. + */ + public boolean hasPropertyQuota() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + * + * @return The propertyQuota. + */ + public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { + if (propertyQuotaBuilder_ == null) { + return propertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : propertyQuota_; + } else { + return propertyQuotaBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + public Builder setPropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { + if (propertyQuotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyQuota_ = value; + } else { + propertyQuotaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + public Builder setPropertyQuota( + com.google.analytics.data.v1alpha.PropertyQuota.Builder builderForValue) { + if (propertyQuotaBuilder_ == null) { + propertyQuota_ = builderForValue.build(); + } else { + propertyQuotaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + public Builder mergePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { + if (propertyQuotaBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && propertyQuota_ != null + && propertyQuota_ + != com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance()) { + getPropertyQuotaBuilder().mergeFrom(value); + } else { + propertyQuota_ = value; + } + } else { + propertyQuotaBuilder_.mergeFrom(value); + } + if (propertyQuota_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + public Builder clearPropertyQuota() { + bitField0_ = (bitField0_ & ~0x00000100); + propertyQuota_ = null; + if (propertyQuotaBuilder_ != null) { + propertyQuotaBuilder_.dispose(); + propertyQuotaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + public com.google.analytics.data.v1alpha.PropertyQuota.Builder getPropertyQuotaBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetPropertyQuotaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { + if (propertyQuotaBuilder_ != null) { + return propertyQuotaBuilder_.getMessageOrBuilder(); + } else { + return propertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : propertyQuota_; + } + } + + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + internalGetPropertyQuotaFieldBuilder() { + if (propertyQuotaBuilder_ == null) { + propertyQuotaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder>( + getPropertyQuota(), getParentForChildren(), isClean()); + propertyQuota_ = null; + } + return propertyQuotaBuilder_; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Identifies what kind of resource this message is. This `kind` is always the
+     * fixed string "analyticsData#runReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 10; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifies what kind of resource this message is. This `kind` is always the
+     * fixed string "analyticsData#runReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 10; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifies what kind of resource this message is. This `kind` is always the
+     * fixed string "analyticsData#runReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 10; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifies what kind of resource this message is. This `kind` is always the
+     * fixed string "analyticsData#runReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 10; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifies what kind of resource this message is. This `kind` is always the
+     * fixed string "analyticsData#runReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 10; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * optional string next_page_token = 11; + * + * @return Whether the nextPageToken field is set. + */ + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * optional string next_page_token = 11; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * optional string next_page_token = 11; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * optional string next_page_token = 11; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * optional string next_page_token = 11; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * optional string next_page_token = 11; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.RunReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunReportResponse) + private static final com.google.analytics.data.v1alpha.RunReportResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunReportResponse(); + } + + public static com.google.analytics.data.v1alpha.RunReportResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunReportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java new file mode 100644 index 000000000000..846e2a926c40 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java @@ -0,0 +1,538 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/analytics_data_api.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +@com.google.protobuf.Generated +public interface RunReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.RunReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + java.util.List getDimensionHeadersList(); + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index); + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + int getDimensionHeadersCount(); + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + java.util.List + getDimensionHeadersOrBuilderList(); + + /** + * + * + *
+   * Describes dimension columns. The number of DimensionHeaders and ordering of
+   * DimensionHeaders matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( + int index); + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + java.util.List getMetricHeadersList(); + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index); + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + int getMetricHeadersCount(); + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + java.util.List + getMetricHeadersOrBuilderList(); + + /** + * + * + *
+   * Describes metric columns. The number of MetricHeaders and ordering of
+   * MetricHeaders matches the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + java.util.List getRowsList(); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + com.google.analytics.data.v1alpha.Row getRows(int index); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + int getRowsCount(); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + java.util.List getRowsOrBuilderList(); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index); + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + java.util.List getTotalsList(); + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + com.google.analytics.data.v1alpha.Row getTotals(int index); + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + int getTotalsCount(); + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + java.util.List getTotalsOrBuilderList(); + + /** + * + * + *
+   * If requested, the totaled values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row totals = 4; + */ + com.google.analytics.data.v1alpha.RowOrBuilder getTotalsOrBuilder(int index); + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + java.util.List getMaximumsList(); + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + com.google.analytics.data.v1alpha.Row getMaximums(int index); + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + int getMaximumsCount(); + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + java.util.List + getMaximumsOrBuilderList(); + + /** + * + * + *
+   * If requested, the maximum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row maximums = 5; + */ + com.google.analytics.data.v1alpha.RowOrBuilder getMaximumsOrBuilder(int index); + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + java.util.List getMinimumsList(); + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + com.google.analytics.data.v1alpha.Row getMinimums(int index); + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + int getMinimumsCount(); + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + java.util.List + getMinimumsOrBuilderList(); + + /** + * + * + *
+   * If requested, the minimum values of metrics.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row minimums = 6; + */ + com.google.analytics.data.v1alpha.RowOrBuilder getMinimumsOrBuilder(int index); + + /** + * + * + *
+   * The total number of rows in the query result, regardless of the number of
+   * rows returned in the response. For example if a query returns 175 rows and
+   * includes limit = 50 in the API request, the response will contain row_count
+   * = 175 but only 50 rows.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int32 row_count = 7; + * + * @return The rowCount. + */ + int getRowCount(); + + /** + * + * + *
+   * Metadata for the report.
+   * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+   * Metadata for the report.
+   * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + * + * @return The metadata. + */ + com.google.analytics.data.v1alpha.ResponseMetaData getMetadata(); + + /** + * + * + *
+   * Metadata for the report.
+   * 
+ * + * .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; + */ + com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + * + * @return Whether the propertyQuota field is set. + */ + boolean hasPropertyQuota(); + + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + * + * @return The propertyQuota. + */ + com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota(); + + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 9; + */ + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); + + /** + * + * + *
+   * Identifies what kind of resource this message is. This `kind` is always the
+   * fixed string "analyticsData#runReport". Useful to distinguish between
+   * response types in JSON.
+   * 
+ * + * string kind = 10; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Identifies what kind of resource this message is. This `kind` is always the
+   * fixed string "analyticsData#runReport". Useful to distinguish between
+   * response types in JSON.
+   * 
+ * + * string kind = 10; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * optional string next_page_token = 11; + * + * @return Whether the nextPageToken field is set. + */ + boolean hasNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * optional string next_page_token = 11; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * optional string next_page_token = 11; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingLevel.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingLevel.java index 6f2dec5f1b3f..2cbcf7951bf5 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingLevel.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingLevel.java @@ -201,7 +201,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(9); + .get(10); } private static final SamplingLevel[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Section.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Section.java new file mode 100644 index 000000000000..7c27f7d80f6f --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Section.java @@ -0,0 +1,206 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/data/v1alpha/data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Identifies if the report data is from the standard report data or
+ * conversion data
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.Section} + */ +@com.google.protobuf.Generated +public enum Section implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Should never be specified.
+   * 
+ * + * SECTION_UNSPECIFIED = 0; + */ + SECTION_UNSPECIFIED(0), + /** + * + * + *
+   * The report data is from the standard report data. Google Analytics reports
+   * include acquisition, engagement, and user behavior reports. Reports use
+   * dimensions like session source & landing page; reports use metrics like
+   * sessions, views, and engagement time.
+   * 
+ * + * SECTION_REPORT = 1; + */ + SECTION_REPORT(1), + /** + * + * + *
+   * The report data is from the conversion data. The Google Analytics
+   * Advertising section reports on conversion performance. Advertising reports
+   * use dimensions like source & medium; advertising reports use metrics like
+   * all conversions and ads cost.
+   * 
+ * + * SECTION_ADVERTISING = 2; + */ + SECTION_ADVERTISING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Section"); + } + + /** + * + * + *
+   * Should never be specified.
+   * 
+ * + * SECTION_UNSPECIFIED = 0; + */ + public static final int SECTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The report data is from the standard report data. Google Analytics reports
+   * include acquisition, engagement, and user behavior reports. Reports use
+   * dimensions like session source & landing page; reports use metrics like
+   * sessions, views, and engagement time.
+   * 
+ * + * SECTION_REPORT = 1; + */ + public static final int SECTION_REPORT_VALUE = 1; + + /** + * + * + *
+   * The report data is from the conversion data. The Google Analytics
+   * Advertising section reports on conversion performance. Advertising reports
+   * use dimensions like source & medium; advertising reports use metrics like
+   * all conversions and ads cost.
+   * 
+ * + * SECTION_ADVERTISING = 2; + */ + public static final int SECTION_ADVERTISING_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Section valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Section forNumber(int value) { + switch (value) { + case 0: + return SECTION_UNSPECIFIED; + case 1: + return SECTION_REPORT; + case 2: + return SECTION_ADVERTISING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap
internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap
() { + public Section findValueByNumber(int number) { + return Section.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Section[] VALUES = values(); + + public static Section valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Section(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.Section) +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java index b79c5107b01e..d0cc9915300e 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java @@ -175,7 +175,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(2); + .get(3); } private static final SessionCriteriaScoping[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java index c2949ba461d0..59c3c1cd3d66 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java @@ -175,7 +175,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(3); + .get(4); } private static final SessionExclusionDuration[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListRequest.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListRequest.java deleted file mode 100644 index be93c2eea208..000000000000 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListRequest.java +++ /dev/null @@ -1,887 +0,0 @@ -/* - * Copyright 2026 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/analytics/data/v1alpha/analytics_data_api.proto -// Protobuf Java Version: 4.33.2 - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A request to export users in an audience list to a Google Sheet.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SheetExportAudienceListRequest} - */ -@com.google.protobuf.Generated -public final class SheetExportAudienceListRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SheetExportAudienceListRequest) - SheetExportAudienceListRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SheetExportAudienceListRequest"); - } - - // Use SheetExportAudienceListRequest.newBuilder() to construct. - private SheetExportAudienceListRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SheetExportAudienceListRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest.class, - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the audience list to retrieve users from.
-   * Format: `properties/{property}/audienceLists/{audience_list}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the audience list to retrieve users from.
-   * Format: `properties/{property}/audienceLists/{audience_list}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OFFSET_FIELD_NUMBER = 2; - private long offset_ = 0L; - - /** - * - * - *
-   * Optional. The row count of the start row. The first row is counted as row
-   * 0.
-   *
-   * When paging, the first request does not specify offset; or equivalently,
-   * sets offset to 0; the first request returns the first `limit` of rows. The
-   * second request sets offset to the `limit` of the first request; the second
-   * request returns the second `limit` of rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private long limit_ = 0L; - - /** - * - * - *
-   * Optional. The number of rows to return. If unspecified, 10,000 rows are
-   * returned. The API returns a maximum of 250,000 rows per request, no matter
-   * how many you ask for. `limit` must be positive.
-   *
-   * The API can also return fewer rows than the requested `limit`, if there
-   * aren't as many dimension values as the `limit`.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (offset_ != 0L) { - output.writeInt64(2, offset_); - } - if (limit_ != 0L) { - output.writeInt64(3, limit_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, limit_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SheetExportAudienceListRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest other = - (com.google.analytics.data.v1alpha.SheetExportAudienceListRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getOffset() != other.getOffset()) return false; - if (getLimit() != other.getLimit()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * A request to export users in an audience list to a Google Sheet.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SheetExportAudienceListRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SheetExportAudienceListRequest) - com.google.analytics.data.v1alpha.SheetExportAudienceListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest.class, - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SheetExportAudienceListRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - offset_ = 0L; - limit_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SheetExportAudienceListRequest - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SheetExportAudienceListRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SheetExportAudienceListRequest build() { - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SheetExportAudienceListRequest buildPartial() { - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest result = - new com.google.analytics.data.v1alpha.SheetExportAudienceListRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.offset_ = offset_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.limit_ = limit_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1alpha.SheetExportAudienceListRequest) { - return mergeFrom((com.google.analytics.data.v1alpha.SheetExportAudienceListRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest other) { - if (other - == com.google.analytics.data.v1alpha.SheetExportAudienceListRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - limit_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - - /** - * - * - *
-     * Required. The name of the audience list to retrieve users from.
-     * Format: `properties/{property}/audienceLists/{audience_list}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the audience list to retrieve users from.
-     * Format: `properties/{property}/audienceLists/{audience_list}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the audience list to retrieve users from.
-     * Format: `properties/{property}/audienceLists/{audience_list}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the audience list to retrieve users from.
-     * Format: `properties/{property}/audienceLists/{audience_list}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the audience list to retrieve users from.
-     * Format: `properties/{property}/audienceLists/{audience_list}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private long offset_; - - /** - * - * - *
-     * Optional. The row count of the start row. The first row is counted as row
-     * 0.
-     *
-     * When paging, the first request does not specify offset; or equivalently,
-     * sets offset to 0; the first request returns the first `limit` of rows. The
-     * second request sets offset to the `limit` of the first request; the second
-     * request returns the second `limit` of rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - /** - * - * - *
-     * Optional. The row count of the start row. The first row is counted as row
-     * 0.
-     *
-     * When paging, the first request does not specify offset; or equivalently,
-     * sets offset to 0; the first request returns the first `limit` of rows. The
-     * second request sets offset to the `limit` of the first request; the second
-     * request returns the second `limit` of rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The offset to set. - * @return This builder for chaining. - */ - public Builder setOffset(long value) { - - offset_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The row count of the start row. The first row is counted as row
-     * 0.
-     *
-     * When paging, the first request does not specify offset; or equivalently,
-     * sets offset to 0; the first request returns the first `limit` of rows. The
-     * second request sets offset to the `limit` of the first request; the second
-     * request returns the second `limit` of rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000002); - offset_ = 0L; - onChanged(); - return this; - } - - private long limit_; - - /** - * - * - *
-     * Optional. The number of rows to return. If unspecified, 10,000 rows are
-     * returned. The API returns a maximum of 250,000 rows per request, no matter
-     * how many you ask for. `limit` must be positive.
-     *
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - /** - * - * - *
-     * Optional. The number of rows to return. If unspecified, 10,000 rows are
-     * returned. The API returns a maximum of 250,000 rows per request, no matter
-     * how many you ask for. `limit` must be positive.
-     *
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - - limit_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The number of rows to return. If unspecified, 10,000 rows are
-     * returned. The API returns a maximum of 250,000 rows per request, no matter
-     * how many you ask for. `limit` must be positive.
-     *
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - bitField0_ = (bitField0_ & ~0x00000004); - limit_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.SheetExportAudienceListRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SheetExportAudienceListRequest) - private static final com.google.analytics.data.v1alpha.SheetExportAudienceListRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SheetExportAudienceListRequest(); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SheetExportAudienceListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SheetExportAudienceListRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListRequestOrBuilder.java deleted file mode 100644 index 3f6073329bc5..000000000000 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListRequestOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2026 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/analytics/data/v1alpha/analytics_data_api.proto -// Protobuf Java Version: 4.33.2 - -package com.google.analytics.data.v1alpha; - -@com.google.protobuf.Generated -public interface SheetExportAudienceListRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SheetExportAudienceListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the audience list to retrieve users from.
-   * Format: `properties/{property}/audienceLists/{audience_list}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the audience list to retrieve users from.
-   * Format: `properties/{property}/audienceLists/{audience_list}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The row count of the start row. The first row is counted as row
-   * 0.
-   *
-   * When paging, the first request does not specify offset; or equivalently,
-   * sets offset to 0; the first request returns the first `limit` of rows. The
-   * second request sets offset to the `limit` of the first request; the second
-   * request returns the second `limit` of rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The offset. - */ - long getOffset(); - - /** - * - * - *
-   * Optional. The number of rows to return. If unspecified, 10,000 rows are
-   * returned. The API returns a maximum of 250,000 rows per request, no matter
-   * how many you ask for. `limit` must be positive.
-   *
-   * The API can also return fewer rows than the requested `limit`, if there
-   * aren't as many dimension values as the `limit`.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The limit. - */ - long getLimit(); -} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListResponse.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListResponse.java deleted file mode 100644 index 284f89ae3e01..000000000000 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListResponse.java +++ /dev/null @@ -1,1413 +0,0 @@ -/* - * Copyright 2026 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/analytics/data/v1alpha/analytics_data_api.proto -// Protobuf Java Version: 4.33.2 - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The created Google Sheet with the list of users in an audience list.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SheetExportAudienceListResponse} - */ -@com.google.protobuf.Generated -public final class SheetExportAudienceListResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SheetExportAudienceListResponse) - SheetExportAudienceListResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SheetExportAudienceListResponse"); - } - - // Use SheetExportAudienceListResponse.newBuilder() to construct. - private SheetExportAudienceListResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SheetExportAudienceListResponse() { - spreadsheetUri_ = ""; - spreadsheetId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse.class, - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse.Builder.class); - } - - private int bitField0_; - public static final int SPREADSHEET_URI_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object spreadsheetUri_ = ""; - - /** - * - * - *
-   * A uri for you to visit in your browser to view the Google Sheet.
-   * 
- * - * optional string spreadsheet_uri = 1; - * - * @return Whether the spreadsheetUri field is set. - */ - @java.lang.Override - public boolean hasSpreadsheetUri() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * A uri for you to visit in your browser to view the Google Sheet.
-   * 
- * - * optional string spreadsheet_uri = 1; - * - * @return The spreadsheetUri. - */ - @java.lang.Override - public java.lang.String getSpreadsheetUri() { - java.lang.Object ref = spreadsheetUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - spreadsheetUri_ = s; - return s; - } - } - - /** - * - * - *
-   * A uri for you to visit in your browser to view the Google Sheet.
-   * 
- * - * optional string spreadsheet_uri = 1; - * - * @return The bytes for spreadsheetUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSpreadsheetUriBytes() { - java.lang.Object ref = spreadsheetUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - spreadsheetUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPREADSHEET_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object spreadsheetId_ = ""; - - /** - * - * - *
-   * An ID that identifies the created Google Sheet resource.
-   * 
- * - * optional string spreadsheet_id = 2; - * - * @return Whether the spreadsheetId field is set. - */ - @java.lang.Override - public boolean hasSpreadsheetId() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * An ID that identifies the created Google Sheet resource.
-   * 
- * - * optional string spreadsheet_id = 2; - * - * @return The spreadsheetId. - */ - @java.lang.Override - public java.lang.String getSpreadsheetId() { - java.lang.Object ref = spreadsheetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - spreadsheetId_ = s; - return s; - } - } - - /** - * - * - *
-   * An ID that identifies the created Google Sheet resource.
-   * 
- * - * optional string spreadsheet_id = 2; - * - * @return The bytes for spreadsheetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSpreadsheetIdBytes() { - java.lang.Object ref = spreadsheetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - spreadsheetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROW_COUNT_FIELD_NUMBER = 3; - private int rowCount_ = 0; - - /** - * - * - *
-   * The total number of rows in the AudienceList result. `rowCount` is
-   * independent of the number of rows returned in the response, the `limit`
-   * request parameter, and the `offset` request parameter. For example if a
-   * query returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * optional int32 row_count = 3; - * - * @return Whether the rowCount field is set. - */ - @java.lang.Override - public boolean hasRowCount() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-   * The total number of rows in the AudienceList result. `rowCount` is
-   * independent of the number of rows returned in the response, the `limit`
-   * request parameter, and the `offset` request parameter. For example if a
-   * query returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * optional int32 row_count = 3; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - public static final int AUDIENCE_LIST_FIELD_NUMBER = 4; - private com.google.analytics.data.v1alpha.AudienceList audienceList_; - - /** - * - * - *
-   * Configuration data about AudienceList being exported. Returned to help
-   * interpret the AudienceList in the Google Sheet of this response.
-   *
-   * For example, the AudienceList may have more rows than are present in the
-   * Google Sheet, and in that case, you may want to send an additional sheet
-   * export request with a different `offset` value to retrieve the next page of
-   * rows in an additional Google Sheet.
-   * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * - * @return Whether the audienceList field is set. - */ - @java.lang.Override - public boolean hasAudienceList() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-   * Configuration data about AudienceList being exported. Returned to help
-   * interpret the AudienceList in the Google Sheet of this response.
-   *
-   * For example, the AudienceList may have more rows than are present in the
-   * Google Sheet, and in that case, you may want to send an additional sheet
-   * export request with a different `offset` value to retrieve the next page of
-   * rows in an additional Google Sheet.
-   * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * - * @return The audienceList. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.AudienceList getAudienceList() { - return audienceList_ == null - ? com.google.analytics.data.v1alpha.AudienceList.getDefaultInstance() - : audienceList_; - } - - /** - * - * - *
-   * Configuration data about AudienceList being exported. Returned to help
-   * interpret the AudienceList in the Google Sheet of this response.
-   *
-   * For example, the AudienceList may have more rows than are present in the
-   * Google Sheet, and in that case, you may want to send an additional sheet
-   * export request with a different `offset` value to retrieve the next page of
-   * rows in an additional Google Sheet.
-   * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.AudienceListOrBuilder getAudienceListOrBuilder() { - return audienceList_ == null - ? com.google.analytics.data.v1alpha.AudienceList.getDefaultInstance() - : audienceList_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, spreadsheetUri_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, spreadsheetId_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(3, rowCount_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getAudienceList()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, spreadsheetUri_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, spreadsheetId_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, rowCount_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAudienceList()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SheetExportAudienceListResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse other = - (com.google.analytics.data.v1alpha.SheetExportAudienceListResponse) obj; - - if (hasSpreadsheetUri() != other.hasSpreadsheetUri()) return false; - if (hasSpreadsheetUri()) { - if (!getSpreadsheetUri().equals(other.getSpreadsheetUri())) return false; - } - if (hasSpreadsheetId() != other.hasSpreadsheetId()) return false; - if (hasSpreadsheetId()) { - if (!getSpreadsheetId().equals(other.getSpreadsheetId())) return false; - } - if (hasRowCount() != other.hasRowCount()) return false; - if (hasRowCount()) { - if (getRowCount() != other.getRowCount()) return false; - } - if (hasAudienceList() != other.hasAudienceList()) return false; - if (hasAudienceList()) { - if (!getAudienceList().equals(other.getAudienceList())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSpreadsheetUri()) { - hash = (37 * hash) + SPREADSHEET_URI_FIELD_NUMBER; - hash = (53 * hash) + getSpreadsheetUri().hashCode(); - } - if (hasSpreadsheetId()) { - hash = (37 * hash) + SPREADSHEET_ID_FIELD_NUMBER; - hash = (53 * hash) + getSpreadsheetId().hashCode(); - } - if (hasRowCount()) { - hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getRowCount(); - } - if (hasAudienceList()) { - hash = (37 * hash) + AUDIENCE_LIST_FIELD_NUMBER; - hash = (53 * hash) + getAudienceList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * The created Google Sheet with the list of users in an audience list.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SheetExportAudienceListResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SheetExportAudienceListResponse) - com.google.analytics.data.v1alpha.SheetExportAudienceListResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse.class, - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1alpha.SheetExportAudienceListResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetAudienceListFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - spreadsheetUri_ = ""; - spreadsheetId_ = ""; - rowCount_ = 0; - audienceList_ = null; - if (audienceListBuilder_ != null) { - audienceListBuilder_.dispose(); - audienceListBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SheetExportAudienceListResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SheetExportAudienceListResponse build() { - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SheetExportAudienceListResponse buildPartial() { - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse result = - new com.google.analytics.data.v1alpha.SheetExportAudienceListResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.spreadsheetUri_ = spreadsheetUri_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.spreadsheetId_ = spreadsheetId_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.rowCount_ = rowCount_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.audienceList_ = - audienceListBuilder_ == null ? audienceList_ : audienceListBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1alpha.SheetExportAudienceListResponse) { - return mergeFrom((com.google.analytics.data.v1alpha.SheetExportAudienceListResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.SheetExportAudienceListResponse other) { - if (other - == com.google.analytics.data.v1alpha.SheetExportAudienceListResponse.getDefaultInstance()) - return this; - if (other.hasSpreadsheetUri()) { - spreadsheetUri_ = other.spreadsheetUri_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasSpreadsheetId()) { - spreadsheetId_ = other.spreadsheetId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasRowCount()) { - setRowCount(other.getRowCount()); - } - if (other.hasAudienceList()) { - mergeAudienceList(other.getAudienceList()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - spreadsheetUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - spreadsheetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - rowCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - internalGetAudienceListFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object spreadsheetUri_ = ""; - - /** - * - * - *
-     * A uri for you to visit in your browser to view the Google Sheet.
-     * 
- * - * optional string spreadsheet_uri = 1; - * - * @return Whether the spreadsheetUri field is set. - */ - public boolean hasSpreadsheetUri() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * A uri for you to visit in your browser to view the Google Sheet.
-     * 
- * - * optional string spreadsheet_uri = 1; - * - * @return The spreadsheetUri. - */ - public java.lang.String getSpreadsheetUri() { - java.lang.Object ref = spreadsheetUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - spreadsheetUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * A uri for you to visit in your browser to view the Google Sheet.
-     * 
- * - * optional string spreadsheet_uri = 1; - * - * @return The bytes for spreadsheetUri. - */ - public com.google.protobuf.ByteString getSpreadsheetUriBytes() { - java.lang.Object ref = spreadsheetUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - spreadsheetUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * A uri for you to visit in your browser to view the Google Sheet.
-     * 
- * - * optional string spreadsheet_uri = 1; - * - * @param value The spreadsheetUri to set. - * @return This builder for chaining. - */ - public Builder setSpreadsheetUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - spreadsheetUri_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * A uri for you to visit in your browser to view the Google Sheet.
-     * 
- * - * optional string spreadsheet_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearSpreadsheetUri() { - spreadsheetUri_ = getDefaultInstance().getSpreadsheetUri(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * A uri for you to visit in your browser to view the Google Sheet.
-     * 
- * - * optional string spreadsheet_uri = 1; - * - * @param value The bytes for spreadsheetUri to set. - * @return This builder for chaining. - */ - public Builder setSpreadsheetUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - spreadsheetUri_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object spreadsheetId_ = ""; - - /** - * - * - *
-     * An ID that identifies the created Google Sheet resource.
-     * 
- * - * optional string spreadsheet_id = 2; - * - * @return Whether the spreadsheetId field is set. - */ - public boolean hasSpreadsheetId() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * An ID that identifies the created Google Sheet resource.
-     * 
- * - * optional string spreadsheet_id = 2; - * - * @return The spreadsheetId. - */ - public java.lang.String getSpreadsheetId() { - java.lang.Object ref = spreadsheetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - spreadsheetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * An ID that identifies the created Google Sheet resource.
-     * 
- * - * optional string spreadsheet_id = 2; - * - * @return The bytes for spreadsheetId. - */ - public com.google.protobuf.ByteString getSpreadsheetIdBytes() { - java.lang.Object ref = spreadsheetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - spreadsheetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * An ID that identifies the created Google Sheet resource.
-     * 
- * - * optional string spreadsheet_id = 2; - * - * @param value The spreadsheetId to set. - * @return This builder for chaining. - */ - public Builder setSpreadsheetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - spreadsheetId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * An ID that identifies the created Google Sheet resource.
-     * 
- * - * optional string spreadsheet_id = 2; - * - * @return This builder for chaining. - */ - public Builder clearSpreadsheetId() { - spreadsheetId_ = getDefaultInstance().getSpreadsheetId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * An ID that identifies the created Google Sheet resource.
-     * 
- * - * optional string spreadsheet_id = 2; - * - * @param value The bytes for spreadsheetId to set. - * @return This builder for chaining. - */ - public Builder setSpreadsheetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - spreadsheetId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int rowCount_; - - /** - * - * - *
-     * The total number of rows in the AudienceList result. `rowCount` is
-     * independent of the number of rows returned in the response, the `limit`
-     * request parameter, and the `offset` request parameter. For example if a
-     * query returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * optional int32 row_count = 3; - * - * @return Whether the rowCount field is set. - */ - @java.lang.Override - public boolean hasRowCount() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * The total number of rows in the AudienceList result. `rowCount` is
-     * independent of the number of rows returned in the response, the `limit`
-     * request parameter, and the `offset` request parameter. For example if a
-     * query returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * optional int32 row_count = 3; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - /** - * - * - *
-     * The total number of rows in the AudienceList result. `rowCount` is
-     * independent of the number of rows returned in the response, the `limit`
-     * request parameter, and the `offset` request parameter. For example if a
-     * query returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * optional int32 row_count = 3; - * - * @param value The rowCount to set. - * @return This builder for chaining. - */ - public Builder setRowCount(int value) { - - rowCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The total number of rows in the AudienceList result. `rowCount` is
-     * independent of the number of rows returned in the response, the `limit`
-     * request parameter, and the `offset` request parameter. For example if a
-     * query returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * optional int32 row_count = 3; - * - * @return This builder for chaining. - */ - public Builder clearRowCount() { - bitField0_ = (bitField0_ & ~0x00000004); - rowCount_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.AudienceList audienceList_; - private com.google.protobuf.SingleFieldBuilder< - com.google.analytics.data.v1alpha.AudienceList, - com.google.analytics.data.v1alpha.AudienceList.Builder, - com.google.analytics.data.v1alpha.AudienceListOrBuilder> - audienceListBuilder_; - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * - * @return Whether the audienceList field is set. - */ - public boolean hasAudienceList() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * - * @return The audienceList. - */ - public com.google.analytics.data.v1alpha.AudienceList getAudienceList() { - if (audienceListBuilder_ == null) { - return audienceList_ == null - ? com.google.analytics.data.v1alpha.AudienceList.getDefaultInstance() - : audienceList_; - } else { - return audienceListBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - public Builder setAudienceList(com.google.analytics.data.v1alpha.AudienceList value) { - if (audienceListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - audienceList_ = value; - } else { - audienceListBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - public Builder setAudienceList( - com.google.analytics.data.v1alpha.AudienceList.Builder builderForValue) { - if (audienceListBuilder_ == null) { - audienceList_ = builderForValue.build(); - } else { - audienceListBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - public Builder mergeAudienceList(com.google.analytics.data.v1alpha.AudienceList value) { - if (audienceListBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && audienceList_ != null - && audienceList_ - != com.google.analytics.data.v1alpha.AudienceList.getDefaultInstance()) { - getAudienceListBuilder().mergeFrom(value); - } else { - audienceList_ = value; - } - } else { - audienceListBuilder_.mergeFrom(value); - } - if (audienceList_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - public Builder clearAudienceList() { - bitField0_ = (bitField0_ & ~0x00000008); - audienceList_ = null; - if (audienceListBuilder_ != null) { - audienceListBuilder_.dispose(); - audienceListBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - public com.google.analytics.data.v1alpha.AudienceList.Builder getAudienceListBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetAudienceListFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - public com.google.analytics.data.v1alpha.AudienceListOrBuilder getAudienceListOrBuilder() { - if (audienceListBuilder_ != null) { - return audienceListBuilder_.getMessageOrBuilder(); - } else { - return audienceList_ == null - ? com.google.analytics.data.v1alpha.AudienceList.getDefaultInstance() - : audienceList_; - } - } - - /** - * - * - *
-     * Configuration data about AudienceList being exported. Returned to help
-     * interpret the AudienceList in the Google Sheet of this response.
-     *
-     * For example, the AudienceList may have more rows than are present in the
-     * Google Sheet, and in that case, you may want to send an additional sheet
-     * export request with a different `offset` value to retrieve the next page of
-     * rows in an additional Google Sheet.
-     * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.analytics.data.v1alpha.AudienceList, - com.google.analytics.data.v1alpha.AudienceList.Builder, - com.google.analytics.data.v1alpha.AudienceListOrBuilder> - internalGetAudienceListFieldBuilder() { - if (audienceListBuilder_ == null) { - audienceListBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.analytics.data.v1alpha.AudienceList, - com.google.analytics.data.v1alpha.AudienceList.Builder, - com.google.analytics.data.v1alpha.AudienceListOrBuilder>( - getAudienceList(), getParentForChildren(), isClean()); - audienceList_ = null; - } - return audienceListBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.SheetExportAudienceListResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SheetExportAudienceListResponse) - private static final com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SheetExportAudienceListResponse(); - } - - public static com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SheetExportAudienceListResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SheetExportAudienceListResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListResponseOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListResponseOrBuilder.java deleted file mode 100644 index b60b6abae0a9..000000000000 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SheetExportAudienceListResponseOrBuilder.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright 2026 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/analytics/data/v1alpha/analytics_data_api.proto -// Protobuf Java Version: 4.33.2 - -package com.google.analytics.data.v1alpha; - -@com.google.protobuf.Generated -public interface SheetExportAudienceListResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SheetExportAudienceListResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A uri for you to visit in your browser to view the Google Sheet.
-   * 
- * - * optional string spreadsheet_uri = 1; - * - * @return Whether the spreadsheetUri field is set. - */ - boolean hasSpreadsheetUri(); - - /** - * - * - *
-   * A uri for you to visit in your browser to view the Google Sheet.
-   * 
- * - * optional string spreadsheet_uri = 1; - * - * @return The spreadsheetUri. - */ - java.lang.String getSpreadsheetUri(); - - /** - * - * - *
-   * A uri for you to visit in your browser to view the Google Sheet.
-   * 
- * - * optional string spreadsheet_uri = 1; - * - * @return The bytes for spreadsheetUri. - */ - com.google.protobuf.ByteString getSpreadsheetUriBytes(); - - /** - * - * - *
-   * An ID that identifies the created Google Sheet resource.
-   * 
- * - * optional string spreadsheet_id = 2; - * - * @return Whether the spreadsheetId field is set. - */ - boolean hasSpreadsheetId(); - - /** - * - * - *
-   * An ID that identifies the created Google Sheet resource.
-   * 
- * - * optional string spreadsheet_id = 2; - * - * @return The spreadsheetId. - */ - java.lang.String getSpreadsheetId(); - - /** - * - * - *
-   * An ID that identifies the created Google Sheet resource.
-   * 
- * - * optional string spreadsheet_id = 2; - * - * @return The bytes for spreadsheetId. - */ - com.google.protobuf.ByteString getSpreadsheetIdBytes(); - - /** - * - * - *
-   * The total number of rows in the AudienceList result. `rowCount` is
-   * independent of the number of rows returned in the response, the `limit`
-   * request parameter, and the `offset` request parameter. For example if a
-   * query returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * optional int32 row_count = 3; - * - * @return Whether the rowCount field is set. - */ - boolean hasRowCount(); - - /** - * - * - *
-   * The total number of rows in the AudienceList result. `rowCount` is
-   * independent of the number of rows returned in the response, the `limit`
-   * request parameter, and the `offset` request parameter. For example if a
-   * query returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * optional int32 row_count = 3; - * - * @return The rowCount. - */ - int getRowCount(); - - /** - * - * - *
-   * Configuration data about AudienceList being exported. Returned to help
-   * interpret the AudienceList in the Google Sheet of this response.
-   *
-   * For example, the AudienceList may have more rows than are present in the
-   * Google Sheet, and in that case, you may want to send an additional sheet
-   * export request with a different `offset` value to retrieve the next page of
-   * rows in an additional Google Sheet.
-   * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * - * @return Whether the audienceList field is set. - */ - boolean hasAudienceList(); - - /** - * - * - *
-   * Configuration data about AudienceList being exported. Returned to help
-   * interpret the AudienceList in the Google Sheet of this response.
-   *
-   * For example, the AudienceList may have more rows than are present in the
-   * Google Sheet, and in that case, you may want to send an additional sheet
-   * export request with a different `offset` value to retrieve the next page of
-   * rows in an additional Google Sheet.
-   * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * - * @return The audienceList. - */ - com.google.analytics.data.v1alpha.AudienceList getAudienceList(); - - /** - * - * - *
-   * Configuration data about AudienceList being exported. Returned to help
-   * interpret the AudienceList in the Google Sheet of this response.
-   *
-   * For example, the AudienceList may have more rows than are present in the
-   * Google Sheet, and in that case, you may want to send an additional sheet
-   * export request with a different `offset` value to retrieve the next page of
-   * rows in an additional Google Sheet.
-   * 
- * - * optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - com.google.analytics.data.v1alpha.AudienceListOrBuilder getAudienceListOrBuilder(); -} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java index 327413717387..753681545a3f 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java @@ -200,7 +200,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final UserCriteriaScoping[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java index b714b177f5e1..f161c8f0ee06 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java @@ -175,7 +175,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final UserExclusionDuration[] VALUES = values(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto index 47c4f3b278cd..c936b2d0ee6a 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,10 +38,7 @@ service AlphaAnalyticsData { option (google.api.default_host) = "analyticsdata.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/analytics," - "https://www.googleapis.com/auth/analytics.readonly," - "https://www.googleapis.com/auth/drive," - "https://www.googleapis.com/auth/drive.file," - "https://www.googleapis.com/auth/spreadsheets"; + "https://www.googleapis.com/auth/analytics.readonly"; // Returns a customized funnel report of your Google Analytics event data. The // data returned from the API is as a table with columns for the requested @@ -131,34 +128,6 @@ service AlphaAnalyticsData { option (google.api.method_signature) = "name"; } - // Exports an audience list of users to a Google Sheet. After creating an - // audience, the users are not immediately available for listing. First, a - // request to `CreateAudienceList` is necessary to create an audience list of - // users, and then second, this method is used to export those users in the - // audience list to a Google Sheet. - // - // See [Creating an Audience - // List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - // for an introduction to Audience Lists with examples. - // - // Audiences in Google Analytics 4 allow you to segment your users in the ways - // that are important to your business. To learn more, see - // https://support.google.com/analytics/answer/9267572. - // - // This method is introduced at alpha stability with the intention of - // gathering feedback on syntax and capabilities before entering beta. To give - // your feedback on this API, complete the - // [Google Analytics Audience Export API - // Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - rpc SheetExportAudienceList(SheetExportAudienceListRequest) - returns (SheetExportAudienceListResponse) { - option (google.api.http) = { - post: "/v1alpha/{name=properties/*/audienceLists/*}:exportSheet" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - // Gets configuration metadata about a specific audience list. This method // can be used to understand an audience list after it has been created. // @@ -331,6 +300,37 @@ service AlphaAnalyticsData { }; option (google.api.method_signature) = "parent"; } + + // Returns a customized report of your Google Analytics event data. Reports + // contain statistics derived from data collected by the Google Analytics + // tracking code. The data returned from the API is as a table with columns + // for the requested dimensions and metrics. Metrics are individual + // measurements of user activity on your property, such as active users or + // event count. Dimensions break down metrics across some common criteria, + // such as country or event name. + rpc RunReport(RunReportRequest) returns (RunReportResponse) { + option (google.api.http) = { + post: "/v1alpha/{property=properties/*}:runReport" + body: "*" + }; + } + + // Returns metadata for dimensions and metrics available in reporting methods. + // Used to explore the dimensions and metrics. In this method, a Google + // Analytics property identifier is specified in the request, and + // the metadata response includes Custom dimensions and metrics as well as + // Universal metadata. + // + // For example if a custom metric with parameter name `levels_unlocked` is + // registered to a property, the Metadata response will contain + // `customEvent:levels_unlocked`. Universal metadata are dimensions and + // metrics applicable to any property such as `country` and `totalUsers`. + rpc GetMetadata(GetMetadataRequest) returns (Metadata) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/metadata}" + }; + option (google.api.method_signature) = "name"; + } } // A request to create a new recurring audience list. @@ -789,69 +789,6 @@ message QueryAudienceListResponse { optional int32 row_count = 3; } -// A request to export users in an audience list to a Google Sheet. -message SheetExportAudienceListRequest { - // Required. The name of the audience list to retrieve users from. - // Format: `properties/{property}/audienceLists/{audience_list}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsdata.googleapis.com/AudienceList" - } - ]; - - // Optional. The row count of the start row. The first row is counted as row - // 0. - // - // When paging, the first request does not specify offset; or equivalently, - // sets offset to 0; the first request returns the first `limit` of rows. The - // second request sets offset to the `limit` of the first request; the second - // request returns the second `limit` of rows. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int64 offset = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The number of rows to return. If unspecified, 10,000 rows are - // returned. The API returns a maximum of 250,000 rows per request, no matter - // how many you ask for. `limit` must be positive. - // - // The API can also return fewer rows than the requested `limit`, if there - // aren't as many dimension values as the `limit`. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int64 limit = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// The created Google Sheet with the list of users in an audience list. -message SheetExportAudienceListResponse { - // A uri for you to visit in your browser to view the Google Sheet. - optional string spreadsheet_uri = 1; - - // An ID that identifies the created Google Sheet resource. - optional string spreadsheet_id = 2; - - // The total number of rows in the AudienceList result. `rowCount` is - // independent of the number of rows returned in the response, the `limit` - // request parameter, and the `offset` request parameter. For example if a - // query returns 175 rows and includes `limit` of 50 in the API request, the - // response will contain `rowCount` of 175 but only 50 rows. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - optional int32 row_count = 3; - - // Configuration data about AudienceList being exported. Returned to help - // interpret the AudienceList in the Google Sheet of this response. - // - // For example, the AudienceList may have more rows than are present in the - // Google Sheet, and in that case, you may want to send an additional sheet - // export request with a different `offset` value to retrieve the next page of - // rows in an additional Google Sheet. - optional AudienceList audience_list = 4; -} - // Dimension value attributes for the audience user row. message AudienceRow { // Each dimension value attribute for an audience user. One dimension value @@ -1302,3 +1239,206 @@ message ListReportTasksResponse { // If this field is omitted, there are no subsequent pages. optional string next_page_token = 2; } + +// The request to generate a report. +message RunReportRequest { + // Required. A Google Analytics property identifier whose events are tracked. + // Specified in the URL path and not the body. To learn more, see [where to + // find your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // Within a batch request, this property should either be unspecified or + // consistent with the batch-level property. + // + // Example: properties/1234 + string property = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The dimensions requested and displayed. + repeated Dimension dimensions = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The metrics requested and displayed. + repeated Metric metrics = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Date ranges of data 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 event data for the overlapping days is + // included in the response rows for both date ranges. In a cohort request, + // this `dateRanges` must be unspecified. + repeated DateRange date_ranges = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Dimension filters let you ask for only specific dimension values + // in the report. 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. + FilterExpression dimension_filter = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter clause of metrics. Applied after aggregating the + // report's rows, similar to SQL having-clause. Dimensions cannot be used in + // this filter. + FilterExpression metric_filter = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The row count of the start row. The first row is counted as row + // 0. + // + // When paging, the first request does not specify offset; or equivalently, + // sets offset to 0; the first request returns the first `limit` of rows. The + // second request sets offset to the `limit` of the first request; the second + // request returns the second `limit` of rows. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int64 offset = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of rows to return. If unspecified, 10,000 rows + // are returned. The API returns a maximum of 250,000 rows per request, no + // matter how many you ask for. `limit` must be positive. + // + // The API can also return fewer rows than the requested `limit`, if there + // aren't as many dimension values 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). + int64 limit = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Aggregation of metrics. Aggregated metric values will be shown in + // rows where the dimension_values are set to "RESERVED_(MetricAggregation)". + // Aggregates including both comparisons and multiple date ranges will + // be aggregated based on the date ranges. + repeated MetricAggregation metric_aggregations = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies how rows are ordered in the response. + // Requests including both comparisons and multiple date ranges will + // have order bys applied on the comparisons. + repeated OrderBy order_bys = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY". + // If the field is empty, the report uses the property's default currency. + string currency_code = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Cohort group associated with this request. If there is a cohort + // group in the request the 'cohort' dimension must be present. + CohortSpec cohort_spec = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If false or unspecified, each row with all metrics equal to 0 + // will not be returned. If true, these rows will be returned if they are not + // separately removed by a filter. + // + // Regardless of this `keep_empty_rows` setting, only data recorded by the + // Google Analytics property can be displayed in a report. + // + // For example if a property never logs a `purchase` event, then a query for + // the `eventName` dimension and `eventCount` metric will not have a row + // eventName: "purchase" and eventCount: 0. + bool keep_empty_rows = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Toggles whether to return the current state of this Google + // Analytics property's quota. Quota is returned in + // [PropertyQuota](#PropertyQuota). + bool return_property_quota = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The configuration of comparisons requested and displayed. The + // request only requires a comparisons field in order to receive a comparison + // column in the response. + repeated Comparison comparisons = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls conversion reporting. This field is optional. If this + // field is set or any conversion metrics are requested, the report will be a + // conversion report. + ConversionSpec conversion_spec = 16 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response report table corresponding to a request. +message RunReportResponse { + // Describes dimension columns. The number of DimensionHeaders and ordering of + // DimensionHeaders matches the dimensions present in rows. + repeated DimensionHeader dimension_headers = 1; + + // Describes metric columns. The number of MetricHeaders and ordering of + // MetricHeaders matches the metrics present in rows. + repeated MetricHeader metric_headers = 2; + + // Rows of dimension value combinations and metric values in the report. + repeated Row rows = 3; + + // If requested, the totaled values of metrics. + repeated Row totals = 4; + + // If requested, the maximum values of metrics. + repeated Row maximums = 5; + + // If requested, the minimum values of metrics. + repeated Row minimums = 6; + + // The total number of rows in the query result, regardless of the number of + // rows returned in the response. For example if a query returns 175 rows and + // includes limit = 50 in the API request, the response will contain row_count + // = 175 but only 50 rows. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int32 row_count = 7; + + // Metadata for the report. + ResponseMetaData metadata = 8; + + // This Analytics Property's quota state including this request. + PropertyQuota property_quota = 9; + + // Identifies what kind of resource this message is. This `kind` is always the + // fixed string "analyticsData#runReport". Useful to distinguish between + // response types in JSON. + string kind = 10; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + optional string next_page_token = 11; +} + +// Request for a property's dimension and metric metadata. +message GetMetadataRequest { + // Required. The resource name of the metadata to retrieve. This name field is + // specified in the URL path and not URL parameters. Property is a numeric + // Google Analytics property identifier. To learn more, see [where to find + // your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // + // Example: properties/1234/metadata + // + // Set the Property ID to 0 for dimensions and metrics common to all + // properties. In this special mode, this method will not return custom + // dimensions and metrics. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsdata.googleapis.com/Metadata" + } + ]; +} + +// The dimensions, metrics and comparisons currently accepted in reporting +// methods. +message Metadata { + option (google.api.resource) = { + type: "analyticsdata.googleapis.com/Metadata" + pattern: "properties/{property}/metadata" + }; + + // Resource name of this metadata. + string name = 3; + + // The dimension descriptions. + repeated DimensionMetadata dimensions = 1; + + // The metric descriptions. + repeated MetricMetadata metrics = 2; + + // The comparison descriptions. + repeated ComparisonMetadata comparisons = 4; + + // The conversion descriptions. + repeated ConversionMetadata conversions = 5; +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto index 0315a16711bc..629c34ca7f1a 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -156,6 +156,24 @@ message Metric { bool invisible = 3; } +// Defines an individual comparison. Most requests will include multiple +// comparisons so that the report compares between the comparisons. +message Comparison { + // Each comparison produces separate rows in the response. In the response, + // this comparison is identified by this name. If name is unspecified, we will + // use the saved comparisons display name. + optional string name = 1; + + oneof one_comparison { + // A basic comparison. + FilterExpression dimension_filter = 2; + + // A saved comparison identified by the comparison's resource name. + // For example, 'comparisons/1234'. + string comparison = 3; + } +} + // To express dimension or metric filters. The fields in the same // FilterExpression need to be either all dimensions or all metrics. message FilterExpression { @@ -487,6 +505,25 @@ message CohortReportSettings { bool accumulate = 1; } +// Identifies if the report data is from the standard report data or +// conversion data +enum Section { + // Should never be specified. + SECTION_UNSPECIFIED = 0; + + // The report data is from the standard report data. Google Analytics reports + // include acquisition, engagement, and user behavior reports. Reports use + // dimensions like session source & landing page; reports use metrics like + // sessions, views, and engagement time. + SECTION_REPORT = 1; + + // The report data is from the conversion data. The Google Analytics + // Advertising section reports on conversion performance. Advertising reports + // use dimensions like source & medium; advertising reports use metrics like + // all conversions and ads cost. + SECTION_ADVERTISING = 2; +} + // Response's metadata carrying additional information about the report content. message ResponseMetaData { // The schema restrictions actively enforced in creating this report. To learn @@ -561,15 +598,18 @@ message ResponseMetaData { // Interests](https://support.google.com/analytics/answer/2799357). optional bool subject_to_thresholding = 8; - // If this report's results are + // If this report results is // [sampled](https://support.google.com/analytics/answer/13331292), this // describes the percentage of events used in this report. One // `samplingMetadatas` is populated for each date range. Each - // `samplingMetadatas` corresponds to a date range in the order that date - // ranges were specified in the request. + // `samplingMetadatas` corresponds to a date range in order that date ranges + // were specified in the request. // // However if the results are not sampled, this field will not be defined. repeated SamplingMetadata sampling_metadatas = 9; + + // Identifies the type of data in the report. + Section section = 10; } // Describes a dimension column in the report. Dimensions requested in a report @@ -1488,8 +1528,8 @@ message FunnelResponseMetadata { // [sampled](https://support.google.com/analytics/answer/13331292), this // describes what percentage of events were used in this funnel report. One // `samplingMetadatas` is populated for each date range. Each - // `samplingMetadatas` corresponds to a date range in the order that date - // ranges were specified in the request. + // `samplingMetadatas` corresponds to a date range in order that date ranges + // were specified in the request. // // However if the results are not sampled, this field will not be defined. repeated SamplingMetadata sampling_metadatas = 1; @@ -1609,3 +1649,166 @@ enum SamplingLevel { // https://support.google.com/analytics/answer/10896953. UNSAMPLED = 3; } + +// Controls conversion reporting. +// +// +message ConversionSpec { + // Attribution model to use in the Conversion Report + enum AttributionModel { + // Unspecified attribution model. + ATTRIBUTION_MODEL_UNSPECIFIED = 0; + + // Attribution was based on the paid and organic data driven model + DATA_DRIVEN = 1; + + // Attribution was based on the paid and organic last click model + LAST_CLICK = 2; + } + + // The conversion action IDs to include in the report. If empty, all + // conversions are included. Valid conversion action IDs can be retrieved from + // the `conversion_action` field within the `conversions` list in the + // response of the `GetMetadata` method. For example, + // 'conversionActions/1234'. + repeated string conversion_actions = 1; + + // The attribution model to use in the Conversion Report. If unspecified, + // `DATA_DRIVEN` is used. + AttributionModel attribution_model = 2; +} + +// Explains a dimension. +message DimensionMetadata { + // This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For + // example, `eventName`. + string api_name = 1; + + // This dimension's name within the Google Analytics user interface. For + // example, `Event name`. + string ui_name = 2; + + // Description of how this dimension is used and calculated. + string description = 3; + + // Still usable but deprecated names for this dimension. If populated, this + // dimension is available by either `apiName` or one of `deprecatedApiNames` + // for a period of time. After the deprecation period, the dimension will be + // available only by `apiName`. + repeated string deprecated_api_names = 4; + + // True if the dimension is custom to this property. This includes user, + // event, & item scoped custom dimensions; to learn more about custom + // dimensions, see https://support.google.com/analytics/answer/14240153. This + // also include custom channel groups; to learn more about custom channel + // groups, see https://support.google.com/analytics/answer/13051316. + bool custom_definition = 5; + + // The display name of the category that this dimension belongs to. Similar + // dimensions and metrics are categorized together. + string category = 6; + + // Specifies the Google Analytics sections this dimension applies to. + repeated Section sections = 7; +} + +// Explains a metric. +message MetricMetadata { + // Justifications for why this metric is blocked. + enum BlockedReason { + // Will never be specified in API response. + BLOCKED_REASON_UNSPECIFIED = 0; + + // If present, your access is blocked to revenue related metrics for this + // property, and this metric is revenue related. + NO_REVENUE_METRICS = 1; + + // If present, your access is blocked to cost related metrics for this + // property, and this metric is cost related. + NO_COST_METRICS = 2; + } + + // A metric name. Usable in [Metric](#Metric)'s `name`. For example, + // `eventCount`. + string api_name = 1; + + // This metric's name within the Google Analytics user interface. For example, + // `Event count`. + string ui_name = 2; + + // Description of how this metric is used and calculated. + string description = 3; + + // Still usable but deprecated names for this metric. If populated, this + // metric is available by either `apiName` or one of `deprecatedApiNames` + // for a period of time. After the deprecation period, the metric will be + // available only by `apiName`. + repeated string deprecated_api_names = 4; + + // The type of this metric. + MetricType type = 5; + + // The mathematical expression for this derived metric. Can be used in + // [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + // are not expressions, and for non-expressions, this field is empty. + string expression = 6; + + // True if the metric is a custom metric for this property. + bool custom_definition = 7; + + // If reasons are specified, your access is blocked to this metric for this + // property. API requests from you to this property for this metric will + // succeed; however, the report will contain only zeros for this metric. API + // requests with metric filters on blocked metrics will fail. If reasons are + // empty, you have access to this metric. + // + // To learn more, see [Access and data-restriction + // management](https://support.google.com/analytics/answer/10851388). + repeated BlockedReason blocked_reasons = 8; + + // The display name of the category that this metrics belongs to. Similar + // dimensions and metrics are categorized together. + string category = 9; + + // Specifies the Google Analytics sections this metric applies to. + repeated Section sections = 10; +} + +// The metadata for a single comparison. +message ComparisonMetadata { + // This comparison's resource name. Usable in [Comparison](#Comparison)'s + // `comparison` field. For example, 'comparisons/1234'. + string api_name = 1; + + // This comparison's name within the Google Analytics user interface. + string ui_name = 2; + + // This comparison's description. + string description = 3; +} + +// The metadata for a single conversion. +// +// +message ConversionMetadata { + // The unique identifier of the conversion action. This ID is used to specify + // which conversions to include in a report by populating the + // `conversion_actions` field in the `ConversionsSpec` of a report request. + // For example, 'conversionActions/1234'. + string conversion_action = 1; + + // This conversion's name within the Google Analytics user interface. + string display_name = 2; +} diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml index 2895b78545f4..0afd0de01c5e 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.102.0 + 0.103.0 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.102.0 + 0.103.0 diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/AsyncGetMetadata.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/AsyncGetMetadata.java new file mode 100644 index 000000000000..7c047e45106b --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/AsyncGetMetadata.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_async] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.GetMetadataRequest; +import com.google.analytics.data.v1alpha.Metadata; +import com.google.analytics.data.v1alpha.MetadataName; +import com.google.api.core.ApiFuture; + +public class AsyncGetMetadata { + + public static void main(String[] args) throws Exception { + asyncGetMetadata(); + } + + public static void asyncGetMetadata() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + GetMetadataRequest request = + GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build(); + ApiFuture future = + alphaAnalyticsDataClient.getMetadataCallable().futureCall(request); + // Do something. + Metadata response = future.get(); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_async] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadata.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadata.java new file mode 100644 index 000000000000..c96540e28dd6 --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadata.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_sync] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.GetMetadataRequest; +import com.google.analytics.data.v1alpha.Metadata; +import com.google.analytics.data.v1alpha.MetadataName; + +public class SyncGetMetadata { + + public static void main(String[] args) throws Exception { + syncGetMetadata(); + } + + public static void syncGetMetadata() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + GetMetadataRequest request = + GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build(); + Metadata response = alphaAnalyticsDataClient.getMetadata(request); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadataMetadataname.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadataMetadataname.java new file mode 100644 index 000000000000..169926ad07cd --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadataMetadataname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_Metadataname_sync] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.Metadata; +import com.google.analytics.data.v1alpha.MetadataName; + +public class SyncGetMetadataMetadataname { + + public static void main(String[] args) throws Exception { + syncGetMetadataMetadataname(); + } + + public static void syncGetMetadataMetadataname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + MetadataName name = MetadataName.of("[PROPERTY]"); + Metadata response = alphaAnalyticsDataClient.getMetadata(name); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_Metadataname_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadataString.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadataString.java new file mode 100644 index 000000000000..11f712bcb6b9 --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getmetadata/SyncGetMetadataString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_String_sync] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.Metadata; +import com.google.analytics.data.v1alpha.MetadataName; + +public class SyncGetMetadataString { + + public static void main(String[] args) throws Exception { + syncGetMetadataString(); + } + + public static void syncGetMetadataString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + String name = MetadataName.of("[PROPERTY]").toString(); + Metadata response = alphaAnalyticsDataClient.getMetadata(name); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_String_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/runreport/AsyncRunReport.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/runreport/AsyncRunReport.java new file mode 100644 index 000000000000..efab7ab2dbcf --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/runreport/AsyncRunReport.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunReport_async] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.CohortSpec; +import com.google.analytics.data.v1alpha.Comparison; +import com.google.analytics.data.v1alpha.ConversionSpec; +import com.google.analytics.data.v1alpha.DateRange; +import com.google.analytics.data.v1alpha.Dimension; +import com.google.analytics.data.v1alpha.FilterExpression; +import com.google.analytics.data.v1alpha.Metric; +import com.google.analytics.data.v1alpha.MetricAggregation; +import com.google.analytics.data.v1alpha.OrderBy; +import com.google.analytics.data.v1alpha.RunReportRequest; +import com.google.analytics.data.v1alpha.RunReportResponse; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncRunReport { + + public static void main(String[] args) throws Exception { + asyncRunReport(); + } + + public static void asyncRunReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("property-993141291") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setMetricFilter(FilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .addAllMetricAggregations(new ArrayList()) + .addAllOrderBys(new ArrayList()) + .setCurrencyCode("currencyCode1004773790") + .setCohortSpec(CohortSpec.newBuilder().build()) + .setKeepEmptyRows(true) + .setReturnPropertyQuota(true) + .addAllComparisons(new ArrayList()) + .setConversionSpec(ConversionSpec.newBuilder().build()) + .build(); + ApiFuture future = + alphaAnalyticsDataClient.runReportCallable().futureCall(request); + // Do something. + RunReportResponse response = future.get(); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunReport_async] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/runreport/SyncRunReport.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/runreport/SyncRunReport.java new file mode 100644 index 000000000000..ca353f7681de --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/runreport/SyncRunReport.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunReport_sync] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.CohortSpec; +import com.google.analytics.data.v1alpha.Comparison; +import com.google.analytics.data.v1alpha.ConversionSpec; +import com.google.analytics.data.v1alpha.DateRange; +import com.google.analytics.data.v1alpha.Dimension; +import com.google.analytics.data.v1alpha.FilterExpression; +import com.google.analytics.data.v1alpha.Metric; +import com.google.analytics.data.v1alpha.MetricAggregation; +import com.google.analytics.data.v1alpha.OrderBy; +import com.google.analytics.data.v1alpha.RunReportRequest; +import com.google.analytics.data.v1alpha.RunReportResponse; +import java.util.ArrayList; + +public class SyncRunReport { + + public static void main(String[] args) throws Exception { + syncRunReport(); + } + + public static void syncRunReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("property-993141291") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setMetricFilter(FilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .addAllMetricAggregations(new ArrayList()) + .addAllOrderBys(new ArrayList()) + .setCurrencyCode("currencyCode1004773790") + .setCohortSpec(CohortSpec.newBuilder().build()) + .setKeepEmptyRows(true) + .setReturnPropertyQuota(true) + .addAllComparisons(new ArrayList()) + .setConversionSpec(ConversionSpec.newBuilder().build()) + .build(); + RunReportResponse response = alphaAnalyticsDataClient.runReport(request); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunReport_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/AsyncSheetExportAudienceList.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/AsyncSheetExportAudienceList.java deleted file mode 100644 index 6e1df485402b..000000000000 --- a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/AsyncSheetExportAudienceList.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.samples; - -// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_async] -import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; -import com.google.analytics.data.v1alpha.AudienceListName; -import com.google.analytics.data.v1alpha.SheetExportAudienceListRequest; -import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse; -import com.google.api.core.ApiFuture; - -public class AsyncSheetExportAudienceList { - - public static void main(String[] args) throws Exception { - asyncSheetExportAudienceList(); - } - - public static void asyncSheetExportAudienceList() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { - SheetExportAudienceListRequest request = - SheetExportAudienceListRequest.newBuilder() - .setName(AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]").toString()) - .setOffset(-1019779949) - .setLimit(102976443) - .build(); - ApiFuture future = - alphaAnalyticsDataClient.sheetExportAudienceListCallable().futureCall(request); - // Do something. - SheetExportAudienceListResponse response = future.get(); - } - } -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_async] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceList.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceList.java deleted file mode 100644 index bedeae9d0739..000000000000 --- a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceList.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.samples; - -// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_sync] -import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; -import com.google.analytics.data.v1alpha.AudienceListName; -import com.google.analytics.data.v1alpha.SheetExportAudienceListRequest; -import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse; - -public class SyncSheetExportAudienceList { - - public static void main(String[] args) throws Exception { - syncSheetExportAudienceList(); - } - - public static void syncSheetExportAudienceList() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { - SheetExportAudienceListRequest request = - SheetExportAudienceListRequest.newBuilder() - .setName(AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]").toString()) - .setOffset(-1019779949) - .setLimit(102976443) - .build(); - SheetExportAudienceListResponse response = - alphaAnalyticsDataClient.sheetExportAudienceList(request); - } - } -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceListAudiencelistname.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceListAudiencelistname.java deleted file mode 100644 index 16a83313e42d..000000000000 --- a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceListAudiencelistname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.samples; - -// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_Audiencelistname_sync] -import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; -import com.google.analytics.data.v1alpha.AudienceListName; -import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse; - -public class SyncSheetExportAudienceListAudiencelistname { - - public static void main(String[] args) throws Exception { - syncSheetExportAudienceListAudiencelistname(); - } - - public static void syncSheetExportAudienceListAudiencelistname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { - AudienceListName name = AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]"); - SheetExportAudienceListResponse response = - alphaAnalyticsDataClient.sheetExportAudienceList(name); - } - } -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_Audiencelistname_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceListString.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceListString.java deleted file mode 100644 index d2d7e3acfe21..000000000000 --- a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/sheetexportaudiencelist/SyncSheetExportAudienceListString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.samples; - -// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_String_sync] -import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; -import com.google.analytics.data.v1alpha.AudienceListName; -import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse; - -public class SyncSheetExportAudienceListString { - - public static void main(String[] args) throws Exception { - syncSheetExportAudienceListString(); - } - - public static void syncSheetExportAudienceListString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { - String name = AudienceListName.of("[PROPERTY]", "[AUDIENCE_LIST]").toString(); - SheetExportAudienceListResponse response = - alphaAnalyticsDataClient.sheetExportAudienceList(name); - } - } -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_String_sync] diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index db6d49ac6e17..1cc1ff085593 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.87.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.87.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.88.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-analyticshub/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.88.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index 1660d870026a..586680a86943 100644 --- a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-analyticshub-bom - 0.88.0 + 0.89.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-analyticshub - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.88.0 + 0.89.0 diff --git a/java-analyticshub/google-cloud-analyticshub/pom.xml b/java-analyticshub/google-cloud-analyticshub/pom.xml index 995edc76615d..c14532b38218 100644 --- a/java-analyticshub/google-cloud-analyticshub/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-analyticshub - 0.88.0 + 0.89.0 jar Google Analytics Hub API Analytics Hub API TBD com.google.cloud google-cloud-analyticshub-parent - 0.88.0 + 0.89.0 google-cloud-analyticshub diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/Version.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/Version.java index a9014c961907..1e2da1b19e59 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/Version.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-analyticshub:current} - static final String VERSION = "0.88.0"; + static final String VERSION = "0.89.0"; // {x-version-update-end} } diff --git a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml index 6f7a95b470c8..dd0632df5f93 100644 --- a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.88.0 + 0.89.0 grpc-google-cloud-analyticshub-v1 GRPC library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.88.0 + 0.89.0 diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index b0fae30b5f78..f19ed0b4f8d6 100644 --- a/java-analyticshub/pom.xml +++ b/java-analyticshub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-analyticshub-parent pom - 0.88.0 + 0.89.0 Google Analytics Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-analyticshub - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.88.0 + 0.89.0 diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml index 7505511c0544..65261d1ac993 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.88.0 + 0.89.0 proto-google-cloud-analyticshub-v1 Proto library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.88.0 + 0.89.0 diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index ff73e1501031..8f01050170f9 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.90.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-api-gateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml index 6dcf5fb8bd2f..0e79ee1428f7 100644 --- a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-api-gateway-bom - 2.91.0 + 2.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-api-gateway - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.91.0 + 2.92.0 diff --git a/java-api-gateway/google-cloud-api-gateway/pom.xml b/java-api-gateway/google-cloud-api-gateway/pom.xml index 1d88e6bc9f50..667e964e7c0e 100644 --- a/java-api-gateway/google-cloud-api-gateway/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-api-gateway - 2.91.0 + 2.92.0 jar Google API Gateway API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint. com.google.cloud google-cloud-api-gateway-parent - 2.91.0 + 2.92.0 google-cloud-api-gateway diff --git a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/Version.java b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/Version.java index 0b011a454d75..7a7ddb4e2eef 100644 --- a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/Version.java +++ b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-api-gateway:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml index eba9c7924d64..f114a0eaeeca 100644 --- a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.91.0 + 2.92.0 grpc-google-cloud-api-gateway-v1 GRPC library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.91.0 + 2.92.0 diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index d1a4878a7937..3eb91729131f 100644 --- a/java-api-gateway/pom.xml +++ b/java-api-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-api-gateway-parent pom - 2.91.0 + 2.92.0 Google API Gateway Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-api-gateway - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.91.0 + 2.92.0 diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml index 70d7bb2afb82..1218a6205058 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.91.0 + 2.92.0 proto-google-cloud-api-gateway-v1 Proto library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.91.0 + 2.92.0 diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 611d8bfd9b48..a0b1e4c7c4e8 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.90.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-connect/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml index 2254077535a8..26a741b09906 100644 --- a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect-bom - 2.91.0 + 2.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-connect - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.91.0 + 2.92.0 diff --git a/java-apigee-connect/google-cloud-apigee-connect/pom.xml b/java-apigee-connect/google-cloud-apigee-connect/pom.xml index 740687a9ed35..d62196f6583d 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect - 2.91.0 + 2.92.0 jar Google Apigee Connect Apigee Connect allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. com.google.cloud google-cloud-apigee-connect-parent - 2.91.0 + 2.92.0 google-cloud-apigee-connect diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/Version.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/Version.java index 7e935fce3a06..ac51c2ba583e 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/Version.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apigee-connect:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml index 38606646b313..10e81588c0d9 100644 --- a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.91.0 + 2.92.0 grpc-google-cloud-apigee-connect-v1 GRPC library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.91.0 + 2.92.0 diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index 45117b70df7a..7dd8a9f650be 100644 --- a/java-apigee-connect/pom.xml +++ b/java-apigee-connect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-connect-parent pom - 2.91.0 + 2.92.0 Google Apigee Connect Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-connect - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.91.0 + 2.92.0 diff --git a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml index 53cf6cdde1e6..8cd0425b4831 100644 --- a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.91.0 + 2.92.0 proto-google-cloud-apigee-connect-v1 Proto library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.91.0 + 2.92.0 diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 7347afdf251e..829fe3e3eed7 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-registry - 0.90.0 + 0.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.90.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.91.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-registry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml index 84c0ba2e6a02..8202ab2b7ed8 100644 --- a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry-bom - 0.91.0 + 0.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-registry - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.91.0 + 0.92.0 diff --git a/java-apigee-registry/google-cloud-apigee-registry/pom.xml b/java-apigee-registry/google-cloud-apigee-registry/pom.xml index 320371b9bf31..a2ab8374547f 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry - 0.91.0 + 0.92.0 jar Google Registry API Registry API allows teams to upload and share machine-readable descriptions of APIs that are in use and in development. com.google.cloud google-cloud-apigee-registry-parent - 0.91.0 + 0.92.0 google-cloud-apigee-registry diff --git a/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/Version.java b/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/Version.java index a3bb234e5148..76cf997bc1a1 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/Version.java +++ b/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apigee-registry:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0"; // {x-version-update-end} } diff --git a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml index 1be6d177636d..6b0a65e1c419 100644 --- a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.91.0 + 0.92.0 grpc-google-cloud-apigee-registry-v1 GRPC library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.91.0 + 0.92.0 diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index 8184e5ce19e6..0be9e62434aa 100644 --- a/java-apigee-registry/pom.xml +++ b/java-apigee-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-registry-parent pom - 0.91.0 + 0.92.0 Google Registry API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-registry - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.91.0 + 0.92.0 diff --git a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml index cb5a9bac89cc..ba5ca96b52c6 100644 --- a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.91.0 + 0.92.0 proto-google-cloud-apigee-registry-v1 Proto library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.91.0 + 0.92.0 diff --git a/java-apihub/README.md b/java-apihub/README.md index ed80109ce1a5..f8acf14b653d 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.43.0' +implementation 'com.google.cloud:google-cloud-apihub:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.44.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apihub/google-cloud-apihub-bom/pom.xml b/java-apihub/google-cloud-apihub-bom/pom.xml index 02fab7ca9cb6..108edbd819f3 100644 --- a/java-apihub/google-cloud-apihub-bom/pom.xml +++ b/java-apihub/google-cloud-apihub-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-apihub-bom - 0.44.0 + 0.45.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.cloud google-cloud-apihub - 0.44.0 + 0.45.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.44.0 + 0.45.0 diff --git a/java-apihub/google-cloud-apihub/pom.xml b/java-apihub/google-cloud-apihub/pom.xml index 1befcc626694..46c67ebf05d8 100644 --- a/java-apihub/google-cloud-apihub/pom.xml +++ b/java-apihub/google-cloud-apihub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apihub - 0.44.0 + 0.45.0 jar Google API hub API API hub API API hub lets you consolidate and organize information about all of the APIs of interest to your organization. API hub lets you capture critical information about APIs that allows developers to discover and evaluate them easily and leverage the work of other teams wherever possible. API platform teams can use API hub to have visibility into and manage their portfolio of APIs. com.google.cloud google-cloud-apihub-parent - 0.44.0 + 0.45.0 google-cloud-apihub diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/Version.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/Version.java index 6cbc0e3d072d..88e420cf1eb2 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/Version.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apihub:current} - static final String VERSION = "0.44.0"; + static final String VERSION = "0.45.0"; // {x-version-update-end} } diff --git a/java-apihub/pom.xml b/java-apihub/pom.xml index 564bb20bf06d..0e5d485c0958 100644 --- a/java-apihub/pom.xml +++ b/java-apihub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apihub-parent pom - 0.44.0 + 0.45.0 Google API hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-apihub - 0.44.0 + 0.45.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.44.0 + 0.45.0 diff --git a/java-apihub/proto-google-cloud-apihub-v1/pom.xml b/java-apihub/proto-google-cloud-apihub-v1/pom.xml index 9457521e15d6..3bc161e229e0 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/pom.xml +++ b/java-apihub/proto-google-cloud-apihub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.44.0 + 0.45.0 proto-google-cloud-apihub-v1 Proto library for google-cloud-apihub com.google.cloud google-cloud-apihub-parent - 0.44.0 + 0.45.0 diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 3b57ec90e5c0..b274b68670ec 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.88.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.89.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index 8eec0af4b90a..4c1196f99f5b 100644 --- a/java-apikeys/google-cloud-apikeys-bom/pom.xml +++ b/java-apikeys/google-cloud-apikeys-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apikeys-bom - 0.89.0 + 0.90.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apikeys - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.89.0 + 0.90.0 diff --git a/java-apikeys/google-cloud-apikeys/pom.xml b/java-apikeys/google-cloud-apikeys/pom.xml index 900bfa58fee9..6e92884c1b84 100644 --- a/java-apikeys/google-cloud-apikeys/pom.xml +++ b/java-apikeys/google-cloud-apikeys/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apikeys - 0.89.0 + 0.90.0 jar Google API Keys API API Keys API API Keys lets you create and manage your API keys for your projects. com.google.cloud google-cloud-apikeys-parent - 0.89.0 + 0.90.0 google-cloud-apikeys diff --git a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/Version.java b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/Version.java index 6a7a83cf124f..399a5db77532 100644 --- a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/Version.java +++ b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apikeys:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0"; // {x-version-update-end} } diff --git a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml index dd76cdafa108..015ca942b13b 100644 --- a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.89.0 + 0.90.0 grpc-google-cloud-apikeys-v2 GRPC library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.89.0 + 0.90.0 diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index 92f68a2f7efe..b2a59fff8b95 100644 --- a/java-apikeys/pom.xml +++ b/java-apikeys/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apikeys-parent pom - 0.89.0 + 0.90.0 Google API Keys API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apikeys - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.89.0 + 0.90.0 diff --git a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml index 65523560b180..2f0c927785f5 100644 --- a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.89.0 + 0.90.0 proto-google-cloud-apikeys-v2 Proto library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.89.0 + 0.90.0 diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 4a46602eb961..7f668e24a7ca 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.90.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appengine-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml index bff67d71068b..bea2f65dab23 100644 --- a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin-bom - 2.91.0 + 2.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-appengine-admin - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.91.0 + 2.92.0 diff --git a/java-appengine-admin/google-cloud-appengine-admin/pom.xml b/java-appengine-admin/google-cloud-appengine-admin/pom.xml index efe6023792d4..38d8c1597498 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin - 2.91.0 + 2.92.0 jar Google App Engine Admin API App Engine Admin API you to manage your App Engine applications. com.google.cloud google-cloud-appengine-admin-parent - 2.91.0 + 2.92.0 google-cloud-appengine-admin diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/Version.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/Version.java index 16387d615fc8..d0ace3aff73b 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/Version.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-appengine-admin:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml index 00c708937112..035b085acced 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.91.0 + 2.92.0 grpc-google-cloud-appengine-admin-v1 GRPC library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.91.0 + 2.92.0 diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index 59e7b17bfdb2..96106b6e96ec 100644 --- a/java-appengine-admin/pom.xml +++ b/java-appengine-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-appengine-admin-parent pom - 2.91.0 + 2.92.0 Google App Engine Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-appengine-admin - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.91.0 + 2.92.0 diff --git a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml index c7297af712df..af04ee288fa7 100644 --- a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.91.0 + 2.92.0 proto-google-cloud-appengine-admin-v1 Proto library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.91.0 + 2.92.0 diff --git a/java-apphub/README.md b/java-apphub/README.md index a07644102c14..88b68719f9e7 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.54.0' +implementation 'com.google.cloud:google-cloud-apphub:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.55.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apphub/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/google-cloud-apphub-bom/pom.xml b/java-apphub/google-cloud-apphub-bom/pom.xml index dd12bcdd26c0..675399e0ea99 100644 --- a/java-apphub/google-cloud-apphub-bom/pom.xml +++ b/java-apphub/google-cloud-apphub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apphub-bom - 0.55.0 + 0.56.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apphub - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.55.0 + 0.56.0 diff --git a/java-apphub/google-cloud-apphub/pom.xml b/java-apphub/google-cloud-apphub/pom.xml index 952f87cabfee..506143493d38 100644 --- a/java-apphub/google-cloud-apphub/pom.xml +++ b/java-apphub/google-cloud-apphub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apphub - 0.55.0 + 0.56.0 jar Google App Hub API App Hub API App Hub simplifies the process of building, running, and managing applications on Google Cloud. com.google.cloud google-cloud-apphub-parent - 0.55.0 + 0.56.0 google-cloud-apphub diff --git a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/Version.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/Version.java index 2950a777fc3b..fe7179e8084b 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/Version.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apphub:current} - static final String VERSION = "0.55.0"; + static final String VERSION = "0.56.0"; // {x-version-update-end} } diff --git a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml index 453a671d8f1f..29c5a234a8a5 100644 --- a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.55.0 + 0.56.0 grpc-google-cloud-apphub-v1 GRPC library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.55.0 + 0.56.0 diff --git a/java-apphub/pom.xml b/java-apphub/pom.xml index 5be622b6ee58..a7248fae8500 100644 --- a/java-apphub/pom.xml +++ b/java-apphub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apphub-parent pom - 0.55.0 + 0.56.0 Google App Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apphub - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.55.0 + 0.56.0 diff --git a/java-apphub/proto-google-cloud-apphub-v1/pom.xml b/java-apphub/proto-google-cloud-apphub-v1/pom.xml index 95842e3ec6e1..1ccd78bbed94 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/proto-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.55.0 + 0.56.0 proto-google-cloud-apphub-v1 Proto library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.55.0 + 0.56.0 diff --git a/java-appoptimize/README.md b/java-appoptimize/README.md index 2c9ce0d61010..d9592030a629 100644 --- a/java-appoptimize/README.md +++ b/java-appoptimize/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appoptimize - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appoptimize:0.0.0' +implementation 'com.google.cloud:google-cloud-appoptimize:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.1.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appoptimize.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appoptimize/google-cloud-appoptimize-bom/pom.xml b/java-appoptimize/google-cloud-appoptimize-bom/pom.xml index 58908ffb96e0..9494c9340b2c 100644 --- a/java-appoptimize/google-cloud-appoptimize-bom/pom.xml +++ b/java-appoptimize/google-cloud-appoptimize-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-appoptimize-bom - 0.1.0 + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-appoptimize - 0.1.0 + 0.2.0 com.google.api.grpc grpc-google-cloud-appoptimize-v1beta - 0.1.0 + 0.2.0 com.google.api.grpc proto-google-cloud-appoptimize-v1beta - 0.1.0 + 0.2.0 diff --git a/java-appoptimize/google-cloud-appoptimize/pom.xml b/java-appoptimize/google-cloud-appoptimize/pom.xml index 95aa221cfcfd..80553d38791e 100644 --- a/java-appoptimize/google-cloud-appoptimize/pom.xml +++ b/java-appoptimize/google-cloud-appoptimize/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-appoptimize - 0.1.0 + 0.2.0 jar Google App Optimize API App Optimize API The App Optimize API provides developers and platform teams with tools to monitor, analyze, and improve the performance and cost-efficiency of their cloud applications. com.google.cloud google-cloud-appoptimize-parent - 0.1.0 + 0.2.0 google-cloud-appoptimize diff --git a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/Version.java b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/Version.java index 903b13a1d814..9bef4140bbc7 100644 --- a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/Version.java +++ b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-appoptimize:current} - static final String VERSION = "0.1.0"; + static final String VERSION = "0.2.0"; // {x-version-update-end} } diff --git a/java-appoptimize/grpc-google-cloud-appoptimize-v1beta/pom.xml b/java-appoptimize/grpc-google-cloud-appoptimize-v1beta/pom.xml index accf19765960..509f9d4ff0ac 100644 --- a/java-appoptimize/grpc-google-cloud-appoptimize-v1beta/pom.xml +++ b/java-appoptimize/grpc-google-cloud-appoptimize-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-appoptimize-v1beta - 0.1.0 + 0.2.0 grpc-google-cloud-appoptimize-v1beta GRPC library for google-cloud-appoptimize com.google.cloud google-cloud-appoptimize-parent - 0.1.0 + 0.2.0 diff --git a/java-appoptimize/owlbot.py b/java-appoptimize/owlbot.py index 6da47954339a..fbb37df70f1a 100644 --- a/java-appoptimize/owlbot.py +++ b/java-appoptimize/owlbot.py @@ -33,6 +33,5 @@ "java.header", "license-checks.xml", "renovate.json", - ".gitignore", - ], -) \ No newline at end of file + ".gitignore" +]) \ No newline at end of file diff --git a/java-appoptimize/pom.xml b/java-appoptimize/pom.xml index a32bdc25f39d..864d5eb8dd63 100644 --- a/java-appoptimize/pom.xml +++ b/java-appoptimize/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-appoptimize-parent pom - 0.1.0 + 0.2.0 Google App Optimize API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-appoptimize - 0.1.0 + 0.2.0 com.google.api.grpc grpc-google-cloud-appoptimize-v1beta - 0.1.0 + 0.2.0 com.google.api.grpc proto-google-cloud-appoptimize-v1beta - 0.1.0 + 0.2.0 diff --git a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/pom.xml b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/pom.xml index 2f588cb17d0e..4ffd4135044e 100644 --- a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/pom.xml +++ b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-appoptimize-v1beta - 0.1.0 + 0.2.0 proto-google-cloud-appoptimize-v1beta Proto library for google-cloud-appoptimize com.google.cloud google-cloud-appoptimize-parent - 0.1.0 + 0.2.0 diff --git a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeProto.java b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeProto.java index 354f1c76c9c6..428bdc3df148 100644 --- a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeProto.java +++ b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeProto.java @@ -174,11 +174,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1beta.ReadReportResponse\"F\332A\004name\202\323\344\223\0029\"" + "4/v1beta/{name=projects/*/locations/*/re" + "ports/*}:read:\001*\032N\312A\032appoptimize.googlea" - + "pis.com\322A.https://www.googleapis.com/auth/cloud-platformB\352\001\n" + + "pis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\002\n" + "#com.google.cloud.appoptimize.v1betaB\020AppOptimizeProtoP\001ZEcl" - + "oud.google.com/go/appoptimize/apiv1beta/appoptimizepb;appoptimizepb\352Ag\n" - + "!apphub.googleapis.com/Application\022Bprojects/{pro" - + "ject}/locations/{location}/applications/{application}b\006proto3" + + "oud.google.com/go/appoptimize/apiv1beta/" + + "appoptimizepb;appoptimizepb\252\002\037Google.Clo" + + "ud.AppOptimize.V1Beta\312\002\037Google\\Cloud\\AppOptimize\\V1beta\352Ag\n" + + "!apphub.googleapis.com/Application\022Bprojects/{project}/locati" + + "ons/{location}/applications/{application}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/proto/google/cloud/appoptimize/v1beta/app_optimize.proto b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/proto/google/cloud/appoptimize/v1beta/app_optimize.proto index b5b735beaf1c..4ed06f211e01 100644 --- a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/proto/google/cloud/appoptimize/v1beta/app_optimize.proto +++ b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/proto/google/cloud/appoptimize/v1beta/app_optimize.proto @@ -25,10 +25,12 @@ import "google/protobuf/empty.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.AppOptimize.V1Beta"; option go_package = "cloud.google.com/go/appoptimize/apiv1beta/appoptimizepb;appoptimizepb"; option java_multiple_files = true; option java_outer_classname = "AppOptimizeProto"; option java_package = "com.google.cloud.appoptimize.v1beta"; +option php_namespace = "Google\\Cloud\\AppOptimize\\V1beta"; // Resource definition for App Hub Application. option (google.api.resource_definition) = { diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 88142249fd2d..12610a297235 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.94.0 + 0.95.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.94.0' +implementation 'com.google.area120:google-area120-tables:0.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.94.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.95.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-area120-tables/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index 234e7f6675b8..3261fff88eef 100644 --- a/java-area120-tables/google-area120-tables-bom/pom.xml +++ b/java-area120-tables/google-area120-tables-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.area120 google-area120-tables-bom - 0.95.0 + 0.96.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.area120 google-area120-tables - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.95.0 + 0.96.0 diff --git a/java-area120-tables/google-area120-tables/pom.xml b/java-area120-tables/google-area120-tables/pom.xml index 8221eaa26a6b..1b2bd8a3f6eb 100644 --- a/java-area120-tables/google-area120-tables/pom.xml +++ b/java-area120-tables/google-area120-tables/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.area120 google-area120-tables - 0.95.0 + 0.96.0 jar Google Area 120 Tables provides programmatic methods to the Area 120 Tables API. com.google.area120 google-area120-tables-parent - 0.95.0 + 0.96.0 google-area120-tables diff --git a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/Version.java b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/Version.java index 3b6da887a848..69c7c9211e6b 100644 --- a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/Version.java +++ b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-area120-tables:current} - static final String VERSION = "0.95.0"; + static final String VERSION = "0.96.0"; // {x-version-update-end} } diff --git a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml index 5cf98dab1bb9..42c54f0fb26b 100644 --- a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.95.0 + 0.96.0 grpc-google-area120-tables-v1alpha1 GRPC library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.95.0 + 0.96.0 diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index 7a8fe787c1b9..eccec7b55dde 100644 --- a/java-area120-tables/pom.xml +++ b/java-area120-tables/pom.xml @@ -4,7 +4,7 @@ com.google.area120 google-area120-tables-parent pom - 0.95.0 + 0.96.0 Google Area 120 Tables Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.area120 google-area120-tables - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.95.0 + 0.96.0 diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml index bf223cc2edbc..61de2cc78194 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.95.0 + 0.96.0 proto-google-area120-tables-v1alpha1 Proto library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.95.0 + 0.96.0 diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 75ef466ea5b6..0354d450f988 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.89.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.89.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.90.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml index 664fd8aa0390..9a74c18d675a 100644 --- a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry-bom - 1.90.0 + 1.91.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-artifact-registry - 1.90.0 + 1.91.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.96.0 + 0.97.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.90.0 + 1.91.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.96.0 + 0.97.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.90.0 + 1.91.0 diff --git a/java-artifact-registry/google-cloud-artifact-registry/pom.xml b/java-artifact-registry/google-cloud-artifact-registry/pom.xml index 37f50cc1323f..a5c3c25e6fe2 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry - 1.90.0 + 1.91.0 jar Google Artifact Registry provides a single place for your organization to manage container images and language packages (such as Maven and npm). It is fully integrated with Google Cloud's tooling and runtimes and comes with support for native artifact protocols. This makes it simple to integrate it with your CI/CD tooling to set up automated pipelines. com.google.cloud google-cloud-artifact-registry-parent - 1.90.0 + 1.91.0 google-cloud-artifact-registry diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java index 7a5511999e4b..1191f8b1e84b 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java @@ -1824,7 +1824,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("package_", request.getPackage(), true)) + .toBody("package", request.getPackage(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/Version.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/Version.java index 6ef1874c336b..7035f6d53000 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/Version.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-artifact-registry:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0"; // {x-version-update-end} } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/Version.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/Version.java index 06738804de7c..e0cb69eefe99 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/Version.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-artifact-registry:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0"; // {x-version-update-end} } diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml index 29f9fc4dfd45..6b4137f81eff 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.90.0 + 1.91.0 grpc-google-cloud-artifact-registry-v1 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.90.0 + 1.91.0 diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml index 17fa1785a1ce..b4453f689a4c 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.96.0 + 0.97.0 grpc-google-cloud-artifact-registry-v1beta2 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.90.0 + 1.91.0 diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index acadcebae0aa..46fb30ab4fc8 100644 --- a/java-artifact-registry/pom.xml +++ b/java-artifact-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-artifact-registry-parent pom - 1.90.0 + 1.91.0 Google Artifact Registry Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-artifact-registry - 1.90.0 + 1.91.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.90.0 + 1.91.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.90.0 + 1.91.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.96.0 + 0.97.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.96.0 + 0.97.0 diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml index 0ac88e6a31f6..917fff2c0d9a 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.90.0 + 1.91.0 proto-google-cloud-artifact-registry-v1 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.90.0 + 1.91.0 diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml index aa2f1d69e333..afd082abe398 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.96.0 + 0.97.0 grpc-google-cloud-artifact-registry-v1beta2 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.90.0 + 1.91.0 diff --git a/java-asset/.repo-metadata.json b/java-asset/.repo-metadata.json index 75c188dbd8dd..a9873240133c 100644 --- a/java-asset/.repo-metadata.json +++ b/java-asset/.repo-metadata.json @@ -14,5 +14,5 @@ "library_type": "GAPIC_AUTO", "requires_billing": true, "api_reference": "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview", - "issue_tracker": "https://issuetracker.google.com/issues/new?component=187210&template=0" + "issue_tracker": "https://issuetracker.google.com/issues/new?component=187210" } \ No newline at end of file diff --git a/java-asset/README.md b/java-asset/README.md index f9673772cba4..f7d8115c34c8 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.94.0 + 3.95.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.94.0' +implementation 'com.google.cloud:google-cloud-asset:3.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.95.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index be04ecb4e2f8..c763c50d878e 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-asset-bom - 3.95.0 + 3.96.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-asset - 3.95.0 + 3.96.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.95.0 + 3.96.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.195.0 + 0.196.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.195.0 + 0.196.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.195.0 + 0.196.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.95.0 + 3.96.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.95.0 + 3.96.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.195.0 + 0.196.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.195.0 + 0.196.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.195.0 + 0.196.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.95.0 + 3.96.0 diff --git a/java-asset/google-cloud-asset/pom.xml b/java-asset/google-cloud-asset/pom.xml index 42e872ac48f2..581f84133c59 100644 --- a/java-asset/google-cloud-asset/pom.xml +++ b/java-asset/google-cloud-asset/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-asset - 3.95.0 + 3.96.0 jar Google Cloud Asset Java idiomatic client for Google Cloud Asset com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 google-cloud-asset diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/Version.java index 5c115f2b2826..71b6e2145ddc 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.95.0"; + static final String VERSION = "3.96.0"; // {x-version-update-end} } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/Version.java index 133343c757d3..1268f73ef3a3 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.95.0"; + static final String VERSION = "3.96.0"; // {x-version-update-end} } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/Version.java index 3963139517b4..9367d5988f0d 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.95.0"; + static final String VERSION = "3.96.0"; // {x-version-update-end} } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/Version.java index d815eb2445ca..fac64d1e7161 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.95.0"; + static final String VERSION = "3.96.0"; // {x-version-update-end} } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/Version.java index 16e020a1e36b..8c537a95ae81 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.95.0"; + static final String VERSION = "3.96.0"; // {x-version-update-end} } diff --git a/java-asset/grpc-google-cloud-asset-v1/pom.xml b/java-asset/grpc-google-cloud-asset-v1/pom.xml index 5c80ec912337..25666fc9e4a5 100644 --- a/java-asset/grpc-google-cloud-asset-v1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.95.0 + 3.96.0 grpc-google-cloud-asset-v1 GRPC library for grpc-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml index 878a330d5623..17f8a5f34d92 100644 --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.195.0 + 0.196.0 grpc-google-cloud-asset-v1p1beta1 GRPC library for grpc-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml index 1de474fec828..21bb80307790 100644 --- a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.195.0 + 0.196.0 grpc-google-cloud-asset-v1p2beta1 GRPC library for grpc-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml index 5138fc4ff25f..1cf9d9a7280a 100644 --- a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.195.0 + 0.196.0 grpc-google-cloud-asset-v1p5beta1 GRPC library for grpc-google-cloud-asset-v1p5beta1 com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml index af415785baa8..665a8a02787c 100644 --- a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.95.0 + 3.96.0 grpc-google-cloud-asset-v1p7beta1 GRPC library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/pom.xml b/java-asset/pom.xml index 0aaac59520f3..7f3520518b52 100644 --- a/java-asset/pom.xml +++ b/java-asset/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-asset-parent pom - 3.95.0 + 3.96.0 Google Cloud Asset Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,77 +29,77 @@ com.google.api.grpc proto-google-cloud-asset-v1 - 3.95.0 + 3.96.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.95.0 + 3.96.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.95.0 + 3.96.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.195.0 + 0.196.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.195.0 + 0.196.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.195.0 + 0.196.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.95.0 + 3.96.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.195.0 + 0.196.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.195.0 + 0.196.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.195.0 + 0.196.0 com.google.cloud google-cloud-asset - 3.95.0 + 3.96.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.92.0 + 1.93.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.93.0 + 2.94.0 com.google.cloud google-cloud-resourcemanager - 1.93.0 + 1.94.0 test diff --git a/java-asset/proto-google-cloud-asset-v1/pom.xml b/java-asset/proto-google-cloud-asset-v1/pom.xml index aa924f8ddd8e..93c7ba85c3cb 100644 --- a/java-asset/proto-google-cloud-asset-v1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.95.0 + 3.96.0 proto-google-cloud-asset-v1 PROTO library for proto-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml index 4fe190dbaba4..912bb2a4cfb7 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.195.0 + 0.196.0 proto-google-cloud-asset-v1p1beta1 PROTO library for proto-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml index b14c2b36ddfa..5ae8e10efd05 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.195.0 + 0.196.0 proto-google-cloud-asset-v1p2beta1 PROTO library for proto-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml index a98fa339a85e..905009afb8b4 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.195.0 + 0.196.0 proto-google-cloud-asset-v1p5beta1 PROTO library for proto-google-cloud-asset-v1p4beta1 com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml index f5678b71e80c..d64aca919feb 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.95.0 + 3.96.0 proto-google-cloud-asset-v1p7beta1 Proto library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.95.0 + 3.96.0 diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 4bed194c9363..784c144c8e24 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.90.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-assured-workloads/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml index 60c88a430f7c..6ba53ac8001c 100644 --- a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads-bom - 2.91.0 + 2.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-assured-workloads - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.103.0 + 0.104.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.103.0 + 0.104.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.91.0 + 2.92.0 diff --git a/java-assured-workloads/google-cloud-assured-workloads/pom.xml b/java-assured-workloads/google-cloud-assured-workloads/pom.xml index 38626be1e498..a553dbefd41a 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads - 2.91.0 + 2.92.0 jar Google Assured Workloads for Government allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. com.google.cloud google-cloud-assured-workloads-parent - 2.91.0 + 2.92.0 google-cloud-assured-workloads diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/Version.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/Version.java index 4b5b00521dbf..038c24397e86 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/Version.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-assured-workloads:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/Version.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/Version.java index 4d2a52c90be7..0a2aeab182ec 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/Version.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-assured-workloads:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml index 0e5b677d7e94..d0f96ef9c5e3 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.91.0 + 2.92.0 grpc-google-cloud-assured-workloads-v1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.91.0 + 2.92.0 diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml index 497872e0d057..1156d3b1e000 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.103.0 + 0.104.0 grpc-google-cloud-assured-workloads-v1beta1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.91.0 + 2.92.0 diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index 80200d95f371..94ee3a458951 100644 --- a/java-assured-workloads/pom.xml +++ b/java-assured-workloads/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-assured-workloads-parent pom - 2.91.0 + 2.92.0 Google Assured Workloads for Government Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-assured-workloads - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.103.0 + 0.104.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.103.0 + 0.104.0 diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml index cf4181b015f6..605c666eb095 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.91.0 + 2.92.0 proto-google-cloud-assured-workloads-v1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.91.0 + 2.92.0 diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml index cecc191f3fc5..90d34393e4f5 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.103.0 + 0.104.0 proto-google-cloud-assured-workloads-v1beta1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.91.0 + 2.92.0 diff --git a/java-auditmanager/README.md b/java-auditmanager/README.md index f179f7258403..734c9e445ebf 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-auditmanager:0.8.0' +implementation 'com.google.cloud:google-cloud-auditmanager:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.9.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-auditmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-auditmanager/google-cloud-auditmanager-bom/pom.xml b/java-auditmanager/google-cloud-auditmanager-bom/pom.xml index 3252bc9529d6..e2760e40d013 100644 --- a/java-auditmanager/google-cloud-auditmanager-bom/pom.xml +++ b/java-auditmanager/google-cloud-auditmanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-auditmanager-bom - 0.9.0 + 0.10.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-auditmanager - 0.9.0 + 0.10.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.9.0 + 0.10.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.9.0 + 0.10.0 diff --git a/java-auditmanager/google-cloud-auditmanager/pom.xml b/java-auditmanager/google-cloud-auditmanager/pom.xml index a6d9b081e5d2..925ccefcf5b9 100644 --- a/java-auditmanager/google-cloud-auditmanager/pom.xml +++ b/java-auditmanager/google-cloud-auditmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-auditmanager - 0.9.0 + 0.10.0 jar Google Audit Manager API Audit Manager API Lists information about the supported locations for this service. com.google.cloud google-cloud-auditmanager-parent - 0.9.0 + 0.10.0 google-cloud-auditmanager diff --git a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/Version.java b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/Version.java index 870d35df17d6..798846ff5389 100644 --- a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/Version.java +++ b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-auditmanager:current} - static final String VERSION = "0.9.0"; + static final String VERSION = "0.10.0"; // {x-version-update-end} } diff --git a/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml b/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml index 2c74c72efc3a..f4ebdb0477e2 100644 --- a/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml +++ b/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.9.0 + 0.10.0 grpc-google-cloud-auditmanager-v1 GRPC library for google-cloud-auditmanager com.google.cloud google-cloud-auditmanager-parent - 0.9.0 + 0.10.0 diff --git a/java-auditmanager/pom.xml b/java-auditmanager/pom.xml index 646aac221047..70b257b3326b 100644 --- a/java-auditmanager/pom.xml +++ b/java-auditmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-auditmanager-parent pom - 0.9.0 + 0.10.0 Google Audit Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-auditmanager - 0.9.0 + 0.10.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.9.0 + 0.10.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.9.0 + 0.10.0 diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml b/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml index 5714034e9b41..d465910f908f 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.9.0 + 0.10.0 proto-google-cloud-auditmanager-v1 Proto library for google-cloud-auditmanager com.google.cloud google-cloud-auditmanager-parent - 0.9.0 + 0.10.0 diff --git a/java-automl/README.md b/java-automl/README.md index af5622dc2b8a..a1355b6902c1 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.90.0' +implementation 'com.google.cloud:google-cloud-automl:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.91.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-automl/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-automl/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index 554248b98e3a..261684ea8f82 100644 --- a/java-automl/google-cloud-automl-bom/pom.xml +++ b/java-automl/google-cloud-automl-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-automl-bom - 2.91.0 + 2.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-automl - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.178.0 + 0.179.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.178.0 + 0.179.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.91.0 + 2.92.0 diff --git a/java-automl/google-cloud-automl/pom.xml b/java-automl/google-cloud-automl/pom.xml index fac193d8bb7a..7f606d2b0322 100644 --- a/java-automl/google-cloud-automl/pom.xml +++ b/java-automl/google-cloud-automl/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-automl - 2.91.0 + 2.92.0 jar Google Cloud AutoML Java idiomatic client for Google Cloud Auto ML com.google.cloud google-cloud-automl-parent - 2.91.0 + 2.92.0 google-cloud-automl diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/Version.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/Version.java index cffb69be75d0..8f67aced2789 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/Version.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-automl:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/Version.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/Version.java index 472957f160b4..e3c47b869c9d 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/Version.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-automl:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-automl/grpc-google-cloud-automl-v1/pom.xml b/java-automl/grpc-google-cloud-automl-v1/pom.xml index 4ff6a6ea6ba4..3017c4ff2180 100644 --- a/java-automl/grpc-google-cloud-automl-v1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.91.0 + 2.92.0 grpc-google-cloud-automl-v1 GRPC library for grpc-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.91.0 + 2.92.0 diff --git a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml index 74fd95201d83..62acacce3fa0 100644 --- a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.178.0 + 0.179.0 grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.91.0 + 2.92.0 diff --git a/java-automl/pom.xml b/java-automl/pom.xml index 03300c99f891..923f2a76387a 100644 --- a/java-automl/pom.xml +++ b/java-automl/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-automl-parent pom - 2.91.0 + 2.92.0 Google Cloud AutoML Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.178.0 + 0.179.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.178.0 + 0.179.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.91.0 + 2.92.0 com.google.cloud google-cloud-automl - 2.91.0 + 2.92.0 diff --git a/java-automl/proto-google-cloud-automl-v1/pom.xml b/java-automl/proto-google-cloud-automl-v1/pom.xml index 481b15eb5a0a..5e9d7689ed3b 100644 --- a/java-automl/proto-google-cloud-automl-v1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.91.0 + 2.92.0 proto-google-cloud-automl-v1 PROTO library for proto-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.91.0 + 2.92.0 diff --git a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml index dfa02da8a6ca..ee7965d6b785 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.178.0 + 0.179.0 proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.91.0 + 2.92.0 diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 14eb81c4c146..3ca5060bd558 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.49.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.50.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/google-cloud-backupdr-bom/pom.xml b/java-backupdr/google-cloud-backupdr-bom/pom.xml index fc00ec630c2f..81c0d86c65ed 100644 --- a/java-backupdr/google-cloud-backupdr-bom/pom.xml +++ b/java-backupdr/google-cloud-backupdr-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-backupdr-bom - 0.50.0 + 0.51.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-backupdr - 0.50.0 + 0.51.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.50.0 + 0.51.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.50.0 + 0.51.0 diff --git a/java-backupdr/google-cloud-backupdr/pom.xml b/java-backupdr/google-cloud-backupdr/pom.xml index 87755da1d2c1..88ba626902b5 100644 --- a/java-backupdr/google-cloud-backupdr/pom.xml +++ b/java-backupdr/google-cloud-backupdr/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-backupdr - 0.50.0 + 0.51.0 jar Google Backup and DR Service API Backup and DR Service API Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. com.google.cloud google-cloud-backupdr-parent - 0.50.0 + 0.51.0 google-cloud-backupdr diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java index 6dcfb9aecf94..3b5a5b13ef46 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-backupdr:current} - static final String VERSION = "0.50.0"; + static final String VERSION = "0.51.0"; // {x-version-update-end} } diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml index 12aefe7f09c4..f09a3f1824c4 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.50.0 + 0.51.0 grpc-google-cloud-backupdr-v1 GRPC library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.50.0 + 0.51.0 diff --git a/java-backupdr/pom.xml b/java-backupdr/pom.xml index ceaba877a42b..ee3729bd849d 100644 --- a/java-backupdr/pom.xml +++ b/java-backupdr/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-backupdr-parent pom - 0.50.0 + 0.51.0 Google Backup and DR Service API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-backupdr - 0.50.0 + 0.51.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.50.0 + 0.51.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.50.0 + 0.51.0 diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml index 12c11248967a..498edf023779 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.50.0 + 0.51.0 proto-google-cloud-backupdr-v1 Proto library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.50.0 + 0.51.0 diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index f8393ef9c33c..a3548973bf3e 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.90.0 + 0.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.90.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.91.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml index 05b4deb05298..997c8ac55328 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution-bom - 0.91.0 + 0.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.91.0 + 0.92.0 diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml index caa938dfb8ce..a02f25269933 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution - 0.91.0 + 0.92.0 jar Google Bare Metal SOlution Bare Metal SOlution Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. com.google.cloud google-cloud-bare-metal-solution-parent - 0.91.0 + 0.92.0 google-cloud-bare-metal-solution diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/Version.java b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/Version.java index eb07d5568da6..f3755e6a37bf 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/Version.java +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bare-metal-solution:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0"; // {x-version-update-end} } diff --git a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml index e848d3a71a3d..96383c5e737d 100644 --- a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.91.0 + 0.92.0 grpc-google-cloud-bare-metal-solution-v2 GRPC library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.91.0 + 0.92.0 diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index 8579f55cb656..c1cb480325d7 100644 --- a/java-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bare-metal-solution-parent pom - 0.91.0 + 0.92.0 Google Bare Metal SOlution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.91.0 + 0.92.0 diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml index 0a6f20782055..7aeb1f0852cb 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.91.0 + 0.92.0 proto-google-cloud-bare-metal-solution-v2 Proto library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.91.0 + 0.92.0 diff --git a/java-batch/README.md b/java-batch/README.md index 68fede8a9f09..d15c268c6dc7 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.90.0 + 0.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.90.0' +implementation 'com.google.cloud:google-cloud-batch:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.91.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index 037ed2c38557..6a5a6c65b1e0 100644 --- a/java-batch/google-cloud-batch-bom/pom.xml +++ b/java-batch/google-cloud-batch-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-batch-bom - 0.91.0 + 0.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-batch - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.91.0 + 0.92.0 diff --git a/java-batch/google-cloud-batch/pom.xml b/java-batch/google-cloud-batch/pom.xml index f33c0c43d1af..ba828f673d1f 100644 --- a/java-batch/google-cloud-batch/pom.xml +++ b/java-batch/google-cloud-batch/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-batch - 0.91.0 + 0.92.0 jar Google Google Cloud Batch Google Cloud Batch n/a com.google.cloud google-cloud-batch-parent - 0.91.0 + 0.92.0 google-cloud-batch diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/Version.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/Version.java index 74a8df65b856..cd0213d78d70 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/Version.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-batch:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0"; // {x-version-update-end} } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/Version.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/Version.java index 197f0c32d101..fe068251db02 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/Version.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-batch:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0"; // {x-version-update-end} } diff --git a/java-batch/grpc-google-cloud-batch-v1/pom.xml b/java-batch/grpc-google-cloud-batch-v1/pom.xml index f2ede1fa7e9c..2ddcaa450e27 100644 --- a/java-batch/grpc-google-cloud-batch-v1/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.91.0 + 0.92.0 grpc-google-cloud-batch-v1 GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.91.0 + 0.92.0 diff --git a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml index f00fe586c8b6..679e71909702 100644 --- a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.91.0 + 0.92.0 grpc-google-cloud-batch-v1alpha GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.91.0 + 0.92.0 diff --git a/java-batch/pom.xml b/java-batch/pom.xml index d097b485de51..3b8b0ed8270e 100644 --- a/java-batch/pom.xml +++ b/java-batch/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-batch-parent pom - 0.91.0 + 0.92.0 Google Google Cloud Batch Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-batch - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.91.0 + 0.92.0 diff --git a/java-batch/proto-google-cloud-batch-v1/pom.xml b/java-batch/proto-google-cloud-batch-v1/pom.xml index b407de9d9124..dce69acb8cf4 100644 --- a/java-batch/proto-google-cloud-batch-v1/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.91.0 + 0.92.0 proto-google-cloud-batch-v1 Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.91.0 + 0.92.0 diff --git a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml index becf9b1b3106..9b43ad04742d 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.91.0 + 0.92.0 proto-google-cloud-batch-v1alpha Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.91.0 + 0.92.0 diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 7a336ce5114f..dd6cf83583de 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.88.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.89.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnections/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml index bfc946d64fa8..374c2d70db73 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.89.0 + 0.90.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml index bba5a6ec56d3..9d5d8b57861d 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections - 0.89.0 + 0.90.0 jar Google BeyondCorp AppConnections BeyondCorp AppConnections is Google's implementation of the zero trust model. It builds upon a decade of experience at Google, combined with ideas and best practices from the community. By shifting access controls from the network perimeter to individual users, BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.89.0 + 0.90.0 google-cloud-beyondcorp-appconnections diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/Version.java b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/Version.java index 26a5a05bd44c..beb2e3b5fde2 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/Version.java +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-appconnections:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0"; // {x-version-update-end} } diff --git a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml index 357a76dcc736..9ee180945344 100644 --- a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.89.0 + 0.90.0 grpc-google-cloud-beyondcorp-appconnections-v1 GRPC library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index 07be4b838fb1..dcf7d7f3ff1c 100644 --- a/java-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnections-parent pom - 0.89.0 + 0.90.0 Google BeyondCorp AppConnections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml index 26628c4b503d..eaf3d19c1102 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.89.0 + 0.90.0 proto-google-cloud-beyondcorp-appconnections-v1 Proto library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index dbf48abce3fc..4a821b6ed2a7 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.88.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.89.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnectors/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml index 410a3a4b1c33..1f3fc5dab988 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.89.0 + 0.90.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml index 18f101a17b60..3be233e61a24 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors - 0.89.0 + 0.90.0 jar Google BeyondCorp AppConnectors BeyondCorp AppConnectors provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.89.0 + 0.90.0 google-cloud-beyondcorp-appconnectors diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/Version.java b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/Version.java index 6f3793414e1c..fe226309a32e 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/Version.java +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-appconnectors:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0"; // {x-version-update-end} } diff --git a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml index 3eb314aebddd..3b78f78c6945 100644 --- a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.89.0 + 0.90.0 grpc-google-cloud-beyondcorp-appconnectors-v1 GRPC library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index faa01c58b915..b26f32f717b9 100644 --- a/java-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnectors-parent pom - 0.89.0 + 0.90.0 Google BeyondCorp AppConnectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml index a5058ebbee70..5dc3d2a24960 100644 --- a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.89.0 + 0.90.0 proto-google-cloud-beyondcorp-appconnectors-v1 Proto library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index ddb45616cf0a..026f67dfcc9a 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.88.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.89.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appgateways/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml index bc1186d02df4..d5a9f41c73d4 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.89.0 + 0.90.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml index b352d91bff97..0b908a915247 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways - 0.89.0 + 0.90.0 jar Google BeyondCorp AppGateways BeyondCorp AppGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.89.0 + 0.90.0 google-cloud-beyondcorp-appgateways diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/Version.java b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/Version.java index 052c61537d3a..b562f1f00328 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/Version.java +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-appgateways:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0"; // {x-version-update-end} } diff --git a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml index eaf678ac8136..0bb853900dfd 100644 --- a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.89.0 + 0.90.0 grpc-google-cloud-beyondcorp-appgateways-v1 GRPC library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index a19655059008..f1e8ff046d45 100644 --- a/java-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appgateways-parent pom - 0.89.0 + 0.90.0 Google BeyondCorp AppGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml index 1a9351b94f11..611e2c57865c 100644 --- a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.89.0 + 0.90.0 proto-google-cloud-beyondcorp-appgateways-v1 Proto library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 79f4a0f0bec8..2a4e88f795dc 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.88.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.89.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientconnectorservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml index 1598a1dca5c0..5499e4c46497 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.89.0 + 0.90.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml index 62b980136330..fed16d91401e 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.89.0 + 0.90.0 jar Google BeyondCorp ClientConnectorServices BeyondCorp ClientConnectorServices A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.89.0 + 0.90.0 google-cloud-beyondcorp-clientconnectorservices diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/Version.java b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/Version.java index 5edf08568fd8..6c67013f33c0 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/Version.java +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-clientconnectorservices:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0"; // {x-version-update-end} } diff --git a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index 0092e669fdc5..445ae87b8b06 100644 --- a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.89.0 + 0.90.0 grpc-google-cloud-beyondcorp-clientconnectorservices-v1 GRPC library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index e617f17b6ef5..5da66d2fa773 100644 --- a/java-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent pom - 0.89.0 + 0.90.0 Google BeyondCorp ClientConnectorServices Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index ddfd93359b7a..1ee09f7360d4 100644 --- a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.89.0 + 0.90.0 proto-google-cloud-beyondcorp-clientconnectorservices-v1 Proto library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 908374c061f8..5f389e984d86 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.88.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.89.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientgateways/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml index db812db4be93..84fc9038f946 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.89.0 + 0.90.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml index 996d69e06ae0..03a1c52a7d12 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways - 0.89.0 + 0.90.0 jar Google BeyondCorp ClientGateways BeyondCorp ClientGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.89.0 + 0.90.0 google-cloud-beyondcorp-clientgateways diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/Version.java b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/Version.java index 5416a0e2b865..d18e55425946 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/Version.java +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-clientgateways:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0"; // {x-version-update-end} } diff --git a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml index f5f45a0ae554..896a57666e1c 100644 --- a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.89.0 + 0.90.0 grpc-google-cloud-beyondcorp-clientgateways-v1 GRPC library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index b0ff10b6aff8..f4b2e11be59f 100644 --- a/java-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientgateways-parent pom - 0.89.0 + 0.90.0 Google BeyondCorp ClientGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.89.0 + 0.90.0 diff --git a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml index 988f9cea747d..38aa10f9d181 100644 --- a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.89.0 + 0.90.0 proto-google-cloud-beyondcorp-clientgateways-v1 Proto library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.89.0 + 0.90.0 diff --git a/java-biglake/README.md b/java-biglake/README.md index 97a01d7c6228..6d03afb66fcd 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.78.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.78.0' +implementation 'com.google.cloud:google-cloud-biglake:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.79.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake/google-cloud-biglake-bom/pom.xml b/java-biglake/google-cloud-biglake-bom/pom.xml index fc714f80d64f..85449a38e37f 100644 --- a/java-biglake/google-cloud-biglake-bom/pom.xml +++ b/java-biglake/google-cloud-biglake-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-biglake-bom - 0.79.0 + 0.80.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-biglake - 0.79.0 + 0.80.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.79.0 + 0.80.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.79.0 + 0.80.0 com.google.api.grpc grpc-google-cloud-biglake-v1beta - 0.79.0 + 0.80.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.79.0 + 0.80.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.79.0 + 0.80.0 com.google.api.grpc proto-google-cloud-biglake-v1beta - 0.79.0 + 0.80.0 diff --git a/java-biglake/google-cloud-biglake/pom.xml b/java-biglake/google-cloud-biglake/pom.xml index 29240c0ab96b..bb682aa5f5f6 100644 --- a/java-biglake/google-cloud-biglake/pom.xml +++ b/java-biglake/google-cloud-biglake/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-biglake - 0.79.0 + 0.80.0 jar Google BigLake BigLake The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. com.google.cloud google-cloud-biglake-parent - 0.79.0 + 0.80.0 google-cloud-biglake diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/HttpJsonHiveMetastoreServiceStub.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/HttpJsonHiveMetastoreServiceStub.java index ae75c6fd22dc..249daae37d81 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/HttpJsonHiveMetastoreServiceStub.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/HttpJsonHiveMetastoreServiceStub.java @@ -109,7 +109,7 @@ public class HttpJsonHiveMetastoreServiceStub extends HiveMetastoreServiceStub { serializer.putQueryParam( fields, "hiveCatalogId", request.getHiveCatalogId()); serializer.putQueryParam( - fields, "primaryLocation", request.getPrimaryLocation()); + fields, "primary_location", request.getPrimaryLocation()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/Version.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/Version.java index 5434303213dc..b48b8897bc24 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/Version.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-biglake:current} - static final String VERSION = "0.79.0"; + static final String VERSION = "0.80.0"; // {x-version-update-end} } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceStub.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceStub.java index a5ec79c4cd84..77126144e5d7 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceStub.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceStub.java @@ -114,8 +114,8 @@ public class HttpJsonIcebergCatalogServiceStub extends IcebergCatalogServiceStub Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "page-size", request.getPageSize()); + serializer.putQueryParam(fields, "page-token", request.getPageToken()); serializer.putQueryParam(fields, "view", request.getViewValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -195,7 +195,7 @@ public class HttpJsonIcebergCatalogServiceStub extends IcebergCatalogServiceStub ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam( - fields, "icebergCatalogId", request.getIcebergCatalogId()); + fields, "iceberg-catalog-id", request.getIcebergCatalogId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/Version.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/Version.java index 3ac1e782854b..d44897afb3c2 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/Version.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-biglake:current} - static final String VERSION = "0.79.0"; + static final String VERSION = "0.80.0"; // {x-version-update-end} } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/Version.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/Version.java index 75405c3c4ca4..9e4afcaae054 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/Version.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-biglake:current} - static final String VERSION = "0.79.0"; + static final String VERSION = "0.80.0"; // {x-version-update-end} } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/Version.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/Version.java index 5b6df0e0b25a..7da34b61c83f 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/Version.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-biglake:current} - static final String VERSION = "0.79.0"; + static final String VERSION = "0.80.0"; // {x-version-update-end} } diff --git a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml index 22e83a1ce5e2..958c25e9d8de 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.79.0 + 0.80.0 grpc-google-cloud-biglake-v1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.79.0 + 0.80.0 diff --git a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml index 93c9952e1b12..8f9a4f8999d6 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.79.0 + 0.80.0 grpc-google-cloud-biglake-v1alpha1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.79.0 + 0.80.0 diff --git a/java-biglake/grpc-google-cloud-biglake-v1beta/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1beta/pom.xml index f51c3aa7674b..399620d3851e 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1beta/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1beta - 0.79.0 + 0.80.0 grpc-google-cloud-biglake-v1beta GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.79.0 + 0.80.0 diff --git a/java-biglake/pom.xml b/java-biglake/pom.xml index 9fc422faf442..4ea6931921a3 100644 --- a/java-biglake/pom.xml +++ b/java-biglake/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-biglake-parent pom - 0.79.0 + 0.80.0 Google BigLake Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-biglake - 0.79.0 + 0.80.0 com.google.api.grpc proto-google-cloud-biglake-v1beta - 0.79.0 + 0.80.0 com.google.api.grpc grpc-google-cloud-biglake-v1beta - 0.79.0 + 0.80.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.79.0 + 0.80.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.79.0 + 0.80.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.79.0 + 0.80.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.79.0 + 0.80.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1/pom.xml index a0f929799179..8f631737ef0e 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.79.0 + 0.80.0 proto-google-cloud-biglake-v1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.79.0 + 0.80.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml index 0062aa38d9e6..8c61a5834fd1 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.79.0 + 0.80.0 proto-google-cloud-biglake-v1alpha1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.79.0 + 0.80.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1beta/pom.xml b/java-biglake/proto-google-cloud-biglake-v1beta/pom.xml index 809f1fef09b8..bd05c9a2786b 100644 --- a/java-biglake/proto-google-cloud-biglake-v1beta/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1beta - 0.79.0 + 0.80.0 proto-google-cloud-biglake-v1beta Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.79.0 + 0.80.0 diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 985d1ca2dde4..0b3c82cc3661 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.85.0 + 2.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.85.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.86.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquery-data-exchange/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.86.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml index cc72c62f8a8a..030b2a0843f9 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.86.0 + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.86.0 + 2.87.0 diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml index f7f1f64d9e21..bfe515ed651d 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange - 2.86.0 + 2.87.0 jar Google Analytics Hub Analytics Hub is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.86.0 + 2.87.0 google-cloud-bigquery-data-exchange diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/Version.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/Version.java index 584b9b753039..117ec7d35e14 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/Version.java +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquery-data-exchange:current} - static final String VERSION = "2.86.0"; + static final String VERSION = "2.87.0"; // {x-version-update-end} } diff --git a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index d8c20eb44258..c3959035904e 100644 --- a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.86.0 + 2.87.0 grpc-google-cloud-bigquery-data-exchange-v1beta1 GRPC library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.86.0 + 2.87.0 diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index a57cbdbcf27d..b34756dafd2d 100644 --- a/java-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquery-data-exchange-parent pom - 2.86.0 + 2.87.0 Google Analytics Hub Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.86.0 + 2.87.0 diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index bdf569a99eb6..fc139bfde2dc 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.86.0 + 2.87.0 proto-google-cloud-bigquery-data-exchange-v1beta1 Proto library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.86.0 + 2.87.0 diff --git a/java-bigquery/CHANGELOG.md b/java-bigquery/CHANGELOG.md index 045e090064b4..b5354465d9f9 100644 --- a/java-bigquery/CHANGELOG.md +++ b/java-bigquery/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [2.65.0](https://github.com/googleapis/google-cloud-java/compare/6bef068b4d8...v1.85.0) (2026-04-13) + +### Bug Fixes + +* fix(bqjdbc): lazily instantiate Statement in BigQueryDatabaseMetaData (#12752) ([72e5508](https://github.com/googleapis/google-cloud-java/commit/72e5508669ea48cde28f02adfeedfb05cd73fc57)) + + +## [2.64.0](https://github.com/googleapis/google-cloud-java/compare/0fe7d3822cc...6bef068b4d8) (2026-04-10) + +* No change + + ## 2.62.0 (None) * No change @@ -3525,4 +3537,4 @@ ### Documentation -* Update libraries-bom version ([#73](https://www.github.com/googleapis/java-bigquery/issues/73)) ([e967e10](https://www.github.com/googleapis/java-bigquery/commit/e967e10267514dfbac7013cac61f22b74d52b2b8)) +* Update libraries-bom version ([#73](https://www.github.com/googleapis/java-bigquery/issues/73)) ([e967e10](https://www.github.com/googleapis/java-bigquery/commit/e967e10267514dfbac7013cac61f22b74d52b2b8)) \ No newline at end of file diff --git a/java-bigquery/README.md b/java-bigquery/README.md index 66eaa64a5e26..783c24c93d65 100644 --- a/java-bigquery/README.md +++ b/java-bigquery/README.md @@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery - 2.65.0 + 2.66.0 ``` @@ -53,20 +53,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:2.65.0') +implementation platform('com.google.cloud:libraries-bom:2.66.0') implementation 'com.google.cloud:google-cloud-bigquery' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery:2.65.0' +implementation 'com.google.cloud:google-cloud-bigquery:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.66.0" ``` diff --git a/java-bigquery/benchmark/pom.xml b/java-bigquery/benchmark/pom.xml index b74f5a79a0db..87ee9c8116c8 100644 --- a/java-bigquery/benchmark/pom.xml +++ b/java-bigquery/benchmark/pom.xml @@ -4,11 +4,11 @@ 4.0.0 com.google.cloud benchmark - 2.65.0 + 2.66.0 google-cloud-bigquery-parent com.google.cloud - 2.65.0 + 2.66.0 diff --git a/java-bigquery/google-cloud-bigquery-bom/pom.xml b/java-bigquery/google-cloud-bigquery-bom/pom.xml index 9b3e93b8b385..881d17b00403 100644 --- a/java-bigquery/google-cloud-bigquery-bom/pom.xml +++ b/java-bigquery/google-cloud-bigquery-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-bigquery-bom - 2.65.0 + 2.66.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -53,7 +53,7 @@ com.google.cloud google-cloud-bigquery - 2.65.0 + 2.66.0 diff --git a/java-bigquery/google-cloud-bigquery-jdbc/.gitignore b/java-bigquery/google-cloud-bigquery-jdbc/.gitignore index 75b2db720ed5..2c4fba513e11 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/.gitignore +++ b/java-bigquery/google-cloud-bigquery-jdbc/.gitignore @@ -1,3 +1,7 @@ drivers/** target-it/** -*logs/** \ No newline at end of file +*logs*/** +**/ITBigQueryJDBCLocalTest.java + +tools/**/*.class +tools/**/*.jfr \ No newline at end of file diff --git a/java-bigquery/google-cloud-bigquery-jdbc/pom.xml b/java-bigquery/google-cloud-bigquery-jdbc/pom.xml index 9c8172aec2fb..5ecd76da23a5 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/pom.xml +++ b/java-bigquery/google-cloud-bigquery-jdbc/pom.xml @@ -20,7 +20,7 @@ 4.0.0 com.google.cloud google-cloud-bigquery-jdbc - 0.9.0 + 0.10.0 jar BigQuery JDBC https://github.com/googleapis/google-cloud-java @@ -30,8 +30,7 @@ UTF-8 UTF-8 github - google-cloud-bigquery-jdbc - + google-cloud-bigquery-jdbc @@ -160,7 +159,7 @@ com.google.cloud google-cloud-bigquery-parent - 2.65.0 + 2.66.0 @@ -170,7 +169,7 @@ com.google.cloud google-cloud-bigquerystorage - 3.27.0 + 3.28.0 com.google.http-client @@ -203,7 +202,7 @@ com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.27.0 + 3.28.0 @@ -278,6 +277,11 @@ + + junit + junit + test + com.google.truth truth @@ -303,6 +307,11 @@ mockito-core test + + org.mockito + mockito-inline + test + org.mockito mockito-junit-jupiter @@ -372,4 +381,4 @@ - \ No newline at end of file + diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryConversionException.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryConversionException.java index 90e758b05eeb..2be7b40ddc6a 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryConversionException.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryConversionException.java @@ -16,14 +16,18 @@ package com.google.cloud.bigquery.exception; +import com.google.cloud.bigquery.jdbc.BigQueryJdbcCustomLogger; import java.sql.SQLException; /** * Exception for errors that occur when the driver cannot convert a value from one type to another. */ public class BigQueryConversionException extends SQLException { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryConversionException.class.getName()); public BigQueryConversionException(String message, Throwable cause) { - super(message, cause); + super(BigQueryJdbcExceptionUtils.formatMessage(message, cause), cause); + LOG.severe(this.getMessage(), this); } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionException.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionException.java index 185ef54bb1da..3241b7a1993e 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionException.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionException.java @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.exception; import com.google.api.core.InternalApi; +import com.google.cloud.bigquery.jdbc.BigQueryJdbcCustomLogger; /** * Thrown to indicate that the coercion was attempted but couldn't be performed successfully because @@ -24,6 +25,8 @@ */ @InternalApi public class BigQueryJdbcCoercionException extends RuntimeException { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryJdbcCoercionException.class.getName()); /** * Construct a new exception with the specified cause. @@ -31,6 +34,7 @@ public class BigQueryJdbcCoercionException extends RuntimeException { * @param cause the actual cause which was thrown while performing the coercion. */ public BigQueryJdbcCoercionException(Exception cause) { - super("Coercion error", cause); + super(BigQueryJdbcExceptionUtils.formatMessage("Coercion error", cause), cause); + LOG.severe(this.getMessage(), this); } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionNotFoundException.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionNotFoundException.java index b4eafb2ee583..8a12da311c21 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionNotFoundException.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionNotFoundException.java @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.exception; import com.google.api.core.InternalApi; +import com.google.cloud.bigquery.jdbc.BigQueryJdbcCustomLogger; /** * Thrown to indicate that the current TypeCoercer can not perform the coercion as the Coercion @@ -24,6 +25,8 @@ */ @InternalApi public class BigQueryJdbcCoercionNotFoundException extends RuntimeException { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryJdbcCoercionNotFoundException.class.getName()); /** * Construct a new exception. @@ -36,5 +39,6 @@ public BigQueryJdbcCoercionNotFoundException(Class source, Class target) { String.format( "Coercion not found for [%s -> %s] conversion", source.getCanonicalName(), target.getCanonicalName())); + LOG.severe(this.getMessage(), this); } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcException.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcException.java index 72a22aba618a..4cdc37773e59 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcException.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcException.java @@ -17,9 +17,12 @@ package com.google.cloud.bigquery.exception; import com.google.cloud.bigquery.BigQueryException; +import com.google.cloud.bigquery.jdbc.BigQueryJdbcCustomLogger; import java.sql.SQLException; public class BigQueryJdbcException extends SQLException { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryJdbcException.class.getName()); private BigQueryException bigQueryException = null; /** @@ -29,6 +32,7 @@ public class BigQueryJdbcException extends SQLException { */ public BigQueryJdbcException(String message) { super(message); + LOG.severe(message, this); } /** @@ -38,16 +42,19 @@ public BigQueryJdbcException(String message) { */ public BigQueryJdbcException(InterruptedException ex) { super(ex); + LOG.severe(ex.getMessage(), this); } /** * Constructs a new BigQueryJdbcException from BigQueryException * + * @param message Specific message that is being added to the Exception. * @param ex The BigQueryException to be thrown. */ - public BigQueryJdbcException(BigQueryException ex) { - super(ex); + public BigQueryJdbcException(String message, BigQueryException ex) { + super(BigQueryJdbcExceptionUtils.formatMessage(message, ex), ex); this.bigQueryException = ex; + LOG.severe(this.getMessage(), this); } /** @@ -57,7 +64,8 @@ public BigQueryJdbcException(BigQueryException ex) { * @param cause Throwable that is being converted. */ public BigQueryJdbcException(String message, Throwable cause) { - super(message, cause); + super(BigQueryJdbcExceptionUtils.formatMessage(message, cause), cause); + LOG.severe(this.getMessage(), this); } /** @@ -68,6 +76,7 @@ public BigQueryJdbcException(String message, Throwable cause) { */ public BigQueryJdbcException(Throwable cause) { super(cause); + LOG.severe(cause.getMessage(), this); } public BigQueryException getBigQueryException() { diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcExceptionUtils.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcExceptionUtils.java new file mode 100644 index 000000000000..2ec3788d3c00 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcExceptionUtils.java @@ -0,0 +1,40 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.bigquery.exception; + +/** Utility class for JDBC exceptions. */ +final class BigQueryJdbcExceptionUtils { + + private BigQueryJdbcExceptionUtils() { + // Utility class, prevent instantiation + } + + /** + * Formats the exception message by appending the cause's message (or toString if null) on a + * newline. + * + * @param message The custom detail message. + * @param cause The underlying cause of the exception. + * @return The formatted message. + */ + public static String formatMessage(String message, Throwable cause) { + return message + + (cause != null + ? "\n" + (cause.getMessage() != null ? cause.getMessage() : cause.toString()) + : ""); + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcRuntimeException.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcRuntimeException.java index 38e5171be40f..b5caad826986 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcRuntimeException.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcRuntimeException.java @@ -16,8 +16,13 @@ package com.google.cloud.bigquery.exception; +import com.google.cloud.bigquery.jdbc.BigQueryJdbcCustomLogger; + public class BigQueryJdbcRuntimeException extends RuntimeException { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryJdbcRuntimeException.class.getName()); + /** * Constructs a new BigQueryJdbcRuntimeException with the given message. * @@ -25,6 +30,7 @@ public class BigQueryJdbcRuntimeException extends RuntimeException { */ public BigQueryJdbcRuntimeException(String message) { super(message); + LOG.severe(message, this); } /** @@ -34,6 +40,7 @@ public BigQueryJdbcRuntimeException(String message) { */ public BigQueryJdbcRuntimeException(Throwable ex) { super(ex); + LOG.severe(ex.getMessage(), this); } /** @@ -43,6 +50,12 @@ public BigQueryJdbcRuntimeException(Throwable ex) { * @param ex Throwable to be thrown. */ public BigQueryJdbcRuntimeException(String message, InterruptedException ex) { - super(message, ex); + super(BigQueryJdbcExceptionUtils.formatMessage(message, ex), ex); + LOG.severe(this.getMessage(), this); + } + + public BigQueryJdbcRuntimeException(String message, Throwable ex) { + super(BigQueryJdbcExceptionUtils.formatMessage(message, ex), ex); + LOG.severe(this.getMessage(), this); } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcSqlFeatureNotSupportedException.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcSqlFeatureNotSupportedException.java index 8c93d8764b3a..0c4493b29dc3 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcSqlFeatureNotSupportedException.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcSqlFeatureNotSupportedException.java @@ -17,9 +17,13 @@ package com.google.cloud.bigquery.exception; import com.google.cloud.bigquery.BigQueryException; +import com.google.cloud.bigquery.jdbc.BigQueryJdbcCustomLogger; import java.sql.SQLFeatureNotSupportedException; public class BigQueryJdbcSqlFeatureNotSupportedException extends SQLFeatureNotSupportedException { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryJdbcSqlFeatureNotSupportedException.class.getName()); + /** * Constructs a new BigQueryJdbcSqlFeatureNotSupportedException with the given message. * @@ -27,6 +31,7 @@ public class BigQueryJdbcSqlFeatureNotSupportedException extends SQLFeatureNotSu */ public BigQueryJdbcSqlFeatureNotSupportedException(String message) { super(message); + LOG.severe(message, this); } /** @@ -36,5 +41,6 @@ public BigQueryJdbcSqlFeatureNotSupportedException(String message) { */ public BigQueryJdbcSqlFeatureNotSupportedException(BigQueryException ex) { super(ex); + LOG.severe(ex.getMessage(), this); } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcSqlSyntaxErrorException.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcSqlSyntaxErrorException.java index 99edcd0c543c..f3b6f525add9 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcSqlSyntaxErrorException.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcSqlSyntaxErrorException.java @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.exception; import com.google.cloud.bigquery.BigQueryException; +import com.google.cloud.bigquery.jdbc.BigQueryJdbcCustomLogger; import java.sql.SQLSyntaxErrorException; /** @@ -25,6 +26,9 @@ * rules. */ public class BigQueryJdbcSqlSyntaxErrorException extends SQLSyntaxErrorException { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryJdbcSqlSyntaxErrorException.class.getName()); + /** * Constructs a new BigQueryJdbcSqlSyntaxErrorException from BigQueryException * @@ -32,5 +36,11 @@ public class BigQueryJdbcSqlSyntaxErrorException extends SQLSyntaxErrorException */ public BigQueryJdbcSqlSyntaxErrorException(BigQueryException ex) { super(ex.getMessage(), "Incorrect SQL syntax."); + LOG.severe(ex.getMessage(), this); + } + + public BigQueryJdbcSqlSyntaxErrorException(String message, BigQueryException ex) { + super(BigQueryJdbcExceptionUtils.formatMessage(message, ex), ex); + LOG.severe(this.getMessage(), this); } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSet.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSet.java index 1d7d89e3f1f1..af041dc2a649 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSet.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSet.java @@ -108,7 +108,7 @@ private BigQueryArrowResultSet( try { this.arrowDeserializer = new ArrowDeserializer(arrowSchema); } catch (IOException ex) { - throw new BigQueryJdbcException(ex); + throw new BigQueryJdbcException("IOException during ArrowDeserializer creation", ex); } } } @@ -215,8 +215,11 @@ public boolean next() throws SQLException { checkClosed(); if (this.isNested) { if (this.currentNestedBatch == null || this.currentNestedBatch.getNestedRecords() == null) { - throw new IllegalStateException( - "currentNestedBatch/JsonStringArrayList can not be null working with the nested record"); + IllegalStateException ex = + new IllegalStateException( + "currentNestedBatch/JsonStringArrayList can not be null working with the nested record"); + LOG.severe(ex.getMessage(), ex); + throw ex; } if (this.nestedRowIndex < (this.toIndexExclusive - 1)) { /* Check if there's a next record in the array which can be read */ @@ -283,12 +286,16 @@ private Object getObjectInternal(int columnIndex) throws SQLException { // BigQuery doesn't support multidimensional arrays, so // just the default row num column (1) and the actual column (2) is supposed to be read if (!(columnIndex == 1 || columnIndex == 2)) { - - throw new IllegalArgumentException( - "Column index is required to be 1 or 2 for nested arrays"); + IllegalArgumentException ex = + new IllegalArgumentException("Column index is required to be 1 or 2 for nested arrays"); + LOG.severe(ex.getMessage(), ex); + throw ex; } if (this.currentNestedBatch.getNestedRecords() == null) { - throw new IllegalStateException("JsonStringArrayList cannot be null for nested records."); + IllegalStateException ex = + new IllegalStateException("JsonStringArrayList cannot be null for nested records."); + LOG.severe(ex.getMessage(), ex); + throw ex; } // For Arrays the first column is Index, ref: // https://docs.oracle.com/javase/7/docs/api/java/sql/Array.html#getResultSet() diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseArray.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseArray.java index 5fc2c15bbe09..4cff4db9d379 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseArray.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseArray.java @@ -106,7 +106,9 @@ protected Object getArrayInternal(int fromIndex, int toIndexExclusive) { protected void ensureValid() throws IllegalStateException { LOG.finest("++enter++"); if (!this.valid) { - throw new IllegalStateException(INVALID_ARRAY); + IllegalStateException ex = new IllegalStateException(INVALID_ARRAY); + LOG.severe(INVALID_ARRAY, ex); + throw ex; } } @@ -127,9 +129,13 @@ protected Tuple createRange(long index, int count, int size) // jdbc array follows 1 based array indexing long normalisedFromIndex = index - 1; if (normalisedFromIndex + count > size) { - throw new IllegalArgumentException( - String.format( - "The array index is out of range: %d, number of elements: %d.", index + count, size)); + IllegalArgumentException ex = + new IllegalArgumentException( + String.format( + "The array index is out of range: %d, number of elements: %d.", + index + count, size)); + LOG.severe(ex.getMessage(), ex); + throw ex; } long toIndex = normalisedFromIndex + count; return Tuple.of((int) normalisedFromIndex, (int) toIndex); @@ -166,6 +172,7 @@ public String toString() { } return Arrays.deepToString(array); } catch (SQLException e) { + LOG.warning("Error converting array to string"); return "[Error converting array to string: " + e.getMessage() + "]"; } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseResultSet.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseResultSet.java index 4ff4acad6b2a..d63b72bb6c93 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseResultSet.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseResultSet.java @@ -123,8 +123,11 @@ protected SQLException createCoercionException( type = arrayField.getType().getStandardType(); typeName = type.name(); } else { - throw new SQLException( - "For a nested ResultSet from an Array, columnIndex must be 1 or 2.", cause); + SQLException ex = + new SQLException( + "For a nested ResultSet from an Array, columnIndex must be 1 or 2.", cause); + LOG.severe(ex.getMessage(), ex); + throw ex; } } else { Field field = this.schemaFieldList.get(columnIndex - 1); @@ -144,18 +147,25 @@ private StandardSQLTypeName getStandardSQLTypeName(int columnIndex) throws SQLEx return StandardSQLTypeName.INT64; } else if (columnIndex == 2) { if (this.schema == null || this.schema.getFields().isEmpty()) { - throw new SQLException("Schema not available for nested result set."); + SQLException ex = new SQLException("Schema not available for nested result set."); + LOG.severe("Schema not available for nested result set.", ex); + throw ex; } Field arrayField = this.schema.getFields().get(0); return arrayField.getType().getStandardType(); } else { - throw new SQLException("For a nested ResultSet from an Array, columnIndex must be 1 or 2."); + SQLException ex = + new SQLException("For a nested ResultSet from an Array, columnIndex must be 1 or 2."); + LOG.severe("For a nested ResultSet from an Array, columnIndex must be 1 or 2.", ex); + throw ex; } } else { if (this.schemaFieldList == null || columnIndex > this.schemaFieldList.size() || columnIndex < 1) { - throw new SQLException("Invalid column index: " + columnIndex); + SQLException ex = new SQLException("Invalid column index: " + columnIndex); + LOG.severe("Invalid column index: " + columnIndex, ex); + throw ex; } Field field = this.schemaFieldList.get(columnIndex - 1); return field.getType().getStandardType(); @@ -217,7 +227,9 @@ protected int getColumnIndex(String columnLabel) throws SQLException { LOG.finest("++enter++"); checkClosed(); if (columnLabel == null) { - throw new SQLException("Column label cannot be null"); + SQLException ex = new SQLException("Column label cannot be null"); + LOG.severe(ex.getMessage(), ex); + throw ex; } // use schema to get the column index, add 1 for SQL index return this.schemaFieldList.getIndex(columnLabel) + 1; diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseStruct.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseStruct.java index ab9cf61cb85d..ce6afeada249 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseStruct.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryBaseStruct.java @@ -21,6 +21,7 @@ import com.google.cloud.bigquery.Field; import com.google.cloud.bigquery.FieldList; +import com.google.cloud.bigquery.StandardSQLTypeName; import com.google.cloud.bigquery.exception.BigQueryJdbcSqlFeatureNotSupportedException; import java.sql.Date; import java.sql.SQLException; @@ -42,7 +43,7 @@ abstract class BigQueryBaseStruct implements java.sql.Struct { @Override public final String getSQLTypeName() throws SQLException { - throw new BigQueryJdbcSqlFeatureNotSupportedException(CUSTOMER_TYPE_MAPPING_NOT_SUPPORTED); + return StandardSQLTypeName.STRUCT.name(); } @Override @@ -91,6 +92,7 @@ public String toString() { sb.append("}"); return sb.toString(); } catch (SQLException e) { + LOG.severe("Error converting struct to string", e); return "{ \"error\": \"Error converting struct to string: " + e.getMessage() + "\" }"; } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryCallableStatement.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryCallableStatement.java index 4de22e64e94d..4c5d6ac3bbcd 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryCallableStatement.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryCallableStatement.java @@ -665,13 +665,13 @@ public T getObject(String arg0, Class arg1) throws SQLException { @Override public Ref getRef(int arg0) throws SQLException { - // TODO Auto-generated method stub + // Auto-generated method stub return null; } @Override public Ref getRef(String arg0) throws SQLException { - // TODO Auto-generated method stub + // Auto-generated method stub return null; } @@ -703,13 +703,13 @@ public RowId getRowId(String arg0) throws SQLException { @Override public SQLXML getSQLXML(int arg0) throws SQLException { - // TODO Auto-generated method stub + // Auto-generated method stub return null; } @Override public SQLXML getSQLXML(String arg0) throws SQLException { - // TODO Auto-generated method stub + // Auto-generated method stub return null; } @@ -940,7 +940,9 @@ public void registerOutParameter(int paramIndex, int sqlType) throws SQLExceptio BigQueryParameterHandler.BigQueryStatementParameterType.OUT, -1); } catch (Exception e) { - throw new SQLException(e); + SQLException ex = new SQLException(e); + LOG.severe("Failed to registerOutParameter", ex); + throw ex; } } @@ -957,7 +959,9 @@ public void registerOutParameter(String paramName, int sqlType) throws SQLExcept BigQueryParameterHandler.BigQueryStatementParameterType.OUT, -1); } catch (Exception e) { - throw new SQLException(e); + SQLException ex = new SQLException(e); + LOG.severe("Failed to registerOutParameter", ex); + throw ex; } } @@ -968,8 +972,11 @@ public void registerOutParameter(int paramIndex, int sqlType, int scale) throws "registerOutParameter: paramIndex %s, sqlType %s, scale %s", paramIndex, sqlType, scale); checkClosed(); if (sqlType != Types.NUMERIC && sqlType != Types.DECIMAL) { - throw new IllegalArgumentException( - String.format("registerOutParameter: Invalid sqlType passed in %s", sqlType)); + IllegalArgumentException ex = + new IllegalArgumentException( + String.format("registerOutParameter: Invalid sqlType passed in %s", sqlType)); + LOG.severe(ex.getMessage(), ex); + throw ex; } try { this.parameterHandler.setParameter( @@ -979,7 +986,9 @@ public void registerOutParameter(int paramIndex, int sqlType, int scale) throws BigQueryParameterHandler.BigQueryStatementParameterType.OUT, scale); } catch (Exception e) { - throw new SQLException(e); + SQLException ex = new SQLException(e); + LOG.severe("Failed to registerOutParameter", ex); + throw ex; } } @@ -1001,8 +1010,11 @@ public void registerOutParameter(String paramName, int sqlType, int scale) throw "registerOutParameter: paramIndex %s, sqlType %s, scale %s", paramName, sqlType, scale); checkClosed(); if (sqlType != Types.NUMERIC && sqlType != Types.DECIMAL) { - throw new IllegalArgumentException( - String.format("registerOutParameter: Invalid sqlType passed in %s", sqlType)); + IllegalArgumentException ex = + new IllegalArgumentException( + String.format("registerOutParameter: Invalid sqlType passed in %s", sqlType)); + LOG.severe(ex.getMessage(), ex); + throw ex; } try { this.parameterHandler.setParameter( @@ -1012,7 +1024,9 @@ public void registerOutParameter(String paramName, int sqlType, int scale) throw BigQueryParameterHandler.BigQueryStatementParameterType.OUT, scale); } catch (Exception e) { - throw new SQLException(e); + SQLException ex = new SQLException(e); + LOG.severe("Failed to registerOutParameter", ex); + throw ex; } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java index 53e32c45ea2d..4f70de993177 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java @@ -58,6 +58,7 @@ import java.util.Map; import java.util.Properties; import java.util.Set; +import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; import java.util.concurrent.TimeUnit; @@ -72,6 +73,7 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { private final BigQueryJdbcCustomLogger LOG = new BigQueryJdbcCustomLogger(this.toString()); String connectionClassName = this.toString(); + private final String connectionId; private static final String DEFAULT_JDBC_TOKEN_VALUE = "Google-BigQuery-JDBC-Driver"; private static final String DEFAULT_VERSION = "0.0.0"; private HeaderProvider headerProvider; @@ -138,114 +140,136 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { Long connectionPoolSize; Long listenerPoolSize; String partnerToken; - private static DatabaseMetaData databaseMetaData; + DatabaseMetaData databaseMetaData; + Boolean reqGoogleDriveScope; + private boolean isReadOnlyTokenUsed = false; BigQueryConnection(String url) throws IOException { this(url, DataSource.fromUrl(url)); } BigQueryConnection(String url, DataSource ds) throws IOException { - this.connectionUrl = url; - this.openStatements = ConcurrentHashMap.newKeySet(); - this.autoCommit = true; - this.sqlWarnings = new ArrayList<>(); - this.transactionStarted = false; - this.isClosed = false; - - this.labels = ds.getLabels() != null ? ds.getLabels() : new java.util.HashMap<>(); - this.maxBytesBilled = ds.getMaximumBytesBilled(); - this.retryTimeoutInSeconds = ds.getTimeout(); - this.retryTimeoutDuration = Duration.ofMillis(retryTimeoutInSeconds * 1000L); - this.retryInitialDelayInSeconds = ds.getRetryInitialDelay(); - this.retryInitialDelayDuration = Duration.ofMillis(retryInitialDelayInSeconds * 1000L); - this.retryMaxDelayInSeconds = ds.getRetryMaxDelay(); - this.retryMaxDelayDuration = Duration.ofMillis(retryMaxDelayInSeconds * 1000L); - this.jobTimeoutInSeconds = ds.getJobTimeout(); - this.authProperties = - BigQueryJdbcOAuthUtility.parseOAuthProperties(ds, this.connectionClassName); - this.catalog = ds.getProjectId(); - this.universeDomain = ds.getUniverseDomain(); - - this.overrideProperties = ds.getOverrideProperties(); - if (this.universeDomain != null) { - this.overrideProperties.put( - BigQueryJdbcUrlUtility.UNIVERSE_DOMAIN_OVERRIDE_PROPERTY_NAME, this.universeDomain); - } - this.credentials = - BigQueryJdbcOAuthUtility.getCredentials( - authProperties, overrideProperties, this.connectionClassName); - String defaultDatasetString = ds.getDefaultDataset(); - if (defaultDatasetString == null || defaultDatasetString.trim().isEmpty()) { - this.defaultDataset = null; - } else { - String[] parts = defaultDatasetString.split("\\."); - if (parts.length == 2) { - this.defaultDataset = DatasetId.of(parts[0], parts[1]); - } else if (parts.length == 1) { - this.defaultDataset = DatasetId.of(parts[0]); + this.connectionId = UUID.randomUUID().toString(); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + + this.connectionUrl = url; + this.openStatements = ConcurrentHashMap.newKeySet(); + this.autoCommit = true; + this.sqlWarnings = new ArrayList<>(); + this.transactionStarted = false; + this.isClosed = false; + + this.labels = ds.getLabels() != null ? ds.getLabels() : new java.util.HashMap<>(); + this.maxBytesBilled = ds.getMaximumBytesBilled(); + this.retryTimeoutInSeconds = ds.getTimeout(); + this.retryTimeoutDuration = Duration.ofMillis(retryTimeoutInSeconds * 1000L); + this.retryInitialDelayInSeconds = ds.getRetryInitialDelay(); + this.retryInitialDelayDuration = Duration.ofMillis(retryInitialDelayInSeconds * 1000L); + this.retryMaxDelayInSeconds = ds.getRetryMaxDelay(); + this.retryMaxDelayDuration = Duration.ofMillis(retryMaxDelayInSeconds * 1000L); + this.jobTimeoutInSeconds = ds.getJobTimeout(); + this.authProperties = + BigQueryJdbcOAuthUtility.parseOAuthProperties(ds, this.connectionClassName); + this.isReadOnlyTokenUsed = checkIsReadOnlyTokenUsed(this.authProperties); + this.catalog = ds.getProjectId(); + this.universeDomain = ds.getUniverseDomain(); + + this.overrideProperties = ds.getOverrideProperties(); + if (this.universeDomain != null) { + this.overrideProperties.put( + BigQueryJdbcUrlUtility.UNIVERSE_DOMAIN_OVERRIDE_PROPERTY_NAME, this.universeDomain); + } + + this.reqGoogleDriveScope = + BigQueryJdbcUrlUtility.convertIntToBoolean( + String.valueOf(ds.getRequestGoogleDriveScope()), + BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME); + + this.credentials = + BigQueryJdbcOAuthUtility.getCredentials( + authProperties, + overrideProperties, + this.reqGoogleDriveScope, + this.connectionClassName); + String defaultDatasetString = ds.getDefaultDataset(); + if (defaultDatasetString == null || defaultDatasetString.trim().isEmpty()) { + this.defaultDataset = null; } else { - throw new IllegalArgumentException( - "DefaultDataset format is invalid. Supported options are datasetId or" - + " projectId.datasetId"); + String[] parts = defaultDatasetString.split("\\."); + if (parts.length == 2) { + this.defaultDataset = DatasetId.of(parts[0], parts[1]); + } else if (parts.length == 1) { + this.defaultDataset = DatasetId.of(parts[0]); + } else { + IllegalArgumentException ex = + new IllegalArgumentException( + "DefaultDataset format is invalid. Supported options are datasetId or" + + " projectId.datasetId"); + LOG.severe(ex.getMessage(), ex); + throw ex; + } } + this.location = ds.getLocation(); + this.enableHighThroughputAPI = ds.getEnableHighThroughputAPI(); + this.highThroughputMinTableSize = ds.getHighThroughputMinTableSize(); + this.highThroughputActivationRatio = ds.getHighThroughputActivationRatio(); + this.useQueryCache = ds.getUseQueryCache(); + this.useStatelessQueryMode = ds.getUseStatelessQueryMode(); + + this.queryDialect = ds.getQueryDialect(); + this.allowLargeResults = ds.getAllowLargeResults(); + this.destinationTable = ds.getDestinationTable(); + this.destinationDataset = ds.getDestinationDataset(); + this.destinationDatasetExpirationTime = ds.getDestinationDatasetExpirationTime(); + this.kmsKeyName = ds.getKmsKeyName(); + Map proxyProperties = + BigQueryJdbcProxyUtility.parseProxyProperties(ds, this.connectionClassName); + + this.sslTrustStorePath = ds.getSSLTrustStorePath(); + this.sslTrustStorePassword = ds.getSSLTrustStorePassword(); + this.httpConnectTimeout = ds.getHttpConnectTimeout(); + this.httpReadTimeout = ds.getHttpReadTimeout(); + + this.httpTransportOptions = + BigQueryJdbcProxyUtility.getHttpTransportOptions( + proxyProperties, + this.sslTrustStorePath, + this.sslTrustStorePassword, + this.httpConnectTimeout, + this.httpReadTimeout, + this.connectionClassName); + this.transportChannelProvider = + BigQueryJdbcProxyUtility.getTransportChannelProvider( + proxyProperties, + this.sslTrustStorePath, + this.sslTrustStorePassword, + this.connectionClassName); + this.enableSession = ds.getEnableSession(); + this.unsupportedHTAPIFallback = ds.getUnsupportedHTAPIFallback(); + this.maxResults = ds.getMaxResults(); + Map queryPropertiesMap = ds.getQueryProperties(); + this.sessionInfoConnectionProperty = + getSessionPropertyFromQueryProperties(queryPropertiesMap); + this.queryProperties = convertMapToConnectionPropertiesList(queryPropertiesMap); + this.enableWriteAPI = ds.getEnableWriteAPI(); + this.writeAPIActivationRowCount = ds.getSwaActivationRowCount(); + this.writeAPIAppendRowCount = ds.getSwaAppendRowCount(); + + this.additionalProjects = ds.getAdditionalProjects(); + + this.filterTablesOnDefaultDataset = ds.getFilterTablesOnDefaultDataset(); + this.requestGoogleDriveScope = ds.getRequestGoogleDriveScope(); + this.metadataFetchThreadCount = ds.getMetadataFetchThreadCount(); + this.requestReason = ds.getRequestReason(); + this.connectionPoolSize = ds.getConnectionPoolSize(); + this.listenerPoolSize = ds.getListenerPoolSize(); + this.partnerToken = ds.getPartnerToken(); + + this.headerProvider = createHeaderProvider(); + this.bigQuery = getBigQueryConnection(); } - this.location = ds.getLocation(); - this.enableHighThroughputAPI = ds.getEnableHighThroughputAPI(); - this.highThroughputMinTableSize = ds.getHighThroughputMinTableSize(); - this.highThroughputActivationRatio = ds.getHighThroughputActivationRatio(); - this.useQueryCache = ds.getUseQueryCache(); - this.useStatelessQueryMode = ds.getUseStatelessQueryMode(); - - this.queryDialect = ds.getQueryDialect(); - this.allowLargeResults = ds.getAllowLargeResults(); - this.destinationTable = ds.getDestinationTable(); - this.destinationDataset = ds.getDestinationDataset(); - this.destinationDatasetExpirationTime = ds.getDestinationDatasetExpirationTime(); - this.kmsKeyName = ds.getKmsKeyName(); - Map proxyProperties = - BigQueryJdbcProxyUtility.parseProxyProperties(ds, this.connectionClassName); - - this.sslTrustStorePath = ds.getSSLTrustStorePath(); - this.sslTrustStorePassword = ds.getSSLTrustStorePassword(); - this.httpConnectTimeout = ds.getHttpConnectTimeout(); - this.httpReadTimeout = ds.getHttpReadTimeout(); - - this.httpTransportOptions = - BigQueryJdbcProxyUtility.getHttpTransportOptions( - proxyProperties, - this.sslTrustStorePath, - this.sslTrustStorePassword, - this.httpConnectTimeout, - this.httpReadTimeout, - this.connectionClassName); - this.transportChannelProvider = - BigQueryJdbcProxyUtility.getTransportChannelProvider( - proxyProperties, - this.sslTrustStorePath, - this.sslTrustStorePassword, - this.connectionClassName); - this.enableSession = ds.getEnableSession(); - this.unsupportedHTAPIFallback = ds.getUnsupportedHTAPIFallback(); - this.maxResults = ds.getMaxResults(); - Map queryPropertiesMap = ds.getQueryProperties(); - this.sessionInfoConnectionProperty = getSessionPropertyFromQueryProperties(queryPropertiesMap); - this.queryProperties = convertMapToConnectionPropertiesList(queryPropertiesMap); - this.enableWriteAPI = ds.getEnableWriteAPI(); - this.writeAPIActivationRowCount = ds.getSwaActivationRowCount(); - this.writeAPIAppendRowCount = ds.getSwaAppendRowCount(); - - this.additionalProjects = ds.getAdditionalProjects(); - - this.filterTablesOnDefaultDataset = ds.getFilterTablesOnDefaultDataset(); - this.requestGoogleDriveScope = ds.getRequestGoogleDriveScope(); - this.metadataFetchThreadCount = ds.getMetadataFetchThreadCount(); - this.requestReason = ds.getRequestReason(); - this.connectionPoolSize = ds.getConnectionPoolSize(); - this.listenerPoolSize = ds.getListenerPoolSize(); - this.partnerToken = ds.getPartnerToken(); - - this.headerProvider = createHeaderProvider(); - this.bigQuery = getBigQueryConnection(); } String getLibraryVersion(Class libraryClass) { @@ -260,6 +284,7 @@ String getLibraryVersion(Class libraryClass) { version = props.getProperty("version.jdbc"); } } catch (IOException e) { + LOG.warning("Failed to load dependencies.properties"); return DEFAULT_VERSION; } @@ -290,7 +315,7 @@ BigQueryReadClient getBigQueryReadClient() { this.bigQueryReadClient = getBigQueryReadClientConnection(); } } catch (IOException e) { - throw new BigQueryJdbcRuntimeException(e); + throw new BigQueryJdbcRuntimeException("Failed to initialize BigQueryReadClient", e); } return this.bigQueryReadClient; } @@ -301,7 +326,7 @@ BigQueryWriteClient getBigQueryWriteClient() { this.bigQueryWriteClient = getBigQueryWriteClientConnection(); } } catch (IOException e) { - throw new BigQueryJdbcRuntimeException(e); + throw new BigQueryJdbcRuntimeException("Failed to initialize BigQueryWriteClient", e); } return this.bigQueryWriteClient; } @@ -314,6 +339,10 @@ String getConnectionUrl() { return connectionUrl; } + String getConnectionId() { + return this.connectionId; + } + /** * Creates and returns a new {@code Statement} object for executing BigQuery SQL queries * @@ -322,11 +351,15 @@ String getConnectionUrl() { */ @Override public Statement createStatement() throws SQLException { - checkClosed(); - BigQueryStatement currentStatement = new BigQueryStatement(this); - LOG.fine("Statement %s created.", currentStatement); - addOpenStatements(currentStatement); - return currentStatement; + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + BigQueryStatement currentStatement = new BigQueryStatement(this); + LOG.fine("Statement %s created.", currentStatement); + addOpenStatements(currentStatement); + return currentStatement; + } } /** @@ -345,12 +378,17 @@ public Statement createStatement() throws SQLException { @Override public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException { - checkClosed(); - if (resultSetType != ResultSet.TYPE_FORWARD_ONLY - || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY) { - throw new BigQueryJdbcSqlFeatureNotSupportedException("Unsupported createStatement feature."); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + if (resultSetType != ResultSet.TYPE_FORWARD_ONLY + || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY) { + throw new BigQueryJdbcSqlFeatureNotSupportedException( + "Unsupported createStatement feature."); + } + return createStatement(); } - return createStatement(); } /** @@ -369,31 +407,43 @@ public Statement createStatement(int resultSetType, int resultSetConcurrency) @Override public Statement createStatement( int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { - LOG.finest("++enter++"); - checkClosed(); - if (resultSetType != ResultSet.TYPE_FORWARD_ONLY - || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY - || resultSetHoldability != ResultSet.CLOSE_CURSORS_AT_COMMIT) { - throw new BigQueryJdbcSqlFeatureNotSupportedException("Unsupported createStatement feature"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + if (resultSetType != ResultSet.TYPE_FORWARD_ONLY + || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY + || resultSetHoldability != ResultSet.CLOSE_CURSORS_AT_COMMIT) { + throw new BigQueryJdbcSqlFeatureNotSupportedException( + "Unsupported createStatement feature"); + } + return createStatement(); } - return createStatement(); } @Override public PreparedStatement prepareStatement(String sql) throws SQLException { - checkClosed(); - PreparedStatement currentStatement = new BigQueryPreparedStatement(this, sql); - LOG.fine("Prepared Statement %s created.", currentStatement); - addOpenStatements(currentStatement); - return currentStatement; + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + PreparedStatement currentStatement = new BigQueryPreparedStatement(this, sql); + LOG.fine("Prepared Statement %s created.", currentStatement); + addOpenStatements(currentStatement); + return currentStatement; + } } @Override public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException { - if (autoGeneratedKeys != Statement.NO_GENERATED_KEYS) { - throw new BigQueryJdbcSqlFeatureNotSupportedException("autoGeneratedKeys is not supported"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + if (autoGeneratedKeys != Statement.NO_GENERATED_KEYS) { + throw new BigQueryJdbcSqlFeatureNotSupportedException("autoGeneratedKeys is not supported"); + } + return prepareStatement(sql); } - return prepareStatement(sql); } @Override @@ -405,23 +455,32 @@ public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throw public PreparedStatement prepareStatement( String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { - if (resultSetType != ResultSet.TYPE_FORWARD_ONLY - || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY - || resultSetHoldability != ResultSet.CLOSE_CURSORS_AT_COMMIT) { - throw new BigQueryJdbcSqlFeatureNotSupportedException("Unsupported prepareStatement feature"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + if (resultSetType != ResultSet.TYPE_FORWARD_ONLY + || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY + || resultSetHoldability != ResultSet.CLOSE_CURSORS_AT_COMMIT) { + throw new BigQueryJdbcSqlFeatureNotSupportedException( + "Unsupported prepareStatement feature"); + } + return prepareStatement(sql); } - return prepareStatement(sql); } @Override public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { - LOG.finest("++enter++"); - if (resultSetType != ResultSet.TYPE_FORWARD_ONLY - || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY) { - throw new BigQueryJdbcSqlFeatureNotSupportedException("Unsupported prepareStatement feature"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + if (resultSetType != ResultSet.TYPE_FORWARD_ONLY + || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY) { + throw new BigQueryJdbcSqlFeatureNotSupportedException( + "Unsupported prepareStatement feature"); + } + return prepareStatement(sql); } - return prepareStatement(sql); } public DatasetId getDefaultDataset() { @@ -529,7 +588,7 @@ private void beginTransaction() { } this.transactionStarted = true; } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Failed to begin transaction", ex); } } @@ -635,36 +694,42 @@ Long getListenerPoolSize() { @Override public boolean isValid(int timeout) throws SQLException { - if (timeout < 0) { - throw new BigQueryJdbcException("timeout must be >= 0"); - } - if (!isClosed()) { - try (Statement statement = createStatement(); - ResultSet rs = statement.executeQuery("SELECT 1")) { - LOG.finest("Running validation query"); - // TODO(obada): set query timeout when it's implemented - // TODO(obada): use dry run - if (rs.next()) { - if (rs.getInt(1) == 1) { - return true; + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + if (timeout < 0) { + throw new BigQueryJdbcException("timeout must be >= 0"); + } + if (!isClosed()) { + try (Statement statement = createStatement(); + ResultSet rs = statement.executeQuery("SELECT 1")) { + LOG.finest("Running validation query"); + if (rs.next()) { + if (rs.getInt(1) == 1) { + return true; + } } + } catch (SQLException ex) { + // Ignore } - } catch (SQLException ex) { - // Ignore } + return false; } - return false; } @Override public void abort(Executor executor) throws SQLException { - LOG.finest("++enter++"); - close(); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + close(); + } } - // TODO: Throw exception translation of BigQueryJdbcSqlClientInfoException when implementing below @Override - public void setClientInfo(String name, String value) {} + public void setClientInfo(String name, String value) { + // no-op + } @Override public String getClientInfo(String name) { @@ -682,7 +747,9 @@ public Properties getClientInfo() { } @Override - public void setClientInfo(Properties properties) {} + public void setClientInfo(Properties properties) { + // no-op + } @Override public SQLWarning getWarnings() { @@ -696,64 +763,78 @@ public void clearWarnings() { @Override public boolean getAutoCommit() { - checkClosed(); - return this.autoCommit; + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + return this.autoCommit; + } } - /** - * Sets this connection's auto-commit mode to the given state.
- * If this method is called during a transaction and the auto-commit mode is changed, the - * transaction is committed. If setAutoCommit is called and the auto-commit mode is not changed, - * the call is a no-op. - * - * @param autoCommit {@code true} to enable auto-commit mode; {@code false} to disable it - * @see Connection#setAutoCommit(boolean) - */ @Override public void setAutoCommit(boolean autoCommit) throws SQLException { - LOG.finest("++enter++"); - checkClosed(); - checkIfEnabledSession("setAutoCommit"); - if (this.autoCommit == autoCommit) { - return; - } + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + checkIfEnabledSession("setAutoCommit"); + if (this.autoCommit == autoCommit) { + return; + } - if (isTransactionStarted()) { - commitTransaction(); - } + if (isTransactionStarted()) { + commitTransaction(); + } - this.autoCommit = autoCommit; - if (!this.autoCommit) { - beginTransaction(); + this.autoCommit = autoCommit; + if (!this.autoCommit) { + beginTransaction(); + } } } @Override public void commit() { - LOG.finest("++enter++"); - checkClosed(); - checkIfEnabledSession("commit"); - if (!isTransactionStarted()) { - throw new IllegalStateException( - "Cannot commit without an active transaction. Please set setAutoCommit to false to start" - + " a transaction."); - } - commitTransaction(); - if (!getAutoCommit()) { - beginTransaction(); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + checkIfEnabledSession("commit"); + if (!isTransactionStarted()) { + IllegalStateException ex = + new IllegalStateException( + "Cannot commit without an active transaction. Please set setAutoCommit to false to start" + + " a transaction."); + LOG.severe(ex.getMessage(), ex); + throw ex; + } + commitTransaction(); + if (!getAutoCommit()) { + beginTransaction(); + } } } @Override public void rollback() throws SQLException { - LOG.finest("++enter++"); - checkClosed(); - checkIfEnabledSession("rollback"); - if (!isTransactionStarted()) { - throw new IllegalStateException( - "Cannot rollback without an active transaction. Please set setAutoCommit to false to" - + " start a transaction."); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + checkIfEnabledSession("rollback"); + if (!isTransactionStarted()) { + IllegalStateException ex = + new IllegalStateException( + "Cannot rollback without an active transaction. Please set setAutoCommit to false to" + + " start a transaction."); + LOG.severe(ex.getMessage(), ex); + throw ex; + } + rollbackImpl(); } + } + + private void rollbackImpl() throws SQLException { try { QueryJobConfiguration transactionRollbackJobConfig = QueryJobConfiguration.newBuilder("ROLLBACK TRANSACTION;") @@ -766,31 +847,38 @@ public void rollback() throws SQLException { beginTransaction(); } } catch (InterruptedException | BigQueryException ex) { - throw new BigQueryJdbcException(ex); + throw new BigQueryJdbcException("Failed to rollback transaction", ex); } } @Override public DatabaseMetaData getMetaData() throws SQLException { - if (databaseMetaData == null) { - databaseMetaData = new BigQueryDatabaseMetaData(this); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + if (databaseMetaData == null) { + databaseMetaData = new BigQueryDatabaseMetaData(this); + } + return databaseMetaData; } - return databaseMetaData; } @Override public int getTransactionIsolation() { - // only supports Connection.TRANSACTION_SERIALIZABLE return Connection.TRANSACTION_SERIALIZABLE; } @Override public void setTransactionIsolation(int level) throws SQLException { - if (level != Connection.TRANSACTION_SERIALIZABLE) { - throw new BigQueryJdbcSqlFeatureNotSupportedException( - "Transaction serializable not supported"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + if (level != Connection.TRANSACTION_SERIALIZABLE) { + throw new BigQueryJdbcSqlFeatureNotSupportedException( + "Unsupported transaction isolation level"); + } + this.transactionIsolation = level; } - this.transactionIsolation = level; } @Override @@ -800,11 +888,14 @@ public int getHoldability() { @Override public void setHoldability(int holdability) throws SQLException { - if (holdability != ResultSet.CLOSE_CURSORS_AT_COMMIT) { - throw new BigQueryJdbcSqlFeatureNotSupportedException( - "CLOSE_CURSORS_AT_COMMIT not supported"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + if (holdability != ResultSet.CLOSE_CURSORS_AT_COMMIT) { + throw new BigQueryJdbcSqlFeatureNotSupportedException( + "CLOSE_CURSORS_AT_COMMIT not supported"); + } + this.holdability = holdability; } - this.holdability = holdability; } /** @@ -816,13 +907,19 @@ public void setHoldability(int holdability) throws SQLException { */ @Override public void close() throws SQLException { - LOG.fine("Closing Connection " + this); - // TODO(neenu-postMVP): Release all connection state objects - // check for and close all existing transactions - if (isClosed()) { return; } + + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + LOG.finest("++enter++"); + LOG.fine("Closing Connection " + this); + closeImpl(); + } + } + + private void closeImpl() throws SQLException { try { if (this.bigQueryReadClient != null) { this.bigQueryReadClient.shutdown(); @@ -841,9 +938,12 @@ public void close() throws SQLException { } this.openStatements.clear(); } catch (ConcurrentModificationException ex) { - throw new BigQueryJdbcException(ex); + throw new BigQueryJdbcException("Concurrent modification during close", ex); } catch (InterruptedException e) { - throw new BigQueryJdbcRuntimeException(e); + throw new BigQueryJdbcRuntimeException("Interrupted during close", e); + } finally { + BigQueryJdbcMdc.removeInstance(this); + BigQueryJdbcRootLogger.closeConnectionHandler(this.connectionId); } this.isClosed = true; } @@ -855,14 +955,20 @@ public boolean isClosed() { private void checkClosed() { if (isClosed()) { - throw new IllegalStateException("This " + getClass().getName() + " has been closed"); + IllegalStateException ex = + new IllegalStateException("This " + getClass().getName() + " has been closed"); + LOG.severe(ex.getMessage(), ex); + throw ex; } } private void checkIfEnabledSession(String methodName) { if (!this.enableSession) { - throw new IllegalStateException( - String.format("Session needs to be enabled to use %s method.", methodName)); + IllegalStateException ex = + new IllegalStateException( + String.format("Session needs to be enabled to use %s method.", methodName)); + LOG.severe(ex.getMessage(), ex); + throw ex; } } @@ -901,8 +1007,6 @@ void removeStatement(Statement statement) { } private BigQuery getBigQueryConnection() { - // 404 Not Found - check if the project exists - // 403 Forbidden - execute a dryRun to check if the user has bigquery.jobs.create permissions BigQueryOptions.Builder bigQueryOptions = BigQueryOptions.newBuilder(); if (this.retryTimeoutInSeconds > 0L || (this.retryInitialDelayInSeconds > 0L && this.retryMaxDelayInSeconds > 0L)) { @@ -1047,17 +1151,20 @@ private void commitTransaction() { commitJob.waitFor(); this.transactionStarted = false; } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted during commitTransaction", ex); } } @Override public CallableStatement prepareCall(String sql) throws SQLException { - checkClosed(); - CallableStatement currentStatement = new BigQueryCallableStatement(this, sql); - LOG.fine("Callable Statement %s created.", currentStatement); - addOpenStatements(currentStatement); - return currentStatement; + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this, this.connectionId)) { + checkClosed(); + CallableStatement currentStatement = new BigQueryCallableStatement(this, sql); + LOG.fine("Callable Statement %s created.", currentStatement); + addOpenStatements(currentStatement); + return currentStatement; + } } @Override @@ -1087,4 +1194,18 @@ public CallableStatement prepareCall( } return prepareCall(sql); } + + public boolean isReadOnlyTokenUsed() { + return this.isReadOnlyTokenUsed; + } + + private boolean checkIsReadOnlyTokenUsed(Map authProps) { + String readonlyValue = + authProps.get(BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_READONLY_PROPERTY_NAME); + if (readonlyValue != null) { + return BigQueryJdbcUrlUtility.convertIntToBoolean( + readonlyValue, BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_READONLY_PROPERTY_NAME); + } + return false; + } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDaemonPollingTask.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDaemonPollingTask.java index 386785660a20..3c065517f00e 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDaemonPollingTask.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDaemonPollingTask.java @@ -116,7 +116,7 @@ else if (referenceQueueJsonRs != null) { throw new BigQueryJdbcRuntimeException("Null Reference Queue"); } } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted in GC daemon task", ex); } } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java index c58d0232902b..4d4a37d16196 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java @@ -139,6 +139,7 @@ class BigQueryDatabaseMetaData implements DatabaseMetaData { String URL; BigQueryConnection connection; + Statement statement = null; private final BigQuery bigquery; private final int metadataFetchThreadCount; private static final AtomicReference parsedDriverVersion = new AtomicReference<>(null); @@ -147,7 +148,7 @@ class BigQueryDatabaseMetaData implements DatabaseMetaData { private static final AtomicReference parsedDriverMinorVersion = new AtomicReference<>(null); - BigQueryDatabaseMetaData(BigQueryConnection connection) throws SQLException { + BigQueryDatabaseMetaData(BigQueryConnection connection) { this.URL = connection.getConnectionUrl(); this.connection = connection; this.bigquery = connection.getBigQuery(); @@ -514,27 +515,27 @@ public boolean supportsSchemasInPrivilegeDefinitions() { @Override public boolean supportsCatalogsInDataManipulation() { - return false; + return true; } @Override public boolean supportsCatalogsInProcedureCalls() { - return false; + return true; } @Override public boolean supportsCatalogsInTableDefinitions() { - return false; + return true; } @Override public boolean supportsCatalogsInIndexDefinitions() { - return false; + return true; } @Override public boolean supportsCatalogsInPrivilegeDefinitions() { - return false; + return true; } @Override @@ -1250,9 +1251,11 @@ List listMatchingProcedureIdsFromDatasets( for (Dataset dataset : datasetsToScan) { if (Thread.currentThread().isInterrupted()) { - logger.warning( - "Interrupted during submission of routine listing tasks for catalog: " + catalogParam); - throw new InterruptedException("Interrupted while listing routines"); + InterruptedException ex = + new InterruptedException( + "Interrupted while listing routines for catalog: " + catalogParam); + logger.severe(ex.getMessage(), ex); + throw ex; } final DatasetId currentDatasetId = dataset.getDatasetId(); Callable> listCallable = @@ -1280,10 +1283,12 @@ List listMatchingProcedureIdsFromDatasets( for (Future> listFuture : listRoutineFutures) { if (Thread.currentThread().isInterrupted()) { - logger.warning( - "Interrupted while collecting routine list results for catalog: " + catalogParam); listRoutineFutures.forEach(f -> f.cancel(true)); - throw new InterruptedException("Interrupted while collecting routine lists"); + InterruptedException ex = + new InterruptedException( + "Interrupted while collecting routine lists for catalog: " + catalogParam); + logger.severe(ex.getMessage(), ex); + throw ex; } try { List listedRoutines = listFuture.get(); @@ -1326,8 +1331,10 @@ List fetchFullRoutineDetailsForIds( for (RoutineId procId : procedureIdsToGet) { if (Thread.currentThread().isInterrupted()) { - logger.warning("Interrupted during submission of getRoutine detail tasks."); - throw new InterruptedException("Interrupted while submitting getRoutine tasks"); + InterruptedException ex = + new InterruptedException("Interrupted while submitting getRoutine tasks"); + logger.severe(ex.getMessage(), ex); + throw ex; } final RoutineId currentProcId = procId; Callable getCallable = @@ -1349,9 +1356,11 @@ List fetchFullRoutineDetailsForIds( for (Future getFuture : getRoutineFutures) { if (Thread.currentThread().isInterrupted()) { - logger.warning("Interrupted while collecting getRoutine detail results."); getRoutineFutures.forEach(f -> f.cancel(true)); // Cancel remaining - throw new InterruptedException("Interrupted while collecting Routine details"); + InterruptedException ex = + new InterruptedException("Interrupted while collecting Routine details"); + logger.severe(ex.getMessage(), ex); + throw ex; } try { Routine fullRoutine = getFuture.get(); @@ -1381,8 +1390,10 @@ void submitProcedureArgumentProcessingJobs( for (Routine fullRoutine : fullRoutines) { if (Thread.currentThread().isInterrupted()) { - logger.warning("Interrupted during submission of argument processing tasks."); - throw new InterruptedException("Interrupted while submitting argument processing jobs"); + InterruptedException ex = + new InterruptedException("Interrupted while submitting argument processing jobs"); + logger.severe(ex.getMessage(), ex); + throw ex; } if (fullRoutine != null) { if ("PROCEDURE".equalsIgnoreCase(fullRoutine.getRoutineType())) { @@ -2632,12 +2643,13 @@ Schema defineGetVersionColumnsSchema() { public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { String sql = readSqlFromFile(GET_PRIMARY_KEYS_SQL); try { - Statement stmt = this.connection.createStatement(); - stmt.closeOnCompletion(); + if (this.statement == null) { + this.statement = this.connection.createStatement(); + } String formattedSql = replaceSqlParameters(sql, catalog, schema, table); - return stmt.executeQuery(formattedSql); + return this.statement.executeQuery(formattedSql); } catch (SQLException e) { - throw new BigQueryJdbcException(e); + throw new BigQueryJdbcException("Error executing getPrimaryKeys", e); } } @@ -2646,12 +2658,13 @@ public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { String sql = readSqlFromFile(GET_IMPORTED_KEYS_SQL); try { - Statement stmt = this.connection.createStatement(); - stmt.closeOnCompletion(); + if (this.statement == null) { + this.statement = this.connection.createStatement(); + } String formattedSql = replaceSqlParameters(sql, catalog, schema, table); - return stmt.executeQuery(formattedSql); + return this.statement.executeQuery(formattedSql); } catch (SQLException e) { - throw new BigQueryJdbcException(e); + throw new BigQueryJdbcException("Error executing getImportedKeys", e); } } @@ -2660,12 +2673,13 @@ public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { String sql = readSqlFromFile(GET_EXPORTED_KEYS_SQL); try { - Statement stmt = this.connection.createStatement(); - stmt.closeOnCompletion(); + if (this.statement == null) { + this.statement = this.connection.createStatement(); + } String formattedSql = replaceSqlParameters(sql, catalog, schema, table); - return stmt.executeQuery(formattedSql); + return this.statement.executeQuery(formattedSql); } catch (SQLException e) { - throw new BigQueryJdbcException(e); + throw new BigQueryJdbcException("Error executing getExportedKeys", e); } } @@ -2680,8 +2694,9 @@ public ResultSet getCrossReference( throws SQLException { String sql = readSqlFromFile(GET_CROSS_REFERENCE_SQL); try { - Statement stmt = this.connection.createStatement(); - stmt.closeOnCompletion(); + if (this.statement == null) { + this.statement = this.connection.createStatement(); + } String formattedSql = replaceSqlParameters( sql, @@ -2691,9 +2706,9 @@ public ResultSet getCrossReference( foreignCatalog, foreignSchema, foreignTable); - return stmt.executeQuery(formattedSql); + return this.statement.executeQuery(formattedSql); } catch (SQLException e) { - throw new BigQueryJdbcException(e); + throw new BigQueryJdbcException("Error executing getCrossReference", e); } } @@ -3290,7 +3305,7 @@ public boolean insertsAreDetected(int type) { @Override public boolean supportsBatchUpdates() { - return false; + return true; } @Override @@ -5255,16 +5270,18 @@ private void loadDriverVersionProperties() { if (input == null) { String errorMessage = "Could not find dependencies.properties. Driver version information is unavailable."; - LOG.severe(errorMessage); - throw new IllegalStateException(errorMessage); + IllegalStateException ex = new IllegalStateException(errorMessage); + LOG.severe(errorMessage, ex); + throw ex; } props.load(input); String versionString = props.getProperty("version.jdbc"); if (versionString == null || versionString.trim().isEmpty()) { String errorMessage = "The property version.jdbc not found or empty in dependencies.properties."; - LOG.severe(errorMessage); - throw new IllegalStateException(errorMessage); + IllegalStateException ex = new IllegalStateException(errorMessage); + LOG.severe(errorMessage, ex); + throw ex; } parsedDriverVersion.compareAndSet(null, versionString.trim()); String[] parts = versionString.split("\\."); @@ -5282,8 +5299,9 @@ private void loadDriverVersionProperties() { "Error reading dependencies.properties. Driver version information is" + " unavailable. Error: " + e.getMessage(); - LOG.severe(errorMessage); - throw new IllegalStateException(errorMessage, e); + IllegalStateException ex = new IllegalStateException(errorMessage, e); + LOG.severe(errorMessage, ex); + throw ex; } } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDriver.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDriver.java index 930fc42af2bc..e62d93fca0ed 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDriver.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDriver.java @@ -64,7 +64,10 @@ public class BigQueryDriver implements Driver { try { register(); } catch (SQLException e) { - throw new ExceptionInInitializerError("Registering driver failed: " + e.getMessage()); + ExceptionInInitializerError ex = + new ExceptionInInitializerError("Registering driver failed: " + e.getMessage()); + LOG.severe(ex.getMessage(), ex); + throw ex; } LoadBalancerRegistry.getDefaultRegistry().register(new PickFirstLoadBalancerProvider()); } @@ -95,8 +98,11 @@ public static BigQueryDriver getRegisteredDriver() throws IllegalStateException if (isRegistered()) { return registeredBigqueryJdbcDriver; } - throw new IllegalStateException( - "Driver is not registered (or it has not been registered using Driver.register() method)"); + IllegalStateException ex = + new IllegalStateException( + "Driver is not registered (or it has not been registered using Driver.register() method)"); + LOG.severe(ex.getMessage(), ex); + throw ex; } /** @@ -127,7 +133,7 @@ public Connection connect(String url, Properties info) throws SQLException { try { BigQueryJdbcUrlUtility.parseUrl(connectionUri); } catch (BigQueryJdbcRuntimeException e) { - throw new BigQueryJdbcException(e.getMessage(), e); + throw new BigQueryJdbcException("Failed to parse connection URL", e); } DataSource ds = DataSource.fromUrl(connectionUri); diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcCustomLogger.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcCustomLogger.java index 9412b2fd795e..6932f9b1a2a8 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcCustomLogger.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcCustomLogger.java @@ -16,45 +16,98 @@ package com.google.cloud.bigquery.jdbc; +import java.util.function.Supplier; +import java.util.logging.Level; +import java.util.logging.LogRecord; import java.util.logging.Logger; -class BigQueryJdbcCustomLogger extends Logger { +public class BigQueryJdbcCustomLogger extends Logger { protected BigQueryJdbcCustomLogger(String name, String resourceBundleName) { super(name, resourceBundleName); this.setParent(BigQueryJdbcRootLogger.getRootLogger()); } - BigQueryJdbcCustomLogger(String name) { + public BigQueryJdbcCustomLogger(String name) { this(name, null); this.setParent(BigQueryJdbcRootLogger.getRootLogger()); } + private void logWithCaller(Level level, Supplier msgSupplier) { + logWithCaller(level, null, msgSupplier); + } + + private void logWithCaller(Level level, Throwable thrown, Supplier msgSupplier) { + if (!isLoggable(level)) { + return; + } + + StackTraceElement[] stackTrace = new Throwable().getStackTrace(); + String sourceClass = "unknown"; + String sourceMethod = "unknown"; + + for (StackTraceElement element : stackTrace) { + String className = element.getClassName(); + if (!className.equals(BigQueryJdbcCustomLogger.class.getName()) + && !className.startsWith("com.google.cloud.bigquery.exception.")) { + sourceClass = className; + sourceMethod = element.getMethodName(); + break; + } + } + + if (thrown == null) { + logp(level, sourceClass, sourceMethod, msgSupplier); + } else { + LogRecord record = new LogRecord(level, msgSupplier.get()); + record.setSourceClassName(sourceClass); + record.setSourceMethodName(sourceMethod); + record.setThrown(thrown); + log(record); + } + } + void finest(String format, Object... args) { - this.finest(() -> String.format(format, args)); + logWithCaller(Level.FINEST, () -> String.format(format, args)); } void finer(String format, Object... args) { - this.finer(() -> String.format(format, args)); + logWithCaller(Level.FINER, () -> String.format(format, args)); } void fine(String format, Object... args) { - this.fine(() -> String.format(format, args)); + logWithCaller(Level.FINE, () -> String.format(format, args)); } void config(String format, Object... args) { - this.config(() -> String.format(format, args)); + logWithCaller(Level.CONFIG, () -> String.format(format, args)); } void info(String format, Object... args) { - this.info(() -> String.format(format, args)); + logWithCaller(Level.INFO, () -> String.format(format, args)); } void warning(String format, Object... args) { - this.warning(() -> String.format(format, args)); + logWithCaller(Level.WARNING, () -> String.format(format, args)); + } + + void warning(Throwable thrown, String msg) { + logWithCaller(Level.WARNING, thrown, () -> msg); + } + + void warning(Throwable thrown, String format, Object... args) { + logWithCaller(Level.WARNING, thrown, () -> String.format(format, args)); } void severe(String format, Object... args) { - this.severe(() -> String.format(format, args)); + logWithCaller(Level.SEVERE, () -> String.format(format, args)); + } + + public void severe(String msg, Throwable thrown) { + logWithCaller(Level.SEVERE, thrown, () -> msg); + } + + public void severe(String format, Throwable thrown, Object... args) { + logWithCaller(Level.SEVERE, thrown, () -> String.format(format, args)); } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdc.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdc.java new file mode 100644 index 000000000000..12ea04c30628 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdc.java @@ -0,0 +1,89 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.bigquery.jdbc; + +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; + +/** + * Lightweight MDC implementation for the BigQuery JDBC driver using InheritableThreadLocal. + * Allocates a dedicated, independent InheritableThreadLocal object per concrete BigQueryConnection + * instance. + */ +class BigQueryJdbcMdc { + private static final ConcurrentHashMap> + instanceLocals = new ConcurrentHashMap<>(); + private static final ConcurrentHashMap instanceIds = + new ConcurrentHashMap<>(); + + /** Allocates an exclusive InheritableThreadLocal and registers the connection mapping. */ + private static final InheritableThreadLocal currentConnectionId = + new InheritableThreadLocal<>(); + + static MdcCloseable registerInstance(BigQueryConnection connection, String id) { + if (connection != null) { + String cleanId = + instanceIds.computeIfAbsent( + connection, + k -> { + String baseId = (id != null && !id.isEmpty()) ? id : UUID.randomUUID().toString(); + return baseId; + }); + + currentConnectionId.set(cleanId); + InheritableThreadLocal threadLocal = + instanceLocals.computeIfAbsent(connection, k -> new InheritableThreadLocal<>()); + threadLocal.set(cleanId); + } + return () -> clear(); + } + + /** + * Returns the connection ID carried by any registered active connection on the current thread. + */ + static String getConnectionId() { + return currentConnectionId.get(); + } + + /** Clears the connection ID context from all active connection contexts on the current thread. */ + static void removeInstance(BigQueryConnection connection) { + if (connection != null) { + InheritableThreadLocal local = instanceLocals.remove(connection); + if (local != null) { + local.remove(); + } + instanceIds.remove(connection); + } + } + + static void clear() { + currentConnectionId.remove(); + for (InheritableThreadLocal local : instanceLocals.values()) { + local.remove(); + } + } + + /** + * Functional interface that extends AutoCloseable to avoid throwing checked exceptions in + * try-with-resources. + */ + @FunctionalInterface + interface MdcCloseable extends AutoCloseable { + @Override + void close(); + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java index f7be358dde18..7e05e7d74618 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java @@ -80,6 +80,13 @@ final class BigQueryJdbcOAuthUtility { + "Thank you for using JDBC Driver for Google BigQuery!\n" + "You may now close the window."; + static final String BIGQUERY_SCOPE = "https://www.googleapis.com/auth/bigquery"; + static final String DRIVE_READONLY_SCOPE = "https://www.googleapis.com/auth/drive.readonly"; + + static final List DEFAULT_BIGQUERY_SCOPES = Arrays.asList(BIGQUERY_SCOPE); + static final List BIGQUERY_WITH_DRIVE_SCOPES = + Arrays.asList(BIGQUERY_SCOPE, DRIVE_READONLY_SCOPE); + private static final int USER_AUTH_TIMEOUT_MS = 120000; private static final BigQueryJdbcCustomLogger LOG = new BigQueryJdbcCustomLogger(BigQueryJdbcOAuthUtility.class.getName()); @@ -114,9 +121,11 @@ static Map parseOAuthProperties(DataSource ds, String callerClas try { authType = AuthType.fromValue(ds.getOAuthType()); } catch (NumberFormatException exception) { + LOG.severe(OAUTH_TYPE_ERROR_MESSAGE, exception); throw new IllegalArgumentException(OAUTH_TYPE_ERROR_MESSAGE); } oauthProperties.put(BigQueryJdbcUrlUtility.OAUTH_TYPE_PROPERTY_NAME, String.valueOf(authType)); + switch (authType) { case GOOGLE_SERVICE_ACCOUNT: // For using a Google Service Account (OAuth Type 0) @@ -144,11 +153,6 @@ static Map parseOAuthProperties(DataSource ds, String callerClas BigQueryJdbcUrlUtility.OAUTH_CLIENT_ID_PROPERTY_NAME, ds.getOAuthClientId()); oauthProperties.put( BigQueryJdbcUrlUtility.OAUTH_CLIENT_SECRET_PROPERTY_NAME, ds.getOAuthClientSecret()); - int reqGoogleDriveScope = ds.getRequestGoogleDriveScope(); - oauthProperties.put( - BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME, - String.valueOf(reqGoogleDriveScope)); - LOG.fine("RequestGoogleDriveScope parsed."); break; case PRE_GENERATED_TOKEN: String refreshToken = ds.getOAuthRefreshToken(); @@ -166,6 +170,9 @@ static Map parseOAuthProperties(DataSource ds, String callerClas } oauthProperties.put( BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_PROPERTY_NAME, ds.getOAuthAccessToken()); + oauthProperties.put( + BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_READONLY_PROPERTY_NAME, + String.valueOf(ds.getOAuthAccessTokenReadonly())); LOG.fine("OAuthAccessToken provided."); break; case APPLICATION_DEFAULT_CREDENTIALS: @@ -226,26 +233,22 @@ static Map parseOAuthProperties(DataSource ds, String callerClas break; } - if (authType == AuthType.GOOGLE_SERVICE_ACCOUNT - || authType == AuthType.GOOGLE_USER_ACCOUNT - || authType == AuthType.PRE_GENERATED_TOKEN) { - oauthProperties.put( - BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_EMAIL_PROPERTY_NAME, - ds.getOAuthSAImpersonationEmail()); - oauthProperties.put( - BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_CHAIN_PROPERTY_NAME, - ds.getOAuthSAImpersonationChain()); - oauthProperties.put( - BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_SCOPES_PROPERTY_NAME, - ds.getOAuthSAImpersonationScopes() != null - ? ds.getOAuthSAImpersonationScopes() - : BigQueryJdbcUrlUtility.DEFAULT_OAUTH_SA_IMPERSONATION_SCOPES_VALUE); - oauthProperties.put( - BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_TOKEN_LIFETIME_PROPERTY_NAME, - ds.getOAuthSAImpersonationTokenLifetime() != null - ? ds.getOAuthSAImpersonationTokenLifetime() - : BigQueryJdbcUrlUtility.DEFAULT_OAUTH_SA_IMPERSONATION_TOKEN_LIFETIME_VALUE); - } + oauthProperties.put( + BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_EMAIL_PROPERTY_NAME, + ds.getOAuthSAImpersonationEmail()); + oauthProperties.put( + BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_CHAIN_PROPERTY_NAME, + ds.getOAuthSAImpersonationChain()); + oauthProperties.put( + BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_SCOPES_PROPERTY_NAME, + ds.getOAuthSAImpersonationScopes() != null + ? ds.getOAuthSAImpersonationScopes() + : BIGQUERY_SCOPE); + oauthProperties.put( + BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_TOKEN_LIFETIME_PROPERTY_NAME, + ds.getOAuthSAImpersonationTokenLifetime() != null + ? ds.getOAuthSAImpersonationTokenLifetime() + : BigQueryJdbcUrlUtility.DEFAULT_OAUTH_SA_IMPERSONATION_TOKEN_LIFETIME_VALUE); return oauthProperties; } @@ -258,6 +261,7 @@ static Map parseOAuthProperties(DataSource ds, String callerClas static GoogleCredentials getCredentials( Map authProperties, Map overrideProperties, + Boolean reqGoogleDriveScopeBool, String callerClassName) { LOG.finest("++enter++\t" + callerClassName); @@ -279,16 +283,19 @@ static GoogleCredentials getCredentials( getPreGeneratedTokensCredentials(authProperties, overrideProperties, callerClassName); break; case APPLICATION_DEFAULT_CREDENTIALS: - // This auth method doesn't support service account impersonation - return getApplicationDefaultCredentials(callerClassName); + credentials = getApplicationDefaultCredentials(callerClassName); + break; case EXTERNAL_ACCOUNT_AUTH: - // This auth method doesn't support service account impersonation - return getExternalAccountAuthCredentials(authProperties, callerClassName); + credentials = getExternalAccountAuthCredentials(authProperties, callerClassName); + break; default: - throw new IllegalStateException(OAUTH_TYPE_ERROR_MESSAGE); + IllegalStateException ex = new IllegalStateException(OAUTH_TYPE_ERROR_MESSAGE); + LOG.severe(ex.getMessage(), ex); + throw ex; } - return getServiceAccountImpersonatedCredentials(credentials, authProperties); + return getServiceAccountImpersonatedCredentials( + credentials, reqGoogleDriveScopeBool, authProperties); } private static boolean isFileExists(String filename) { @@ -360,7 +367,6 @@ private static GoogleCredentials getGoogleServiceAccountCredentials( builder = ServiceAccountCredentials.newBuilder().setClientEmail(pvtEmail).setPrivateKey(key); } else { - LOG.severe("No valid Service Account credentials provided."); throw new BigQueryJdbcRuntimeException("No valid credentials provided."); } @@ -374,8 +380,8 @@ private static GoogleCredentials getGoogleServiceAccountCredentials( overrideProperties.get(BigQueryJdbcUrlUtility.UNIVERSE_DOMAIN_OVERRIDE_PROPERTY_NAME)); } } catch (URISyntaxException | IOException e) { - LOG.severe("Validation failure for Service Account credentials."); - throw new BigQueryJdbcRuntimeException(e); + throw new BigQueryJdbcRuntimeException( + "Validation failure for Service Account credentials.", e); } LOG.info("GoogleCredentials instantiated. Auth Method: Service Account."); return builder.build(); @@ -388,29 +394,10 @@ static UserAuthorizer getUserAuthorizer( String callerClassName) throws URISyntaxException { LOG.finest("++enter++\t" + callerClassName); + List scopes = new ArrayList<>(); scopes.add("https://www.googleapis.com/auth/bigquery"); - // Add Google Drive scope conditionally - if (authProperties.containsKey( - BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME)) { - try { - int driveScopeValue = - Integer.parseInt( - authProperties.get( - BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME)); - if (driveScopeValue == 1) { - scopes.add("https://www.googleapis.com/auth/drive.readonly"); - LOG.fine("Added Google Drive read-only scope. Caller: " + callerClassName); - } - } catch (NumberFormatException e) { - LOG.severe( - "Invalid value for RequestGoogleDriveScope, defaulting to not request Drive scope." - + " Caller: " - + callerClassName); - } - } - List responseTypes = new ArrayList<>(); responseTypes.add("code"); @@ -483,9 +470,8 @@ private static GoogleCredentials getGoogleUserAccountCredentials( return getCredentialsFromCode(userAuthorizer, code, callerClassName); } catch (IOException | URISyntaxException ex) { - LOG.severe( - "Failed to establish connection using User Account authentication: %s", ex.getMessage()); - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException( + "Failed to establish connection using User Account authentication", ex); } } @@ -500,14 +486,18 @@ private static GoogleCredentials getPreGeneratedAccessTokenCredentials( builder.setUniverseDomain( overrideProperties.get(BigQueryJdbcUrlUtility.UNIVERSE_DOMAIN_OVERRIDE_PROPERTY_NAME)); } + LOG.info("Connection established. Auth Method: Pre-generated Access Token."); - return builder - .setAccessToken( - AccessToken.newBuilder() - .setTokenValue( - authProperties.get(BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_PROPERTY_NAME)) - .build()) - .build(); + GoogleCredentials credentials = + builder + .setAccessToken( + AccessToken.newBuilder() + .setTokenValue( + authProperties.get(BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_PROPERTY_NAME)) + .build()) + .build(); + + return credentials; } static GoogleCredentials getPreGeneratedTokensCredentials( @@ -520,7 +510,8 @@ static GoogleCredentials getPreGeneratedTokensCredentials( return getPreGeneratedRefreshTokenCredentials( authProperties, overrideProperties, callerClassName); } catch (URISyntaxException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException( + "URISyntaxException during getPreGeneratedTokensCredentials", ex); } } else { return getPreGeneratedAccessTokenCredentials( @@ -552,6 +543,7 @@ static UserCredentials getPreGeneratedRefreshTokenCredentials( userCredentialsBuilder.setUniverseDomain( overrideProperties.get(BigQueryJdbcUrlUtility.UNIVERSE_DOMAIN_OVERRIDE_PROPERTY_NAME)); } + LOG.info("Connection established. Auth Method: Pre-generated Refresh Token."); return userCredentialsBuilder.build(); } @@ -571,10 +563,11 @@ private static GoogleCredentials getApplicationDefaultCredentials(String callerC LOG.info( "Connection established. Auth Method: Application Default Credentials, Principal: %s.", principal); + return credentials; } catch (IOException exception) { - // TODO throw exception - throw new BigQueryJdbcRuntimeException("Application default credentials not found."); + throw new BigQueryJdbcRuntimeException( + "Application default credentials not found.", exception); } } @@ -623,24 +616,33 @@ private static GoogleCredentials getExternalAccountAuthCredentials( return ExternalAccountCredentials.fromStream( new ByteArrayInputStream(jsonObject.toString().getBytes())); } else { - throw new IllegalArgumentException( - "Insufficient info provided for external authentication"); + IllegalArgumentException ex = + new IllegalArgumentException("Insufficient info provided for external authentication"); + LOG.severe(ex.getMessage(), ex); + throw ex; } } catch (IOException e) { - throw new BigQueryJdbcRuntimeException(e); + throw new BigQueryJdbcRuntimeException( + "IOException during getExternalAccountAuthCredentials", e); } } // This function checks if connection string contains configuration for // credentials impersonation. If not, it returns regular credentials object. // If impersonated service account is provided, returns Credentials object - // accomodating this information. + // accommodating this information. private static GoogleCredentials getServiceAccountImpersonatedCredentials( - GoogleCredentials credentials, Map authProperties) { + GoogleCredentials credentials, + Boolean reqGoogleDriveScopeBool, + Map authProperties) { String impersonationEmail = authProperties.get(BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_EMAIL_PROPERTY_NAME); if (impersonationEmail == null || impersonationEmail.isEmpty()) { + if (reqGoogleDriveScopeBool) { + credentials = credentials.createScoped(BIGQUERY_WITH_DRIVE_SCOPES); + LOG.fine("Added Google Drive read-only scope to GoogleCredentials."); + } return credentials; } @@ -653,10 +655,18 @@ private static GoogleCredentials getServiceAccountImpersonatedCredentials( // Scopes has a default value, so it should never be null List impersonationScopes = - Arrays.asList( - authProperties - .get(BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_SCOPES_PROPERTY_NAME) - .split(",")); + new java.util.ArrayList<>( + Arrays.asList( + authProperties + .get(BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_SCOPES_PROPERTY_NAME) + .split(","))); + + if (reqGoogleDriveScopeBool) { + if (!impersonationScopes.contains(DRIVE_READONLY_SCOPE)) { + impersonationScopes.add(DRIVE_READONLY_SCOPE); + LOG.fine("Added Google Drive read-only scope to impersonation scopes."); + } + } // Token lifetime has a default value, so it should never be null String impersonationLifetime = @@ -666,10 +676,12 @@ private static GoogleCredentials getServiceAccountImpersonatedCredentials( try { impersonationLifetimeInt = Integer.parseInt(impersonationLifetime); } catch (NumberFormatException e) { - LOG.severe("Invalid value for ServiceAccountImpersonationTokenLifetime."); - throw new IllegalArgumentException( - "Invalid value for ServiceAccountImpersonationTokenLifetime: must be a positive integer.", - e); + IllegalArgumentException ex = + new IllegalArgumentException( + "Invalid value for ServiceAccountImpersonationTokenLifetime: must be a positive integer.", + e); + LOG.severe(ex.getMessage(), ex); + throw ex; } return ImpersonatedCredentials.create( @@ -696,7 +708,9 @@ static PrivateKey privateKeyFromPkcs8(String privateKeyPkcs8) { Reader reader = new StringReader(privateKeyPkcs8); PemReader.Section section = readFirstSectionAndClose(reader, "PRIVATE KEY"); if (section == null) { - throw new IOException("Invalid PKCS#8 data."); + IOException ex = new IOException("Invalid PKCS#8 data."); + LOG.severe(ex.getMessage(), ex); + throw ex; } byte[] bytes = section.getBase64DecodedBytes(); PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(bytes); @@ -727,7 +741,9 @@ static AuthType fromValue(int value) { return authType; } } - throw new IllegalStateException(OAUTH_TYPE_ERROR_MESSAGE + ": " + value); + IllegalStateException ex = new IllegalStateException(OAUTH_TYPE_ERROR_MESSAGE + ": " + value); + LOG.severe(ex.getMessage(), ex); + throw ex; } } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtility.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtility.java index 52eef2739d24..7c495e801537 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtility.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtility.java @@ -71,9 +71,13 @@ static Map parseProxyProperties(DataSource ds, String callerClas String proxyPort = ds.getProxyPort(); if (proxyPort != null) { if (!Pattern.compile(validPortRegex).matcher(proxyPort).find()) { - throw new IllegalArgumentException( - String.format( - "Illegal port number provided %s. Please provide a valid port number.", proxyPort)); + IllegalArgumentException ex = + new IllegalArgumentException( + String.format( + "Illegal port number provided %s. Please provide a valid port number.", + proxyPort)); + LOG.severe(ex.getMessage(), ex); + throw ex; } proxyProperties.put(BigQueryJdbcUrlUtility.PROXY_PORT_PROPERTY_NAME, proxyPort); } @@ -89,20 +93,29 @@ static Map parseProxyProperties(DataSource ds, String callerClas boolean isMissingProxyHostOrPortWhenProxySet = (proxyHost == null && proxyPort != null) || (proxyHost != null && proxyPort == null); if (isMissingProxyHostOrPortWhenProxySet) { - throw new IllegalArgumentException( - "Both ProxyHost and ProxyPort parameters need to be specified. No defaulting behavior" - + " occurs."); + IllegalArgumentException ex = + new IllegalArgumentException( + "Both ProxyHost and ProxyPort parameters need to be specified. No defaulting behavior" + + " occurs."); + LOG.severe(ex.getMessage(), ex); + throw ex; } boolean isMissingProxyUidOrPwdWhenAuthSet = (proxyUid == null && proxyPwd != null) || (proxyUid != null && proxyPwd == null); if (isMissingProxyUidOrPwdWhenAuthSet) { - throw new IllegalArgumentException( - "Both ProxyUid and ProxyPwd parameters need to be specified for authentication."); + IllegalArgumentException ex = + new IllegalArgumentException( + "Both ProxyUid and ProxyPwd parameters need to be specified for authentication."); + LOG.severe(ex.getMessage(), ex); + throw ex; } boolean isProxyAuthSetWithoutProxySettings = proxyUid != null && proxyHost == null; if (isProxyAuthSetWithoutProxySettings) { - throw new IllegalArgumentException( - "Proxy authentication provided via connection string with no proxy host or port set."); + IllegalArgumentException ex = + new IllegalArgumentException( + "Proxy authentication provided via connection string with no proxy host or port set."); + LOG.severe(ex.getMessage(), ex); + throw ex; } return proxyProperties; } @@ -189,7 +202,8 @@ private static HttpTransportFactory getHttpTransportFactory( .setSSLSocketFactory(sslSocketFactory) .build()); } catch (IOException | GeneralSecurityException e) { - throw new BigQueryJdbcRuntimeException(e); + throw new BigQueryJdbcRuntimeException( + "Failed to configure SSL TrustStore for HTTP transport", e); } } addAuthToProxyIfPresent(proxyProperties, httpClientBuilder, callerClassName); @@ -278,7 +292,8 @@ public ProxiedSocketAddress proxyFor(SocketAddress socketAddress) { .sslContext(grpcSslContext); } catch (IOException | GeneralSecurityException e) { - throw new BigQueryJdbcRuntimeException(e); + throw new BigQueryJdbcRuntimeException( + "Failed to configure SSL TrustStore for GRPC channel", e); } } return managedChannelBuilder; diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcRootLogger.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcRootLogger.java index a6723441550e..32772521e9c2 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcRootLogger.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcRootLogger.java @@ -16,17 +16,13 @@ package com.google.cloud.bigquery.jdbc; +import com.google.common.base.Strings; import java.io.IOException; import java.lang.management.ManagementFactory; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.nio.file.StandardCopyOption; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.Optional; +import java.time.Instant; +import java.time.ZoneId; +import java.time.format.DateTimeFormatter; import java.util.logging.ConsoleHandler; -import java.util.logging.FileHandler; import java.util.logging.Formatter; import java.util.logging.Handler; import java.util.logging.Level; @@ -46,8 +42,32 @@ class BigQueryJdbcRootLogger { private static final boolean isTest = Boolean.getBoolean("JDBC_TESTS"); private static Handler fileHandler = null; - private static Path currentLogPath = null; - private static int fileCounter = 0; + + static final String PROCESS_ID = ManagementFactory.getRuntimeMXBean().getName().split("@")[0]; + + private static final DateTimeFormatter DATE_FORMATTER = + DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS").withZone(ZoneId.systemDefault()); + + static String getThreadName(long threadId) { + Thread current = Thread.currentThread(); + if (current.getId() == threadId) { + return current.getName(); + } + ThreadGroup rootGroup = current.getThreadGroup(); + while (rootGroup.getParent() != null) { + rootGroup = rootGroup.getParent(); + } + + int count = rootGroup.activeCount(); + Thread[] threads = new Thread[count * 2]; + int actualCount = rootGroup.enumerate(threads); + for (int i = 0; i < actualCount; i++) { + if (threads[i].getId() == threadId) { + return threads[i].getName(); + } + } + return ""; + } static { logger.setUseParentHandlers(false); @@ -62,49 +82,52 @@ class BigQueryJdbcRootLogger { public static Formatter getFormatter() { return new Formatter() { - private static final String PATTERN = "yyyy-MM-dd HH:mm:ss.SSS"; - private static final String FORMAT = - "%1$s %2$5s %3$d --- [%4$-7.15s] %5$-50s %6$-20s: %7$s%8$s"; private static final int MAX_THREAD_NAME_LENGTH = 15; - /** - * Returns the thread for the given thread id. - * - * @param threadId ID for the thread being logged. - * @return returns the thread - */ - Optional getThread(long threadId) { - return Thread.getAllStackTraces().keySet().stream() - .filter(thread -> thread.getId() == threadId) - .findFirst(); - } - @Override public String format(LogRecord record) { - String date = new SimpleDateFormat(PATTERN).format(new Date(record.getMillis())); - String threadName = - getThread(record.getThreadID()) - .map(Thread::getName) - .map( - name -> - name.length() > MAX_THREAD_NAME_LENGTH - ? name.substring(name.length() - MAX_THREAD_NAME_LENGTH) - : name) - .orElse(""); - long processId = - Long.parseLong(ManagementFactory.getRuntimeMXBean().getName().split("@")[0]); + String date = DATE_FORMATTER.format(Instant.ofEpochMilli(record.getMillis())); + String connectionId = BigQueryJdbcMdc.getConnectionId(); + String connStr = + (connectionId != null && !connectionId.isEmpty()) ? connectionId : "NO_CONN"; + + long threadId = record.getThreadID(); + String threadName = getThreadName(threadId); + + if (threadName.length() > MAX_THREAD_NAME_LENGTH) { + threadName = threadName.substring(threadName.length() - MAX_THREAD_NAME_LENGTH); + } + String sourceClassName = record.getLoggerName(); String sourceMethodName = record.getSourceMethodName(); - return String.format( - FORMAT, - date, - record.getLevel().getName(), - processId, - threadName, - sourceClassName, - sourceMethodName, - record.getMessage(), - System.lineSeparator()); + + // Expected log format: yyyy-MM-dd HH:mm:ss.SSS [CONNECTION_ID] LEVEL PID --- [THREAD] CLASS + // METHOD: MESSAGE + StringBuilder sb = new StringBuilder(256); + sb.append(date) + .append(" [") + .append(connStr) + .append("] ") + .append(Strings.padStart(record.getLevel().getName(), 5, ' ')) + .append(" ") + .append(PROCESS_ID) + .append(" --- [") + .append(Strings.padEnd(threadName, 7, ' ')) + .append("] ") + .append(Strings.padEnd(sourceClassName != null ? sourceClassName : "", 50, ' ')) + .append(" ") + .append(Strings.padEnd(sourceMethodName != null ? sourceMethodName : "", 20, ' ')) + .append(": ") + .append(record.getMessage()) + .append(System.lineSeparator()); + + if (record.getThrown() != null) { + java.io.StringWriter sw = new java.io.StringWriter(); + record.getThrown().printStackTrace(new java.io.PrintWriter(sw)); + sb.append(sw.toString()).append(System.lineSeparator()); + } + + return sb.toString(); } }; } @@ -113,41 +136,9 @@ public static Logger getRootLogger() { return logger; } - private static void setHandler() throws IOException { - // If Console handler exists, remove it. - // If File handler exists, use it. Else create new one. - for (Handler h : logger.getHandlers()) { - if (h instanceof ConsoleHandler) { - if (!isTest) { - h.close(); - logger.removeHandler(h); - } - } else if (h instanceof FileHandler) { - fileHandler = h; - } - } - - if (fileHandler == null) { - String fileName = String.format("BigQueryJdbc%d", fileCounter); - fileCounter++; - - currentLogPath = Files.createTempFile(fileName, ".log"); - currentLogPath.toFile().deleteOnExit(); - - fileHandler = new FileHandler(currentLogPath.toString(), 0, 1, true); - logger.addHandler(fileHandler); - } - } - public static void setLevel(Level level, String logPath) throws IOException { if (level != Level.OFF) { - setPath(logPath); - if (logger.getHandlers().length == 0) { - setHandler(); - fileHandler.setFormatter(getFormatter()); - logger.setUseParentHandlers(false); - } - fileHandler.setLevel(level); + setPath(logPath, level); logger.setLevel(level); } else { for (Handler h : logger.getHandlers()) { @@ -155,45 +146,36 @@ public static void setLevel(Level level, String logPath) throws IOException { logger.removeHandler(h); } fileHandler = null; - currentLogPath = null; } } - static void setPath(String logPath) { + static void setPath(String logPath, Level level) { try { + if (logPath == null) { + logPath = ""; + } if (!logPath.isEmpty() && !logPath.endsWith("/")) { logPath = logPath + "/"; } - Path dir = Paths.get(logPath); - if (!Files.exists(dir)) { - Files.createDirectory(dir); - } - String fileName = String.format("BigQueryJdbc%d.log", fileCounter); - fileCounter++; - Path destination = Paths.get(logPath + fileName).toAbsolutePath(); - - if (currentLogPath != null && !currentLogPath.equals(destination)) { - Path source = Paths.get(currentLogPath.toUri()); - Files.move(source, destination, StandardCopyOption.REPLACE_EXISTING); - } - - currentLogPath = destination; - fileHandler = new FileHandler(currentLogPath.toString(), 0, 1, true); - fileHandler.setFormatter(getFormatter()); - - for (Handler h : logger.getHandlers()) { - if (h instanceof FileHandler) { - h.close(); - logger.removeHandler(h); - break; - } + if (fileHandler != null) { + fileHandler.close(); + logger.removeHandler(fileHandler); } + fileHandler = new PerConnectionFileHandler(logPath, level); + fileHandler.setLevel(level); logger.addHandler(fileHandler); + logger.setUseParentHandlers(false); - } catch (IOException ex) { + } catch (Exception ex) { logger.warning("Log File warning : " + ex); } } + + public static void closeConnectionHandler(String connectionId) { + if (fileHandler instanceof PerConnectionFileHandler) { + ((PerConnectionFileHandler) fileHandler).closeHandler(connectionId); + } + } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcTypeMappings.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcTypeMappings.java index b95ac0230264..8ccd2a23dcc0 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcTypeMappings.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcTypeMappings.java @@ -33,6 +33,8 @@ @InternalApi class BigQueryJdbcTypeMappings { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryJdbcTypeMappings.class.getName()); static final Map> standardSQLToJavaTypeMapping = ImmutableMap.ofEntries( diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java index f03f8279ca6b..89a2b8b5cb8c 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java @@ -70,8 +70,7 @@ protected boolean removeEldestEntry(Map.Entry> eldes static final String HTAPI_ACTIVATION_RATIO_PROPERTY_NAME = "HighThroughputActivationRatio"; static final String KMS_KEY_NAME_PROPERTY_NAME = "KMSKeyName"; static final String QUERY_PROPERTIES_NAME = "QueryProperties"; - static final int DEFAULT_HTAPI_ACTIVATION_RATIO_VALUE = - 2; // TODO: to adjust this value before private preview based on performance testing. + static final int DEFAULT_HTAPI_ACTIVATION_RATIO_VALUE = 2; static final String HTAPI_MIN_TABLE_SIZE_PROPERTY_NAME = "HighThroughputMinTableSize"; static final int DEFAULT_HTAPI_MIN_TABLE_SIZE_VALUE = 100; static final int DEFAULT_OAUTH_TYPE_VALUE = -1; @@ -86,8 +85,6 @@ protected boolean removeEldestEntry(Map.Entry> eldes static final String DEFAULT_OAUTH_SA_IMPERSONATION_CHAIN_VALUE = null; static final String OAUTH_SA_IMPERSONATION_SCOPES_PROPERTY_NAME = "ServiceAccountImpersonationScopes"; - static final String DEFAULT_OAUTH_SA_IMPERSONATION_SCOPES_VALUE = - "https://www.googleapis.com/auth/bigquery"; static final String OAUTH_SA_IMPERSONATION_TOKEN_LIFETIME_PROPERTY_NAME = "ServiceAccountImpersonationTokenLifetime"; static final String DEFAULT_OAUTH_SA_IMPERSONATION_TOKEN_LIFETIME_VALUE = "3600"; @@ -101,9 +98,12 @@ protected boolean removeEldestEntry(Map.Entry> eldes static final String BIGQUERY_ENDPOINT_OVERRIDE_PROPERTY_NAME = "BIGQUERY"; static final String STS_ENDPOINT_OVERRIDE_PROPERTY_NAME = "STS"; static final String OAUTH_ACCESS_TOKEN_PROPERTY_NAME = "OAuthAccessToken"; + static final String OAUTH_ACCESS_TOKEN_READONLY_PROPERTY_NAME = "OAuthAccessTokenReadonly"; static final String OAUTH_REFRESH_TOKEN_PROPERTY_NAME = "OAuthRefreshToken"; static final String OAUTH_CLIENT_ID_PROPERTY_NAME = "OAuthClientId"; static final String OAUTH_CLIENT_SECRET_PROPERTY_NAME = "OAuthClientSecret"; + static final String DEFAULT_OAUTH_CLIENT_ID = "977385342095.apps.googleusercontent.com"; + static final String DEFAULT_OAUTH_CLIENT_SECRET = "wbER7576mc_1YOII0dGk7jEE"; static final String ENABLE_HTAPI_PROPERTY_NAME = "EnableHighThroughputAPI"; static final String PROXY_HOST_PROPERTY_NAME = "ProxyHost"; static final String PROXY_PORT_PROPERTY_NAME = "ProxyPort"; @@ -251,6 +251,11 @@ protected boolean removeEldestEntry(Map.Entry> eldes "The pre-generated access token to be used with BigQuery for" + " authentication.") .build(), + BigQueryConnectionProperty.newBuilder() + .setName(OAUTH_ACCESS_TOKEN_READONLY_PROPERTY_NAME) + .setDescription( + "Set to true if the pre-generated access token has a read-only scope.") + .build(), BigQueryConnectionProperty.newBuilder() .setName(OAUTH_CLIENT_ID_PROPERTY_NAME) .setDescription( @@ -757,23 +762,29 @@ static boolean convertIntToBoolean(String value, String propertyName) { } } catch (NumberFormatException ex) { - throw new IllegalArgumentException( - String.format( - "Invalid value for %s. For Boolean connection properties, use 0 for false and 1 for" - + " true.", - propertyName), - ex); + IllegalArgumentException e = + new IllegalArgumentException( + String.format( + "Invalid value for %s. For Boolean connection properties, use 0 for false and 1 for" + + " true.", + propertyName), + ex); + LOG.severe(e.getMessage(), e); + throw e; } if (integerValue == 1) { return true; } else if (integerValue == 0) { return false; } else { - throw new IllegalArgumentException( - String.format( - "Invalid value for %s. For Boolean connection properties, use 0 for false and 1 for" - + " true.", - propertyName)); + IllegalArgumentException ex = + new IllegalArgumentException( + String.format( + "Invalid value for %s. For Boolean connection properties, use 0 for false and 1 for" + + " true.", + propertyName)); + LOG.severe(ex.getMessage(), ex); + throw ex; } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java index da2ade028e9f..c59061b25467 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java @@ -137,8 +137,11 @@ public boolean next() throws SQLException { // We are working with the nested record, the cursor would have been // populated. if (this.cursor == null || this.cursor.getArrayFieldValueList() == null) { - throw new IllegalStateException( - "Cursor/ArrayFieldValueList can not be null working with the nested record"); + IllegalStateException ex = + new IllegalStateException( + "Cursor/ArrayFieldValueList can not be null working with the nested record"); + LOG.severe(ex.getMessage(), ex); + throw ex; } // Check if there's a next record in the array which can be read if (this.nestedRowIndex < (this.toIndexExclusive - 1)) { @@ -172,10 +175,11 @@ public boolean next() throws SQLException { // Cursor has been advanced return true; - } catch (InterruptedException ex) { + } catch (InterruptedException e) { + throw new BigQueryJdbcRuntimeException( "Error occurred while advancing the cursor. This could happen when connection is closed while we call the next method", - ex); + e); } } } @@ -236,12 +240,17 @@ private FieldValue getObjectInternal(int columnIndex) throws SQLException { // BigQuery doesn't support multidimensional arrays, so just the default row // num column (1) and the actual column (2) is supposed to be read if (!validIndexForNestedResultSet) { - throw new IllegalArgumentException( - "Column index is required to be 1 or 2 for the nested arrays"); + IllegalArgumentException ex = + new IllegalArgumentException( + "Column index is required to be 1 or 2 for the nested arrays"); + LOG.severe(ex.getMessage(), ex); + throw ex; } if (this.cursor.getArrayFieldValueList() == null || this.cursor.getArrayFieldValueList().get(this.nestedRowIndex) == null) { - throw new IllegalStateException("ArrayFieldValueList cannot be null"); + IllegalStateException ex = new IllegalStateException("ArrayFieldValueList cannot be null"); + LOG.severe(ex.getMessage(), ex); + throw ex; } // For Arrays the first column is Index, ref: diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryParameterHandler.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryParameterHandler.java index 5dbf731a0fba..8daaf99b62a8 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryParameterHandler.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryParameterHandler.java @@ -66,6 +66,7 @@ QueryJobConfiguration.Builder configureParameters( QueryParameterValue.of(parameterValue, sqlType)); } } catch (NullPointerException e) { + LOG.severe("Null parameter mapping encountered.", e); if (e.getMessage().contains("Null type")) { throw new BigQueryJdbcException("One or more parameters missing in Prepared statement.", e); } @@ -103,7 +104,10 @@ void setParameter(int parameterIndex, Object value, Class type) private void checkValidIndex(int parameterIndex) { if (parameterIndex > this.parametersArraySize) { - throw new IndexOutOfBoundsException("All parameters already provided."); + IndexOutOfBoundsException ex = + new IndexOutOfBoundsException("All parameters already provided."); + LOG.severe("All parameters already provided.", ex); + throw ex; } } @@ -151,7 +155,10 @@ void setParameter( LOG.finest("++enter++"); LOG.finest("setParameter called by : %s", type.getName()); if (paramName == null || paramName.isEmpty()) { - throw new IllegalArgumentException("paramName cannot be null or empty"); + IllegalArgumentException ex = + new IllegalArgumentException("paramName cannot be null or empty"); + LOG.severe("paramName cannot be null or empty", ex); + throw ex; } BigQueryJdbcParameter parameter = null; for (BigQueryJdbcParameter p : parametersList) { diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPooledConnection.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPooledConnection.java index f3f5e2286536..99dea20e21ce 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPooledConnection.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPooledConnection.java @@ -65,7 +65,9 @@ boolean isListenerPooled(ConnectionEventListener l) { public synchronized Connection getConnection() throws SQLException { LOG.finest("++enter++"); if (inUse) { - throw new SQLException("PooledConnection is already in use."); + SQLException ex = new SQLException("PooledConnection is already in use."); + LOG.severe(ex.getMessage(), ex); + throw ex; } inUse = true; // Return a wrapper around the underlying physical connection. @@ -140,14 +142,20 @@ public synchronized void fireConnectionError(SQLException e) { @Override public void addStatementEventListener(StatementEventListener arg0) { - throw new UnsupportedOperationException( - "Method 'addStatementEventListener' is not supported by the BQ Driver"); + UnsupportedOperationException ex = + new UnsupportedOperationException( + "Method 'addStatementEventListener' is not supported by the BQ Driver"); + LOG.severe(ex.getMessage(), ex); + throw ex; } @Override public void removeStatementEventListener(StatementEventListener arg0) { - throw new UnsupportedOperationException( - "Method 'removeStatementEventListener' is not supported by the BQ Driver"); + UnsupportedOperationException ex = + new UnsupportedOperationException( + "Method 'removeStatementEventListener' is not supported by the BQ Driver"); + LOG.severe(ex.getMessage(), ex); + throw ex; } // Inner class: Connection Wrapper around the actual physical Connection diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPreparedStatement.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPreparedStatement.java index abead84b7b6f..356578e8dd27 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPreparedStatement.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPreparedStatement.java @@ -98,7 +98,7 @@ public ResultSet executeQuery() throws SQLException { jobConfiguration = this.parameterHandler.configureParameters(jobConfiguration); runQuery(this.currentQuery, jobConfiguration.build()); } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted during executeQuery", ex); } return getCurrentResultSet(); } @@ -113,7 +113,7 @@ public long executeLargeUpdate() throws SQLException { jobConfiguration = this.parameterHandler.configureParameters(jobConfiguration); runQuery(this.currentQuery, jobConfiguration.build()); } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted during executeLargeUpdate", ex); } return this.currentUpdateCount; } @@ -134,7 +134,7 @@ public boolean execute() throws SQLException { jobConfiguration = this.parameterHandler.configureParameters(jobConfiguration); runQuery(this.currentQuery, jobConfiguration.build()); } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted during execute", ex); } return getCurrentResultSet() != null; } @@ -291,7 +291,7 @@ public int[] executeBatch() throws SQLException { return insertArray; } catch (DescriptorValidationException | IOException | InterruptedException e) { - throw new BigQueryJdbcRuntimeException(e); + throw new BigQueryJdbcRuntimeException("Failed to execute batch with Write API", e); } } else { @@ -319,9 +319,9 @@ public int[] executeBatch() throws SQLException { } return result; } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted during individual INSERT batch", ex); } catch (SQLException e) { - throw new BigQueryJdbcException(e); + throw new BigQueryJdbcException("SQL error during individual INSERT batch", e); } } } @@ -371,7 +371,7 @@ private long bulkInsertWithWriteAPI(BigQueryWriteClient bigQueryWriteClient) } } } catch (BigQueryJdbcException e) { - throw new RuntimeException(e); + throw new BigQueryJdbcException("BigQueryJdbcException during bulkInsertWithWriteAPI", e); } long rowCount = bulkInsertWriter.cleanup(bigQueryWriteClient); diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java index 974ebc85a66b..2c04747f8863 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java @@ -104,6 +104,7 @@ public class BigQueryStatement extends BigQueryNoOpsStatement { protected int currentJobIdIndex = -1; protected List batchQueries = new ArrayList<>(); protected BigQueryConnection connection; + protected String connectionId; protected int maxFieldSize = 0; protected int maxRows = 0; protected boolean isClosed = false; @@ -149,6 +150,7 @@ public class BigQueryStatement extends BigQueryNoOpsStatement { @VisibleForTesting public BigQueryStatement(BigQueryConnection connection) { this.connection = connection; + this.connectionId = connection.getConnectionId(); this.bigQuery = connection.getBigQuery(); this.querySettings = generateBigQuerySettings(); } @@ -233,34 +235,48 @@ private BigQuerySettings generateBigQuerySettings() { */ @Override public ResultSet executeQuery(String sql) throws SQLException { - // TODO: write method to return state variables to original state. - LOG.finest("++enter++"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this.connection, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + return executeQueryImpl(sql); + } + } + + private ResultSet executeQueryImpl(String sql) throws SQLException { logQueryExecutionStart(sql); try { QueryJobConfiguration jobConfiguration = setDestinationDatasetAndTableInJobConfig(getJobConfig(sql).build()); runQuery(sql, jobConfiguration); } catch (InterruptedException ex) { - throw new BigQueryJdbcException(ex); + throw new BigQueryJdbcException("Interrupted during executeQuery", ex); } if (!isSingularResultSet()) { throw new BigQueryJdbcException( "Query returned more than one or didn't return any ResultSet."); } - // This contains all the other assertions spec required on this method return getCurrentResultSet(); } @Override public long executeLargeUpdate(String sql) throws SQLException { - LOG.finest("++enter++"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this.connection, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + return executeLargeUpdateImpl(sql); + } + } + + private long executeLargeUpdateImpl(String sql) throws SQLException { logQueryExecutionStart(sql); try { QueryJobConfiguration.Builder jobConfiguration = getJobConfig(sql); runQuery(sql, jobConfiguration.build()); } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted during executeLargeUpdate", ex); } if (this.currentUpdateCount == -1) { throw new BigQueryJdbcException( @@ -271,8 +287,13 @@ public long executeLargeUpdate(String sql) throws SQLException { @Override public int executeUpdate(String sql) throws SQLException { - LOG.finest("++enter++"); - return checkUpdateCount(executeLargeUpdate(sql)); + try { + BigQueryJdbcMdc.registerInstance(this.connection, this.connectionId); + LOG.finest("++enter++"); + return checkUpdateCount(executeLargeUpdate(sql)); + } finally { + BigQueryJdbcMdc.clear(); + } } int checkUpdateCount(long updateCount) { @@ -287,7 +308,15 @@ int checkUpdateCount(long updateCount) { @Override public boolean execute(String sql) throws SQLException { - LOG.finest("++enter++"); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this.connection, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + return executeImpl(sql); + } + } + + private boolean executeImpl(String sql) throws SQLException { logQueryExecutionStart(sql); try { QueryJobConfiguration jobConfiguration = getJobConfig(sql).build(); @@ -297,13 +326,20 @@ public boolean execute(String sql) throws SQLException { } runQuery(sql, jobConfiguration); } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted during execute", ex); } return getCurrentResultSet() != null; } StatementType getStatementType(QueryJobConfiguration queryJobConfiguration) throws SQLException { LOG.finest("++enter++"); + // BQ Read-only tokens are not recommended to use, they have a lot of known flaws. + // We're supporting them in a limited capacity, for pure SELECT statements. + if (this.connection.isReadOnlyTokenUsed()) { + LOG.warning( + "Read-only token detected, skipping dry run and assuming StatementType is SELECT."); + return StatementType.SELECT; + } QueryJobConfiguration dryRunJobConfiguration = queryJobConfiguration.toBuilder().setDryRun(true).build(); Job job; @@ -311,9 +347,10 @@ StatementType getStatementType(QueryJobConfiguration queryJobConfiguration) thro job = bigQuery.create(JobInfo.of(dryRunJobConfiguration)); } catch (BigQueryException ex) { if (ex.getMessage().contains("Syntax error")) { - throw new BigQueryJdbcSqlSyntaxErrorException(ex); + throw new BigQueryJdbcSqlSyntaxErrorException( + "BigQueryException during getStatementType", ex); } - throw new BigQueryJdbcException(ex); + throw new BigQueryJdbcException("BigQueryException during getStatementType", ex); } QueryStatistics statistics = job.getStatistics(); return statistics.getStatementType(); @@ -344,9 +381,10 @@ QueryStatistics getQueryStatistics(QueryJobConfiguration queryJobConfiguration) return job.getStatistics(); } catch (BigQueryException ex) { if (ex.getMessage().contains("Syntax error")) { - throw new BigQueryJdbcSqlSyntaxErrorException(ex); + throw new BigQueryJdbcSqlSyntaxErrorException( + "BigQueryException during getQueryStatistics", ex); } - throw new BigQueryJdbcException(ex); + throw new BigQueryJdbcException("BigQueryException during getQueryStatistics", ex); } } @@ -361,23 +399,26 @@ QueryStatistics getQueryStatistics(QueryJobConfiguration queryJobConfiguration) */ @Override public void close() throws SQLException { - LOG.fine("Closing Statement %s.", this); if (isClosed()) { return; } + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this.connection, this.connectionId)) { + LOG.fine("Closing Statement %s.", this); - boolean cancelSucceeded = false; - try { - cancel(); // This attempts to cancel jobs and calls closeStatementResources() - cancelSucceeded = true; - } catch (SQLException e) { - LOG.warning("Failed to cancel statement during close().", e); - } finally { - if (!cancelSucceeded) { - closeStatementResources(); + boolean cancelSucceeded = false; + try { + cancel(); // This attempts to cancel jobs and calls closeStatementResources() + cancelSucceeded = true; + } catch (SQLException e) { + LOG.warning("Failed to cancel statement during close().", e); + } finally { + if (!cancelSucceeded) { + closeStatementResources(); + } + this.connection = null; + this.isClosed = true; } - this.connection = null; - this.isClosed = true; } } @@ -414,7 +455,9 @@ public int getQueryTimeout() { @Override public void setQueryTimeout(int seconds) { if (seconds < 0) { - throw new IllegalArgumentException("Query Timeout should be >= 0."); + IllegalArgumentException ex = new IllegalArgumentException("Query Timeout should be >= 0."); + LOG.severe(ex.getMessage(), ex); + throw ex; } this.queryTimeout = seconds; } @@ -427,28 +470,31 @@ public void setQueryTimeout(int seconds) { */ @Override public void cancel() throws SQLException { - LOG.finest("Statement %s cancelled", this); - synchronized (cancelLock) { - this.isCanceled = true; - for (JobId jobId : this.jobIds) { - try { - this.bigQuery.cancel(jobId); - LOG.info("Job " + jobId + "cancelled."); - } catch (BigQueryException e) { - if (e.getMessage() != null - && (e.getMessage().contains("Job is already in state DONE") - || e.getMessage().contains("Error: 3848323"))) { - LOG.warning("Attempted to cancel a job that was already done: " + jobId); - } else { - throw new BigQueryJdbcException(e); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this.connection, this.connectionId)) { + LOG.finest("Statement %s cancelled", this); + synchronized (cancelLock) { + this.isCanceled = true; + for (JobId jobId : this.jobIds) { + try { + this.bigQuery.cancel(jobId); + LOG.info("Job " + jobId + "cancelled."); + } catch (BigQueryException e) { + if (e.getMessage() != null + && (e.getMessage().contains("Job is already in state DONE") + || e.getMessage().contains("Error: 3848323"))) { + LOG.warning("Attempted to cancel a job that was already done: " + jobId); + } else { + throw new BigQueryJdbcException(e); + } } } + jobIds.clear(); } - jobIds.clear(); + // If a ResultSet exists, then it will be closed as well, closing the + // ownedThreads + closeStatementResources(); } - // If a ResultSet exists, then it will be closed as well, closing the - // ownedThreads - closeStatementResources(); } @Override @@ -535,31 +581,21 @@ ExecuteResult executeJob(QueryJobConfiguration jobConfiguration) // so we need to explicitly set it; // Do not set custom JobId here or it will disable jobless queries. JobId jobId = JobId.newBuilder().setLocation(connection.getLocation()).build(); - if (connection.getUseStatelessQueryMode()) { - Object result = bigQuery.queryWithTimeout(jobConfiguration, jobId, null); - if (result instanceof TableResult) { - TableResult tableResult = (TableResult) result; - if (tableResult.getJobId() != null) { - return new ExecuteResult(tableResult, bigQuery.getJob(tableResult.getJobId())); - } - return new ExecuteResult((TableResult) result, null); + Object result = bigQuery.queryWithTimeout(jobConfiguration, jobId, null); + if (result instanceof TableResult) { + TableResult tableResult = (TableResult) result; + if (tableResult.getJobId() != null) { + return new ExecuteResult(tableResult, bigQuery.getJob(tableResult.getJobId())); } + return new ExecuteResult((TableResult) result, null); + } - if (result instanceof Job) { - job = (Job) result; - } else { - throw new BigQueryJdbcException("Unexpected result type from queryWithTimeout"); - } + if (result instanceof Job) { + job = (Job) result; } else { - // Update jobId with custom JobId if jobless query is disabled. - jobId = jobId.toBuilder().setJob(generateJobId()).build(); - JobInfo jobInfo = JobInfo.newBuilder(jobConfiguration).setJobId(jobId).build(); - job = bigQuery.create(jobInfo); + throw new BigQueryJdbcException("Unexpected result type from queryWithTimeout"); } - if (job == null) { - throw new BigQueryJdbcException("Failed to create BQ Job."); - } synchronized (cancelLock) { if (isCanceled) { job.cancel(); @@ -569,12 +605,12 @@ ExecuteResult executeJob(QueryJobConfiguration jobConfiguration) jobIds.add(jobId); } LOG.info("Query submitted with Job ID: " + job.getJobId().getJob()); - TableResult result = + TableResult tableResult = job.getQueryResults(QueryResultsOption.pageSize(querySettings.getMaxResultPerPage())); synchronized (cancelLock) { jobIds.remove(jobId); } - return new ExecuteResult(result, job); + return new ExecuteResult(tableResult, job); } /** @@ -602,12 +638,12 @@ void runQuery(String query, QueryJobConfiguration jobConfiguration) SqlType queryType = getQueryType(jobConfiguration, statementType); handleQueryResult(query, executeResult.tableResult, queryType); } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException(ex); + throw new BigQueryJdbcRuntimeException("Interrupted during runQuery", ex); } catch (BigQueryException ex) { if (ex.getMessage().contains("Syntax error")) { - throw new BigQueryJdbcSqlSyntaxErrorException(ex); + throw new BigQueryJdbcSqlSyntaxErrorException("BigQueryException during runQuery", ex); } - throw new BigQueryJdbcException(ex); + throw new BigQueryJdbcException("BigQueryException during runQuery", ex); } } @@ -1393,7 +1429,10 @@ public void addBatch(String sql) throws SQLException { } SqlType sqlType = getQueryType(QueryJobConfiguration.newBuilder(sql).build(), null); if (!SqlType.DML.equals(sqlType)) { - throw new IllegalArgumentException("addBatch currently supports DML operations."); + IllegalArgumentException ex = + new IllegalArgumentException("addBatch currently supports DML operations."); + LOG.severe(ex.getMessage(), ex); + throw ex; } this.batchQueries.add(sql); } @@ -1445,8 +1484,15 @@ public boolean hasMoreResults() { @Override public boolean getMoreResults(int current) throws SQLException { - LOG.finest("++enter++"); - checkClosed(); + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(this.connection, this.connectionId)) { + LOG.finest("++enter++"); + checkClosed(); + return getMoreResultsImpl(current); + } + } + + private boolean getMoreResultsImpl(int current) throws SQLException { if (current != CLOSE_CURRENT_RESULT) { throw new BigQueryJdbcSqlFeatureNotSupportedException( "The JDBC driver only supports Statement.CLOSE_CURRENT_RESULT."); diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryTypeCoercionUtility.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryTypeCoercionUtility.java index 9a4dc21304e4..ec1ec140975a 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryTypeCoercionUtility.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryTypeCoercionUtility.java @@ -39,6 +39,8 @@ @InternalApi class BigQueryTypeCoercionUtility { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryTypeCoercionUtility.class.getName()); static BigQueryTypeCoercer INSTANCE; @@ -256,8 +258,11 @@ public Time coerce(FieldValue fieldValue) { long millis = TimeUnit.NANOSECONDS.toMillis(localTime.toNanoOfDay()); return new Time(millis); } catch (java.time.format.DateTimeParseException e) { - throw new IllegalArgumentException( - "Cannot parse the value " + strTime + " to java.sql.Time", e); + IllegalArgumentException ex = + new IllegalArgumentException( + "Cannot parse the value " + strTime + " to java.sql.Time", e); + LOG.severe(ex.getMessage(), ex); + throw ex; } } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java index 681595f8b05c..1c3344b9b6d1 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java @@ -62,6 +62,7 @@ public class DataSource implements javax.sql.DataSource { private String oAuthPvtKeyPath; private String oAuthPvtKey; private String oAuthAccessToken; + private Boolean oAuthAccessTokenReadonly; private String oAuthRefreshToken; private Boolean useQueryCache; private String queryDialect; @@ -175,6 +176,12 @@ public class DataSource implements javax.sql.DataSource { .put( BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_PROPERTY_NAME, DataSource::setOAuthAccessToken) + .put( + BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_READONLY_PROPERTY_NAME, + (ds, val) -> + ds.setOAuthAccessTokenReadonly( + BigQueryJdbcUrlUtility.convertIntToBoolean( + val, BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_READONLY_PROPERTY_NAME))) .put( BigQueryJdbcUrlUtility.OAUTH_REFRESH_TOKEN_PROPERTY_NAME, DataSource::setOAuthRefreshToken) @@ -451,6 +458,11 @@ private Properties createProperties() { connectionProperties.setProperty( BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_PROPERTY_NAME, this.oAuthAccessToken); } + if (this.oAuthAccessTokenReadonly != null) { + connectionProperties.setProperty( + BigQueryJdbcUrlUtility.OAUTH_ACCESS_TOKEN_READONLY_PROPERTY_NAME, + String.valueOf(this.oAuthAccessTokenReadonly)); + } if (this.oAuthRefreshToken != null) { connectionProperties.setProperty( BigQueryJdbcUrlUtility.OAUTH_REFRESH_TOKEN_PROPERTY_NAME, this.oAuthRefreshToken); @@ -879,6 +891,14 @@ public void setOAuthAccessToken(String oAuthAccessToken) { this.oAuthAccessToken = oAuthAccessToken; } + public Boolean getOAuthAccessTokenReadonly() { + return oAuthAccessTokenReadonly != null ? oAuthAccessTokenReadonly : false; + } + + public void setOAuthAccessTokenReadonly(Boolean oAuthAccessTokenReadonly) { + this.oAuthAccessTokenReadonly = oAuthAccessTokenReadonly; + } + public String getOAuthRefreshToken() { return oAuthRefreshToken; } @@ -940,7 +960,9 @@ public void setDestinationDatasetExpirationTime(long destinationDatasetExpiratio } public String getOAuthClientId() { - return oAuthClientId; + return oAuthClientId != null && !oAuthClientId.trim().isEmpty() + ? oAuthClientId + : BigQueryJdbcUrlUtility.DEFAULT_OAUTH_CLIENT_ID; } public void setOAuthClientId(String oAuthClientId) { @@ -948,7 +970,9 @@ public void setOAuthClientId(String oAuthClientId) { } public String getOAuthClientSecret() { - return oAuthClientSecret; + return oAuthClientSecret != null && !oAuthClientSecret.trim().isEmpty() + ? oAuthClientSecret + : BigQueryJdbcUrlUtility.DEFAULT_OAUTH_CLIENT_SECRET; } public void setOAuthClientSecret(String oAuthClientSecret) { @@ -967,11 +991,14 @@ public Boolean getUseStatelessQueryMode() { public void setJobCreationMode(Integer jobCreationMode) { if (jobCreationMode != null && !VALID_JOB_CREATION_MODES.contains(jobCreationMode)) { - throw new IllegalArgumentException( - String.format( - "Invalid value for %s. Use 1 for JOB_CREATION_REQUIRED and 2 for" - + " JOB_CREATION_OPTIONAL.", - BigQueryJdbcUrlUtility.JOB_CREATION_MODE_PROPERTY_NAME)); + IllegalArgumentException ex = + new IllegalArgumentException( + String.format( + "Invalid value for %s. Use 1 for JOB_CREATION_REQUIRED and 2 for" + + " JOB_CREATION_OPTIONAL.", + BigQueryJdbcUrlUtility.JOB_CREATION_MODE_PROPERTY_NAME)); + LOG.severe(ex.getMessage(), ex); + throw ex; } this.jobCreationMode = jobCreationMode; } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandler.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandler.java new file mode 100644 index 000000000000..1d6c177537e8 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandler.java @@ -0,0 +1,137 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.bigquery.jdbc; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.concurrent.ConcurrentHashMap; +import java.util.logging.FileHandler; +import java.util.logging.Handler; +import java.util.logging.Level; +import java.util.logging.LogRecord; + +/** + * Custom logging handler that dynamically creates and routes log records to per-connection specific + * log files using the connection ID retrieved from BigQueryJdbcMdc. + */ +class PerConnectionFileHandler extends Handler { + private final Path baseLogPath; + private final Level level; + private final ConcurrentHashMap handlers = new ConcurrentHashMap<>(); + private FileHandler defaultHandler; + + PerConnectionFileHandler(String baseLogPath, Level level) { + this.baseLogPath = Paths.get(baseLogPath != null ? baseLogPath : "").toAbsolutePath(); + this.level = level; + + try { + if (!Files.exists(this.baseLogPath)) { + Files.createDirectories(this.baseLogPath); + } + + this.defaultHandler = createFileHandler("Jdbc-default"); + } catch (IOException e) { + reportError( + "Failed to initialize default log file", e, java.util.logging.ErrorManager.OPEN_FAILURE); + } + } + + private String getLogFilePath(String id) { + String uuid = id; + if (id.startsWith("BQ-JDBC-")) { + uuid = id.substring("BQ-JDBC-".length()); + } + String timestamp = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")); + String shortUuid = uuid.length() >= 4 ? uuid.substring(0, 4) : uuid; + return baseLogPath.resolve("BQ-JDBC-" + timestamp + "-" + shortUuid + ".log").toString(); + } + + private FileHandler createFileHandler(String id) { + try { + String filePath = getLogFilePath(id); + FileHandler fh = new FileHandler(filePath, 0, 1, true); + fh.setLevel(level); + fh.setFormatter(BigQueryJdbcRootLogger.getFormatter()); + return fh; + } catch (IOException e) { + reportError( + "Failed to create log file for connection " + id, + e, + java.util.logging.ErrorManager.OPEN_FAILURE); + return null; + } + } + + @Override + public void publish(LogRecord record) { + if (!isLoggable(record)) { + return; + } + + String connectionId = BigQueryJdbcMdc.getConnectionId(); + FileHandler handler = defaultHandler; + + if (connectionId != null && !connectionId.isEmpty()) { + handler = handlers.computeIfAbsent(connectionId, this::createFileHandler); + if (handler == null) { + handler = defaultHandler; + } + } + + if (handler != null) { + handler.publish(record); + } + } + + @Override + public void flush() { + if (defaultHandler != null) { + defaultHandler.flush(); + } + for (FileHandler h : handlers.values()) { + h.flush(); + } + } + + @Override + public void close() throws SecurityException { + for (FileHandler h : handlers.values()) { + try { + h.close(); + } catch (Exception e) { + } + } + try { + if (defaultHandler != null) defaultHandler.close(); + } finally { + handlers.clear(); + } + } + + public void closeHandler(String connectionId) { + if (connectionId != null) { + FileHandler handler = handlers.remove(connectionId); + if (handler != null) { + handler.close(); + } + } + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PooledConnectionDataSource.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PooledConnectionDataSource.java index 66a957a06f84..8a86c8805cdb 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PooledConnectionDataSource.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PooledConnectionDataSource.java @@ -24,6 +24,8 @@ import javax.sql.PooledConnection; public class PooledConnectionDataSource extends DataSource implements ConnectionPoolDataSource { + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(PooledConnectionDataSource.class.getName()); private PooledConnectionListener connectionPoolManager = null; Connection bqConnection = null; @@ -62,6 +64,9 @@ public PooledConnectionListener getConnectionPoolManager() { @Override public PooledConnection getPooledConnection(String arg0, String arg1) throws SQLException { - throw new UnsupportedOperationException("This operation is not supported by the driver"); + UnsupportedOperationException ex = + new UnsupportedOperationException("This operation is not supported by the driver"); + LOG.severe(ex.getMessage(), ex); + throw ex; } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PooledConnectionListener.java b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PooledConnectionListener.java index 9f3b210443e0..1534a6a0b798 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PooledConnectionListener.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/PooledConnectionListener.java @@ -92,9 +92,12 @@ public void connectionClosed(ConnectionEvent event) { if (eventSource == null || !(eventSource instanceof BigQueryPooledConnection) || !(eventSource.getClass().isAssignableFrom(BigQueryPooledConnection.class))) { - throw new IllegalArgumentException( - "Invalid ConnectionEvent source passed to connectionClosed. Expecting" - + " BigQueryPooledConnection."); + IllegalArgumentException ex = + new IllegalArgumentException( + "Invalid ConnectionEvent source passed to connectionClosed. Expecting" + + " BigQueryPooledConnection."); + LOG.severe(ex.getMessage(), ex); + throw ex; } BigQueryPooledConnection bqPooledConnection = (BigQueryPooledConnection) eventSource; addConnection(bqPooledConnection); @@ -108,9 +111,12 @@ public void connectionErrorOccurred(ConnectionEvent event) { if (eventSource == null || !(eventSource instanceof BigQueryPooledConnection) || !(eventSource.getClass().isAssignableFrom(BigQueryPooledConnection.class))) { - throw new IllegalArgumentException( - "Invalid ConnectionEvent source passed to connectionClosed. Expecting" - + " BigQueryPooledConnection."); + IllegalArgumentException ex = + new IllegalArgumentException( + "Invalid ConnectionEvent source passed to connectionClosed. Expecting" + + " BigQueryPooledConnection."); + LOG.severe(ex.getMessage(), ex); + throw ex; } BigQueryPooledConnection bqPooledConnection = (BigQueryPooledConnection) eventSource; removeConnection(bqPooledConnection); diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/exception/BigQueryJdbcExceptionTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/exception/BigQueryJdbcExceptionTest.java new file mode 100644 index 000000000000..f13ace2f140f --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/exception/BigQueryJdbcExceptionTest.java @@ -0,0 +1,78 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.bigquery.exception; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import com.google.cloud.bigquery.BigQueryException; +import java.util.stream.Stream; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; + +public class BigQueryJdbcExceptionTest { + + @FunctionalInterface + interface ExceptionCreator { + Throwable create(String message, Throwable cause); + } + + static Stream exceptionProvider() { + return Stream.of( + Arguments.of( + (ExceptionCreator) + (msg, cause) -> new BigQueryJdbcException(msg, (BigQueryException) cause)), + Arguments.of((ExceptionCreator) BigQueryJdbcException::new), + Arguments.of((ExceptionCreator) BigQueryJdbcRuntimeException::new), + Arguments.of((ExceptionCreator) BigQueryConversionException::new), + Arguments.of( + (ExceptionCreator) + (msg, cause) -> new BigQueryJdbcCoercionException((Exception) cause)), + Arguments.of( + (ExceptionCreator) + (msg, cause) -> + new BigQueryJdbcSqlSyntaxErrorException(msg, (BigQueryException) cause))); + } + + @ParameterizedTest + @MethodSource("exceptionProvider") + public void testExceptionMessageFormatting(ExceptionCreator creator) { + String message = "Custom error message"; + Throwable cause = new BigQueryException(500, "Underlying error"); + + Throwable ex = creator.create(message, cause); + + String expectedPrefix = + ex instanceof BigQueryJdbcCoercionException ? "Coercion error" : message; + String expectedMessage = expectedPrefix + "\n" + cause.getMessage(); + + assertEquals(expectedMessage, ex.getMessage()); + assertEquals(cause, ex.getCause()); + } + + @Test + public void testException_withCauseHavingNullMessage() { + String message = "Custom error message"; + Throwable cause = new RuntimeException(); // Null message + + BigQueryJdbcException ex = new BigQueryJdbcException(message, cause); + + String expectedMessage = message + "\n" + cause.toString(); + assertEquals(expectedMessage, ex.getMessage()); + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryArrowStructTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryArrowStructTest.java index cd86bdc4e784..3f6b528c87db 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryArrowStructTest.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryArrowStructTest.java @@ -227,11 +227,8 @@ public void structOfStructs() throws SQLException { } @Test - public void getSQLTypeNameIsNotSupported() { - Exception exception = - assertThrows( - SQLFeatureNotSupportedException.class, structWithPrimitiveValues::getSQLTypeName); - assertThat(exception.getMessage()).isEqualTo(CUSTOMER_TYPE_MAPPING_NOT_SUPPORTED); + public void getSQLTypeNameReturnsStruct() throws SQLException { + assertThat(structWithPrimitiveValues.getSQLTypeName()).isEqualTo("STRUCT"); } @Test diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryCallableStatementTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryCallableStatementTest.java index a1d7c053655c..c873e4cef970 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryCallableStatementTest.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryCallableStatementTest.java @@ -914,7 +914,7 @@ public void testSetDateCalParamByName() throws SQLException { Calendar expectedCal = mock(Calendar.class); doReturn(1L).when(expectedDate).getTime(); - doReturn(1L).when(expectedCal).getTime(); + doReturn(new java.util.Date(1L)).when(expectedCal).getTime(); doReturn(1L).when(expectedCal).getTimeInMillis(); statement.setDate(PARAM_KEY, expectedDate, expectedCal); Date actual = statement.getDate(PARAM_KEY); @@ -1033,7 +1033,7 @@ public void testSetTimeCalParamByName() throws SQLException { Calendar expectedCal = mock(Calendar.class); doReturn(1L).when(expectedTime).getTime(); - doReturn(1L).when(expectedCal).getTime(); + doReturn(new java.util.Date(1L)).when(expectedCal).getTime(); doReturn(1L).when(expectedCal).getTimeInMillis(); statement.setTime(PARAM_KEY, expectedTime, expectedCal); Time actual = statement.getTime(PARAM_KEY); @@ -1062,7 +1062,7 @@ public void testSetTimestampCalParamByName() throws SQLException { Calendar expectedCal = mock(Calendar.class); doReturn(1L).when(expectedTimestamp).getTime(); - doReturn(1L).when(expectedCal).getTime(); + doReturn(new java.util.Date(1L)).when(expectedCal).getTime(); doReturn(1L).when(expectedCal).getTimeInMillis(); statement.setTimestamp(PARAM_KEY, expectedTimestamp, expectedCal); Timestamp actual = statement.getTimestamp(PARAM_KEY); diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryConnectionTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryConnectionTest.java index 4430ba4cf315..dd6ceb0deceb 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryConnectionTest.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryConnectionTest.java @@ -32,6 +32,8 @@ import java.util.Properties; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.CsvSource; public class BigQueryConnectionTest { @@ -413,4 +415,45 @@ public void testBigQueryJobCreationMode_default() throws Exception { bq.getOptions().getDefaultJobCreationMode(), JobCreationMode.JOB_CREATION_OPTIONAL); } } + + @Test + public void testWithDriveScopeTrue() throws Exception { + String url = BASE_URL + "RequestGoogleDriveScope=1;"; + try (BigQueryConnection connection = new BigQueryConnection(url)) { + assertTrue(connection.reqGoogleDriveScope); + } + } + + @Test + public void testWithDriveScopeFalse() throws Exception { + String url = BASE_URL + "RequestGoogleDriveScope=0;"; + try (BigQueryConnection connection = new BigQueryConnection(url)) { + assertFalse(connection.reqGoogleDriveScope); + } + } + + @Test + public void testWithDriveScopeDefault() throws Exception { + String url = BASE_URL; + try (BigQueryConnection connection = new BigQueryConnection(url)) { + assertFalse(connection.reqGoogleDriveScope); + } + } + + @ParameterizedTest + @CsvSource({"1, true", "0, false", "true, true", "false, false"}) + public void testIsReadOnlyTokenProvided(String readonlyProp, boolean expectedIsReadOnly) + throws Exception { + String url = + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "OAuthType=2;ProjectId=MyBigQueryProject;" + + "OAuthAccessToken=redacted;" + + "OAuthAccessTokenReadonly=" + + readonlyProp + + ";"; + + try (BigQueryConnection connection = new BigQueryConnection(url)) { + assertEquals(expectedIsReadOnly, connection.isReadOnlyTokenUsed()); + } + } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcCustomLoggerTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcCustomLoggerTest.java new file mode 100644 index 000000000000..ce192baece10 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcCustomLoggerTest.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.bigquery.jdbc; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.util.ArrayList; +import java.util.List; +import java.util.logging.Handler; +import java.util.logging.Level; +import java.util.logging.LogRecord; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class BigQueryJdbcCustomLoggerTest { + + private BigQueryJdbcCustomLogger logger; + private TestHandler testHandler; + + private static class TestHandler extends Handler { + private final List records = new ArrayList<>(); + + @Override + public void publish(LogRecord record) { + records.add(record); + } + + @Override + public void flush() {} + + @Override + public void close() throws SecurityException {} + + public List getRecords() { + return records; + } + } + + @BeforeEach + public void setUp() { + logger = new BigQueryJdbcCustomLogger("TestLogger"); + testHandler = new TestHandler(); + logger.addHandler(testHandler); + logger.setLevel(Level.ALL); + } + + @AfterEach + public void tearDown() { + if (logger != null && testHandler != null) { + logger.removeHandler(testHandler); + } + } + + @Test + public void testLogWithCallerInference() { + logger.fine("Test message with format %s", "arg"); + + List records = testHandler.getRecords(); + assertEquals(1, records.size()); + LogRecord record = records.get(0); + + assertEquals("testLogWithCallerInference", record.getSourceMethodName()); + assertEquals(BigQueryJdbcCustomLoggerTest.class.getName(), record.getSourceClassName()); + } + + @Test + public void testLogWithException() { + Exception ex = new Exception("Test exception"); + logger.severe("Error occurred: %s", ex, "detail"); + + List records = testHandler.getRecords(); + assertEquals(1, records.size()); + LogRecord record = records.get(0); + + assertEquals("testLogWithException", record.getSourceMethodName()); + assertEquals(BigQueryJdbcCustomLoggerTest.class.getName(), record.getSourceClassName()); + assertTrue(record.getMessage().contains("Error occurred: detail")); + assertEquals(ex, record.getThrown()); + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdcTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdcTest.java new file mode 100644 index 000000000000..63c5883fd9c5 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdcTest.java @@ -0,0 +1,161 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.bigquery.jdbc; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicReference; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mockito; + +public class BigQueryJdbcMdcTest { + + private BigQueryConnection mockConnection1; + private BigQueryConnection mockConnection2; + + @BeforeEach + public void setUp() { + mockConnection1 = Mockito.mock(BigQueryConnection.class); + mockConnection2 = Mockito.mock(BigQueryConnection.class); + } + + @AfterEach + public void tearDown() { + BigQueryJdbcMdc.clear(); + } + + @Test + public void testRegisterAndRetrieveConnectionId() { + BigQueryJdbcMdc.registerInstance(mockConnection1, "123"); + assertEquals("123", BigQueryJdbcMdc.getConnectionId()); + } + + @Test + public void testRemoveInstance() { + BigQueryJdbcMdc.registerInstance(mockConnection1, "1"); + assertEquals("1", BigQueryJdbcMdc.getConnectionId()); + + BigQueryJdbcMdc.removeInstance(mockConnection1); + // Note: removeInstance does not clear currentConnectionId on the current thread + // based on current implementation. + assertEquals("1", BigQueryJdbcMdc.getConnectionId()); + + BigQueryJdbcMdc.clear(); + assertNull(BigQueryJdbcMdc.getConnectionId()); + } + + @Test + public void testClearContext() { + BigQueryJdbcMdc.registerInstance(mockConnection1, "456"); + assertEquals("456", BigQueryJdbcMdc.getConnectionId()); + + BigQueryJdbcMdc.clear(); + assertNull(BigQueryJdbcMdc.getConnectionId()); + } + + @Test + public void testThreadInheritance() throws InterruptedException { + BigQueryJdbcMdc.registerInstance(mockConnection1, "parent"); + assertEquals("parent", BigQueryJdbcMdc.getConnectionId()); + + AtomicReference childConnectionId = new AtomicReference<>(); + CountDownLatch latch = new CountDownLatch(1); + + Thread childThread = + new Thread( + () -> { + childConnectionId.set(BigQueryJdbcMdc.getConnectionId()); + latch.countDown(); + }); + childThread.start(); + assertTrue(latch.await(5, TimeUnit.SECONDS)); + + assertEquals("parent", childConnectionId.get()); + } + + @Test + public void testThreadIsolation() throws InterruptedException { + CountDownLatch threadARegistered = new CountDownLatch(1); + CountDownLatch threadBChecked = new CountDownLatch(1); + CountDownLatch threadBRegistered = new CountDownLatch(1); + CountDownLatch testFinished = new CountDownLatch(2); + + AtomicReference threadAIdBeforeB = new AtomicReference<>(); + AtomicReference threadAIdAfterB = new AtomicReference<>(); + AtomicReference threadBIdBeforeRegister = new AtomicReference<>(); + AtomicReference threadBIdAfterRegister = new AtomicReference<>(); + + Thread threadA = + new Thread( + () -> { + try { + BigQueryJdbcMdc.registerInstance(mockConnection1, "A"); + threadAIdBeforeB.set(BigQueryJdbcMdc.getConnectionId()); + threadARegistered.countDown(); + + threadBRegistered.await(); + threadAIdAfterB.set(BigQueryJdbcMdc.getConnectionId()); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + } finally { + testFinished.countDown(); + } + }); + + Thread threadB = + new Thread( + () -> { + try { + threadARegistered.await(); + threadBIdBeforeRegister.set(BigQueryJdbcMdc.getConnectionId()); + + BigQueryJdbcMdc.registerInstance(mockConnection2, "B"); + threadBIdAfterRegister.set(BigQueryJdbcMdc.getConnectionId()); + threadBRegistered.countDown(); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + } finally { + testFinished.countDown(); + } + }); + + threadA.start(); + threadB.start(); + + assertTrue(testFinished.await(5, TimeUnit.SECONDS)); + + assertEquals("A", threadAIdBeforeB.get()); + assertNull(threadBIdBeforeRegister.get()); + assertEquals("B", threadBIdAfterRegister.get()); + assertEquals("A", threadAIdAfterB.get()); + } + + @Test + public void testMdcCloseableClearsContext() { + try (BigQueryJdbcMdc.MdcCloseable mdc = + BigQueryJdbcMdc.registerInstance(mockConnection1, "789")) { + assertEquals("789", BigQueryJdbcMdc.getConnectionId()); + } + assertNull(BigQueryJdbcMdc.getConnectionId()); + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtilityTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtilityTest.java index ac2a7a8661e0..f785173c00c1 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtilityTest.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtilityTest.java @@ -18,7 +18,6 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -109,10 +108,10 @@ public void testInvalidTokenUriForAuthType0() { DataSource.fromUrl(connectionString).getOverrideProperties(); try { - BigQueryJdbcOAuthUtility.getCredentials(oauthProperties, overrideProperties, null); + BigQueryJdbcOAuthUtility.getCredentials(oauthProperties, overrideProperties, false, null); Assertions.fail(); } catch (BigQueryJdbcRuntimeException e) { - assertThat(e.getMessage()).contains("java.net.URISyntaxException"); + assertThat(e.getMessage()).contains("Validation failure"); } } @@ -165,7 +164,7 @@ public void testGetCredentialsForPreGeneratedToken() { null); GoogleCredentials credentials = - BigQueryJdbcOAuthUtility.getCredentials(authProperties, Collections.EMPTY_MAP, null); + BigQueryJdbcOAuthUtility.getCredentials(authProperties, Collections.EMPTY_MAP, false, null); assertThat(credentials).isNotNull(); } @@ -185,7 +184,7 @@ public void testGetCredentialsForPreGeneratedTokenTPC() throws IOException { Map overrideProperties = new HashMap<>(stringStringMap); GoogleCredentials credentials = - BigQueryJdbcOAuthUtility.getCredentials(authProperties, overrideProperties, null); + BigQueryJdbcOAuthUtility.getCredentials(authProperties, overrideProperties, false, null); assertThat(credentials.getUniverseDomain()).isEqualTo("testDomain"); } @@ -200,7 +199,7 @@ public void testGetCredentialsForApplicationDefault() { null); GoogleCredentials credentials = - BigQueryJdbcOAuthUtility.getCredentials(authProperties, null, null); + BigQueryJdbcOAuthUtility.getCredentials(authProperties, null, false, null); assertThat(credentials).isNotNull(); } @@ -219,6 +218,22 @@ public void testParseOAuthPropsForUserAuth() { assertThat(authProperties.get("OAuthClientSecret")).isEqualTo("secret"); } + @Test + public void testParseOAuthPropsForUserAuthDefault() { + Map authProperties = + BigQueryJdbcOAuthUtility.parseOAuthProperties( + DataSource.fromUrl( + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "OAuthType=1;ProjectId=MyBigQueryProject;"), + null); + + assertThat(authProperties.get("OAuthType")).isEqualTo("GOOGLE_USER_ACCOUNT"); + assertThat(authProperties.get("OAuthClientId")) + .isEqualTo(BigQueryJdbcUrlUtility.DEFAULT_OAUTH_CLIENT_ID); + assertThat(authProperties.get("OAuthClientSecret")) + .isEqualTo(BigQueryJdbcUrlUtility.DEFAULT_OAUTH_CLIENT_SECRET); + } + @Test public void testGenerateUserAuthURL() { try { @@ -338,100 +353,6 @@ public void testParseBYOIDProps() { assertThat(result.get("BYOID_TokenUri")).isEqualTo("https://testuri.com/v1/token"); } - @Test - public void testParseOAuthProperties_UserAccount_RequestDriveScopeEnabled() { - String url = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=1;OAuthClientId=redactedClientId;OAuthClientSecret=redactedClientSecret;" - + "RequestGoogleDriveScope=1;"; - Map properties = - BigQueryJdbcOAuthUtility.parseOAuthProperties( - DataSource.fromUrl(url), this.getClass().getName()); - assertEquals( - String.valueOf(BigQueryJdbcOAuthUtility.AuthType.GOOGLE_USER_ACCOUNT), - properties.get(BigQueryJdbcUrlUtility.OAUTH_TYPE_PROPERTY_NAME)); - assertEquals( - "redactedClientId", properties.get(BigQueryJdbcUrlUtility.OAUTH_CLIENT_ID_PROPERTY_NAME)); - assertEquals( - "redactedClientSecret", - properties.get(BigQueryJdbcUrlUtility.OAUTH_CLIENT_SECRET_PROPERTY_NAME)); - assertEquals( - "1", properties.get(BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME)); - } - - @Test - public void testParseOAuthProperties_UserAccount_RequestDriveScopeDisabled() { - String url = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=1;OAuthClientId=redactedClientId;OAuthClientSecret=redactedClientSecret;" - + "RequestGoogleDriveScope=0;"; - Map properties = - BigQueryJdbcOAuthUtility.parseOAuthProperties( - DataSource.fromUrl(url), this.getClass().getName()); - assertEquals( - "0", properties.get(BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME)); - } - - @Test - public void testParseOAuthProperties_UserAccount_RequestDriveScopeDefault() { - String url = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=1;OAuthClientId=redactedClientId;OAuthClientSecret=redactedClientSecret;"; - Map properties = - BigQueryJdbcOAuthUtility.parseOAuthProperties( - DataSource.fromUrl(url), this.getClass().getName()); - assertEquals( - String.valueOf(BigQueryJdbcUrlUtility.DEFAULT_REQUEST_GOOGLE_DRIVE_SCOPE_VALUE), - properties.get(BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME)); - } - - @Test - public void testGetUserAuthorizer_WithDriveScope() throws URISyntaxException { - Map authProperties = new HashMap<>(); - authProperties.put(BigQueryJdbcUrlUtility.OAUTH_CLIENT_ID_PROPERTY_NAME, "redactedClientId"); - authProperties.put( - BigQueryJdbcUrlUtility.OAUTH_CLIENT_SECRET_PROPERTY_NAME, "redactedClientSecret"); - authProperties.put(BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME, "1"); - - UserAuthorizer authorizer = - BigQueryJdbcOAuthUtility.getUserAuthorizer( - authProperties, Collections.emptyMap(), 12345, this.getClass().getName()); - - assertTrue(authorizer.getScopes().contains("https://www.googleapis.com/auth/bigquery")); - assertTrue(authorizer.getScopes().contains("https://www.googleapis.com/auth/drive.readonly")); - assertEquals(2, authorizer.getScopes().size()); - } - - @Test - public void testGetUserAuthorizer_WithoutDriveScope() throws URISyntaxException { - Map authProperties = new HashMap<>(); - authProperties.put(BigQueryJdbcUrlUtility.OAUTH_CLIENT_ID_PROPERTY_NAME, "redactedClientId"); - authProperties.put( - BigQueryJdbcUrlUtility.OAUTH_CLIENT_SECRET_PROPERTY_NAME, "redactedClientSecret"); - authProperties.put(BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME, "0"); - - UserAuthorizer authorizer = - BigQueryJdbcOAuthUtility.getUserAuthorizer( - authProperties, Collections.emptyMap(), 12345, this.getClass().getName()); - assertTrue(authorizer.getScopes().contains("https://www.googleapis.com/auth/bigquery")); - assertFalse(authorizer.getScopes().contains("https://www.googleapis.com/auth/drive.readonly")); - assertEquals(1, authorizer.getScopes().size()); - } - - @Test - public void testGetUserAuthorizer_InvalidDriveScopeValue() throws URISyntaxException { - Map authProperties = new HashMap<>(); - authProperties.put(BigQueryJdbcUrlUtility.OAUTH_CLIENT_ID_PROPERTY_NAME, "redactedClientId"); - authProperties.put( - BigQueryJdbcUrlUtility.OAUTH_CLIENT_SECRET_PROPERTY_NAME, "redactedClientSecret"); - authProperties.put( - BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME, "invalid_value"); - UserAuthorizer authorizer = - BigQueryJdbcOAuthUtility.getUserAuthorizer( - authProperties, Collections.emptyMap(), 12345, this.getClass().getName()); - assertFalse(authorizer.getScopes().contains("https://www.googleapis.com/auth/drive.readonly")); - } - @Test public void testParseUserImpersonationDefault() { String connectionUri = @@ -444,7 +365,7 @@ public void testParseUserImpersonationDefault() { "impersonated", result.get(BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_EMAIL_PROPERTY_NAME)); assertEquals( - BigQueryJdbcUrlUtility.DEFAULT_OAUTH_SA_IMPERSONATION_SCOPES_VALUE, + BigQueryJdbcOAuthUtility.BIGQUERY_SCOPE, result.get(BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_SCOPES_PROPERTY_NAME)); assertEquals( BigQueryJdbcUrlUtility.DEFAULT_OAUTH_SA_IMPERSONATION_TOKEN_LIFETIME_VALUE, @@ -472,6 +393,48 @@ public void testParseUserImpersonationNonDefault() { result.get(BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_TOKEN_LIFETIME_PROPERTY_NAME)); } + @Test + public void testParseUserImpersonationForADC() { + Map result = + BigQueryJdbcOAuthUtility.parseOAuthProperties( + DataSource.fromUrl( + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "OAuthType=3;ProjectId=MyBigQueryProject;" + + "ServiceAccountImpersonationEmail=impersonated@email.com;"), + ""); + + assertEquals("APPLICATION_DEFAULT_CREDENTIALS", result.get("OAuthType")); + assertEquals( + "impersonated@email.com", + result.get(BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_EMAIL_PROPERTY_NAME)); + } + + @Test + public void testGetServiceAccountImpersonatedCredentialsForADC() throws Exception { + GoogleCredentials dummySourceCredentials = GoogleCredentials.newBuilder().build(); + + try (org.mockito.MockedStatic mockedCreds = + org.mockito.Mockito.mockStatic(GoogleCredentials.class)) { + mockedCreds.when(GoogleCredentials::getApplicationDefault).thenReturn(dummySourceCredentials); + + Map authProperties = + BigQueryJdbcOAuthUtility.parseOAuthProperties( + DataSource.fromUrl( + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "OAuthType=3;ProjectId=MyBigQueryProject;" + + "ServiceAccountImpersonationEmail=impersonated@email.com;"), + ""); + + GoogleCredentials credentials = + BigQueryJdbcOAuthUtility.getCredentials( + authProperties, java.util.Collections.EMPTY_MAP, false, null); + + assertThat(credentials).isInstanceOf(ImpersonatedCredentials.class); + assertThat(((ImpersonatedCredentials) credentials).getSourceCredentials()) + .isEqualTo(dummySourceCredentials); + } + } + @Test public void testGetServiceAccountImpersonatedCredentials() { Map authProperties = @@ -482,7 +445,7 @@ public void testGetServiceAccountImpersonatedCredentials() { .toString()), ""); GoogleCredentials credentials = - BigQueryJdbcOAuthUtility.getCredentials(authProperties, Collections.EMPTY_MAP, null); + BigQueryJdbcOAuthUtility.getCredentials(authProperties, Collections.EMPTY_MAP, false, null); assertThat(credentials).isInstanceOf(ImpersonatedCredentials.class); } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcRootLoggerTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcRootLoggerTest.java new file mode 100644 index 000000000000..addae7b907bc --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcRootLoggerTest.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.bigquery.jdbc; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.util.logging.Formatter; +import java.util.logging.Level; +import java.util.logging.LogRecord; +import org.junit.jupiter.api.Test; + +public class BigQueryJdbcRootLoggerTest { + + @Test + public void testGetFormatterFormat() { + Formatter formatter = BigQueryJdbcRootLogger.getFormatter(); + assertNotNull(formatter); + + LogRecord record = new LogRecord(Level.INFO, "Test message"); + record.setMillis(1713715200000L); + record.setLoggerName("TestLogger"); + record.setSourceMethodName("testMethod"); + + String formatted = formatter.format(record); + + assertTrue(formatted.contains("INFO")); + assertTrue(formatted.contains("Test message")); + assertTrue(formatted.contains("TestLogger")); + assertTrue(formatted.contains("testMethod")); + assertTrue(formatted.contains("---")); + } + + @Test + public void testThreadNameTruncation() { + Formatter formatter = BigQueryJdbcRootLogger.getFormatter(); + LogRecord record = new LogRecord(Level.INFO, "Test message"); + + String formatted = formatter.format(record); + int startIndex = formatted.indexOf("--- [") + 5; + int endIndex = formatted.indexOf("]", startIndex); + String threadPart = formatted.substring(startIndex, endIndex).trim(); + + assertTrue(threadPart.length() <= 15); + } + + @Test + public void testGetThreadName() { + Thread current = Thread.currentThread(); + String name = BigQueryJdbcRootLogger.getThreadName(current.getId()); + assertEquals(current.getName(), name); + } + + @Test + public void testGetThreadNameNotFound() { + String name = BigQueryJdbcRootLogger.getThreadName(-1); + assertEquals("", name); + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJsonStructTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJsonStructTest.java index 61b6fc66843b..ae074fa19e84 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJsonStructTest.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJsonStructTest.java @@ -246,11 +246,8 @@ public void structWithNullValue() throws SQLException { } @Test - public void getSQLTypeNameIsNotSupported() { - Exception exception = - assertThrows( - SQLFeatureNotSupportedException.class, structWithPrimitiveValues::getSQLTypeName); - assertThat(exception.getMessage()).isEqualTo(CUSTOMER_TYPE_MAPPING_NOT_SUPPORTED); + public void getSQLTypeName() throws SQLException { + assertThat(structWithPrimitiveValues.getSQLTypeName()).isEqualTo("STRUCT"); } @Test diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java index f3971bd71150..9fef90c69a4d 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java @@ -68,6 +68,8 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; import org.mockito.ArgumentCaptor; import org.mockito.Mockito; @@ -212,7 +214,7 @@ public void testExecSlowQueryPath() throws SQLException, InterruptedException { .build(); Job job = getJobMock(tableResult, queryJobConfiguration, StatementType.SELECT); - doReturn(job).when(bigquery).create(any(JobInfo.class)); + doReturn(job).when(bigquery).queryWithTimeout(any(), any(), any()); doReturn(jobIdWrapper) .when(bigQueryStatementSpy) @@ -297,14 +299,15 @@ public void setQueryTimeoutTest() throws Exception { QueryJobConfiguration.newBuilder(query).setJobTimeoutMs(10000L).build(); Job job = getJobMock(result, jobConfiguration, StatementType.SELECT); - doReturn(job).when(bigquery).create(any(JobInfo.class)); + doReturn(job).when(bigquery).queryWithTimeout(any(), any(), any()); doReturn(jsonResultSet).when(bigQueryStatementSpy).processJsonResultSet(result); - ArgumentCaptor captor = ArgumentCaptor.forClass(JobInfo.class); + ArgumentCaptor captor = + ArgumentCaptor.forClass(QueryJobConfiguration.class); bigQueryStatementSpy.runQuery(query, jobConfiguration); - verify(bigquery).create(captor.capture()); - QueryJobConfiguration jobConfig = captor.getValue().getConfiguration(); + verify(bigquery).queryWithTimeout(captor.capture(), any(), any()); + QueryJobConfiguration jobConfig = captor.getValue(); assertEquals(3000L, jobConfig.getJobTimeoutMs().longValue()); } @@ -393,23 +396,16 @@ public void testJoblessQuery() throws SQLException, InterruptedException { TableResult tableResultJobfulMock = mock(TableResult.class); QueryJobConfiguration jobConf = QueryJobConfiguration.newBuilder("SELECT 1").build(); Job jobMock = getJobMock(tableResultJobfulMock, jobConf, StatementType.SELECT); - ArgumentCaptor jobfulCaptor = ArgumentCaptor.forClass(JobInfo.class); - doReturn(jobMock).when(bigquery).create(jobfulCaptor.capture()); + doReturn(jobMock) + .when(bigquery) + .queryWithTimeout(any(QueryJobConfiguration.class), any(), any()); doReturn(mock(BigQueryJsonResultSet.class)) .when(jobfulStatementSpy) .processJsonResultSet(tableResultJobfulMock); jobfulStatementSpy.executeQuery("SELECT 1"); - verify(bigquery).create(any(JobInfo.class)); - assertTrue( - jobfulCaptor.getAllValues().stream() - .noneMatch( - jobInfo -> - Boolean.TRUE.equals( - ((QueryJobConfiguration) jobInfo.getConfiguration()).dryRun()))); - verify(bigquery, Mockito.never()) - .queryWithTimeout(any(QueryJobConfiguration.class), any(), any()); + verify(bigquery).queryWithTimeout(any(QueryJobConfiguration.class), any(), any()); } @Test @@ -422,7 +418,7 @@ public void testCloseCancelsJob() throws SQLException, InterruptedException { QueryJobConfiguration.newBuilder(query).setPriority(Priority.BATCH).build(); Job job = getJobMock(tableResult, queryJobConfiguration, StatementType.SELECT); - doReturn(job).when(bigquery).create(any(JobInfo.class)); + doReturn(job).when(bigquery).queryWithTimeout(any(), any(), any()); doReturn(false).when(bigQueryStatementSpy).useReadAPI(eq(tableResult)); doReturn(mock(JobId.class)).when(tableResult).getJobId(); Mockito.when(job.getQueryResults(any(QueryResultsOption.class))) @@ -480,4 +476,22 @@ public void testCancelWithJoblessQuery() throws SQLException, InterruptedExcepti // And no backend cancellation was attempted verify(bigquery, Mockito.never()).cancel(any(JobId.class)); } + + @ParameterizedTest + @ValueSource(booleans = {true, false}) + public void testGetStatementType(boolean isReadOnlyTokenUsed) throws Exception { + doReturn(isReadOnlyTokenUsed).when(bigQueryConnection).isReadOnlyTokenUsed(); + + Job dryRunJobMock = getJobMock(null, null, StatementType.SELECT); + doReturn(dryRunJobMock).when(bigquery).create(any(JobInfo.class)); + + BigQueryStatement statementSpy = Mockito.spy(bigQueryStatement); + QueryJobConfiguration queryJobConfiguration = QueryJobConfiguration.newBuilder(query).build(); + + StatementType type = statementSpy.getStatementType(queryJobConfiguration); + + assertThat(type).isEqualTo(StatementType.SELECT); + verify(bigquery, isReadOnlyTokenUsed ? Mockito.never() : Mockito.times(1)) + .create(any(JobInfo.class)); + } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryTypeCoercerTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryTypeCoercerTest.java index 9f92e1996379..f05a9b80632a 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryTypeCoercerTest.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryTypeCoercerTest.java @@ -78,7 +78,7 @@ public void shouldThrowCoercionException() { assertThrows( BigQueryJdbcCoercionException.class, () -> bigQueryTypeCoercer.coerceTo(Integer.class, 2147483648L)); - assertThat(exception.getMessage()).isEqualTo("Coercion error"); + assertThat(exception.getMessage()).isEqualTo("Coercion error\ninteger overflow"); assertThat(exception.getCause()).isInstanceOf(ArithmeticException.class); } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandlerTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandlerTest.java new file mode 100644 index 000000000000..f905fa80fe5a --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandlerTest.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.bigquery.jdbc; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.Optional; +import java.util.logging.Level; +import java.util.logging.LogRecord; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.io.TempDir; +import org.mockito.Mockito; + +public class PerConnectionFileHandlerTest { + + @TempDir Path tempDir; + + private PerConnectionFileHandler handler; + private BigQueryConnection mockConnection; + + @BeforeEach + public void setUp() { + handler = new PerConnectionFileHandler(tempDir.toString(), Level.INFO); + mockConnection = Mockito.mock(BigQueryConnection.class); + BigQueryJdbcMdc.clear(); + } + + @AfterEach + public void tearDown() { + if (handler != null) { + handler.close(); + } + BigQueryJdbcMdc.clear(); + } + + private Optional findLogFile(String suffix) throws IOException { + return Files.list(tempDir) + .filter( + p -> + p.getFileName().toString().startsWith("BQ-JDBC-") + && p.getFileName().toString().endsWith(suffix)) + .findFirst(); + } + + @Test + public void testInitialization() throws IOException { + assertTrue(findLogFile("-Jdbc.log").isPresent()); + } + + @Test + public void testPublishDefault() throws IOException { + LogRecord record = new LogRecord(Level.INFO, "Test message default"); + handler.publish(record); + handler.flush(); + + Optional defaultLog = findLogFile("-Jdbc.log"); + assertTrue(defaultLog.isPresent()); + String content = new String(Files.readAllBytes(defaultLog.get())); + assertTrue(content.contains("Test message default")); + } + + @Test + public void testPublishConnectionSpecific() throws IOException { + BigQueryJdbcMdc.registerInstance(mockConnection, "123"); + + LogRecord record = new LogRecord(Level.INFO, "Test message connection 123"); + handler.publish(record); + handler.flush(); + + Optional connLog = findLogFile("-123.log"); + assertTrue(connLog.isPresent()); + String content = new String(Files.readAllBytes(connLog.get())); + assertTrue(content.contains("Test message connection 123")); + } + + @Test + public void testCloseHandler() throws IOException { + BigQueryJdbcMdc.registerInstance(mockConnection, "456"); + + LogRecord record = new LogRecord(Level.INFO, "Test message connection 456"); + handler.publish(record); + handler.flush(); + + Optional connLog = findLogFile("-456.log"); + assertTrue(connLog.isPresent()); + + handler.closeHandler("BQ-JDBC-456"); + assertTrue(Files.exists(connLog.get())); + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITAuthTests.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITAuthTests.java index f57493a997de..1f4397e417b3 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITAuthTests.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITAuthTests.java @@ -21,13 +21,16 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; +import com.google.auth.oauth2.GoogleCredentials; import com.google.cloud.ServiceOptions; import com.google.gson.JsonObject; import com.google.gson.JsonParser; +import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; import java.sql.Connection; @@ -35,9 +38,12 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.CsvSource; public class ITAuthTests extends ITBase { static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); @@ -283,26 +289,31 @@ public void testValidExternalAccountAuthenticationRawJson() throws SQLException connection.close(); } - // TODO(farhan): figure out how to programmatically generate an access token and test - @Test - @Disabled - public void testValidPreGeneratedAccessTokenAuthentication() throws SQLException { - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=2;OAuthAccessToken=access_token;"; - - Connection connection = DriverManager.getConnection(connection_uri); - assertNotNull(connection); - assertFalse(connection.isClosed()); - - Statement statement = connection.createStatement(); - ResultSet resultSet = - statement.executeQuery( - "SELECT repository_name FROM `bigquery-public-data.samples.github_timeline` LIMIT 50"); + @ParameterizedTest + @CsvSource({ + "https://www.googleapis.com/auth/bigquery.readonly, true", + "https://www.googleapis.com/auth/bigquery, false" + }) + public void testValidPreGeneratedAccessTokenAuthentication(String scope, boolean isReadOnly) + throws Exception { + final JsonObject authJson = getAuthJson(); + InputStream stream = + new ByteArrayInputStream(authJson.toString().getBytes(StandardCharsets.UTF_8)); + GoogleCredentials credentials = + GoogleCredentials.fromStream(stream).createScoped(Arrays.asList(scope)); + credentials.refresh(); + String accessToken = credentials.getAccessToken().getTokenValue(); + + String connectionUri = + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=" + + authJson.get("project_id").getAsString() + + ";OAuthType=2" + + ";OAuthAccessToken=" + + accessToken + + ";OAuthAccessTokenReadonly=" + + isReadOnly; - assertEquals(50, resultSetRowCount(resultSet)); - connection.close(); + validateConnection(connectionUri); } // TODO(obada): figure out how to programmatically generate a refresh token and test @@ -371,4 +382,15 @@ public void testServiceAccountAuthenticationWithChainedImpersonation() .toString(); validateConnection(connection_uri); } + + @Test + public void testADCAuthenticationWithImpersonation() throws IOException, SQLException { + final JsonObject authJson = getAuthJson(); + + String connection_uri = + getBaseUri(3, authJson.get("project_id").getAsString()) + .append("ServiceAccountImpersonationEmail", authJson.get("client_email").getAsString()) + .toString(); + validateConnection(connection_uri); + } } diff --git a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java index 316444aebb75..f8c75a2acc9e 100644 --- a/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java +++ b/java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java @@ -309,7 +309,7 @@ public void testInvalidQuery() throws SQLException { bigQueryStatement.executeQuery(query); Assertions.fail(); } catch (BigQueryJdbcException e) { - assertTrue(e.getMessage().contains("SELECT * must have a FROM clause")); + assertTrue(e.getCause().getMessage().contains("SELECT * must have a FROM clause")); } } @@ -1322,7 +1322,7 @@ public void testIntervalDataTypeWithArrowResultSet() throws SQLException { "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + "OAuthType=3;ProjectId=" + PROJECT_ID - + ";MaxResults=500;HighThroughputActivationRatio=1;" + + ";MaxResults=500;HighThroughputActivationRatio=0;" + "HighThroughputMinTableSize=100;" + "EnableHighThroughputAPI=1;JobCreationMode=1;"; @@ -2011,7 +2011,7 @@ public void testRangeDataTypeWithArrowResultSet() throws SQLException { "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + "OAuthType=3;ProjectId=" + PROJECT_ID - + ";MaxResults=500;HighThroughputActivationRatio=1;" + + ";MaxResults=500;HighThroughputActivationRatio=0;" + "HighThroughputMinTableSize=100;" + "EnableHighThroughputAPI=1;JobCreationMode=1;"; diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/client/JDBCClient.java b/java-bigquery/google-cloud-bigquery-jdbc/tools/client/JDBCClient.java new file mode 100644 index 000000000000..007b2be06c97 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/client/JDBCClient.java @@ -0,0 +1,255 @@ +/* + * Copyright 2026 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 java.sql.*; +import java.util.*; + +public class JDBCClient { + public static void main(String[] args) throws Exception { + String url = null; + String driverClass = "com.google.cloud.bigquery.jdbc.BigQueryDriver"; + String action = null; + String query = null; + boolean noOutput = false; + int generateRows = 0; + int generateCols = 5; + String metadataMethod = "getTables"; + String catalog = null; + String schema = null; + String table = null; + String typesStr = null; + + Map extraArgs = new HashMap<>(); + + for (int i = 0; i < args.length; i++) { + String arg = args[i]; + if (arg.startsWith("--")) { + String key = arg.substring(2); + String val = ""; + if (key.contains("=")) { + String[] parts = key.split("=", 2); + key = parts[0]; + val = parts[1]; + } else if (i + 1 < args.length && !args[i+1].startsWith("-")) { + val = args[i+1]; + i++; + } + + switch (key) { + case "url": url = val; break; + case "driver-class": driverClass = val; break; + case "action": action = val; break; + case "query": query = val; break; + case "no-output": noOutput = true; break; + case "generate-rows": generateRows = Integer.parseInt(val); break; + case "generate-cols": generateCols = Integer.parseInt(val); break; + case "metadata-method": metadataMethod = val; break; + case "catalog": catalog = val; break; + case "schema": schema = val; break; + case "table": table = val; break; + case "types": typesStr = val; break; + default: extraArgs.put(key, val); break; + } + } + } + + if (url == null || action == null) { + System.err.println("Error: --url and --action are required."); + System.exit(1); + } + + StringBuilder sb = new StringBuilder(url); + if (!url.endsWith(";")) sb.append(";"); + for (Map.Entry entry : extraArgs.entrySet()) { + sb.append(entry.getKey()).append("=").append(entry.getValue()).append(";"); + } + String finalUrl = sb.toString(); + + System.out.println("Final Connection String: " + finalUrl); + System.out.println("Driver Class: " + driverClass); + + Class.forName(driverClass); + + long startE2E = System.currentTimeMillis(); + Connection conn = DriverManager.getConnection(finalUrl); + System.out.println("Connection successful.\n"); + + if ("query".equals(action)) { + if (generateRows > 0) { + query = generateDataQuery(generateRows, generateCols); + } + if (query == null) { + System.err.println("Error: --query or --generate-rows is required when action is 'query'"); + System.exit(1); + } + warmup(conn); + runQuery(conn, query, noOutput); + } else if ("metadata".equals(action)) { + String[] types = typesStr != null ? typesStr.split(",") : null; + runMetadata(conn, metadataMethod, catalog, schema, table, types); + } + + conn.close(); + long e2eTime = System.currentTimeMillis() - startE2E; + System.out.println("Total e2e time: " + (e2eTime / 1000.0) + " seconds"); + } + + private static void warmup(Connection conn) { + System.out.println("Performing warmup query..."); + try (Statement stmt = conn.createStatement()) { + stmt.execute("SELECT 1"); + try (ResultSet rs = stmt.getResultSet()) { + while (rs.next()) { + rs.getObject(1); + } + } + } catch (Exception e) { + System.err.println("Warning: Warmup query failed: " + e.getMessage()); + } + System.out.println("Warmup complete.\n"); + } + + private static String generateDataQuery(int rows, int cols) { + int N = (int) Math.ceil(Math.sqrt(rows)); + String idxExpr = "(i - 1) * " + N + " + j"; + + StringBuilder sb = new StringBuilder(); + sb.append("SELECT ").append(idxExpr).append(" AS idx"); + for (int k = 1; k < cols; k++) { + sb.append(", CONCAT('val_', ").append(idxExpr).append(") AS col").append(k); + } + sb.append(" FROM UNNEST(GENERATE_ARRAY(1, ").append(N).append(")) AS i"); + sb.append(" CROSS JOIN UNNEST(GENERATE_ARRAY(1, ").append(N).append(")) AS j"); + sb.append(" LIMIT ").append(rows); + + return sb.toString(); + } + + private static void runQuery(Connection conn, String query, boolean noOutput) throws Exception { + System.out.println("Executing query: " + query); + + long startExec = System.currentTimeMillis(); + Statement stmt = conn.createStatement(); + boolean hasResultSet = stmt.execute(query); + long execTime = System.currentTimeMillis() - startExec; + + if (!hasResultSet) { + System.out.println("Query executed but returned no results."); + return; + } + + long startFetch = System.currentTimeMillis(); + ResultSet rs = stmt.getResultSet(); + ResultSetMetaData rsMeta = rs.getMetaData(); + int colCount = rsMeta.getColumnCount(); + + if (!noOutput) { + for (int i = 1; i <= colCount; i++) { + System.out.print(rsMeta.getColumnName(i) + " [" + rsMeta.getColumnTypeName(i) + "]"); + if (i < colCount) System.out.print(" | "); + } + System.out.println(); + System.out.println("------------------------------------------------------------------------------------------------------------------------"); + } + + int rowCount = 0; + Object[] row = new Object[colCount]; + while (rs.next()) { + rowCount++; + for (int i = 1; i <= colCount; i++) { + row[i - 1] = rs.getObject(i); + } + if (!noOutput) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < colCount; i++) { + sb.append(row[i]); + if (i < colCount - 1) { + sb.append(" | "); + } + } + System.out.println(sb.toString()); + } + } + long fetchTime = System.currentTimeMillis() - startFetch; + + System.out.println("\nMetrics:"); + System.out.println(" Rows retrieved: " + rowCount); + System.out.println(" Values retrieved: " + (long) rowCount * colCount); + System.out.println(" Execution time: " + (execTime / 1000.0) + " seconds"); + System.out.println(" Fetch time: " + (fetchTime / 1000.0) + " seconds"); + + rs.close(); + stmt.close(); + } + + private static void runMetadata(Connection conn, String method, String catalog, String schema, String table, String[] types) throws Exception { + DatabaseMetaData dbMeta = conn.getMetaData(); + System.out.println("Executing metadata method: " + method); + + ResultSet rs = null; + Object result = null; + + if ("getTables".equals(method)) { + rs = dbMeta.getTables(catalog, schema, table, types); + } else if ("getColumns".equals(method)) { + rs = dbMeta.getColumns(catalog, schema, table, null); + } else if ("getSchemas".equals(method)) { + rs = dbMeta.getSchemas(catalog, schema); + } else if ("getCatalogs".equals(method)) { + rs = dbMeta.getCatalogs(); + } else if ("getTableTypes".equals(method)) { + rs = dbMeta.getTableTypes(); + } else if ("getTypeInfo".equals(method)) { + rs = dbMeta.getTypeInfo(); + } else { + try { + java.lang.reflect.Method m = DatabaseMetaData.class.getMethod(method); + result = m.invoke(dbMeta); + } catch (NoSuchMethodException e) { + System.err.println("Error: Method '" + method + "' not supported or found."); + return; + } + } + + if (rs != null) { + ResultSetMetaData rsMeta = rs.getMetaData(); + int colCount = rsMeta.getColumnCount(); + + for (int i = 1; i <= colCount; i++) { + System.out.print(rsMeta.getColumnName(i)); + if (i < colCount) System.out.print(" | "); + } + System.out.println(); + System.out.println("------------------------------------------------------------------------------------------------------------------------"); + + int rowCount = 0; + while (rs.next()) { + rowCount++; + for (int i = 1; i <= colCount; i++) { + System.out.print(rs.getObject(i)); + if (i < colCount) System.out.print(" | "); + } + System.out.println(); + } + System.out.println("\n(" + rowCount + " rows)"); + rs.close(); + } else if (result != null) { + System.out.println("Result: " + result); + } else { + System.out.println("Method returned null or void."); + } + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/client/Makefile b/java-bigquery/google-cloud-bigquery-jdbc/tools/client/Makefile new file mode 100644 index 000000000000..72e7cf928bb8 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/client/Makefile @@ -0,0 +1,65 @@ +# Makefile for Java JDBC Client + +JC = javac +J = java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -Xmx2g + +default: classes + +classes: JDBCClient.class + +JDBCClient.class: JDBCClient.java + $(JC) JDBCClient.java + +clean: + rm -f *.class + + +# Default configuration +VERSION = $(shell sed -n 's/.*\([^<]*\)<\/version>.*/\1/p' ../../pom.xml | head -n 1) +DRIVER_JAR ?= ../../drivers/google-cloud-bigquery-jdbc-$(VERSION)-all.jar +DRIVER_CLASS = com.google.cloud.bigquery.jdbc.BigQueryDriver +URL ?= jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443; +CREDENTIALS ?= $(GOOGLE_APPLICATION_CREDENTIALS) + +ROWS ?= 10 +COLS ?= 5 +METHOD ?= getTables + +OUTPUT ?= false +QUERY ?= SELECT 1 + +ifeq ($(OUTPUT),false) + OUTPUT_FLAG = --no-output +else + OUTPUT_FLAG = +endif + +# JFR Configuration +JFR ?= false +ifeq ($(JFR),true) + JFR_FLAGS = -XX:StartFlightRecording=settings=./config/sampler.jfc,filename=recording.jfr +else + JFR_FLAGS = +endif + +COMMON_FLAGS = --url "$(URL)" \ + --driver-jar "$(DRIVER_JAR)" \ + --driver-class "$(DRIVER_CLASS)" \ + --ProjectId "bigquery-devtools-drivers" \ + --OAuthType=0 \ + --OAuthServiceAcctEmail="" \ + --OAuthPvtKeyPath="$(CREDENTIALS)" \ + --EnableHighThroughputAPI=1 \ + --HighThroughputActivationRatio=0 \ + --HighThroughputMinTableSize=0 \ + --MaxResults=20000 \ + --EnableSession=1 + +query: classes + $(J) $(JFR_FLAGS) -cp .:$(DRIVER_JAR) JDBCClient --action query $(COMMON_FLAGS) --query "$(QUERY)" $(OUTPUT_FLAG) $(EXTRA_ARGS) + +query-generated: classes + $(J) $(JFR_FLAGS) -cp .:$(DRIVER_JAR) JDBCClient --action query $(COMMON_FLAGS) $(OUTPUT_FLAG) --generate-rows $(ROWS) --generate-cols $(COLS) $(EXTRA_ARGS) + +metadata: classes + $(J) $(JFR_FLAGS) -cp .:$(DRIVER_JAR) JDBCClient --action metadata --metadata-method $(METHOD) $(COMMON_FLAGS) $(EXTRA_ARGS) diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/client/README.md b/java-bigquery/google-cloud-bigquery-jdbc/tools/client/README.md new file mode 100644 index 000000000000..a3d396acfe6d --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/client/README.md @@ -0,0 +1,75 @@ +# JDBC Client Tool + +This directory contains a simple Java tool to interact with BigQuery via the JDBC driver. It can be used to execute queries and inspect database metadata. + +## Compilation + +To compile the client, run: + +```bash +make +``` + +This will generate `JDBCClient.class`. + +## Usage + +The Makefile provides convenient targets to run the client. You can override default variables on the command line. + +Common variables: +- `URL`: JDBC connection URL (defaults to public BigQuery endpoint) +- `CREDENTIALS`: Path to service account JSON key (defaults to `$GOOGLE_APPLICATION_CREDENTIALS`) +- `OUTPUT`: Set to `false` to suppress query result output (defaults to `true`) +- `EXTRA_ARGS`: Extra arguments to pass to the client (e.g., `EXTRA_ARGS="--table my_table"`) + +### Query Examples + +#### Run a simple query + +```bash +make query QUERY="SELECT 1" +``` + +#### Generate dummy data query + +```bash +make query-generated ROWS=10 COLS=5 +``` + +#### Run query with no output (metrics only) + +Useful for performance testing. + +```bash +make query QUERY="SELECT * FROM my_dataset.my_table LIMIT 1000" OUTPUT=false +``` + +### Metadata Examples + +The tool supports calling `DatabaseMetaData` methods. + +#### Get Tables (returns ResultSet) + +```bash +make metadata METHOD=getTables +``` + +#### Get Columns (returns ResultSet) + +```bash +make metadata METHOD=getColumns EXTRA_ARGS="--table my_table" +``` + +#### Get Database Product Name (returns String) + +Methods that take no arguments can be called via reflection. + +```bash +make metadata METHOD=getDatabaseProductName +``` + +#### Get JDBC Major Version (returns int) + +```bash +make metadata METHOD=getJDBCMajorVersion +``` diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/client/config/sampler.jfc b/java-bigquery/google-cloud-bigquery-jdbc/tools/client/config/sampler.jfc new file mode 100644 index 000000000000..56b60236428a --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/client/config/sampler.jfc @@ -0,0 +1,18 @@ + + + + false + + + true + 1 ms + + + true + 1 ms + + + true + 10000/s + + diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/README.md b/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/README.md new file mode 100644 index 000000000000..b3489cf23d0a --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/README.md @@ -0,0 +1,66 @@ +# Test Environments + +This directory contains Terraform configurations to provision environments for testing the BigQuery JDBC driver. + +## Available Environments + +### Private Service Connect (PSC) + +Located in `private_service_connect/`. + +This environment provisions: +- A custom VPC and subnet. +- Cloud NAT (allowing outbound internet access without public IPs). +- A Private Service Connect (PSC) endpoint for Google APIs (`all-apis`). +- A Compute Engine VM instance with no public IP, accessible via IAP (Identity-Aware Proxy). +- Firewall rules to allow IAP SSH access. + +This setup is useful for testing connectivity to BigQuery via PSC and validating that traffic goes through the private endpoint. + +## Deployment + +To deploy an environment, you need Terraform installed and configured with Google Cloud credentials. + +### Steps + +1. Navigate to the specific environment directory: + ```bash + cd tools/environments/private_service_connect + ``` + +2. Initialize Terraform: + ```bash + terraform init + ``` + +3. Create a `terraform.tfvars` file or pass variables on the command line. + Required variables: + - `project_id`: The GCP project ID where resources will be created. + + Optional variables (see `variables.tf` for defaults): + - `region`: Defaults to `us-central1`. + - `zone`: Defaults to `us-central1-a`. + - `env_name`: Defaults to `demo`. + + Example `terraform.tfvars`: + ```hcl + project_id = "your-gcp-project-id" + region = "us-central1" + zone = "us-central1-a" + env_name = "jdbc-test" + ``` + +4. Plan the deployment: + ```bash + terraform plan + ``` + +5. Apply the configuration: + ```bash + terraform apply + ``` + +6. When done, you can destroy the environment: + ```bash + terraform destroy + ``` diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/main.tf b/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/main.tf new file mode 100644 index 000000000000..bce9af3c4676 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/main.tf @@ -0,0 +1,85 @@ +provider "google" { + project = var.project_id + region = var.region +} + +# 1. VPC Network +resource "google_compute_network" "vpc" { + name = "${var.env_name}-vpc" + auto_create_subnetworks = false +} + +# 2. Subnet +resource "google_compute_subnetwork" "subnet" { + name = "${var.env_name}-subnet" + ip_cidr_range = "10.0.0.0/24" + region = var.region + network = google_compute_network.vpc.id +} + +# 3. Cloud NAT for Internet Access (No Public IP for VM) +resource "google_compute_router" "router" { + name = "${var.env_name}-router" + region = var.region + network = google_compute_network.vpc.id +} + +resource "google_compute_router_nat" "nat" { + name = "${var.env_name}-nat" + router = google_compute_router.router.name + region = var.region + nat_ip_allocate_option = "AUTO_ONLY" + source_subnetwork_ip_ranges_to_nat = "ALL_SUBNETWORKS_ALL_IP_RANGES" +} + +# 4. Private Service Connect for Google APIs +resource "google_compute_global_address" "psc_ip" { + name = "${var.env_name}-psc-ip" + address_type = "INTERNAL" + purpose = "PRIVATE_SERVICE_CONNECT" + network = google_compute_network.vpc.id + address = "10.0.1.2" # Using a distinct IP outside the subnet range or just let it auto-allocate if possible, but purpose requires specific handling. Actually, global address for PSC can be any internal IP. Let's auto-allocate or use a specific one. +} + +resource "google_compute_global_forwarding_rule" "psc_rule" { + name = "${var.env_name}" # This name generates the p.googleapis.com endpoint + target = "all-apis" + network = google_compute_network.vpc.id + ip_address = google_compute_global_address.psc_ip.id + load_balancing_scheme = "" +} + +# 5. Firewall for IAP SSH +resource "google_compute_firewall" "iap_ssh" { + name = "${var.env_name}-allow-iap-ssh" + network = google_compute_network.vpc.id + + allow { + protocol = "tcp" + ports = ["22"] + } + + source_ranges = ["172.253.30.0/23"] # IAP range +} + +# 6. VM Instance +resource "google_compute_instance" "vm" { + name = "${var.env_name}-vm" + machine_type = "e2-medium" + zone = var.zone + + boot_disk { + initialize_params { + image = "debian-cloud/debian-12" + } + } + + network_interface { + subnetwork = google_compute_subnetwork.subnet.id + # No access_config block ensures no public IP + } + + metadata = { + enable-oslogin = "TRUE" + } +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/outputs.tf b/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/outputs.tf new file mode 100644 index 000000000000..278449e2174e --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/outputs.tf @@ -0,0 +1,9 @@ +output "psc_endpoint" { + value = "https://bigquery-${var.env_name}.p.googleapis.com" + description = "The expected Private Service Connect endpoint for BigQuery." +} + +output "psc_ip_address" { + value = google_compute_global_address.psc_ip.address + description = "The internal IP address reserved for Private Service Connect." +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/variables.tf b/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/variables.tf new file mode 100644 index 000000000000..5bc888b3cff7 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/environments/private_service_connect/variables.tf @@ -0,0 +1,22 @@ +variable "project_id" { + type = string + description = "The GCP project ID where resources will be created." +} + +variable "region" { + type = string + description = "The region where resources will be created." + default = "us-central1" +} + +variable "zone" { + type = string + description = "The zone where the VM will be created." + default = "us-central1-a" +} + +variable "env_name" { + type = string + description = "Identifier used as prefix/suffix for resource names to easily identify them." + default = "demo" +} diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/Makefile b/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/Makefile new file mode 100644 index 000000000000..ff874200140d --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/Makefile @@ -0,0 +1,44 @@ +# Makefile for running performance tests + +# Defaults +ITERATIONS ?= 5 +ROWS ?= 1000 +COLS ?= 5 +VERSION ?= $(shell sed -n 's/.*\([^<]*\)<\/version>.*/\1/p' ../../pom.xml | head -n 1) +JAR1 ?= ../../drivers/google-cloud-bigquery-jdbc-$(VERSION)-all.jar +CLASS1 ?= com.google.cloud.bigquery.jdbc.BigQueryDriver +# JAR2 and CLASS2 are optional +JAR2 ?= +CLASS2 ?= com.google.cloud.bigquery.jdbc.BigQueryDriver + +# Base URL and common options +PROJECT_ID ?= bigquery-devtools-drivers +CREDENTIALS ?= $(GOOGLE_APPLICATION_CREDENTIALS) + +# We assume OAuthType=3 (Service Account) as in the original specs +BASE_URL = jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=$(PROJECT_ID);OAuthType=3;OAuthPvtKeyPath=$(CREDENTIALS);Timeout=3600; + +REST_OPTS = EnableHighThroughputAPI=0 +HTAPI_OPTS = EnableHighThroughputAPI=1;HighThroughputActivationRatio=0;HighThroughputMinTableSize=0; + +# Python script +RUN_PERF = python3 run_perf.py + +# Common flags for run_perf.py +COMMON_FLAGS = -n $(ITERATIONS) --generate-rows $(ROWS) --generate-cols $(COLS) --jar1 $(JAR1) --class1 $(CLASS1) + +ifneq ($(JAR2),) + COMMON_FLAGS += --jar2 $(JAR2) --class2 $(CLASS2) +endif + + +.PHONY: run-rest run-htapi compile-client + +compile-client: + $(MAKE) -C ../client classes + +run-rest: compile-client + $(RUN_PERF) --url "$(BASE_URL)$(REST_OPTS)" $(COMMON_FLAGS) + +run-htapi: compile-client + $(RUN_PERF) --url "$(BASE_URL)$(HTAPI_OPTS)" $(COMMON_FLAGS) diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/README.md b/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/README.md new file mode 100644 index 000000000000..243d06fc0367 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/README.md @@ -0,0 +1,85 @@ +# JDBC Performance Testing Tools + +This directory contains tools for running performance benchmarks on the BigQuery JDBC driver. + +## Files + +- `run_perf.py`: A Python script that orchestrates running the tests, collecting metrics, and displaying results in a table view. +- `Makefile`: A convenience wrapper to run common test configurations. + +## Prerequisites + +- Python 3 +- Java 11 or later +- BigQuery JDBC driver JAR(s) to test. + +*Note: The Java client (`JDBCClient`) is automatically compiled when using the Makefile.* + +## Running Tests via Makefile + +The easiest way to run tests is using the provided `Makefile`. It defines targets for REST API and High Throughput API (HTAPI) modes. + +### Defaults + +The Makefile uses the following defaults which can be overridden: + +- `ITERATIONS`: 5 +- `ROWS`: 1000 +- `COLS`: 5 +- `JAR1`: `../../drivers/google-cloud-bigquery-jdbc-0.9.0-all.jar` +- `PROJECT_ID`: `bigquery-devtools-drivers` +- `CREDENTIALS`: Value of `$GOOGLE_APPLICATION_CREDENTIALS` + +### Examples + +#### Run REST API tests with defaults + +```bash +make run-rest +``` + +#### Run HTAPI tests with custom iterations and rows + +```bash +make run-htapi ITERATIONS=3 ROWS=50000 +``` + +#### Compare two drivers + +To compare two different driver JARs, provide `JAR2` (and optionally `CLASS2` if different from default): + +```bash +make run-rest JAR1=path/to/driver1.jar JAR2=path/to/driver2.jar +``` + +## Running Tests via Python Script + +For more control, you can run `run_perf.py` directly. + +### Arguments + +- `--url`: (Required) JDBC connection URL. +- `--jar1`: (Required) Path to the first driver JAR. +- `--jar2`: Path to the second driver JAR (optional, for comparison). +- `--class1`: Class name for the first driver (default: `com.google.cloud.bigquery.jdbc.BigQueryDriver`). +- `--class2`: Class name for the second driver (default: `com.google.cloud.bigquery.jdbc.BigQueryDriver`). +- `-n`, `--iterations`: Number of iterations to run (default: 5). +- `--generate-rows`: Number of rows to generate via query (default: 0). +- `--generate-cols`: Number of columns to generate via query (default: 5). +- `--query`: A specific query to run (if not using generated data). +- `--output-md`: Append results as a markdown table to this file. +- `--filter-metrics`: Comma-separated list of metrics to include in the markdown table. + +### Examples + +#### Run a single driver with generated data + +```bash +python3 run_perf.py --url "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=my-project;OAuthType=3" --jar1 path/to/driver.jar --generate-rows 1000 -n 3 +``` + +#### Compare two drivers with a specific query + +```bash +python3 run_perf.py --url "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=my-project;OAuthType=3" --jar1 path/to/driver1.jar --jar2 path/to/driver2.jar --query "SELECT * FROM my_dataset.my_table LIMIT 1000" +``` diff --git a/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/run_perf.py b/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/run_perf.py new file mode 100644 index 000000000000..dd05423ce462 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery-jdbc/tools/perf/run_perf.py @@ -0,0 +1,293 @@ +# Copyright 2026 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 argparse +import subprocess +import statistics +import sys +import os + +# Base directory of the script +BASE_DIR = os.path.dirname(os.path.abspath(__file__)) + +def run_test(url, driver_jar, driver_class, query=None, generate_rows=0, generate_cols=5, no_output=True): + # Base client folder is tools/client. Relative to tools/perf it is ../client. + client_dir = os.path.join(os.path.dirname(BASE_DIR), "client") + + cp = f"{client_dir}:{driver_jar}" + + cmd = [ + "java", + "--add-opens=java.base/java.nio=ALL-UNNAMED", + "--add-opens=java.base/sun.nio.ch=ALL-UNNAMED", + "-Xmx2g", + "-cp", cp, + "JDBCClient", + "--action", "query", + "--url", url, + "--driver-class", driver_class, + ] + + if query: + cmd.extend(["--query", query]) + if generate_rows > 0: + cmd.extend(["--generate-rows", str(generate_rows)]) + cmd.extend(["--generate-cols", str(generate_cols)]) + if no_output: + cmd.append("--no-output") + + print(f"Running command: {' '.join(cmd)}") + result = subprocess.run(cmd, capture_output=True, text=True, cwd=BASE_DIR) + + if result.returncode != 0: + print(f"Error running test: {result.stderr}", file=sys.stderr) + return None + + metrics = {} + for line in result.stdout.splitlines(): + if "Rows retrieved:" in line: + metrics["rows"] = int(line.split(":")[-1].strip()) + elif "Values retrieved:" in line: + metrics["values"] = int(line.split(":")[-1].strip()) + elif "Execution time:" in line: + metrics["execution_time"] = float(line.split(":")[-1].replace("seconds", "").strip()) + elif "Fetch time:" in line: + metrics["fetch_time"] = float(line.split(":")[-1].replace("seconds", "").strip()) + elif "Total e2e time:" in line: + metrics["e2e_time"] = float(line.split(":")[-1].replace("seconds", "").strip()) + + if metrics: + exec_time = metrics.get("execution_time", 0) + fetch_time = metrics.get("fetch_time", 0) + total_time = exec_time + fetch_time + return { + "metric": "totalTimeSec", + "value": total_time, + "metadata": { + "iterationTimeSec": total_time, + "execution_time": exec_time, + "fetch_time": fetch_time, + "e2e_time": metrics.get("e2e_time", 0), + "rows": metrics.get("rows", 0), + "values": metrics.get("values", 0) + } + } + + print(f"Could not find metrics in output. Output follows:\n{result.stderr}\n{result.stdout}", file=sys.stderr) + return None + +def compute_percentile(data, p): + if not data: + return 0 + size = len(data) + sorted_data = sorted(data) + idx = (p / 100) * (size - 1) + if idx.is_integer(): + return sorted_data[int(idx)] + else: + lower = int(idx) + upper = lower + 1 + weight = idx - lower + return sorted_data[lower] * (1 - weight) + sorted_data[upper] * weight + +def extract_metrics(results): + metrics_data = {} + for res in results: + main_val = res.get("value") + metric_name = res.get("metric", "value") + if main_val is not None and isinstance(main_val, (int, float)): + metrics_data.setdefault(metric_name, []).append(main_val) + + metadata = res.get("metadata", {}) + for k, v in metadata.items(): + if isinstance(v, (int, float)): + metrics_data.setdefault(k, []).append(v) + return metrics_data + +def calculate_stats(values): + valid_values = [v for v in values if v != -1.0] + if not valid_values: + return None + return { + "avg": statistics.mean(valid_values), + "count": len(valid_values), + "p50": compute_percentile(valid_values, 50), + "p75": compute_percentile(valid_values, 75), + "p95": compute_percentile(valid_values, 95) + } + +def print_comparison(base_results, new_results, base_label, new_label, diff_label, spec_name, output_md=None, filter_metrics=None): + is_single = base_label == new_label + + print("\n" + "=" * 90) + if is_single: + print(f"{f'Metrics for {base_label}':^90}") + else: + print(f"{f'Side-by-Side Metrics Comparison ({base_label} vs {new_label})':^90}") + print("=" * 90) + + base_metrics = extract_metrics(base_results) + new_metrics = extract_metrics(new_results) if not is_single else {} + + all_metric_names = sorted(list(set(base_metrics.keys()) | set(new_metrics.keys()))) + + if not all_metric_names: + print("No valid metrics found to compare.") + return + + if is_single: + print(f"{'Metric':<30} | {'Stat':<5} | {base_label:<15}") + print("-" * 60) + else: + print(f"{'Metric':<30} | {'Stat':<5} | {base_label:<15} | {new_label:<15} | {diff_label:<12}") + print("-" * 90) + + filter_list = filter_metrics.split(",") if filter_metrics else None + + md_lines = [] + if output_md: + md_lines.append(f"### Results for spec: `{spec_name}`") + md_lines.append("") + if is_single: + md_lines.append(f"| Metric | Stat | {base_label} |") + md_lines.append(f"|---|---|---|") + else: + md_lines.append(f"| Metric | Stat | {base_label} | {new_label} | {diff_label} |") + md_lines.append(f"|---|---|---|---|---|") + + for metric in all_metric_names: + b_vals = base_metrics.get(metric, []) + n_vals = new_metrics.get(metric, []) if not is_single else [] + + b_stats = calculate_stats(b_vals) + n_stats = calculate_stats(n_vals) if not is_single else None + + if not b_stats and not n_stats: + continue + + if is_single: + print(f"{metric:<30} | | |") + else: + print(f"{metric:<30} | | | |") + + for stat in ["avg", "p50", "p75", "p95"]: + b_val_str = f"{b_stats[stat]:.4f}" if b_stats else "N/A" + + if is_single: + print(f"{'':<30} | {stat.upper():<5} | {b_val_str:<15}") + if output_md: + if not filter_list or metric in filter_list: + md_lines.append(f"| {metric} | {stat.upper()} | {b_val_str} |") + else: + n_val_str = f"{n_stats[stat]:.4f}" if n_stats else "N/A" + diff_str = "" + if n_stats and b_stats and b_stats[stat] != 0: + diff = ((n_stats[stat] - b_stats[stat]) / b_stats[stat]) * 100 + diff_str = f"{diff:+.2f}%" + elif n_stats and b_stats and b_stats[stat] == 0: + if n_stats[stat] == 0: + diff_str = "+0.00%" + else: + diff_str = "INF" + + print(f"{'':<30} | {stat.upper():<5} | {b_val_str:<15} | {n_val_str:<15} | {diff_str:<12}") + if output_md: + if not filter_list or metric in filter_list: + md_lines.append(f"| {metric} | {stat.upper()} | {b_val_str} | {n_val_str} | {diff_str} |") + + if is_single: + print("-" * 60) + else: + print("-" * 90) + + if output_md: + md_lines.append("") + md_lines.append("---") + md_lines.append("") + with open(output_md, "a") as f: + f.write("\n".join(md_lines)) + + +def main(): + parser = argparse.ArgumentParser(description="Run JDBC Perf tests and aggregate metrics.") + parser.add_argument("--url", required=True, help="JDBC connection URL") + parser.add_argument("--jar1", required=True, help="Path to first driver jar") + parser.add_argument("--jar2", help="Path to second driver jar (optional, for comparison)") + parser.add_argument("--class1", default="com.google.cloud.bigquery.jdbc.BigQueryDriver", help="Class name for first driver") + parser.add_argument("--class2", default="com.google.cloud.bigquery.jdbc.BigQueryDriver", help="Class name for second driver") + parser.add_argument("-n", "--iterations", type=int, default=5, help="Number of iterations to run (default 5)") + parser.add_argument("--generate-rows", type=int, default=0, help="Number of rows to generate") + parser.add_argument("--generate-cols", type=int, default=5, help="Number of columns to generate") + parser.add_argument("--query", help="Query to run (if not using generated data)") + parser.add_argument("--output-md", help="Append markdown table to this file containing the results") + parser.add_argument("--filter-metrics", help="Comma-separated list of metrics to include in markdown tables") + + args = parser.parse_args() + + print("=" * 70) + print(f"JDBC Performance Runner") + print(f"URL : {args.url}") + print(f"Iterations : {args.iterations}") + print(f"Jar 1 : {args.jar1} ({args.class1})") + if args.jar2: + print(f"Jar 2 : {args.jar2} ({args.class2})") + if args.generate_rows > 0: + print(f"Generate Rows: {args.generate_rows}") + print(f"Generate Cols: {args.generate_cols}") + elif args.query: + print(f"Query : {args.query}") + print("=" * 70) + + driver_results = {} + drivers_to_run = [("driver1", args.jar1, args.class1)] + if args.jar2: + drivers_to_run.append(("driver2", args.jar2, args.class2)) + base_key, new_key = "driver1", "driver2" + base_label, new_label = "Driver 1", "Driver 2" + diff_label = "% Diff (D2/D1)" + else: + base_key = "driver1" + new_key = "driver1" # Fallback if only 1 driver + base_label, new_label = "Driver 1", "Driver 1" + diff_label = "% Diff" + + for driver_key, driver_jar, driver_class in drivers_to_run: + driver_results[driver_key] = [] + for i in range(args.iterations): + print(f"-> Running {driver_key} iteration {i+1}/{args.iterations}...") + res = run_test( + url=args.url, + driver_jar=driver_jar, + driver_class=driver_class, + query=args.query, + generate_rows=args.generate_rows, + generate_cols=args.generate_cols, + no_output=True + ) + if res: + driver_results[driver_key].append(res) + + print_comparison( + base_results=driver_results[base_key], + new_results=driver_results[new_key], + base_label=base_label, + new_label=new_label, + diff_label=diff_label, + spec_name=f"Rows: {args.generate_rows}, Cols: {args.generate_cols}" if args.generate_rows > 0 else args.query, + output_md=args.output_md, + filter_metrics=args.filter_metrics + ) + +if __name__ == "__main__": + main() diff --git a/java-bigquery/google-cloud-bigquery/pom.xml b/java-bigquery/google-cloud-bigquery/pom.xml index 243b6a2d89f1..c8b52c9b5b4f 100644 --- a/java-bigquery/google-cloud-bigquery/pom.xml +++ b/java-bigquery/google-cloud-bigquery/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigquery - 2.65.0 + 2.66.0 jar BigQuery https://github.com/googleapis/google-cloud-java @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigquery-parent - 2.65.0 + 2.66.0 google-cloud-bigquery @@ -100,12 +100,12 @@ com.google.cloud google-cloud-bigquerystorage - 3.27.0 + 3.28.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.27.0 + 3.28.0 org.apache.arrow @@ -148,19 +148,19 @@ com.google.cloud google-cloud-datacatalog test - 1.97.0 + 1.98.0 com.google.cloud google-cloud-bigqueryconnection test - 2.93.0 + 2.94.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 test - 2.93.0 + 2.94.0 com.google.cloud @@ -196,13 +196,13 @@ com.google.cloud google-cloud-datacatalog test - 1.97.0 + 1.98.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 test - 1.97.0 + 1.98.0 diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java index 320daa03a271..a2c74e952e82 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java @@ -2104,7 +2104,7 @@ && getOptions().getOpenTelemetryTracer() != null) { return queryRpc(projectId, content, options); } - return create(JobInfo.of(jobId, configuration), options).getQueryResults(); + return create(JobInfo.of(jobId, configuration), options); } finally { if (querySpan != null) { querySpan.end(); diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/BigQueryTelemetryTracer.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/BigQueryTelemetryTracer.java index bf2567f1e2b2..1a0a2d41631b 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/BigQueryTelemetryTracer.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/BigQueryTelemetryTracer.java @@ -19,6 +19,8 @@ import com.google.api.client.googleapis.json.GoogleJsonError; import com.google.api.client.googleapis.json.GoogleJsonResponseException; import com.google.api.core.InternalApi; +import com.google.api.gax.tracing.ErrorTypeUtil; +import com.google.api.gax.tracing.ObservabilityAttributes; import io.opentelemetry.api.common.AttributeKey; import io.opentelemetry.api.trace.Span; import io.opentelemetry.api.trace.StatusCode; @@ -37,27 +39,30 @@ private BigQueryTelemetryTracer() {} // https://github.com/googleapis/google-cloud-java/issues/12099 // Common GCP Attributes public static final AttributeKey GCP_CLIENT_SERVICE = - AttributeKey.stringKey("gcp.client.service"); + AttributeKey.stringKey(ObservabilityAttributes.GCP_CLIENT_SERVICE_ATTRIBUTE); public static final AttributeKey GCP_CLIENT_VERSION = AttributeKey.stringKey("gcp.client.version"); public static final AttributeKey GCP_CLIENT_REPO = - AttributeKey.stringKey("gcp.client.repo"); + AttributeKey.stringKey(ObservabilityAttributes.REPO_ATTRIBUTE); public static final AttributeKey GCP_CLIENT_ARTIFACT = AttributeKey.stringKey("gcp.client.artifact"); public static final AttributeKey GCP_RESOURCE_DESTINATION_ID = - AttributeKey.stringKey("gcp.resource.destination.id"); + AttributeKey.stringKey(ObservabilityAttributes.DESTINATION_RESOURCE_ID_ATTRIBUTE); public static final AttributeKey RPC_SYSTEM_NAME = - AttributeKey.stringKey("rpc.system.name"); + AttributeKey.stringKey(ObservabilityAttributes.RPC_SYSTEM_NAME_ATTRIBUTE); // Common Error Attributes - public static final AttributeKey ERROR_TYPE = AttributeKey.stringKey("error.type"); + public static final AttributeKey ERROR_TYPE = + AttributeKey.stringKey(ObservabilityAttributes.ERROR_TYPE_ATTRIBUTE); public static final AttributeKey EXCEPTION_TYPE = - AttributeKey.stringKey("exception.type"); + AttributeKey.stringKey(ObservabilityAttributes.EXCEPTION_TYPE_ATTRIBUTE); public static final AttributeKey STATUS_MESSAGE = - AttributeKey.stringKey("status.message"); + AttributeKey.stringKey(ObservabilityAttributes.STATUS_MESSAGE_ATTRIBUTE); - public static final AttributeKey URL_TEMPLATE = AttributeKey.stringKey("url.template"); - public static final AttributeKey URL_DOMAIN = AttributeKey.stringKey("url.domain"); + public static final AttributeKey URL_TEMPLATE = + AttributeKey.stringKey(ObservabilityAttributes.URL_TEMPLATE_ATTRIBUTE); + public static final AttributeKey URL_DOMAIN = + AttributeKey.stringKey(ObservabilityAttributes.URL_DOMAIN_ATTRIBUTE); public static void addCommonAttributeToSpan(Span span) { span.setAttribute(GCP_CLIENT_SERVICE, BQ_GCP_CLIENT_SERVICE) @@ -77,8 +82,7 @@ public static void addExceptionToSpan(Exception e, Span span) { String simpleName = e.getClass().getSimpleName(); String statusMessage = simpleName + (message != null ? ": " + message : ""); span.setAttribute(BigQueryTelemetryTracer.EXCEPTION_TYPE, e.getClass().getName()); - span.setAttribute( - BigQueryTelemetryTracer.ERROR_TYPE, ErrorTypeUtil.getClientErrorType(e).toString()); + span.setAttribute(BigQueryTelemetryTracer.ERROR_TYPE, ErrorTypeUtil.extractErrorType(e)); span.setAttribute(BigQueryTelemetryTracer.STATUS_MESSAGE, statusMessage); span.setStatus(StatusCode.ERROR, statusMessage); } diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/ErrorTypeUtil.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/ErrorTypeUtil.java deleted file mode 100644 index 48cc4b2a3d7e..000000000000 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/ErrorTypeUtil.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2026 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. - */ -package com.google.cloud.bigquery.telemetry; - -/** - * Utility class for identifying exception types for telemetry tracking. TODO: this class should get - * replaced with gax version when ready work tracked in - * https://github.com/googleapis/google-cloud-java/issues/12105 - */ -class ErrorTypeUtil { - - enum ErrorType { - CLIENT_TIMEOUT, - CLIENT_CONNECTION_ERROR, - CLIENT_REQUEST_ERROR, - CLIENT_RESPONSE_DECODE_ERROR, - CLIENT_UNKNOWN_ERROR; - - @Override - public String toString() { - return name(); - } - } - - static boolean isClientTimeout(Exception e) { - return e instanceof java.net.SocketTimeoutException; - } - - static boolean isClientConnectionError(Exception e) { - return e instanceof java.net.ConnectException - || e instanceof java.net.UnknownHostException - || e instanceof javax.net.ssl.SSLHandshakeException - || e instanceof java.nio.channels.UnresolvedAddressException; - } - - static boolean isClientResponseDecodeError(Exception e) { - return e instanceof com.google.gson.JsonParseException; - } - - static boolean isClientRequestError(Exception e) { - return e instanceof java.lang.IllegalArgumentException; - } - - static ErrorType getClientErrorType(Exception e) { - if (isClientTimeout(e)) { - return ErrorType.CLIENT_TIMEOUT; - } else if (isClientConnectionError(e)) { - return ErrorType.CLIENT_CONNECTION_ERROR; - } else if (isClientResponseDecodeError(e)) { - return ErrorType.CLIENT_RESPONSE_DECODE_ERROR; - } else if (isClientRequestError(e)) { - return ErrorType.CLIENT_REQUEST_ERROR; - } else { - return ErrorType.CLIENT_UNKNOWN_ERROR; - } - } -} diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/Version.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/Version.java index c609baa5e14a..55eef35ca71c 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/Version.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/Version.java @@ -25,6 +25,6 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquery:current} - static final String VERSION = "2.65.0"; + static final String VERSION = "2.66.0"; // {x-version-update-end} } diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java index 958e20659868..e6b08ec6b8a3 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java @@ -151,6 +151,18 @@ public void testInt64Timestamp() { assertEquals(expected, received); } + @Test + public void testLosslessMaxTimestamp() { + // Test the lossless behavior (useInt64Timestamps = true) + // The backend returns a 64-bit integer string for microseconds when this option is enabled + String losslessTimestampString = "253402300799999999"; + FieldValue losslessValue = + FieldValue.of(FieldValue.Attribute.PRIMITIVE, losslessTimestampString, true); + + // Exactly matches the microsecond equivalent of 9999-12-31 23:59:59.999999 + assertEquals(253402300799999999L, losslessValue.getTimestampValue()); + } + @Test public void testEquals() { FieldValue booleanValue = FieldValue.of(FieldValue.Attribute.PRIMITIVE, "false"); diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 25b90dc942ee..3cc3c47acc54 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -1215,6 +1215,56 @@ static GoogleCredentials loadCredentials(String credentialFile) { } } + @Test + void testLosslessMaxTimestampIntegration() throws InterruptedException { + String query = "SELECT TIMESTAMP '9999-12-31 23:59:59.999999 UTC' as max_ts"; + QueryJobConfiguration config = QueryJobConfiguration.newBuilder(query).build(); + + // 1. Test lossless 64-bit integer parsing (useInt64Timestamps = true) + DataFormatOptions losslessOptions = + DataFormatOptions.newBuilder().useInt64Timestamp(true).build(); + BigQuery losslessBigQuery = + bigquery.getOptions().toBuilder() + .setDataFormatOptions(losslessOptions) + .build() + .getService(); + + TableResult losslessResult = losslessBigQuery.query(config); + assertEquals(1L, losslessResult.getTotalRows()); + for (FieldValueList row : losslessResult.iterateAll()) { + long exactMicros = row.get("max_ts").getTimestampValue(); + assertEquals(253402300799999999L, exactMicros); + } + + // 2. Test lossy FLOAT64 rounding behavior (useInt64Timestamps = false) + DataFormatOptions floatOptions = + DataFormatOptions.newBuilder().useInt64Timestamp(false).build(); + BigQuery floatBigQuery = + bigquery.getOptions().toBuilder().setDataFormatOptions(floatOptions).build().getService(); + + TableResult floatResult = floatBigQuery.query(config); + assertEquals(1L, floatResult.getTotalRows()); + for (FieldValueList row : floatResult.iterateAll()) { + long roundedMicros = row.get("max_ts").getTimestampValue(); + assertEquals(253402300800000000L, roundedMicros); + } + + // 3. Test ISO8601 timestamp formatting + DataFormatOptions isoOptions = + DataFormatOptions.newBuilder() + .timestampFormatOptions(DataFormatOptions.TimestampFormatOptions.ISO8601_STRING) + .build(); + BigQuery isoBigQuery = + bigquery.getOptions().toBuilder().setDataFormatOptions(isoOptions).build().getService(); + + TableResult isoResult = isoBigQuery.query(config); + assertEquals(1L, isoResult.getTotalRows()); + for (FieldValueList row : isoResult.iterateAll()) { + String isoValue = row.get("max_ts").getStringValue(); + assertEquals("9999-12-31T23:59:59.999999Z", isoValue); + } + } + @Test void testListDatasets() { Page datasets = bigquery.listDatasets("bigquery-public-data"); @@ -4732,7 +4782,13 @@ void testLocationFastSQLQueryWithJobId() throws InterruptedException { // Use `getNumDmlAffectedRows()` for DML operations Job queryJob = bigquery.getJob(result.getJobId()); queryJob = queryJob.waitFor(); + assertNull( + queryJob.getStatus().getError(), + "Job failed with error: " + queryJob.getStatus().getError()); + JobStatistics.QueryStatistics statistics = queryJob.getStatistics(); + assertNotNull( + statistics.getNumDmlAffectedRows(), "DML affected rows statistics should not be null"); assertEquals(1L, statistics.getNumDmlAffectedRows().longValue()); // Verify correctness of table content @@ -7431,22 +7487,36 @@ void testQueryWithTimeout() throws InterruptedException { } // Stateful query returns Job - // Test scenario 2 to ensure job is created if JobCreationMode is set, but for a small query - // it still returns results. + // Test scenario 2 to ensure job is created if Query is long running. + // Explicitly disable cache to ensure it is long-running query; + config = QueryJobConfiguration.newBuilder(largeQuery).setUseQueryCache(false).build(); + long millis = System.currentTimeMillis(); + result = bigQuery.queryWithTimeout(config, null, 1000L); + millis = System.currentTimeMillis() - millis; + assertTrue(result instanceof Job); + // Cancel the job as we don't need results. + ((Job) result).cancel(); + // Allow 2 seconds of timeout value to account for random delays + assertTrue(millis < 1_000_000 * 2); + + // Stateful query returns Job + // Test scenario 3 to ensure job is created if JobCreationMode is set. config = QueryJobConfiguration.newBuilder(query) .setJobCreationMode(JobCreationMode.JOB_CREATION_REQUIRED) .build(); result = bigQuery.queryWithTimeout(config, null, null); - assertTrue(result instanceof TableResult); - assertNotNull(((TableResult) result).getJobId()); - assertNull(((TableResult) result).getQueryId()); + assertTrue(result instanceof Job); // Stateful query returns Job - // Test scenario 3 to ensure job is created if Query is long running. + // Test scenario 4 to ensure job is created if Query is long running. // Explicitly disable cache to ensure it is long-running query; - config = QueryJobConfiguration.newBuilder(largeQuery).setUseQueryCache(false).build(); - long millis = System.currentTimeMillis(); + config = + QueryJobConfiguration.newBuilder(largeQuery) + .setJobCreationMode(JobCreationMode.JOB_CREATION_REQUIRED) + .setUseQueryCache(false) + .build(); + millis = System.currentTimeMillis(); result = bigQuery.queryWithTimeout(config, null, 1000L); millis = System.currentTimeMillis() - millis; assertTrue(result instanceof Job); @@ -7745,6 +7815,7 @@ public void testOpenTelemetryTracingDatasets() { BigQueryOptions.newBuilder() .setEnableOpenTelemetryTracing(true) .setOpenTelemetryTracer(tracer) + .setLocation("US") .build(); BigQuery bigquery = otelOptions.getService(); @@ -7762,6 +7833,7 @@ public void testOpenTelemetryTracingDatasets() { .setDescription(DESCRIPTION) .setMaxTimeTravelHours(72L) .setLabels(LABELS) + .setLocation("US") .build(); Dataset dataset = bigquery.create(info); @@ -7783,7 +7855,7 @@ public void testOpenTelemetryTracingDatasets() { parentSpan.end(); Map, Object> createMap = OTEL_ATTRIBUTES.get("com.google.cloud.bigquery.BigQuery.createDataset"); - assertEquals("null", createMap.get(AttributeKey.stringKey("bq.dataset.location"))); + assertEquals("US", createMap.get(AttributeKey.stringKey("bq.dataset.location"))); assertEquals( "DatasetService", OTEL_ATTRIBUTES @@ -7889,7 +7961,17 @@ public void testOpenTelemetryTracingQuery() throws InterruptedException { bigquery.getOptions().setDefaultJobCreationMode(JobCreationMode.JOB_CREATION_OPTIONAL); TableResult tableResult = executeSimpleQuery(bigquery); assertNotNull(tableResult.getQueryId()); - assertNull(tableResult.getJobId()); + + // Safely handle the fallback where BigQuery determines a job must be created + // even if the mode is optional. Most requests will be stateless, but it is still + // possible that the BQ engine will create a job even for tiny requests. + if (tableResult.getJobCreationReason() != null) { + assertNotNull(tableResult.getJobId()); + assertEquals(tableResult.getQueryId(), tableResult.getJobId().getJob()); + assertEquals(JobCreationReason.Code.OTHER, tableResult.getJobCreationReason().getCode()); + } else { + assertNull(tableResult.getJobId()); + } assertNotNull(OTEL_ATTRIBUTES.get("com.google.cloud.bigquery.BigQuery.queryRpc")); assertNotNull( diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITOpenTelemetryTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITOpenTelemetryTest.java index 34b0ed2cff8d..2b477754b531 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITOpenTelemetryTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITOpenTelemetryTest.java @@ -99,10 +99,14 @@ public void testListDatasetsTraced() { assertEquals(200L, attrs.get(HttpTracingRequestInitializer.HTTP_RESPONSE_STATUS_CODE)); assertEquals("bigquery.googleapis.com", attrs.get(BigQueryTelemetryTracer.URL_DOMAIN)); assertEquals( - "https://bigquery.googleapis.com/bigquery/v2/projects/gcloud-devel/datasets?prettyPrint=false", + "https://bigquery.googleapis.com/bigquery/v2/projects/" + + bigqueryHelper.getOptions().getProjectId() + + "/datasets?prettyPrint=false", attrs.get(HttpTracingRequestInitializer.URL_FULL)); assertEquals( - "//bigquery.googleapis.com/projects/gcloud-devel/datasets", + "//bigquery.googleapis.com/projects/" + + bigqueryHelper.getOptions().getProjectId() + + "/datasets", attrs.get(BigQueryTelemetryTracer.GCP_RESOURCE_DESTINATION_ID)); assertEquals( "projects/{+projectId}/datasets", attrs.get(BigQueryTelemetryTracer.URL_TEMPLATE)); @@ -146,19 +150,25 @@ public void testGetDatasetNotFoundTraced() { "projects/{+projectId}/datasets/{+datasetId}", attrs.get(BigQueryTelemetryTracer.URL_TEMPLATE)); assertEquals( - "https://bigquery.googleapis.com/bigquery/v2/projects/gcloud-devel/datasets/non_existent_dataset?prettyPrint=false", + "https://bigquery.googleapis.com/bigquery/v2/projects/" + + bigqueryHelper.getOptions().getProjectId() + + "/datasets/non_existent_dataset?prettyPrint=false", attrs.get(HttpTracingRequestInitializer.URL_FULL)); assertEquals( "bigquery.googleapis.com", attrs.get(HttpTracingRequestInitializer.SERVER_ADDRESS)); assertEquals("bigquery.googleapis.com", attrs.get(BigQueryTelemetryTracer.URL_DOMAIN)); assertEquals( - "//bigquery.googleapis.com/projects/gcloud-devel/datasets/non_existent_dataset", + "//bigquery.googleapis.com/projects/" + + bigqueryHelper.getOptions().getProjectId() + + "/datasets/non_existent_dataset", attrs.get(BigQueryTelemetryTracer.GCP_RESOURCE_DESTINATION_ID)); // Error attributes assertEquals("notFound", attrs.get(BigQueryTelemetryTracer.ERROR_TYPE)); assertEquals( - "Not found: Dataset gcloud-devel:non_existent_dataset", + "Not found: Dataset " + + bigqueryHelper.getOptions().getProjectId() + + ":non_existent_dataset", attrs.get(BigQueryTelemetryTracer.STATUS_MESSAGE)); } } @@ -197,7 +207,9 @@ public void testClientErrorAndRetriesTraced() { Map, Object> attrs = span.getAttributes().asMap(); checkGeneralAttributes(attrs); assertEquals( - "https://invalid-host-name-12345.com:8080/bigquery/v2/projects/gcloud-devel/datasets?prettyPrint=false", + "https://invalid-host-name-12345.com:8080/bigquery/v2/projects/" + + bigqueryHelper.getOptions().getProjectId() + + "/datasets?prettyPrint=false", (String) attrs.get(HttpTracingRequestInitializer.URL_FULL)); assertEquals( "invalid-host-name-12345.com", attrs.get(HttpTracingRequestInitializer.SERVER_ADDRESS)); @@ -206,7 +218,9 @@ public void testClientErrorAndRetriesTraced() { assertEquals( "projects/{+projectId}/datasets", attrs.get(BigQueryTelemetryTracer.URL_TEMPLATE)); assertEquals( - "//bigquery.googleapis.com/projects/gcloud-devel/datasets", + "//bigquery.googleapis.com/projects/" + + bigqueryHelper.getOptions().getProjectId() + + "/datasets", attrs.get(BigQueryTelemetryTracer.GCP_RESOURCE_DESTINATION_ID)); checkRetryAttribute(span, rpcSpanCount); diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java index 33716417ed09..b01515a5639d 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java @@ -1079,8 +1079,7 @@ public void testHttpTracingEnabled_GenericException_SetsAttributes() throws Exce assertEquals( "java.io.IOException", rpcSpan.getAttributes().get(BigQueryTelemetryTracer.EXCEPTION_TYPE)); - assertEquals( - "CLIENT_UNKNOWN_ERROR", rpcSpan.getAttributes().get(BigQueryTelemetryTracer.ERROR_TYPE)); + assertEquals("IOException", rpcSpan.getAttributes().get(BigQueryTelemetryTracer.ERROR_TYPE)); } @Test diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/telemetry/BigQueryTelemetryTracerTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/telemetry/BigQueryTelemetryTracerTest.java index 91ef36fe3110..6ee68930ad87 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/telemetry/BigQueryTelemetryTracerTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/telemetry/BigQueryTelemetryTracerTest.java @@ -143,7 +143,7 @@ public void testAddExceptionToSpan_WithMessage() { assertEquals( "java.lang.Exception", spanData.getAttributes().get(BigQueryTelemetryTracer.EXCEPTION_TYPE)); - assertErrorSpanAttributes("CLIENT_UNKNOWN_ERROR", "Exception: Test error message"); + assertErrorSpanAttributes("Exception", "Exception: Test error message"); } @Test @@ -160,8 +160,7 @@ public void testAddExceptionToSpan_NoMessage() { "java.lang.Exception", spanData.getAttributes().get(BigQueryTelemetryTracer.EXCEPTION_TYPE)); assertEquals("Exception", spanData.getAttributes().get(BigQueryTelemetryTracer.STATUS_MESSAGE)); - assertEquals( - "CLIENT_UNKNOWN_ERROR", spanData.getAttributes().get(BigQueryTelemetryTracer.ERROR_TYPE)); + assertEquals("Exception", spanData.getAttributes().get(BigQueryTelemetryTracer.ERROR_TYPE)); } @Test diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/telemetry/ErrorTypeUtilTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/telemetry/ErrorTypeUtilTest.java deleted file mode 100644 index 933790437a4c..000000000000 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/telemetry/ErrorTypeUtilTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2026 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. - */ - -package com.google.cloud.bigquery.telemetry; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.google.cloud.bigquery.telemetry.ErrorTypeUtil.ErrorType; -import com.google.gson.JsonParseException; -import java.net.ConnectException; -import java.net.SocketTimeoutException; -import org.junit.jupiter.api.Test; - -public class ErrorTypeUtilTest { - - @Test - public void testGetClientErrorType_Timeout() { - assertEquals( - ErrorType.CLIENT_TIMEOUT, ErrorTypeUtil.getClientErrorType(new SocketTimeoutException())); - } - - @Test - public void testGetClientErrorType_ConnectionError() { - assertEquals( - ErrorType.CLIENT_CONNECTION_ERROR, - ErrorTypeUtil.getClientErrorType(new ConnectException())); - } - - @Test - public void testGetClientErrorType_ResponseDecodeError() { - assertEquals( - ErrorType.CLIENT_RESPONSE_DECODE_ERROR, - ErrorTypeUtil.getClientErrorType(new JsonParseException(""))); - } - - @Test - public void testGetClientErrorType_RequestError() { - assertEquals( - ErrorType.CLIENT_REQUEST_ERROR, - ErrorTypeUtil.getClientErrorType(new IllegalArgumentException())); - } - - @Test - public void testGetClientErrorType_UnknownError() { - assertEquals(ErrorType.CLIENT_UNKNOWN_ERROR, ErrorTypeUtil.getClientErrorType(new Exception())); - } - - @Test - public void testErrorTypeToString() { - assertEquals("CLIENT_TIMEOUT", ErrorType.CLIENT_TIMEOUT.toString()); - assertEquals("CLIENT_CONNECTION_ERROR", ErrorType.CLIENT_CONNECTION_ERROR.toString()); - } -} diff --git a/java-bigquery/pom.xml b/java-bigquery/pom.xml index 32c57059eb96..a70848e43f19 100644 --- a/java-bigquery/pom.xml +++ b/java-bigquery/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquery-parent pom - 2.65.0 + 2.66.0 BigQuery Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-bigquery - 2.65.0 + 2.66.0 @@ -88,19 +88,19 @@ com.google.cloud google-cloud-storage - 2.67.0 + 2.68.0 test com.google.cloud google-cloud-bigqueryconnection - 2.93.0 + 2.94.0 test com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.93.0 + 2.94.0 test diff --git a/java-bigquery/samples/install-without-bom/pom.xml b/java-bigquery/samples/install-without-bom/pom.xml index cfcf9c503fe8..eacf89529788 100644 --- a/java-bigquery/samples/install-without-bom/pom.xml +++ b/java-bigquery/samples/install-without-bom/pom.xml @@ -37,7 +37,7 @@ 1.8 1.8 UTF-8 - 1.52.0 + 1.57.0 diff --git a/java-bigquery/samples/snapshot/pom.xml b/java-bigquery/samples/snapshot/pom.xml index c60c57612b22..bb9f10f5630f 100644 --- a/java-bigquery/samples/snapshot/pom.xml +++ b/java-bigquery/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ com.google.cloud google-cloud-bigquery - 2.65.0 + 2.66.0 diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 8ecfe6d6efcc..1b97b10af59d 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.92.0 + 2.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.92.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.93.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index b53315909519..dd386910aa46 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.93.0 + 2.94.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.93.0 + 2.94.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.93.0 + 2.94.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.101.0 + 0.102.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.93.0 + 2.94.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.101.0 + 0.102.0
diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml index 4f68c5d48e8a..c5621a49b7e3 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 2.93.0 + 2.94.0 jar Google Cloud BigQuery Connections is about com.google.cloud google-cloud-bigqueryconnection-parent - 2.93.0 + 2.94.0 google-cloud-bigqueryconnection diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/Version.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/Version.java index 7a2ac1189d0a..ddd0aa6d015c 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/Version.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigqueryconnection:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0"; // {x-version-update-end} } diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/Version.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/Version.java index 425d7148c9ff..986b674d2299 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/Version.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigqueryconnection:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0"; // {x-version-update-end} } diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml index f6322c559e28..8e67284910c7 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.93.0 + 2.94.0 grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.93.0 + 2.94.0 diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index 29a312575047..7c2aead03cf0 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.101.0 + 0.102.0 grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.93.0 + 2.94.0 diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index 027c3bf8dcd5..e90f056b89af 100644 --- a/java-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 2.93.0 + 2.94.0 Google Cloud BigQuery Connections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.93.0 + 2.94.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.93.0 + 2.94.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.93.0 + 2.94.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.101.0 + 0.102.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.101.0 + 0.102.0 diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml index abda59982367..e0ef485aff48 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.93.0 + 2.94.0 proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.93.0 + 2.94.0 diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index 168fa0cbac2a..66ef4d0460c7 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.101.0 + 0.102.0 proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.93.0 + 2.94.0 diff --git a/java-bigquerydatapolicy/.repo-metadata.json b/java-bigquerydatapolicy/.repo-metadata.json index 54a9a50993c6..7a98b66e657d 100644 --- a/java-bigquerydatapolicy/.repo-metadata.json +++ b/java-bigquerydatapolicy/.repo-metadata.json @@ -2,7 +2,7 @@ "api_shortname": "bigquerydatapolicy", "name_pretty": "BigQuery DataPolicy API", "product_documentation": "https://cloud.google.com/bigquery/docs/reference/datapolicy/", - "api_description": "", + "api_description": "Allows users to manage BigQuery data policies.", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview", "release_level": "preview", "transport": "both", diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 768e4cebdd20..7f8835b2db05 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.87.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.87.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.88.0" ``` ## Authentication @@ -87,7 +87,7 @@ to add `google-cloud-bigquerydatapolicy` as a dependency in your code. ## About BigQuery DataPolicy API -[BigQuery DataPolicy API][product-docs] +[BigQuery DataPolicy API][product-docs] Allows users to manage BigQuery data policies. See the [BigQuery DataPolicy API client library docs][javadocs] to learn how to use this BigQuery DataPolicy API Client Library. @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.88.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index 525c3cd73884..ab9a5fb3e928 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.88.0 + 0.89.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml index 5046443f6955..09f070f78896 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy - 0.88.0 + 0.89.0 jar Google BigQuery DataPolicy API BigQuery DataPolicy API com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 google-cloud-bigquerydatapolicy diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/Version.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/Version.java index a2c8a19e9656..4c8c7cfb4c34 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/Version.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatapolicy:current} - static final String VERSION = "0.88.0"; + static final String VERSION = "0.89.0"; // {x-version-update-end} } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/Version.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/Version.java index 0d41e7d642d6..87bd63e642c8 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/Version.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatapolicy:current} - static final String VERSION = "0.88.0"; + static final String VERSION = "0.89.0"; // {x-version-update-end} } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/Version.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/Version.java index 07fbe67124b2..9705b951dd88 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/Version.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatapolicy:current} - static final String VERSION = "0.88.0"; + static final String VERSION = "0.89.0"; // {x-version-update-end} } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/Version.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/Version.java index f7364a4f1c8e..68a10b88011a 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/Version.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatapolicy:current} - static final String VERSION = "0.88.0"; + static final String VERSION = "0.89.0"; // {x-version-update-end} } diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml index 59f263a574d1..a6535a811aea 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.88.0 + 0.89.0 grpc-google-cloud-bigquerydatapolicy-v1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index 7570d67742ab..dd83b6e01852 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.88.0 + 0.89.0 grpc-google-cloud-bigquerydatapolicy-v1beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml index 6f6c6e22474b..28b954cf3fac 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.88.0 + 0.89.0 grpc-google-cloud-bigquerydatapolicy-v2 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml index 635883497001..d281189b1b06 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.88.0 + 0.89.0 grpc-google-cloud-bigquerydatapolicy-v2beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index 5fd49068d14e..45f548835267 100644 --- a/java-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatapolicy-parent pom - 0.88.0 + 0.89.0 Google BigQuery DataPolicy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml index 458071356292..8b772b9d5aed 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.88.0 + 0.89.0 proto-google-cloud-bigquerydatapolicy-v1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index 845913b9314b..4b81266968e1 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.88.0 + 0.89.0 proto-google-cloud-bigquerydatapolicy-v1beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml index 2535236f194b..4ce8ce38798d 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.88.0 + 0.89.0 proto-google-cloud-bigquerydatapolicy-v2 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml index 4a5d56376246..e9fb6fd5928b 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.88.0 + 0.89.0 proto-google-cloud-bigquerydatapolicy-v2beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.88.0 + 0.89.0 diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 72dc2289214c..570f096b2cb2 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.90.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatatransfer/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index 8d89706f4283..13b1e09d3e12 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.91.0 + 2.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigquerydatatransfer - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.91.0 + 2.92.0 diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml index 9f4126cf5186..41d2ef0ce986 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.91.0 + 2.92.0 jar BigQuery DataTransfer BigQuery DataTransfer com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.91.0 + 2.92.0 google-cloud-bigquerydatatransfer diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/Version.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/Version.java index 096308be8f6f..3a9756459e6b 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/Version.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatatransfer:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 663dfb8c943f..28ed929a4f3b 100644 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.91.0 + 2.92.0 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.91.0 + 2.92.0 diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index 80b889228d17..f48b4d920813 100644 --- a/java-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatatransfer-parent pom - 2.91.0 + 2.92.0 BigQuery DataTransfer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.91.0 + 2.92.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.91.0 + 2.92.0 diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 7a3b3f212bf1..ef90de5549ab 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.91.0 + 2.92.0 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.91.0 + 2.92.0 diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index 40c8f24c3fd9..665682b335a8 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.93.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.93.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.94.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerymigration/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index 4d2d1f774eca..c3041653d70d 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration-bom - 0.94.0 + 0.95.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.94.0 + 0.95.0 diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml index 66e93074c3ac..37122658ea83 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration - 0.94.0 + 0.95.0 jar Google BigQuery Migration BigQuery Migration BigQuery Migration API com.google.cloud google-cloud-bigquerymigration-parent - 0.94.0 + 0.95.0 google-cloud-bigquerymigration diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/Version.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/Version.java index 75d1ab0c6b55..2d476d370605 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/Version.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerymigration:current} - static final String VERSION = "0.94.0"; + static final String VERSION = "0.95.0"; // {x-version-update-end} } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/Version.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/Version.java index 52b43f19392f..ae5165843328 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/Version.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerymigration:current} - static final String VERSION = "0.94.0"; + static final String VERSION = "0.95.0"; // {x-version-update-end} } diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml index 86ffcf2fe958..b6e87ac70770 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.94.0 + 0.95.0 grpc-google-cloud-bigquerymigration-v2 GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.94.0 + 0.95.0 diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml index 06756379c4c4..e826b7ec70f8 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.94.0 + 0.95.0 grpc-google-cloud-bigquerymigration-v2alpha GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.94.0 + 0.95.0 diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index 74c1774984a2..cdbe769266a6 100644 --- a/java-bigquerymigration/pom.xml +++ b/java-bigquerymigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerymigration-parent pom - 0.94.0 + 0.95.0 Google BigQuery Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.94.0 + 0.95.0 diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml index 00fe508507cc..6f79958923e7 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.94.0 + 0.95.0 proto-google-cloud-bigquerymigration-v2 Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.94.0 + 0.95.0 diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml index f73acc4cd5a6..4bd96f1d637a 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.94.0 + 0.95.0 proto-google-cloud-bigquerymigration-v2alpha Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.94.0 + 0.95.0 diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index ca3b46d375a4..1fd2898f58cb 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.91.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.91.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.92.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigqueryreservation/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index fe954e3c2aee..7984bb49c44b 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation-bom - 2.92.0 + 2.93.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.92.0 + 2.93.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.92.0 + 2.93.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.92.0 + 2.93.0 diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml index 42cbf238b329..15ff11b0909a 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation - 2.92.0 + 2.93.0 jar Google Cloud BigQuery Reservations allows users to manage their flat-rate BigQuery reservations. com.google.cloud google-cloud-bigqueryreservation-parent - 2.92.0 + 2.93.0 google-cloud-bigqueryreservation diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/Version.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/Version.java index 300fface8c5e..54363b68e8e0 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/Version.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigqueryreservation:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0"; // {x-version-update-end} } diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java index e5ea62a7824c..84e6d5e1b5f8 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java @@ -1395,6 +1395,7 @@ public void createAssignmentTest() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockService.addResponse(expectedResponse); @@ -1446,6 +1447,7 @@ public void createAssignmentTest2() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockService.addResponse(expectedResponse); @@ -1891,6 +1893,7 @@ public void moveAssignmentTest() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockService.addResponse(expectedResponse); @@ -1945,6 +1948,7 @@ public void moveAssignmentTest2() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockService.addResponse(expectedResponse); @@ -1998,6 +2002,7 @@ public void moveAssignmentTest3() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockService.addResponse(expectedResponse); @@ -2052,6 +2057,7 @@ public void moveAssignmentTest4() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockService.addResponse(expectedResponse); @@ -2105,6 +2111,7 @@ public void updateAssignmentTest() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockService.addResponse(expectedResponse); @@ -2116,6 +2123,7 @@ public void updateAssignmentTest() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2153,6 +2161,7 @@ public void updateAssignmentExceptionTest() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAssignment(assignment, updateMask); diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java index 81b7ebf11ff4..785c1cd36334 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java @@ -1220,6 +1220,7 @@ public void createAssignmentTest() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockReservationService.addResponse(expectedResponse); @@ -1266,6 +1267,7 @@ public void createAssignmentTest2() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockReservationService.addResponse(expectedResponse); @@ -1662,6 +1664,7 @@ public void moveAssignmentTest() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockReservationService.addResponse(expectedResponse); @@ -1711,6 +1714,7 @@ public void moveAssignmentTest2() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockReservationService.addResponse(expectedResponse); @@ -1759,6 +1763,7 @@ public void moveAssignmentTest3() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockReservationService.addResponse(expectedResponse); @@ -1806,6 +1811,7 @@ public void moveAssignmentTest4() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockReservationService.addResponse(expectedResponse); @@ -1852,6 +1858,7 @@ public void updateAssignmentTest() throws Exception { .setAssignee("assignee-369881649") .setEnableGeminiInBigquery(true) .setSchedulingPolicy(SchedulingPolicy.newBuilder().build()) + .setPrincipal("principal-1812041682") .build(); mockReservationService.addResponse(expectedResponse); diff --git a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml index ec9c23617c19..871ea78353b4 100644 --- a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.92.0 + 2.93.0 grpc-google-cloud-bigqueryreservation-v1 GRPC library for grpc-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.92.0 + 2.93.0 diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index 825aaff8c7aa..25afbfb17d8a 100644 --- a/java-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryreservation-parent pom - 2.92.0 + 2.93.0 Google Cloud BigQuery Reservations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.92.0 + 2.93.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.92.0 + 2.93.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.92.0 + 2.93.0 diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml index 8e1d443b5e35..3222f0e4269b 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.92.0 + 2.93.0 proto-google-cloud-bigqueryreservation-v1 PROTO library for proto-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.92.0 + 2.93.0 diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Assignment.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Assignment.java index 43f79406516d..c9600f6e73b2 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Assignment.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Assignment.java @@ -57,6 +57,7 @@ private Assignment() { assignee_ = ""; jobType_ = 0; state_ = 0; + principal_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -884,6 +885,87 @@ public com.google.cloud.bigquery.reservation.v1.SchedulingPolicy getSchedulingPo : schedulingPolicy_; } + public static final int PRINCIPAL_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object principal_ = ""; + + /** + * + * + *
+   * Optional. Represents the principal for this assignment. If not empty, jobs
+   * run by this principal will utilize the associated reservation. Otherwise,
+   * jobs will fall back to using the reservation assigned to the project,
+   * folder, or organization (in that order). If no reservation is assigned at
+   * any of these levels, on-demand capacity will be used.
+   *
+   * The supported formats are:
+   *
+   * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+   * for service accounts,
+   * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+   * for workload identity pool identities.
+   * * The special value `unknown_or_deleted_user` represents principals which
+   * cannot be read from the user info service, for example deleted users.
+   * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The principal. + */ + @java.lang.Override + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Represents the principal for this assignment. If not empty, jobs
+   * run by this principal will utilize the associated reservation. Otherwise,
+   * jobs will fall back to using the reservation assigned to the project,
+   * folder, or organization (in that order). If no reservation is assigned at
+   * any of these levels, on-demand capacity will be used.
+   *
+   * The supported formats are:
+   *
+   * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+   * for service accounts,
+   * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+   * for workload identity pool identities.
+   * * The special value `unknown_or_deleted_user` represents principals which
+   * cannot be read from the user info service, for example deleted users.
+   * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for principal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -920,6 +1002,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(11, getSchedulingPolicy()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(principal_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, principal_); + } getUnknownFields().writeTo(output); } @@ -951,6 +1036,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getSchedulingPolicy()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(principal_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, principal_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -976,6 +1064,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSchedulingPolicy()) { if (!getSchedulingPolicy().equals(other.getSchedulingPolicy())) return false; } + if (!getPrincipal().equals(other.getPrincipal())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1001,6 +1090,8 @@ public int hashCode() { hash = (37 * hash) + SCHEDULING_POLICY_FIELD_NUMBER; hash = (53 * hash) + getSchedulingPolicy().hashCode(); } + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1161,6 +1252,7 @@ public Builder clear() { schedulingPolicyBuilder_.dispose(); schedulingPolicyBuilder_ = null; } + principal_ = ""; return this; } @@ -1218,6 +1310,9 @@ private void buildPartial0(com.google.cloud.bigquery.reservation.v1.Assignment r schedulingPolicyBuilder_ == null ? schedulingPolicy_ : schedulingPolicyBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.principal_ = principal_; + } result.bitField0_ |= to_bitField0_; } @@ -1256,6 +1351,11 @@ public Builder mergeFrom(com.google.cloud.bigquery.reservation.v1.Assignment oth if (other.hasSchedulingPolicy()) { mergeSchedulingPolicy(other.getSchedulingPolicy()); } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1319,6 +1419,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 90 + case 98: + { + principal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2140,6 +2246,187 @@ public Builder clearSchedulingPolicy() { return schedulingPolicyBuilder_; } + private java.lang.Object principal_ = ""; + + /** + * + * + *
+     * Optional. Represents the principal for this assignment. If not empty, jobs
+     * run by this principal will utilize the associated reservation. Otherwise,
+     * jobs will fall back to using the reservation assigned to the project,
+     * folder, or organization (in that order). If no reservation is assigned at
+     * any of these levels, on-demand capacity will be used.
+     *
+     * The supported formats are:
+     *
+     * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+     * for service accounts,
+     * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+     * for workload identity pool identities.
+     * * The special value `unknown_or_deleted_user` represents principals which
+     * cannot be read from the user info service, for example deleted users.
+     * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The principal. + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Represents the principal for this assignment. If not empty, jobs
+     * run by this principal will utilize the associated reservation. Otherwise,
+     * jobs will fall back to using the reservation assigned to the project,
+     * folder, or organization (in that order). If no reservation is assigned at
+     * any of these levels, on-demand capacity will be used.
+     *
+     * The supported formats are:
+     *
+     * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+     * for service accounts,
+     * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+     * for workload identity pool identities.
+     * * The special value `unknown_or_deleted_user` represents principals which
+     * cannot be read from the user info service, for example deleted users.
+     * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for principal. + */ + public com.google.protobuf.ByteString getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Represents the principal for this assignment. If not empty, jobs
+     * run by this principal will utilize the associated reservation. Otherwise,
+     * jobs will fall back to using the reservation assigned to the project,
+     * folder, or organization (in that order). If no reservation is assigned at
+     * any of these levels, on-demand capacity will be used.
+     *
+     * The supported formats are:
+     *
+     * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+     * for service accounts,
+     * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+     * for workload identity pool identities.
+     * * The special value `unknown_or_deleted_user` represents principals which
+     * cannot be read from the user info service, for example deleted users.
+     * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The principal to set. + * @return This builder for chaining. + */ + public Builder setPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principal_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents the principal for this assignment. If not empty, jobs
+     * run by this principal will utilize the associated reservation. Otherwise,
+     * jobs will fall back to using the reservation assigned to the project,
+     * folder, or organization (in that order). If no reservation is assigned at
+     * any of these levels, on-demand capacity will be used.
+     *
+     * The supported formats are:
+     *
+     * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+     * for service accounts,
+     * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+     * for workload identity pool identities.
+     * * The special value `unknown_or_deleted_user` represents principals which
+     * cannot be read from the user info service, for example deleted users.
+     * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrincipal() { + principal_ = getDefaultInstance().getPrincipal(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents the principal for this assignment. If not empty, jobs
+     * run by this principal will utilize the associated reservation. Otherwise,
+     * jobs will fall back to using the reservation assigned to the project,
+     * folder, or organization (in that order). If no reservation is assigned at
+     * any of these levels, on-demand capacity will be used.
+     *
+     * The supported formats are:
+     *
+     * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+     * for service accounts,
+     * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+     * for workload identity pool identities.
+     * * The special value `unknown_or_deleted_user` represents principals which
+     * cannot be read from the user info service, for example deleted users.
+     * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for principal to set. + * @return This builder for chaining. + */ + public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principal_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.reservation.v1.Assignment) } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/AssignmentOrBuilder.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/AssignmentOrBuilder.java index ab24269c7d49..0e4755463a05 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/AssignmentOrBuilder.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/AssignmentOrBuilder.java @@ -225,4 +225,58 @@ public interface AssignmentOrBuilder * */ com.google.cloud.bigquery.reservation.v1.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder(); + + /** + * + * + *
+   * Optional. Represents the principal for this assignment. If not empty, jobs
+   * run by this principal will utilize the associated reservation. Otherwise,
+   * jobs will fall back to using the reservation assigned to the project,
+   * folder, or organization (in that order). If no reservation is assigned at
+   * any of these levels, on-demand capacity will be used.
+   *
+   * The supported formats are:
+   *
+   * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+   * for service accounts,
+   * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+   * for workload identity pool identities.
+   * * The special value `unknown_or_deleted_user` represents principals which
+   * cannot be read from the user info service, for example deleted users.
+   * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The principal. + */ + java.lang.String getPrincipal(); + + /** + * + * + *
+   * Optional. Represents the principal for this assignment. If not empty, jobs
+   * run by this principal will utilize the associated reservation. Otherwise,
+   * jobs will fall back to using the reservation assigned to the project,
+   * folder, or organization (in that order). If no reservation is assigned at
+   * any of these levels, on-demand capacity will be used.
+   *
+   * The supported formats are:
+   *
+   * * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
+   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
+   * for service accounts,
+   * * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
+   * for workload identity pool identities.
+   * * The special value `unknown_or_deleted_user` represents principals which
+   * cannot be read from the user info service, for example deleted users.
+   * 
+ * + * string principal = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for principal. + */ + com.google.protobuf.ByteString getPrincipalBytes(); } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java index 251cfef190d1..f51a0466d529 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java @@ -143,7 +143,7 @@ public enum ScalingMode implements com.google.protobuf.ProtocolMessageEnum { * reservation will scale up to 1000 slots with 200 baseline and 800 idle * slots. * 2. if there are 500 idle slots available in other reservations, the - * reservation will scale up to 700 slots with 200 baseline and 300 idle + * reservation will scale up to 700 slots with 200 baseline and 500 idle * slots. * Please note, in this mode, the reservation might not be able to scale up * to max_slots. @@ -241,7 +241,7 @@ public enum ScalingMode implements com.google.protobuf.ProtocolMessageEnum { * reservation will scale up to 1000 slots with 200 baseline and 800 idle * slots. * 2. if there are 500 idle slots available in other reservations, the - * reservation will scale up to 700 slots with 200 baseline and 300 idle + * reservation will scale up to 700 slots with 200 baseline and 500 idle * slots. * Please note, in this mode, the reservation might not be able to scale up * to max_slots. diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java index 5a820ff92d52..cc1b320ebec0 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java @@ -421,7 +421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB:\372A7\0225bigqueryreservation.googleapis.com/CapacityCommitment\022\037\n" + "\027capacity_commitment_ids\030\002 \003(\t\022#\n" - + "\026capacity_commitment_id\030\003 \001(\tB\003\340A\001\"\231\006\n\n" + + "\026capacity_commitment_id\030\003 \001(\tB\003\340A\001\"\261\006\n\n" + "Assignment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\025\n" + "\010assignee\030\004 \001(\tB\003\340A\001\022O\n" @@ -432,7 +432,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031enable_gemini_in_bigquery\030\n" + " \001(\010B\005\030\001\340A\001\022V\n" + "\021scheduling_policy\030\013 \001(\01326.google.cloud.b" - + "igquery.reservation.v1.SchedulingPolicyB\003\340A\001\"\334\001\n" + + "igquery.reservation.v1.SchedulingPolicyB\003\340A\001\022\026\n" + + "\tprincipal\030\014 \001(\tB\003\340A\001\"\334\001\n" + "\007JobType\022\030\n" + "\024JOB_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010PIPELINE\020\001\022\t\n" @@ -447,24 +448,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\n\n" + "\006ACTIVE\020\002:\251\001\352A\245\001\n" - + "-bigqueryreservation.googleapis.com/Assignment\022[projects/{project}/l" - + "ocations/{location}/reservations/{reserv" - + "ation}/assignments/{assignment}*\013assignments2\n" + + "-bigqueryreservation.googleapis.com/Assignme" + + "nt\022[projects/{project}/locations/{locati" + + "on}/reservations/{reservation}/assignments/{assignment}*\013assignments2\n" + "assignment\"\275\001\n" + "\027CreateAssignmentRequest\022E\n" + "\006parent\030\001 \001(" + "\tB5\340A\002\372A/\022-bigqueryreservation.googleapis.com/Assignment\022D\n\n" - + "assignment\030\002" - + " \001(\01320.google.cloud.bigquery.reservation.v1.Assignment\022\025\n\r" + + "assignment\030\002 \001(\0132" + + "0.google.cloud.bigquery.reservation.v1.Assignment\022\025\n\r" + "assignment_id\030\004 \001(\t\"\206\001\n" + "\026ListAssignmentsRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-bigqueryreservation.googleapis.com/Assignment\022\021\n" + + "\006parent\030\001 \001(\tB5\340A\002" + + "\372A/\022-bigqueryreservation.googleapis.com/Assignment\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"y\n" + "\027ListAssignmentsResponse\022E\n" - + "\013assignments\030\001 \003(\01320.goog" - + "le.cloud.bigquery.reservation.v1.Assignment\022\027\n" + + "\013assignments\030\001" + + " \003(\01320.google.cloud.bigquery.reservation.v1.Assignment\022\027\n" + "\017next_page_token\030\002 \001(\t\"^\n" + "\027DeleteAssignmentRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -486,8 +487,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01320.google.cloud.bigquery.reservation.v1.Assignment\022\027\n" + "\017next_page_token\030\002 \001(\t\"~\n" + "\034SearchAllAssignmentsResponse\022E\n" - + "\013assignments\030\001 \003(\01320.google.c" - + "loud.bigquery.reservation.v1.Assignment\022\027\n" + + "\013assignments\030\001" + + " \003(\01320.google.cloud.bigquery.reservation.v1.Assignment\022\027\n" + "\017next_page_token\030\002 \001(\t\"\277\001\n" + "\025MoveAssignmentRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -507,16 +508,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004size\030\004 \001(\003B\003\340A\001\022S\n" - + "\020preferred_tables\030\005 \003(\01324.googl" - + "e.cloud.bigquery.reservation.v1.TableReferenceB\003\340A\001:l\352Ai\n" - + "0bigqueryreservation.googleapis.com/BiReservation\0225projects/{pr" - + "oject}/locations/{location}/biReservation\"a\n" + + "\020preferred_tables\030\005 \003(\01324.google.cloud.bigquery" + + ".reservation.v1.TableReferenceB\003\340A\001:l\352Ai\n" + + "0bigqueryreservation.googleapis.com/BiR" + + "eservation\0225projects/{project}/locations/{location}/biReservation\"a\n" + "\027GetBiReservationRequest\022F\n" + "\004name\030\001 \001(\tB8\340A\002\372A2\n" + "0bigqueryreservation.googleapis.com/BiReservation\"\232\001\n" + "\032UpdateBiReservationRequest\022K\n" - + "\016bi_reservation\030\001 \001(\01323.go" - + "ogle.cloud.bigquery.reservation.v1.BiReservation\022/\n" + + "\016bi_reservation\030\001" + + " \001(\01323.google.cloud.bigquery.reservation.v1.BiReservation\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask*U\n" + "\007Edition\022\027\n" + "\023EDITION_UNSPECIFIED\020\000\022\014\n" @@ -528,144 +529,146 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004SOFT\020\001\022\010\n" + "\004HARD\020\0022\2436\n" + "\022ReservationService\022\361\001\n" - + "\021CreateReservation\022>.google.cloud.bigquery" - + ".reservation.v1.CreateReservationRequest\0321.google.cloud.bigquery.reservation.v1." - + "Reservation\"i\332A!parent,reservation,reser" - + "vation_id\202\323\344\223\002?\"0/v1/{parent=projects/*/" - + "locations/*}/reservations:\013reservation\022\324\001\n" - + "\020ListReservations\022=.google.cloud.bigquery.reservation.v1.ListReservationsReque" - + "st\032>.google.cloud.bigquery.reservation.v" - + "1.ListReservationsResponse\"A\332A\006parent\202\323\344" - + "\223\0022\0220/v1/{parent=projects/*/locations/*}/reservations\022\301\001\n" - + "\016GetReservation\022;.google.cloud.bigquery.reservation.v1.GetReser" - + "vationRequest\0321.google.cloud.bigquery.re" - + "servation.v1.Reservation\"?\332A\004name\202\323\344\223\0022\022" - + "0/v1/{name=projects/*/locations/*/reservations/*}\022\254\001\n" - + "\021DeleteReservation\022>.google.cloud.bigquery.reservation.v1.DeleteRes" - + "ervationRequest\032\026.google.protobuf.Empty\"" - + "?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/reservations/*}\022\363\001\n" - + "\021UpdateReservation\022>.google.cloud.bigquery.reservati" - + "on.v1.UpdateReservationRequest\0321.google.cloud.bigquery.reservation.v1.Reservatio" - + "n\"k\332A\027reservation,update_mask\202\323\344\223\002K2/v1/{parent=projects/*/" - + "locations/*/reservations/*}/assignments:\n" + + "\021CreateReservation\022>.google.cloud.bigquery.reservation.v1." + + "CreateReservationRequest\0321.google.cloud." + + "bigquery.reservation.v1.Reservation\"i\332A!" + + "parent,reservation,reservation_id\202\323\344\223\002?\"" + + "0/v1/{parent=projects/*/locations/*}/reservations:\013reservation\022\324\001\n" + + "\020ListReservations\022=.google.cloud.bigquery.reservation." + + "v1.ListReservationsRequest\032>.google.cloud.bigquery.reservation.v1.ListReservatio" + + "nsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent" + + "=projects/*/locations/*}/reservations\022\301\001\n" + + "\016GetReservation\022;.google.cloud.bigquery" + + ".reservation.v1.GetReservationRequest\0321.google.cloud.bigquery.reservation.v1.Res" + + "ervation\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/reservations/*}\022\254\001\n" + + "\021DeleteReservation\022>.google.cloud.bigquery." + + "reservation.v1.DeleteReservationRequest\032" + + "\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0" + + "/v1/{name=projects/*/locations/*/reservations/*}\022\363\001\n" + + "\021UpdateReservation\022>.google.cloud.bigquery.reservation.v1.UpdateRese" + + "rvationRequest\0321.google.cloud.bigquery.r" + + "eservation.v1.Reservation\"k\332A\027reservatio" + + "n,update_mask\202\323\344\223\002K2/v1/{parent=projects/*/locations/*/reservations/*}/assignments:\n" + "assignment\022\337\001\n" - + "\017ListAssignments\022<.google.cloud.bigquery.reservation.v1.ListAssig" - + "nmentsRequest\032=.google.cloud.bigquery.re" - + "servation.v1.ListAssignmentsResponse\"O\332A" - + "\006parent\202\323\344\223\002@\022>/v1/{parent=projects/*/lo" - + "cations/*/reservations/*}/assignments\022\270\001\n" - + "\020DeleteAssignment\022=.google.cloud.bigquery.reservation.v1.DeleteAssignmentReques" - + "t\032\026.google.protobuf.Empty\"M\332A\004name\202\323\344\223\002@" - + "*>/v1/{name=projects/*/locations/*/reservations/*/assignments/*}\022\345\001\n" - + "\021SearchAssignments\022>.google.cloud.bigquery.reservati" - + "on.v1.SearchAssignmentsRequest\032?.google.cloud.bigquery.reservation.v1.SearchAssi" - + "gnmentsResponse\"O\210\002\001\332A\014parent,query\202\323\344\223\002" - + "7\0225/v1/{parent=projects/*/locations/*}:searchAssignments\022\356\001\n" - + "\024SearchAllAssignments\022A.google.cloud.bigquery.reservation.v1" - + ".SearchAllAssignmentsRequest\032B.google.cloud.bigquery.reservation.v1.SearchAllAss" - + "ignmentsResponse\"O\332A\014parent,query\202\323\344\223\002:\022" - + "8/v1/{parent=projects/*/locations/*}:searchAllAssignments\022\345\001\n" - + "\016MoveAssignment\022;.google.cloud.bigquery.reservation.v1.Move" - + "AssignmentRequest\0320.google.cloud.bigquer" - + "y.reservation.v1.Assignment\"d\332A\023name,des" - + "tination_id\202\323\344\223\002H\"C/v1/{name=projects/*/" - + "locations/*/reservations/*/assignments/*}:move:\001*\022\373\001\n" - + "\020UpdateAssignment\022=.google.cloud.bigquery.reservation.v1.UpdateAssi" - + "gnmentRequest\0320.google.cloud.bigquery.re" - + "servation.v1.Assignment\"v\332A\026assignment,u" - + "pdate_mask\202\323\344\223\002W2I/v1/{assignment.name=p" - + "rojects/*/locations/*/reservations/*/assignments/*}:\n" + + "\017ListAssignments\022<.google.cloud.bigquery." + + "reservation.v1.ListAssignmentsRequest\032=.google.cloud.bigquery.reservation.v1.Lis" + + "tAssignmentsResponse\"O\332A\006parent\202\323\344\223\002@\022>/" + + "v1/{parent=projects/*/locations/*/reservations/*}/assignments\022\270\001\n" + + "\020DeleteAssignment\022=.google.cloud.bigquery.reservation.v" + + "1.DeleteAssignmentRequest\032\026.google.proto" + + "buf.Empty\"M\332A\004name\202\323\344\223\002@*>/v1/{name=proj" + + "ects/*/locations/*/reservations/*/assignments/*}\022\345\001\n" + + "\021SearchAssignments\022>.google.cloud.bigquery.reservation.v1.SearchAssi" + + "gnmentsRequest\032?.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse\"" + + "O\210\002\001\332A\014parent,query\202\323\344\223\0027\0225/v1/{parent=p" + + "rojects/*/locations/*}:searchAssignments\022\356\001\n" + + "\024SearchAllAssignments\022A.google.cloud.bigquery.reservation.v1.SearchAllAssign" + + "mentsRequest\032B.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse" + + "\"O\332A\014parent,query\202\323\344\223\002:\0228/v1/{parent=pro" + + "jects/*/locations/*}:searchAllAssignments\022\345\001\n" + + "\016MoveAssignment\022;.google.cloud.bigquery.reservation.v1.MoveAssignmentReques" + + "t\0320.google.cloud.bigquery.reservation.v1" + + ".Assignment\"d\332A\023name,destination_id\202\323\344\223\002" + + "H\"C/v1/{name=projects/*/locations/*/reservations/*/assignments/*}:move:\001*\022\373\001\n" + + "\020UpdateAssignment\022=.google.cloud.bigquery.r" + + "eservation.v1.UpdateAssignmentRequest\0320.google.cloud.bigquery.reservation.v1.Ass" + + "ignment\"v\332A\026assignment,update_mask\202\323\344\223\002W" + + "2I/v1/{assignment.name=projects/*/locations/*/reservations/*/assignments/*}:\n" + "assignment\022\306\001\n" - + "\020GetBiReservation\022=.google.cloud.bigquery.reservation" - + ".v1.GetBiReservationRequest\0323.google.cloud.bigquery.reservation.v1.BiReservation" - + "\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/biReservation}\022\201\002\n" - + "\023UpdateBiReservation\022@.google.cloud.bigquery.reserva" - + "tion.v1.UpdateBiReservationRequest\0323.google.cloud.bigquery.reservation.v1.BiRese" - + "rvation\"s\332A\032bi_reservation,update_mask\202\323" - + "\344\223\002P2>/v1/{bi_reservation.name=projects/" - + "*/locations/*/biReservation}:\016bi_reservation\022\364\001\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyRequest\032\025.google.iam.v1.Policy" - + "\"\250\001\332A\010resource\202\323\344\223\002\226\001\022A/v1/{resource=pro" - + "jects/*/locations/*/reservations/*}:getIamPolicyZQ\022O/v1/{resource=projects/*/loc" - + "ations/*/reservations/*/assignments/*}:getIamPolicy\022\201\002\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest\032\025.google.iam.v1" - + ".Policy\"\265\001\332A\017resource,policy\202\323\344\223\002\234\001\"A/v1" - + "/{resource=projects/*/locations/*/reservations/*}:setIamPolicy:\001*ZT\"O/v1/{resour" - + "ce=projects/*/locations/*/reservations/*/assignments/*}:setIamPolicy:\001*\022\233\002\n" - + "\022TestIamPermissions\022(.google.iam.v1.TestIamPe" - + "rmissionsRequest\032).google.iam.v1.TestIam" - + "PermissionsResponse\"\257\001\202\323\344\223\002\250\001\"G/v1/{reso" - + "urce=projects/*/locations/*/reservations/*}:testIamPermissions:\001*ZZ\"U/v1/{resour" - + "ce=projects/*/locations/*/reservations/*" - + "/assignments/*}:testIamPermissions:\001*\022\347\001\n" - + "\026CreateReservationGroup\022C.google.cloud.bigquery.reservation.v1.CreateReservatio" - + "nGroupRequest\0326.google.cloud.bigquery.re" - + "servation.v1.ReservationGroup\"P\202\323\344\223\002J\"5/" - + "v1/{parent=projects/*/locations/*}/reservationGroups:\021reservation_group\022\325\001\n" - + "\023GetReservationGroup\022@.google.cloud.bigquery." - + "reservation.v1.GetReservationGroupRequest\0326.google.cloud.bigquery.reservation.v1", - ".ReservationGroup\"D\332A\004name\202\323\344\223\0027\0225/v1/{n" - + "ame=projects/*/locations/*/reservationGr" - + "oups/*}\022\273\001\n\026DeleteReservationGroup\022C.goo" - + "gle.cloud.bigquery.reservation.v1.Delete" - + "ReservationGroupRequest\032\026.google.protobu" - + "f.Empty\"D\332A\004name\202\323\344\223\0027*5/v1/{name=projec" - + "ts/*/locations/*/reservationGroups/*}\022\350\001" - + "\n\025ListReservationGroups\022B.google.cloud.b" - + "igquery.reservation.v1.ListReservationGr" - + "oupsRequest\032C.google.cloud.bigquery.rese" - + "rvation.v1.ListReservationGroupsResponse" - + "\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/" - + "*/locations/*}/reservationGroups\032\177\312A\"big" - + "queryreservation.googleapis.com\322AWhttps:" - + "//www.googleapis.com/auth/bigquery,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\330\001\n(com.google.cloud.bigquery.reservat" - + "ion.v1B\020ReservationProtoP\001ZJcloud.google" - + ".com/go/bigquery/reservation/apiv1/reser" - + "vationpb;reservationpb\252\002$Google.Cloud.Bi" - + "gQuery.Reservation.V1\312\002$Google\\Cloud\\Big" - + "Query\\Reservation\\V1b\006proto3" + + "\020GetBiReservation\022=.google.cloud.bigquery.reservation.v1.GetBiReserva" + + "tionRequest\0323.google.cloud.bigquery.rese" + + "rvation.v1.BiReservation\">\332A\004name\202\323\344\223\0021\022" + + "//v1/{name=projects/*/locations/*/biReservation}\022\201\002\n" + + "\023UpdateBiReservation\022@.google.cloud.bigquery.reservation.v1.UpdateBi" + + "ReservationRequest\0323.google.cloud.bigque" + + "ry.reservation.v1.BiReservation\"s\332A\032bi_r" + + "eservation,update_mask\202\323\344\223\002P2>/v1/{bi_re" + + "servation.name=projects/*/locations/*/biReservation}:\016bi_reservation\022\364\001\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"\250\001\332A\010resource\202\323" + + "\344\223\002\226\001\022A/v1/{resource=projects/*/location" + + "s/*/reservations/*}:getIamPolicyZQ\022O/v1/" + + "{resource=projects/*/locations/*/reservations/*/assignments/*}:getIamPolicy\022\201\002\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"\265\001\332A\017res" + + "ource,policy\202\323\344\223\002\234\001\"A/v1/{resource=proje" + + "cts/*/locations/*/reservations/*}:setIamPolicy:\001*ZT\"O/v1/{resource=projects/*/lo" + + "cations/*/reservations/*/assignments/*}:setIamPolicy:\001*\022\233\002\n" + + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermissionsRequest" + + "\032).google.iam.v1.TestIamPermissionsRespo" + + "nse\"\257\001\202\323\344\223\002\250\001\"G/v1/{resource=projects/*/" + + "locations/*/reservations/*}:testIamPermissions:\001*ZZ\"U/v1/{resource=projects/*/lo" + + "cations/*/reservations/*/assignments/*}:testIamPermissions:\001*\022\347\001\n" + + "\026CreateReservationGroup\022C.google.cloud.bigquery.reserva" + + "tion.v1.CreateReservationGroupRequest\0326.google.cloud.bigquery.reservation.v1.Res" + + "ervationGroup\"P\202\323\344\223\002J\"5/v1/{parent=proje" + + "cts/*/locations/*}/reservationGroups:\021reservation_group\022\325\001\n" + + "\023GetReservationGroup\022@.google.cloud.bigquery.reservation.v1.G" + + "etReservationGroupRequest\0326.google.cloud", + ".bigquery.reservation.v1.ReservationGrou" + + "p\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/l" + + "ocations/*/reservationGroups/*}\022\273\001\n\026Dele" + + "teReservationGroup\022C.google.cloud.bigque" + + "ry.reservation.v1.DeleteReservationGroup" + + "Request\032\026.google.protobuf.Empty\"D\332A\004name" + + "\202\323\344\223\0027*5/v1/{name=projects/*/locations/*" + + "/reservationGroups/*}\022\350\001\n\025ListReservatio" + + "nGroups\022B.google.cloud.bigquery.reservat" + + "ion.v1.ListReservationGroupsRequest\032C.go" + + "ogle.cloud.bigquery.reservation.v1.ListR" + + "eservationGroupsResponse\"F\332A\006parent\202\323\344\223\002" + + "7\0225/v1/{parent=projects/*/locations/*}/r" + + "eservationGroups\032\177\312A\"bigqueryreservation" + + ".googleapis.com\322AWhttps://www.googleapis" + + ".com/auth/bigquery,https://www.googleapi" + + "s.com/auth/cloud-platformB\330\001\n(com.google" + + ".cloud.bigquery.reservation.v1B\020Reservat" + + "ionProtoP\001ZJcloud.google.com/go/bigquery" + + "/reservation/apiv1/reservationpb;reserva" + + "tionpb\252\002$Google.Cloud.BigQuery.Reservati" + + "on.V1\312\002$Google\\Cloud\\BigQuery\\Reservatio" + + "n\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -945,7 +948,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_Assignment_descriptor, new java.lang.String[] { - "Name", "Assignee", "JobType", "State", "EnableGeminiInBigquery", "SchedulingPolicy", + "Name", + "Assignee", + "JobType", + "State", + "EnableGeminiInBigquery", + "SchedulingPolicy", + "Principal", }); internal_static_google_cloud_bigquery_reservation_v1_CreateAssignmentRequest_descriptor = getDescriptor().getMessageType(26); diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto index 5c674f276842..3d6f2cd048b0 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -560,7 +560,7 @@ message Reservation { // reservation will scale up to 1000 slots with 200 baseline and 800 idle // slots. // 2. if there are 500 idle slots available in other reservations, the - // reservation will scale up to 700 slots with 200 baseline and 300 idle + // reservation will scale up to 700 slots with 200 baseline and 500 idle // slots. // Please note, in this mode, the reservation might not be able to scale up // to max_slots. @@ -1406,6 +1406,23 @@ message Assignment { // This feature is not yet generally available. SchedulingPolicy scheduling_policy = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents the principal for this assignment. If not empty, jobs + // run by this principal will utilize the associated reservation. Otherwise, + // jobs will fall back to using the reservation assigned to the project, + // folder, or organization (in that order). If no reservation is assigned at + // any of these levels, on-demand capacity will be used. + // + // The supported formats are: + // + // * `principal://goog/subject/USER_EMAIL_ADDRESS` for users, + // * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS` + // for service accounts, + // * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID` + // for workload identity pool identities. + // * The special value `unknown_or_deleted_user` represents principals which + // cannot be read from the user info service, for example deleted users. + string principal = 12 [(google.api.field_behavior) = OPTIONAL]; } // The request for diff --git a/java-bigquerystorage/README.md b/java-bigquerystorage/README.md index 1fd7fb62dcfd..3d93c89b778e 100644 --- a/java-bigquerystorage/README.md +++ b/java-bigquerystorage/README.md @@ -56,20 +56,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.79.0') +implementation platform('com.google.cloud:libraries-bom:26.80.0') implementation 'com.google.cloud:google-cloud-bigquerystorage' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerystorage:3.26.0' +implementation 'com.google.cloud:google-cloud-bigquerystorage:3.27.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.26.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.27.0" ``` ## Authentication @@ -242,7 +242,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerystorage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.27.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerystorage/google-cloud-bigquerystorage-bom/pom.xml b/java-bigquerystorage/google-cloud-bigquerystorage-bom/pom.xml index 58102dff55ea..206084fb35f0 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage-bom/pom.xml +++ b/java-bigquerystorage/google-cloud-bigquerystorage-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-bigquerystorage-bom - 3.27.0 + 3.28.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -53,57 +53,57 @@ com.google.cloud google-cloud-bigquerystorage - 3.27.0 + 3.28.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.199.0 + 0.200.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta2 - 0.199.0 + 0.200.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1 - 3.27.0 + 3.28.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1alpha - 3.27.0 + 3.28.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta - 3.27.0 + 3.28.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.199.0 + 0.200.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta2 - 0.199.0 + 0.200.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.27.0 + 3.28.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1alpha - 3.27.0 + 3.28.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta - 3.27.0 + 3.28.0
diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/pom.xml b/java-bigquerystorage/google-cloud-bigquerystorage/pom.xml index e516a04f8041..90d21a9c5daa 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/pom.xml +++ b/java-bigquerystorage/google-cloud-bigquerystorage/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigquerystorage - 3.27.0 + 3.28.0 jar BigQuery Storage https://github.com/googleapis/google-cloud-java @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 google-cloud-bigquerystorage diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/Version.java index b31aa2dc46f9..052af450b626 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.27.0"; + static final String VERSION = "3.28.0"; // {x-version-update-end} } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/Version.java index bba8c9c8e120..4bc5f0a52549 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.27.0"; + static final String VERSION = "3.28.0"; // {x-version-update-end} } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/Version.java index cbe034cc1481..88a5ad330b21 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.27.0"; + static final String VERSION = "3.28.0"; // {x-version-update-end} } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/Version.java index 62115d7f8f29..e8bab052c0fb 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.27.0"; + static final String VERSION = "3.28.0"; // {x-version-update-end} } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/Version.java index 43e53bb94c4c..9c29c4c51e01 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.27.0"; + static final String VERSION = "3.28.0"; // {x-version-update-end} } diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1/pom.xml index b56c0c0ce289..9db41c83c654 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1 - 3.27.0 + 3.28.0 grpc-google-cloud-bigquerystorage-v1 GRPC library for grpc-google-cloud-bigquerystorage-v1 com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml index fcbd0c9d67ee..efe3811161dc 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1alpha - 3.27.0 + 3.28.0 grpc-google-cloud-bigquerystorage-v1alpha GRPC library for google-cloud-bigquerystorage com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta/pom.xml index f4940ef4f7d4..37520e1c7008 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta - 3.27.0 + 3.28.0 grpc-google-cloud-bigquerystorage-v1beta GRPC library for google-cloud-bigquerystorage com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml index b4a5d6fb85c2..8e2710cb57be 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.199.0 + 0.200.0 grpc-google-cloud-bigquerystorage-v1beta1 GRPC library for grpc-google-cloud-bigquerystorage-v1beta1 com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml index 5571530b3f96..f4042d5955bf 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta2 - 0.199.0 + 0.200.0 grpc-google-cloud-bigquerystorage-v1beta2 GRPC library for grpc-google-cloud-bigquerystorage-v1beta2 com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/pom.xml b/java-bigquerystorage/pom.xml index a4da1dca24ca..f9e19f06261b 100644 --- a/java-bigquerystorage/pom.xml +++ b/java-bigquerystorage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerystorage-parent pom - 3.27.0 + 3.28.0 BigQuery Storage Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -77,57 +77,57 @@ com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta - 3.27.0 + 3.28.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta - 3.27.0 + 3.28.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1alpha - 3.27.0 + 3.28.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1alpha - 3.27.0 + 3.28.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.199.0 + 0.200.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta2 - 0.199.0 + 0.200.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.27.0 + 3.28.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.199.0 + 0.200.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta2 - 0.199.0 + 0.200.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1 - 3.27.0 + 3.28.0 com.google.cloud google-cloud-bigquerystorage - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/pom.xml index 148359f7890e..d107498599e8 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.27.0 + 3.28.0 proto-google-cloud-bigquerystorage-v1 PROTO library for proto-google-cloud-bigquerystorage-v1 com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/pom.xml index 942d724f1e18..6c3cb3420a2a 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1alpha - 3.27.0 + 3.28.0 proto-google-cloud-bigquerystorage-v1alpha Proto library for google-cloud-bigquerystorage com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/pom.xml index e8bb00641914..6cb0ffad3728 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta - 3.27.0 + 3.28.0 proto-google-cloud-bigquerystorage-v1beta Proto library for google-cloud-bigquerystorage com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/pom.xml index 4035d48779ce..866508237a56 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.199.0 + 0.200.0 proto-google-cloud-bigquerystorage-v1beta1 PROTO library for proto-google-cloud-bigquerystorage-v1beta1 com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/pom.xml index 21e50496ba06..aa6cb8e0ae1a 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta2 - 0.199.0 + 0.200.0 proto-google-cloud-bigquerystorage-v1beta2 PROTO library for proto-google-cloud-bigquerystorage-v1beta2 com.google.cloud google-cloud-bigquerystorage-parent - 3.27.0 + 3.28.0 diff --git a/java-bigquerystorage/samples/snapshot/pom.xml b/java-bigquerystorage/samples/snapshot/pom.xml index dbf140b2002f..8200c1f58c91 100644 --- a/java-bigquerystorage/samples/snapshot/pom.xml +++ b/java-bigquerystorage/samples/snapshot/pom.xml @@ -30,7 +30,7 @@ com.google.cloud google-cloud-bigquerystorage - 3.27.0 + 3.28.0 diff --git a/java-billing/README.md b/java-billing/README.md index 34e894972a78..63eb03b51ecd 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.90.0' +implementation 'com.google.cloud:google-cloud-billing:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billing/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index f927345b11b6..d452a305038b 100644 --- a/java-billing/google-cloud-billing-bom/pom.xml +++ b/java-billing/google-cloud-billing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billing-bom - 2.91.0 + 2.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-billing - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.91.0 + 2.92.0 diff --git a/java-billing/google-cloud-billing/pom.xml b/java-billing/google-cloud-billing/pom.xml index 980a8a88ae6d..c8688415aa47 100644 --- a/java-billing/google-cloud-billing/pom.xml +++ b/java-billing/google-cloud-billing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billing - 2.91.0 + 2.92.0 jar Google Cloud Billing Java idiomatic client for Google Cloud Billing com.google.cloud google-cloud-billing-parent - 2.91.0 + 2.92.0 google-cloud-billing diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/Version.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/Version.java index e1f2a8d6301a..c7bf61d90715 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/Version.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-billing:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-billing/grpc-google-cloud-billing-v1/pom.xml b/java-billing/grpc-google-cloud-billing-v1/pom.xml index 5a1ad952412a..ea8699a8caff 100644 --- a/java-billing/grpc-google-cloud-billing-v1/pom.xml +++ b/java-billing/grpc-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.91.0 + 2.92.0 grpc-google-cloud-billing-v1 GRPC library for grpc-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.91.0 + 2.92.0 diff --git a/java-billing/pom.xml b/java-billing/pom.xml index 210b6f60a8d3..21870cac44d9 100644 --- a/java-billing/pom.xml +++ b/java-billing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billing-parent pom - 2.91.0 + 2.92.0 Google Cloud Billing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-billing-v1 - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.91.0 + 2.92.0 com.google.cloud google-cloud-billing - 2.91.0 + 2.92.0 diff --git a/java-billing/proto-google-cloud-billing-v1/pom.xml b/java-billing/proto-google-cloud-billing-v1/pom.xml index 55ae23b1a98e..f234277900fe 100644 --- a/java-billing/proto-google-cloud-billing-v1/pom.xml +++ b/java-billing/proto-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.91.0 + 2.92.0 proto-google-cloud-billing-v1beta1 PROTO library for proto-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.91.0 + 2.92.0 diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 87b3cad8c7a6..dfe1717a917b 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.90.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billingbudgets/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index 531654468950..c27bde868c2d 100644 --- a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets-bom - 2.91.0 + 2.92.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-billingbudgets - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.100.0 + 0.101.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.91.0 + 2.92.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.100.0 + 0.101.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.91.0 + 2.92.0 diff --git a/java-billingbudgets/google-cloud-billingbudgets/pom.xml b/java-billingbudgets/google-cloud-billingbudgets/pom.xml index cc3b1d817dbe..b068187e773c 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets - 2.91.0 + 2.92.0 jar Google Cloud billingbudgets Java idiomatic client for Google Cloud billingbudgets com.google.cloud google-cloud-billingbudgets-parent - 2.91.0 + 2.92.0 google-cloud-billingbudgets diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/Version.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/Version.java index 55a52e3d7161..de11dee341ef 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/Version.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-billingbudgets:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/Version.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/Version.java index ba90fa3931f4..9251d138c19b 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/Version.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-billingbudgets:current} - static final String VERSION = "2.91.0"; + static final String VERSION = "2.92.0"; // {x-version-update-end} } diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml index f275a53bd02e..7a7560e3c54d 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.91.0 + 2.92.0 grpc-google-cloud-billingbudgets-v1 GRPC library for grpc-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.91.0 + 2.92.0 diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml index 15f11331dbf8..88ff850e76b4 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.100.0 + 0.101.0 grpc-google-cloud-billingbudgets-v1beta1 GRPC library for grpc-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.91.0 + 2.92.0 diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index 0fef628c998a..89909446cd57 100644 --- a/java-billingbudgets/pom.xml +++ b/java-billingbudgets/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billingbudgets-parent pom - 2.91.0 + 2.92.0 Google Cloud Billing Budgets Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.100.0 + 0.101.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.91.0 + 2.92.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.100.0 + 0.101.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.91.0 + 2.92.0 com.google.cloud google-cloud-billingbudgets - 2.91.0 + 2.92.0 diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml index 621c97121308..1fb8b7bba44c 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.91.0 + 2.92.0 proto-google-cloud-billingbudgets-v1 PROTO library for proto-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.91.0 + 2.92.0 diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml index 856cb3c356ce..3869c91bb2b8 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.100.0 + 0.101.0 proto-google-cloud-billingbudgets-v1beta1 PROTO library for proto-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.91.0 + 2.92.0 diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 1b5807aeee13..1e238dbdda12 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.89.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.89.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.90.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml index d1d750ff7ab3..03d014c067d1 100644 --- a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization-bom - 1.90.0 + 1.91.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-binary-authorization - 1.90.0 + 1.91.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.90.0 + 1.91.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.90.0 + 1.91.0 diff --git a/java-binary-authorization/google-cloud-binary-authorization/pom.xml b/java-binary-authorization/google-cloud-binary-authorization/pom.xml index 1963373ba1f3..deb3908c4f3f 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization - 1.90.0 + 1.91.0 jar Google Binary Authorization Binary Authorization is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and Anthos clusters on VMware com.google.cloud google-cloud-binary-authorization-parent - 1.90.0 + 1.91.0 google-cloud-binary-authorization diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/Version.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/Version.java index 659099f5ffae..39e94e2d806f 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/Version.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-binary-authorization:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0"; // {x-version-update-end} } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/Version.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/Version.java index db212b18724b..d067ac91c3ea 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/Version.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-binary-authorization:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0"; // {x-version-update-end} } diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml index 0f48ef3444ba..c32cc6fc7048 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.90.0 + 1.91.0 grpc-google-cloud-binary-authorization-v1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.90.0 + 1.91.0 diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml index 539ae0332dc7..081704e3e6fb 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.95.0 + 0.96.0 grpc-google-cloud-binary-authorization-v1beta1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.90.0 + 1.91.0 diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index 067aba99f0cf..33e52fa848a9 100644 --- a/java-binary-authorization/pom.xml +++ b/java-binary-authorization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-binary-authorization-parent pom - 1.90.0 + 1.91.0 Google Binary Authorization Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.cloud google-cloud-binary-authorization - 1.90.0 + 1.91.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.90.0 + 1.91.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.90.0 + 1.91.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.95.0 + 0.96.0 io.grafeas grafeas - 2.92.0 + 2.93.0 diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml index 865b5376992e..41771fb324ea 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.90.0 + 1.91.0 proto-google-cloud-binary-authorization-v1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.90.0 + 1.91.0 diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml index f791fdb38043..896b33321772 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.95.0 + 0.96.0 proto-google-cloud-binary-authorization-v1beta1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.90.0 + 1.91.0 diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md index b1cc779848d9..eca6b47770d7 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.13.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.14.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.14.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml b/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml index c5724bc4374e..fa63504bdf08 100644 --- a/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml +++ b/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-capacityplanner-bom - 0.14.0 + 0.15.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-capacityplanner - 0.14.0 + 0.15.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.14.0 + 0.15.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.14.0 + 0.15.0 diff --git a/java-capacityplanner/google-cloud-capacityplanner/pom.xml b/java-capacityplanner/google-cloud-capacityplanner/pom.xml index deb194294d58..c7b3df520e53 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/pom.xml +++ b/java-capacityplanner/google-cloud-capacityplanner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-capacityplanner - 0.14.0 + 0.15.0 jar Google Capacity Planner API Capacity Planner API Provides programmatic access to Capacity Planner features. com.google.cloud google-cloud-capacityplanner-parent - 0.14.0 + 0.15.0 google-cloud-capacityplanner diff --git a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/Version.java b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/Version.java index 8d9dd9abf9f0..cc7dee60e27b 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/Version.java +++ b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-capacityplanner:current} - static final String VERSION = "0.14.0"; + static final String VERSION = "0.15.0"; // {x-version-update-end} } diff --git a/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml b/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml index c7f6526df58d..9ad4ffb0304e 100644 --- a/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml +++ b/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.14.0 + 0.15.0 grpc-google-cloud-capacityplanner-v1beta GRPC library for google-cloud-capacityplanner com.google.cloud google-cloud-capacityplanner-parent - 0.14.0 + 0.15.0 diff --git a/java-capacityplanner/pom.xml b/java-capacityplanner/pom.xml index 55025231e22b..65715826c87e 100644 --- a/java-capacityplanner/pom.xml +++ b/java-capacityplanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-capacityplanner-parent pom - 0.14.0 + 0.15.0 Google Capacity Planner API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-capacityplanner - 0.14.0 + 0.15.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.14.0 + 0.15.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.14.0 + 0.15.0 diff --git a/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml b/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml index 6c6a199416a3..f25d88e00f1e 100644 --- a/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml +++ b/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.14.0 + 0.15.0 proto-google-cloud-capacityplanner-v1beta Proto library for google-cloud-capacityplanner com.google.cloud google-cloud-capacityplanner-parent - 0.14.0 + 0.15.0 diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 14de435dd9b8..8368ddd5601f 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.93.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.93.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.94.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-certificate-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml index 42832ae8252d..a09f6dbdacc6 100644 --- a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager-bom - 0.94.0 + 0.95.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-certificate-manager - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.94.0 + 0.95.0 diff --git a/java-certificate-manager/google-cloud-certificate-manager/pom.xml b/java-certificate-manager/google-cloud-certificate-manager/pom.xml index 0cd2cd219363..e822147ddaa7 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager - 0.94.0 + 0.95.0 jar Google Certificate Manager Certificate Manager lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. com.google.cloud google-cloud-certificate-manager-parent - 0.94.0 + 0.95.0 google-cloud-certificate-manager diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/Version.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/Version.java index bd2eb95b619f..66e73ac25a9b 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/Version.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-certificate-manager:current} - static final String VERSION = "0.94.0"; + static final String VERSION = "0.95.0"; // {x-version-update-end} } diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml index 0f72f8dcf91b..db28c31a74ec 100644 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.94.0 + 0.95.0 grpc-google-cloud-certificate-manager-v1 GRPC library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.94.0 + 0.95.0 diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index d2e972ea6943..42c85e44c2a7 100644 --- a/java-certificate-manager/pom.xml +++ b/java-certificate-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-certificate-manager-parent pom - 0.94.0 + 0.95.0 Google Certificate Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-certificate-manager - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.94.0 + 0.95.0 diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml index 85e5ca25fe5c..24491d5a0424 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.94.0 + 0.95.0 proto-google-cloud-certificate-manager-v1 Proto library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.94.0 + 0.95.0 diff --git a/java-ces/README.md b/java-ces/README.md index be18a95dbcdd..3975f126ba1d 100644 --- a/java-ces/README.md +++ b/java-ces/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ces - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ces:0.6.0' +implementation 'com.google.cloud:google-cloud-ces:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.7.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ces.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ces/google-cloud-ces-bom/pom.xml b/java-ces/google-cloud-ces-bom/pom.xml index 5a744f787f45..c2dcf3e9764f 100644 --- a/java-ces/google-cloud-ces-bom/pom.xml +++ b/java-ces/google-cloud-ces-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-ces-bom - 0.7.0 + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-ces - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-ces-v1 - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-ces-v1beta - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-ces-v1 - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-ces-v1beta - 0.7.0 + 0.8.0 diff --git a/java-ces/google-cloud-ces/pom.xml b/java-ces/google-cloud-ces/pom.xml index 2c408ea9fa4f..5e966b0c2e1f 100644 --- a/java-ces/google-cloud-ces/pom.xml +++ b/java-ces/google-cloud-ces/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-ces - 0.7.0 + 0.8.0 jar Google Gemini Enterprise for Customer Experience API Gemini Enterprise for Customer Experience API Customer Experience Agent Studio (CX Agent Studio) is a minimal code conversational agent builder. com.google.cloud google-cloud-ces-parent - 0.7.0 + 0.8.0 google-cloud-ces diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java index f2ce5dd93456..f60bd706be4a 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-ces:current} - static final String VERSION = "0.7.0"; + static final String VERSION = "0.8.0"; // {x-version-update-end} } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java index bfe1ab92e171..a12564f0b879 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java @@ -680,6 +680,26 @@ * * * + *

ExportEvaluations + *

Exports evaluations. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • exportEvaluationsAsync(ExportEvaluationsRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • exportEvaluationsAsync(AppName parent) + *

  • exportEvaluationsAsync(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • exportEvaluationsOperationCallable() + *

  • exportEvaluationsCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: @@ -5398,6 +5418,168 @@ public final TestPersonaVoiceResponse testPersonaVoice(TestPersonaVoiceRequest r return stub.testPersonaVoiceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
+   *   ExportEvaluationsResponse response =
+   *       evaluationServiceClient.exportEvaluationsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the app to export evaluations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportEvaluationsAsync( + AppName parent) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return exportEvaluationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
+   *   ExportEvaluationsResponse response =
+   *       evaluationServiceClient.exportEvaluationsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the app to export evaluations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportEvaluationsAsync( + String parent) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder().setParent(parent).build(); + return exportEvaluationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   ExportEvaluationsRequest request =
+   *       ExportEvaluationsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .setExportOptions(ExportOptions.newBuilder().build())
+   *           .setIncludeEvaluationResults(true)
+   *           .setIncludeEvaluations(true)
+   *           .build();
+   *   ExportEvaluationsResponse response =
+   *       evaluationServiceClient.exportEvaluationsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportEvaluationsAsync( + ExportEvaluationsRequest request) { + return exportEvaluationsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   ExportEvaluationsRequest request =
+   *       ExportEvaluationsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .setExportOptions(ExportOptions.newBuilder().build())
+   *           .setIncludeEvaluationResults(true)
+   *           .setIncludeEvaluations(true)
+   *           .build();
+   *   OperationFuture future =
+   *       evaluationServiceClient.exportEvaluationsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportEvaluationsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationCallable() { + return stub.exportEvaluationsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   ExportEvaluationsRequest request =
+   *       ExportEvaluationsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .setExportOptions(ExportOptions.newBuilder().build())
+   *           .setIncludeEvaluationResults(true)
+   *           .setIncludeEvaluations(true)
+   *           .build();
+   *   ApiFuture future =
+   *       evaluationServiceClient.exportEvaluationsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportEvaluationsCallable() { + return stub.exportEvaluationsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java index 0fdf0d9c59c4..a357b3aad11f 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java @@ -355,6 +355,18 @@ public UnaryCallSettings getEvaluationRu return ((EvaluationServiceStubSettings) getStubSettings()).testPersonaVoiceSettings(); } + /** Returns the object with the settings used for calls to exportEvaluations. */ + public UnaryCallSettings exportEvaluationsSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).exportEvaluationsSettings(); + } + + /** Returns the object with the settings used for calls to exportEvaluations. */ + public OperationCallSettings< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).exportEvaluationsOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -703,6 +715,19 @@ public UnaryCallSettings.Builder getEvaluation return getStubSettingsBuilder().testPersonaVoiceSettings(); } + /** Returns the builder for the settings used for calls to exportEvaluations. */ + public UnaryCallSettings.Builder + exportEvaluationsSettings() { + return getStubSettingsBuilder().exportEvaluationsSettings(); + } + + /** Returns the builder for the settings used for calls to exportEvaluations. */ + public OperationCallSettings.Builder< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings() { + return getStubSettingsBuilder().exportEvaluationsOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java index e982388e2325..c39b677a6a50 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java @@ -55,6 +55,7 @@ * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } @@ -265,6 +266,7 @@ public ToolServiceStub getStub() { * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } @@ -294,6 +296,7 @@ public final ExecuteToolResponse executeTool(ExecuteToolRequest request) { * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ApiFuture future = * toolServiceClient.executeToolCallable().futureCall(request); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json index 472878611640..f6f0d57d6c50 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json @@ -208,6 +208,9 @@ "DeleteScheduledEvaluationRun": { "methods": ["deleteScheduledEvaluationRun", "deleteScheduledEvaluationRun", "deleteScheduledEvaluationRun", "deleteScheduledEvaluationRunCallable"] }, + "ExportEvaluations": { + "methods": ["exportEvaluationsAsync", "exportEvaluationsAsync", "exportEvaluationsAsync", "exportEvaluationsOperationCallable", "exportEvaluationsCallable"] + }, "GenerateEvaluation": { "methods": ["generateEvaluationAsync", "generateEvaluationAsync", "generateEvaluationAsync", "generateEvaluationOperationCallable", "generateEvaluationCallable"] }, diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java index 49ba9fd4a4a5..bfb92bf06c85 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java @@ -97,6 +97,7 @@ * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java index bf1887399e3c..71fea4785471 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java @@ -44,6 +44,8 @@ import com.google.cloud.ces.v1beta.EvaluationExpectation; import com.google.cloud.ces.v1beta.EvaluationResult; import com.google.cloud.ces.v1beta.EvaluationRun; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; import com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.GenerateEvaluationRequest; import com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest; @@ -67,6 +69,7 @@ import com.google.cloud.ces.v1beta.ListEvaluationsResponse; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse; +import com.google.cloud.ces.v1beta.OperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationRequest; import com.google.cloud.ces.v1beta.RunEvaluationResponse; @@ -316,6 +319,16 @@ public UnaryCallable listEvalua throw new UnsupportedOperationException("Not implemented: testPersonaVoiceCallable()"); } + public OperationCallable + exportEvaluationsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportEvaluationsOperationCallable()"); + } + + public UnaryCallable exportEvaluationsCallable() { + throw new UnsupportedOperationException("Not implemented: exportEvaluationsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java index 0be362f784fd..1eef44d46eb0 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java @@ -71,6 +71,8 @@ import com.google.cloud.ces.v1beta.EvaluationExpectation; import com.google.cloud.ces.v1beta.EvaluationResult; import com.google.cloud.ces.v1beta.EvaluationRun; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; import com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.GenerateEvaluationRequest; import com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest; @@ -94,6 +96,7 @@ import com.google.cloud.ces.v1beta.ListEvaluationsResponse; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse; +import com.google.cloud.ces.v1beta.OperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationRequest; import com.google.cloud.ces.v1beta.RunEvaluationResponse; @@ -289,6 +292,10 @@ public class EvaluationServiceStubSettings extends StubSettings testPersonaVoiceSettings; + private final UnaryCallSettings exportEvaluationsSettings; + private final OperationCallSettings< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -958,6 +965,18 @@ public UnaryCallSettings getEvaluationRu return testPersonaVoiceSettings; } + /** Returns the object with the settings used for calls to exportEvaluations. */ + public UnaryCallSettings exportEvaluationsSettings() { + return exportEvaluationsSettings; + } + + /** Returns the object with the settings used for calls to exportEvaluations. */ + public OperationCallSettings< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings() { + return exportEvaluationsOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1126,6 +1145,9 @@ protected EvaluationServiceStubSettings(Builder settingsBuilder) throws IOExcept deleteScheduledEvaluationRunSettings = settingsBuilder.deleteScheduledEvaluationRunSettings().build(); testPersonaVoiceSettings = settingsBuilder.testPersonaVoiceSettings().build(); + exportEvaluationsSettings = settingsBuilder.exportEvaluationsSettings().build(); + exportEvaluationsOperationSettings = + settingsBuilder.exportEvaluationsOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1234,6 +1256,11 @@ public static class Builder extends StubSettings.Builder testPersonaVoiceSettings; + private final UnaryCallSettings.Builder + exportEvaluationsSettings; + private final OperationCallSettings.Builder< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1317,6 +1344,8 @@ protected Builder(ClientContext clientContext) { updateScheduledEvaluationRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteScheduledEvaluationRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testPersonaVoiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportEvaluationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportEvaluationsOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1353,6 +1382,7 @@ protected Builder(ClientContext clientContext) { updateScheduledEvaluationRunSettings, deleteScheduledEvaluationRunSettings, testPersonaVoiceSettings, + exportEvaluationsSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1405,6 +1435,8 @@ protected Builder(EvaluationServiceStubSettings settings) { deleteScheduledEvaluationRunSettings = settings.deleteScheduledEvaluationRunSettings.toBuilder(); testPersonaVoiceSettings = settings.testPersonaVoiceSettings.toBuilder(); + exportEvaluationsSettings = settings.exportEvaluationsSettings.toBuilder(); + exportEvaluationsOperationSettings = settings.exportEvaluationsOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1441,6 +1473,7 @@ protected Builder(EvaluationServiceStubSettings settings) { updateScheduledEvaluationRunSettings, deleteScheduledEvaluationRunSettings, testPersonaVoiceSettings, + exportEvaluationsSettings, listLocationsSettings, getLocationSettings); } @@ -1625,6 +1658,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .exportEvaluationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1736,6 +1774,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .exportEvaluationsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ExportEvaluationsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1979,6 +2042,19 @@ public UnaryCallSettings.Builder getEvaluation return testPersonaVoiceSettings; } + /** Returns the builder for the settings used for calls to exportEvaluations. */ + public UnaryCallSettings.Builder + exportEvaluationsSettings() { + return exportEvaluationsSettings; + } + + /** Returns the builder for the settings used for calls to exportEvaluations. */ + public OperationCallSettings.Builder< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings() { + return exportEvaluationsOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java index f2567143005a..74a084ba66b4 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java @@ -49,6 +49,8 @@ import com.google.cloud.ces.v1beta.EvaluationExpectation; import com.google.cloud.ces.v1beta.EvaluationResult; import com.google.cloud.ces.v1beta.EvaluationRun; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; import com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.GenerateEvaluationRequest; import com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest; @@ -72,6 +74,7 @@ import com.google.cloud.ces.v1beta.ListEvaluationsResponse; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse; +import com.google.cloud.ces.v1beta.OperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationRequest; import com.google.cloud.ces.v1beta.RunEvaluationResponse; @@ -480,6 +483,17 @@ public class GrpcEvaluationServiceStub extends EvaluationServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + exportEvaluationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.EvaluationService/ExportEvaluations") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -580,6 +594,10 @@ public class GrpcEvaluationServiceStub extends EvaluationServiceStub { deleteScheduledEvaluationRunCallable; private final UnaryCallable testPersonaVoiceCallable; + private final UnaryCallable exportEvaluationsCallable; + private final OperationCallable< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1001,6 +1019,17 @@ protected GrpcEvaluationServiceStub( }) .setResourceNameExtractor(request -> request.getApp()) .build(); + GrpcCallSettings exportEvaluationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportEvaluationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -1213,6 +1242,17 @@ protected GrpcEvaluationServiceStub( this.testPersonaVoiceCallable = callableFactory.createUnaryCallable( testPersonaVoiceTransportSettings, settings.testPersonaVoiceSettings(), clientContext); + this.exportEvaluationsCallable = + callableFactory.createUnaryCallable( + exportEvaluationsTransportSettings, + settings.exportEvaluationsSettings(), + clientContext); + this.exportEvaluationsOperationCallable = + callableFactory.createOperationCallable( + exportEvaluationsTransportSettings, + settings.exportEvaluationsOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1467,6 +1507,17 @@ public UnaryCallable listEvalua return testPersonaVoiceCallable; } + @Override + public UnaryCallable exportEvaluationsCallable() { + return exportEvaluationsCallable; + } + + @Override + public OperationCallable + exportEvaluationsOperationCallable() { + return exportEvaluationsOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java index 82e37383ad70..16248369509b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java @@ -57,6 +57,8 @@ import com.google.cloud.ces.v1beta.EvaluationExpectation; import com.google.cloud.ces.v1beta.EvaluationResult; import com.google.cloud.ces.v1beta.EvaluationRun; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; import com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.GenerateEvaluationRequest; import com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest; @@ -80,6 +82,7 @@ import com.google.cloud.ces.v1beta.ListEvaluationsResponse; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse; +import com.google.cloud.ces.v1beta.OperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationRequest; import com.google.cloud.ces.v1beta.RunEvaluationResponse; @@ -124,6 +127,8 @@ public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub { .add(RunEvaluationOperationMetadata.getDescriptor()) .add(ImportEvaluationsOperationMetadata.getDescriptor()) .add(DeleteEvaluationRunOperationMetadata.getDescriptor()) + .add(ExportEvaluationsResponse.getDescriptor()) + .add(OperationMetadata.getDescriptor()) .add(Evaluation.getDescriptor()) .add(ImportEvaluationsResponse.getDescriptor()) .add(RunEvaluationResponse.getDescriptor()) @@ -1342,6 +1347,46 @@ public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + exportEvaluationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.EvaluationService/ExportEvaluations") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations:export", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportEvaluationsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1489,6 +1534,10 @@ public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub { deleteScheduledEvaluationRunCallable; private final UnaryCallable testPersonaVoiceCallable; + private final UnaryCallable exportEvaluationsCallable; + private final OperationCallable< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1973,6 +2022,18 @@ protected HttpJsonEvaluationServiceStub( }) .setResourceNameExtractor(request -> request.getApp()) .build(); + HttpJsonCallSettings exportEvaluationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportEvaluationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2188,6 +2249,17 @@ protected HttpJsonEvaluationServiceStub( this.testPersonaVoiceCallable = callableFactory.createUnaryCallable( testPersonaVoiceTransportSettings, settings.testPersonaVoiceSettings(), clientContext); + this.exportEvaluationsCallable = + callableFactory.createUnaryCallable( + exportEvaluationsTransportSettings, + settings.exportEvaluationsSettings(), + clientContext); + this.exportEvaluationsOperationCallable = + callableFactory.createOperationCallable( + exportEvaluationsTransportSettings, + settings.exportEvaluationsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2236,6 +2308,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateScheduledEvaluationRunMethodDescriptor); methodDescriptors.add(deleteScheduledEvaluationRunMethodDescriptor); methodDescriptors.add(testPersonaVoiceMethodDescriptor); + methodDescriptors.add(exportEvaluationsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -2481,6 +2554,17 @@ public UnaryCallable listEvalua return testPersonaVoiceCallable; } + @Override + public UnaryCallable exportEvaluationsCallable() { + return exportEvaluationsCallable; + } + + @Override + public OperationCallable + exportEvaluationsOperationCallable() { + return exportEvaluationsOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java index c25b253e2e01..7086253ca540 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-ces:current} - static final String VERSION = "0.7.0"; + static final String VERSION = "0.8.0"; // {x-version-update-end} } diff --git a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json index 28650578353c..f8d2717bfe52 100644 --- a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json +++ b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json @@ -2492,6 +2492,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$ErrorHandlingStrategy", "queryAllDeclaredConstructors": true, @@ -2501,6 +2519,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.Evaluation", "queryAllDeclaredConstructors": true, @@ -3518,6 +3554,105 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportOptions$ExportFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.ExpressionCondition", "queryAllDeclaredConstructors": true, @@ -5543,6 +5678,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.MockConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.MockConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.MockConfig$UnmatchedToolCallBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.MockedToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.MockedToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.ModelSettings", "queryAllDeclaredConstructors": true, diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java index d312fe516e3c..ecc82e691283 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java @@ -681,8 +681,12 @@ public void importEvaluationsTest() throws Exception { ImportEvaluationsResponse expectedResponse = ImportEvaluationsResponse.newBuilder() .addAllEvaluations(new ArrayList()) + .addAllEvaluationResults(new ArrayList()) + .addAllEvaluationRuns(new ArrayList()) .addAllErrorMessages(new ArrayList()) .setImportFailureCount(663262976) + .setEvaluationResultImportFailureCount(432529247) + .setEvaluationRunImportFailureCount(-1483443241) .build(); Operation resultOperation = Operation.newBuilder() @@ -732,8 +736,12 @@ public void importEvaluationsTest2() throws Exception { ImportEvaluationsResponse expectedResponse = ImportEvaluationsResponse.newBuilder() .addAllEvaluations(new ArrayList()) + .addAllEvaluationResults(new ArrayList()) + .addAllEvaluationRuns(new ArrayList()) .addAllErrorMessages(new ArrayList()) .setImportFailureCount(663262976) + .setEvaluationResultImportFailureCount(432529247) + .setEvaluationRunImportFailureCount(-1483443241) .build(); Operation resultOperation = Operation.newBuilder() @@ -3831,6 +3839,104 @@ public void testPersonaVoiceExceptionTest2() throws Exception { } } + @Test + public void exportEvaluationsTest() throws Exception { + ExportEvaluationsResponse expectedResponse = + ExportEvaluationsResponse.newBuilder() + .putAllFailedEvaluations(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEvaluationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ExportEvaluationsResponse actualResponse = client.exportEvaluationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportEvaluationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.exportEvaluationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportEvaluationsTest2() throws Exception { + ExportEvaluationsResponse expectedResponse = + ExportEvaluationsResponse.newBuilder() + .putAllFailedEvaluations(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEvaluationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ExportEvaluationsResponse actualResponse = client.exportEvaluationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportEvaluationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.exportEvaluationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java index fcbc3839c7d6..f97b1814d4b1 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java @@ -646,8 +646,12 @@ public void importEvaluationsTest() throws Exception { ImportEvaluationsResponse expectedResponse = ImportEvaluationsResponse.newBuilder() .addAllEvaluations(new ArrayList()) + .addAllEvaluationResults(new ArrayList()) + .addAllEvaluationRuns(new ArrayList()) .addAllErrorMessages(new ArrayList()) .setImportFailureCount(663262976) + .setEvaluationResultImportFailureCount(432529247) + .setEvaluationRunImportFailureCount(-1483443241) .build(); Operation resultOperation = Operation.newBuilder() @@ -694,8 +698,12 @@ public void importEvaluationsTest2() throws Exception { ImportEvaluationsResponse expectedResponse = ImportEvaluationsResponse.newBuilder() .addAllEvaluations(new ArrayList()) + .addAllEvaluationResults(new ArrayList()) + .addAllEvaluationRuns(new ArrayList()) .addAllErrorMessages(new ArrayList()) .setImportFailureCount(663262976) + .setEvaluationResultImportFailureCount(432529247) + .setEvaluationRunImportFailureCount(-1483443241) .build(); Operation resultOperation = Operation.newBuilder() @@ -3378,6 +3386,98 @@ public void testPersonaVoiceExceptionTest2() throws Exception { } } + @Test + public void exportEvaluationsTest() throws Exception { + ExportEvaluationsResponse expectedResponse = + ExportEvaluationsResponse.newBuilder() + .putAllFailedEvaluations(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEvaluationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEvaluationService.addResponse(resultOperation); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ExportEvaluationsResponse actualResponse = client.exportEvaluationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportEvaluationsRequest actualRequest = ((ExportEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportEvaluationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.exportEvaluationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void exportEvaluationsTest2() throws Exception { + ExportEvaluationsResponse expectedResponse = + ExportEvaluationsResponse.newBuilder() + .putAllFailedEvaluations(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEvaluationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEvaluationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + + ExportEvaluationsResponse actualResponse = client.exportEvaluationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportEvaluationsRequest actualRequest = ((ExportEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportEvaluationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.exportEvaluationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockEvaluationServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockEvaluationServiceImpl.java index bbeccabe067c..300f76c78220 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockEvaluationServiceImpl.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockEvaluationServiceImpl.java @@ -740,4 +740,25 @@ public void testPersonaVoice( Exception.class.getName()))); } } + + @Override + public void exportEvaluations( + ExportEvaluationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExportEvaluations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientHttpJsonTest.java index b8359e204312..f4dda712067a 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientHttpJsonTest.java @@ -96,6 +96,7 @@ public void executeToolTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse actualResponse = client.executeTool(request); @@ -128,6 +129,7 @@ public void executeToolExceptionTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); client.executeTool(request); Assert.fail("No exception raised"); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientTest.java index 81a9f94b6756..6f788b40ec57 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientTest.java @@ -102,6 +102,7 @@ public void executeToolTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse actualResponse = client.executeTool(request); @@ -117,6 +118,7 @@ public void executeToolTest() throws Exception { Assert.assertEquals(request.getContext(), actualRequest.getContext()); Assert.assertEquals(request.getParent(), actualRequest.getParent()); Assert.assertEquals(request.getArgs(), actualRequest.getArgs()); + Assert.assertEquals(request.getMockConfig(), actualRequest.getMockConfig()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -133,6 +135,7 @@ public void executeToolExceptionTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); client.executeTool(request); Assert.fail("No exception raised"); diff --git a/java-ces/grpc-google-cloud-ces-v1/pom.xml b/java-ces/grpc-google-cloud-ces-v1/pom.xml index e9292cbebed0..0bcaf7d107a1 100644 --- a/java-ces/grpc-google-cloud-ces-v1/pom.xml +++ b/java-ces/grpc-google-cloud-ces-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ces-v1 - 0.7.0 + 0.8.0 grpc-google-cloud-ces-v1 GRPC library for google-cloud-ces com.google.cloud google-cloud-ces-parent - 0.7.0 + 0.8.0 diff --git a/java-ces/grpc-google-cloud-ces-v1beta/pom.xml b/java-ces/grpc-google-cloud-ces-v1beta/pom.xml index 5b858dcdb737..acaf60efb097 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/pom.xml +++ b/java-ces/grpc-google-cloud-ces-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ces-v1beta - 0.7.0 + 0.8.0 grpc-google-cloud-ces-v1beta GRPC library for google-cloud-ces com.google.cloud google-cloud-ces-parent - 0.7.0 + 0.8.0 diff --git a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceGrpc.java index 563fe55b4f70..a21a1ec0c972 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceGrpc.java +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceGrpc.java @@ -1545,6 +1545,50 @@ private EvaluationServiceGrpc() {} return getTestPersonaVoiceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ExportEvaluationsRequest, com.google.longrunning.Operation> + getExportEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportEvaluations", + requestType = com.google.cloud.ces.v1beta.ExportEvaluationsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ExportEvaluationsRequest, com.google.longrunning.Operation> + getExportEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ExportEvaluationsRequest, com.google.longrunning.Operation> + getExportEvaluationsMethod; + if ((getExportEvaluationsMethod = EvaluationServiceGrpc.getExportEvaluationsMethod) == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getExportEvaluationsMethod = EvaluationServiceGrpc.getExportEvaluationsMethod) + == null) { + EvaluationServiceGrpc.getExportEvaluationsMethod = + getExportEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("ExportEvaluations")) + .build(); + } + } + } + return getExportEvaluationsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EvaluationServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2062,6 +2106,20 @@ default void testPersonaVoice( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getTestPersonaVoiceMethod(), responseObserver); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + default void exportEvaluations( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportEvaluationsMethod(), responseObserver); + } } /** @@ -2615,6 +2673,22 @@ public void testPersonaVoice( request, responseObserver); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + public void exportEvaluations( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -3072,6 +3146,20 @@ public com.google.cloud.ces.v1beta.TestPersonaVoiceResponse testPersonaVoice( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestPersonaVoiceMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + public com.google.longrunning.Operation exportEvaluations( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportEvaluationsMethod(), getCallOptions(), request); + } } /** @@ -3501,6 +3589,19 @@ public com.google.cloud.ces.v1beta.TestPersonaVoiceResponse testPersonaVoice( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestPersonaVoiceMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + public com.google.longrunning.Operation exportEvaluations( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportEvaluationsMethod(), getCallOptions(), request); + } } /** @@ -3962,6 +4063,19 @@ protected EvaluationServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestPersonaVoiceMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportEvaluations(com.google.cloud.ces.v1beta.ExportEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportEvaluationsMethod(), getCallOptions()), request); + } } private static final int METHODID_RUN_EVALUATION = 0; @@ -3995,6 +4109,7 @@ protected EvaluationServiceFutureStub build( private static final int METHODID_UPDATE_SCHEDULED_EVALUATION_RUN = 28; private static final int METHODID_DELETE_SCHEDULED_EVALUATION_RUN = 29; private static final int METHODID_TEST_PERSONA_VOICE = 30; + private static final int METHODID_EXPORT_EVALUATIONS = 31; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4195,6 +4310,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXPORT_EVALUATIONS: + serviceImpl.exportEvaluations( + (com.google.cloud.ces.v1beta.ExportEvaluationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -4418,6 +4538,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.ces.v1beta.TestPersonaVoiceRequest, com.google.cloud.ces.v1beta.TestPersonaVoiceResponse>( service, METHODID_TEST_PERSONA_VOICE))) + .addMethod( + getExportEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.ExportEvaluationsRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_EVALUATIONS))) .build(); } @@ -4500,6 +4626,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateScheduledEvaluationRunMethod()) .addMethod(getDeleteScheduledEvaluationRunMethod()) .addMethod(getTestPersonaVoiceMethod()) + .addMethod(getExportEvaluationsMethod()) .build(); } } diff --git a/java-ces/pom.xml b/java-ces/pom.xml index 0667c46c8edf..4a53f726e15b 100644 --- a/java-ces/pom.xml +++ b/java-ces/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-ces-parent pom - 0.7.0 + 0.8.0 Google Gemini Enterprise for Customer Experience API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-ces - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-ces-v1beta - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-ces-v1beta - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-ces-v1 - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-ces-v1 - 0.7.0 + 0.8.0
diff --git a/java-ces/proto-google-cloud-ces-v1/pom.xml b/java-ces/proto-google-cloud-ces-v1/pom.xml index a99e3c02f5e0..7bccc2733bec 100644 --- a/java-ces/proto-google-cloud-ces-v1/pom.xml +++ b/java-ces/proto-google-cloud-ces-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ces-v1 - 0.7.0 + 0.8.0 proto-google-cloud-ces-v1 Proto library for google-cloud-ces com.google.cloud google-cloud-ces-parent - 0.7.0 + 0.8.0 diff --git a/java-ces/proto-google-cloud-ces-v1beta/pom.xml b/java-ces/proto-google-cloud-ces-v1beta/pom.xml index 221e156454bf..629deadf1a4f 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/pom.xml +++ b/java-ces/proto-google-cloud-ces-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ces-v1beta - 0.7.0 + 0.8.0 proto-google-cloud-ces-v1beta Proto library for google-cloud-ces com.google.cloud google-cloud-ces-parent - 0.7.0 + 0.8.0 diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java index 2a971ac644da..68eef9c2a117 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java @@ -92,6 +92,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -286,44 +298,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!evaluation_audio_recording_config\030\006 " + "\001(\0132-.google.cloud.ces.v1beta.AudioRecordingConfigB\003\340A\001\022V\n" + "\030metric_analysis_settings\030\007" - + " \001(\0132/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\003\340A\001\"\367\001\n" + + " \001(\0132/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\003\340A\001\"\235\006\n" + "\025ErrorHandlingSettings\022j\n" + "\027error_handling_strategy\030\001 \001" - + "(\0162D.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\"r\n" + + "(\0162D.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\022l\n" + + "\030fallback_response_config\030\002 \001(\0132E.google" + + ".cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigB\003\340A\001\022`\n" + + "\022end_session_config\030\003 \001(\0132?.google.cloud.ces.v1bet" + + "a.ErrorHandlingSettings.EndSessionConfigB\003\340A\001\032\206\002\n" + + "\026FallbackResponseConfig\022\210\001\n" + + "\030custom_fallback_messages\030\001 \003(\0132a.google.clo" + + "ud.ces.v1beta.ErrorHandlingSettings.Fall" + + "backResponseConfig.CustomFallbackMessagesEntryB\003\340A\001\022\"\n" + + "\025max_fallback_attempts\030\002 \001(\005B\003\340A\001\032=\n" + + "\033CustomFallbackMessagesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032K\n" + + "\020EndSessionConfig\022\"\n" + + "\020escalate_session\030\001 \001(\010B\003\340A\001H\000\210\001\001B\023\n" + + "\021_escalate_session\"r\n" + "\025ErrorHandlingStrategy\022\'\n" + "#ERROR_HANDLING_STRATEGY_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\025\n" + "\021FALLBACK_RESPONSE\020\002\022\017\n" + "\013END_SESSION\020\003\"\250\020\n" + "\033EvaluationMetricsThresholds\022\211\001\n" - + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132V.googl" - + "e.cloud.ces.v1beta.EvaluationMetricsThre" - + "sholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022~\n" - + "\035hallucination_metric_behavior\030\003" - + " \001(\0162P.google.cloud.ces.v1beta.Evaluatio" - + "nMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\203\001\n" - + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.google.cloud.ces." - + "v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\205\001\n" - + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.g" - + "oogle.cloud.ces.v1beta.EvaluationMetrics" - + "Thresholds.HallucinationMetricBehaviorB\003\340A\001\032\213\t\n" + + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132V.google.cloud.ce" + + "s.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022~\n" + + "\035hallucination_metric_behavior\030\003 \001(\0162P.goo" + + "gle.cloud.ces.v1beta.EvaluationMetricsTh" + + "resholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\203\001\n" + + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.google.cloud.ces.v1beta.Eva" + + "luationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\205\001\n" + + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.google.clou" + + "d.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\213" + + "\t\n" + "!GoldenEvaluationMetricsThresholds\022\235\001\n" - + "\035turn_level_metrics_thresholds\030\001 \001(" - + "\0132q.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsT" - + "hresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\253\001\n" - + "$expectation_level_metrics_thresholds\030\002" - + " \001(\0132x.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationM" - + "etricsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022n\n" - + "\026tool_matching_settings\030\003 \001(\0132I.google.cloud.ces.v1beta.Evalua" - + "tionMetricsThresholds.ToolMatchingSettingsB\003\340A\001\032\212\004\n" + + "\035turn_level_metrics_thresholds\030\001 \001(\0132q.google" + + ".cloud.ces.v1beta.EvaluationMetricsThres" + + "holds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\253\001\n" + + "$expectation_level_metrics_thresholds\030\002 \001(\0132x" + + ".google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThre" + + "sholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022n\n" + + "\026tool_matching_settings\030\003 \001(\0132I." + + "google.cloud.ces.v1beta.EvaluationMetric" + + "sThresholds.ToolMatchingSettingsB\003\340A\001\032\212\004\n" + "\032TurnLevelMetricsThresholds\0227\n" + "%semantic_similarity_success_threshold\030\001" + " \001(\005B\003\340A\001H\000\210\001\001\022?\n" + "-overall_tool_invocation_correctness_threshold\030\002" + " \001(\002B\003\340A\001H\001\210\001\001\022\266\001\n" - + "\033semantic_similarity_channel\030\003 \001(\0162\213" - + "\001.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThr" - + "esholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + + "\033semantic_similarity_channel\030\003 \001(\0162\213\001.google.c" + + "loud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.Tu" + + "rnLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + "\031SemanticSimilarityChannel\022+\n" + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -335,9 +362,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002B\003\340A\001H\000\210\001\001B2\n" + "0_tool_invocation_parameter_correctness_threshold\032\367\001\n" + "\024ToolMatchingSettings\022\206\001\n" - + "\030extra_tool_call_behavior\030\001 \001(\0162_.google.c" - + "loud.ces.v1beta.EvaluationMetricsThresho" - + "lds.ToolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162_.google.cloud.ces.v" + + "1beta.EvaluationMetricsThresholds.ToolMa" + + "tchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + "\025ExtraToolCallBehavior\022(\n" + "$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + "\004FAIL\020\001\022\t\n" @@ -347,12 +374,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DISABLED\020\001\022\013\n" + "\007ENABLED\020\002\"\224\004\n" + "\022EvaluationSettings\022w\n" - + "\037scenario_conversation_initiator\030\001 \001(\0162I.google.cl" - + "oud.ces.v1beta.EvaluationSettings.ScenarioConversationInitiatorB\003\340A\001\022H\n" + + "\037scenario_conversation_initiator\030\001 \001(\0162I.google.cloud.ces.v1" + + "beta.EvaluationSettings.ScenarioConversationInitiatorB\003\340A\001\022H\n" + "\021golden_run_method\030\004" + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\003\340A\001\022h\n" - + "%golden_evaluation_tool_call_behaviour\030\002 \001(\01624.google.c" - + "loud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\022j\n" + + "%golden_evaluation_tool_call_behaviour\030\002 \001(\01624.google.cloud.ces.v" + + "1beta.EvaluationToolCallBehaviourB\003\340A\001\022j\n" + "\'scenario_evaluation_tool_call_behaviour\030\003" + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\"e\n" + "\035ScenarioConversationInitiator\022/\n" @@ -363,9 +390,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017tls_certificate\030\001 \001(\tB\003\340A\002\022G\n" + "\013private_key\030\002 \001(\tB2\340A\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022\027\n\n" - + "passphrase\030\003 \001(\tB\003\340A\001\"H\n" + + "passphrase\030\003 \001(\tB\003\340A\001\"\202\001\n" + "\033ConversationLoggingSettings\022)\n" - + "\034disable_conversation_logging\030\001 \001(\010B\003\340A\001\"9\n" + + "\034disable_conversation_logging\030\001 \001(\010B\003\340A\001\0228\n" + + "\020retention_window\030\002" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"9\n" + "\024CloudLoggingSettings\022!\n" + "\024enable_cloud_logging\030\001 \001(\010B\003\340A\001\"M\n" + "\024AudioRecordingConfig\022\027\n\n" @@ -378,8 +407,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023deidentify_template\030\003 \001(\tB-\340A\001\372A\'\n" + "%dlp.googleapis.com/DeidentifyTemplate\"\273\002\n" + "\021DataStoreSettings\022G\n" - + "\007engines\030\003 \003(\01321.google.cloud" - + ".ces.v1beta.DataStoreSettings.EngineB\003\340A\003\032\334\001\n" + + "\007engines\030\003 \003(\01321.goo" + + "gle.cloud.ces.v1beta.DataStoreSettings.EngineB\003\340A\003\032\334\001\n" + "\006Engine\022;\n" + "\004name\030\001 \001(\tB-\340A\003\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022I\n" @@ -394,12 +423,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013personality\030\004 \001(\tB\003\340A\002\022S\n\r" - + "speech_config\030\005" - + " \001(\01327.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfigB\003\340A\001\032\243\002\n" + + "speech_config\030\005 \001(\01327.google.cloud.ces.v1be" + + "ta.EvaluationPersona.SpeechConfigB\003\340A\001\032\243\002\n" + "\014SpeechConfig\022\032\n\r" + "speaking_rate\030\001 \001(\001B\003\340A\001\022g\n" - + "\013environment\030\002 \001(\0162M.google.cloud.ces.v1bet" - + "a.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\003\340A\001\022\025\n" + + "\013environment\030\002 \001(\0162M.google.cloud." + + "ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\003\340A\001\022\025\n" + "\010voice_id\030\003 \001(\tB\003\340A\001\"w\n" + "\025BackgroundEnvironment\022&\n" + "\"BACKGROUND_ENVIRONMENT_UNSPECIFIED\020\000\022\017\n" @@ -407,16 +436,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007TRAFFIC\020\004\022\016\n\n" + "KIDS_NOISE\020\005\022\010\n" + "\004CAFE\020\006B\374\004\n" - + "\033com.google.cloud.ces.v1betaB\010App" - + "ProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" - + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organizat" - + "ion}/locations/{location}/inspectTemplates/{inspect_template}\022Kprojects/{project" - + "}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{or" - + "ganization}/locations/{location}/deidentifyTemplates/{deidentify_template}\022Qproj" - + "ects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{location}" - + "/collections/{collection}/engines/{engine}b\006proto3" + + "\033com.google.cloud.ces.v1" + + "betaB\010AppProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{" + + "organization}/locations/{location}/inspectTemplates/{inspect_template}\022Kprojects" + + "/{project}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organiza" + + "tions/{organization}/locations/{location}/deidentifyTemplates/{deidentify_templa" + + "te}\022Qprojects/{project}/locations/{locat" + + "ion}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{" + + "location}/collections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -569,7 +599,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor, new java.lang.String[] { - "ErrorHandlingStrategy", + "ErrorHandlingStrategy", "FallbackResponseConfig", "EndSessionConfig", + }); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor = + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor, + new java.lang.String[] { + "CustomFallbackMessages", "MaxFallbackAttempts", + }); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor = + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor = + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor, + new java.lang.String[] { + "EscalateSession", }); internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_descriptor = getDescriptor().getMessageType(10); @@ -647,7 +702,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ConversationLoggingSettings_descriptor, new java.lang.String[] { - "DisableConversationLogging", + "DisableConversationLogging", "RetentionWindow", }); internal_static_google_cloud_ces_v1beta_CloudLoggingSettings_descriptor = getDescriptor().getMessageType(14); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettings.java index 0c4cb4422fa7..f99c05a1404a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettings.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1beta.ConversationLoggingSettings.Builder.class); } + private int bitField0_; public static final int DISABLE_CONVERSATION_LOGGING_FIELD_NUMBER = 1; private boolean disableConversationLogging_ = false; @@ -87,6 +88,65 @@ public boolean getDisableConversationLogging() { return disableConversationLogging_; } + public static final int RETENTION_WINDOW_FIELD_NUMBER = 2; + private com.google.protobuf.Duration retentionWindow_; + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + @java.lang.Override + public boolean hasRetentionWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + @java.lang.Override + public com.google.protobuf.Duration getRetentionWindow() { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder() { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -104,6 +164,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disableConversationLogging_ != false) { output.writeBool(1, disableConversationLogging_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRetentionWindow()); + } getUnknownFields().writeTo(output); } @@ -116,6 +179,9 @@ public int getSerializedSize() { if (disableConversationLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableConversationLogging_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRetentionWindow()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -133,6 +199,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.ConversationLoggingSettings) obj; if (getDisableConversationLogging() != other.getDisableConversationLogging()) return false; + if (hasRetentionWindow() != other.hasRetentionWindow()) return false; + if (hasRetentionWindow()) { + if (!getRetentionWindow().equals(other.getRetentionWindow())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -146,6 +216,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DISABLE_CONVERSATION_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableConversationLogging()); + if (hasRetentionWindow()) { + hash = (37 * hash) + RETENTION_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getRetentionWindow().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -277,10 +351,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1beta.ConversationLoggingSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRetentionWindowFieldBuilder(); + } } @java.lang.Override @@ -288,6 +371,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; disableConversationLogging_ = false; + retentionWindow_ = null; + if (retentionWindowBuilder_ != null) { + retentionWindowBuilder_.dispose(); + retentionWindowBuilder_ = null; + } return this; } @@ -327,6 +415,13 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ConversationLoggingSettin if (((from_bitField0_ & 0x00000001) != 0)) { result.disableConversationLogging_ = disableConversationLogging_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.retentionWindow_ = + retentionWindowBuilder_ == null ? retentionWindow_ : retentionWindowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -345,6 +440,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ConversationLoggingSettings if (other.getDisableConversationLogging() != false) { setDisableConversationLogging(other.getDisableConversationLogging()); } + if (other.hasRetentionWindow()) { + mergeRetentionWindow(other.getRetentionWindow()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -377,6 +475,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + input.readMessage( + internalGetRetentionWindowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -452,6 +557,227 @@ public Builder clearDisableConversationLogging() { return this; } + private com.google.protobuf.Duration retentionWindow_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + retentionWindowBuilder_; + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + public boolean hasRetentionWindow() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + public com.google.protobuf.Duration getRetentionWindow() { + if (retentionWindowBuilder_ == null) { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } else { + return retentionWindowBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetentionWindow(com.google.protobuf.Duration value) { + if (retentionWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retentionWindow_ = value; + } else { + retentionWindowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetentionWindow(com.google.protobuf.Duration.Builder builderForValue) { + if (retentionWindowBuilder_ == null) { + retentionWindow_ = builderForValue.build(); + } else { + retentionWindowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetentionWindow(com.google.protobuf.Duration value) { + if (retentionWindowBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && retentionWindow_ != null + && retentionWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRetentionWindowBuilder().mergeFrom(value); + } else { + retentionWindow_ = value; + } + } else { + retentionWindowBuilder_.mergeFrom(value); + } + if (retentionWindow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetentionWindow() { + bitField0_ = (bitField0_ & ~0x00000002); + retentionWindow_ = null; + if (retentionWindowBuilder_ != null) { + retentionWindowBuilder_.dispose(); + retentionWindowBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getRetentionWindowBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRetentionWindowFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder() { + if (retentionWindowBuilder_ != null) { + return retentionWindowBuilder_.getMessageOrBuilder(); + } else { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetRetentionWindowFieldBuilder() { + if (retentionWindowBuilder_ == null) { + retentionWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRetentionWindow(), getParentForChildren(), isClean()); + retentionWindow_ = null; + } + return retentionWindowBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ConversationLoggingSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettingsOrBuilder.java index 2441ca63b93e..16251ad53986 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettingsOrBuilder.java @@ -38,4 +38,47 @@ public interface ConversationLoggingSettingsOrBuilder * @return The disableConversationLogging. */ boolean getDisableConversationLogging(); + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + boolean hasRetentionWindow(); + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + com.google.protobuf.Duration getRetentionWindow(); + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java index b450f6e9a432..1ae24b897ef5 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java @@ -271,6 +271,1651 @@ private ErrorHandlingStrategy(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy) } + public interface FallbackResponseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomFallbackMessagesCount(); + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsCustomFallbackMessages(java.lang.String key); + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCustomFallbackMessages(); + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getCustomFallbackMessagesMap(); + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key); + + /** + * + * + *
+     * Optional. The maximum number of fallback attempts to make before the
+     * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+     * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + int getMaxFallbackAttempts(); + } + + /** + * + * + *
+   * Configuration for handling fallback responses.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig} + */ + public static final class FallbackResponseConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + FallbackResponseConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FallbackResponseConfig"); + } + + // Use FallbackResponseConfig.newBuilder() to construct. + private FallbackResponseConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FallbackResponseConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.class, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder + .class); + } + + public static final int CUSTOM_FALLBACK_MESSAGES_FIELD_NUMBER = 1; + + private static final class CustomFallbackMessagesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + customFallbackMessages_; + + private com.google.protobuf.MapField + internalGetCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + return customFallbackMessages_; + } + + public int getCustomFallbackMessagesCount() { + return internalGetCustomFallbackMessages().getMap().size(); + } + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomFallbackMessages().getMap().containsKey(key); + } + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomFallbackMessages() { + return getCustomFallbackMessagesMap(); + } + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomFallbackMessagesMap() { + return internalGetCustomFallbackMessages().getMap(); + } + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MAX_FALLBACK_ATTEMPTS_FIELD_NUMBER = 2; + private int maxFallbackAttempts_ = 0; + + /** + * + * + *
+     * Optional. The maximum number of fallback attempts to make before the
+     * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+     * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + @java.lang.Override + public int getMaxFallbackAttempts() { + return maxFallbackAttempts_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetCustomFallbackMessages(), + CustomFallbackMessagesDefaultEntryHolder.defaultEntry, + 1); + if (maxFallbackAttempts_ != 0) { + output.writeInt32(2, maxFallbackAttempts_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetCustomFallbackMessages().getMap().entrySet()) { + com.google.protobuf.MapEntry customFallbackMessages__ = + CustomFallbackMessagesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, customFallbackMessages__); + } + if (maxFallbackAttempts_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxFallbackAttempts_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig other = + (com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) obj; + + if (!internalGetCustomFallbackMessages().equals(other.internalGetCustomFallbackMessages())) + return false; + if (getMaxFallbackAttempts() != other.getMaxFallbackAttempts()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetCustomFallbackMessages().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_FALLBACK_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomFallbackMessages().hashCode(); + } + hash = (37 * hash) + MAX_FALLBACK_ATTEMPTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxFallbackAttempts(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for handling fallback responses.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.class, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableCustomFallbackMessages().clear(); + maxFallbackAttempts_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig build() { + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + buildPartial() { + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig result = + new com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customFallbackMessages_ = internalGetCustomFallbackMessages(); + result.customFallbackMessages_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxFallbackAttempts_ = maxFallbackAttempts_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) { + return mergeFrom( + (com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig other) { + if (other + == com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance()) return this; + internalGetMutableCustomFallbackMessages() + .mergeFrom(other.internalGetCustomFallbackMessages()); + bitField0_ |= 0x00000001; + if (other.getMaxFallbackAttempts() != 0) { + setMaxFallbackAttempts(other.getMaxFallbackAttempts()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry + customFallbackMessages__ = + input.readMessage( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableCustomFallbackMessages() + .getMutableMap() + .put(customFallbackMessages__.getKey(), customFallbackMessages__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + maxFallbackAttempts_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField + customFallbackMessages_; + + private com.google.protobuf.MapField + internalGetCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + return customFallbackMessages_; + } + + private com.google.protobuf.MapField + internalGetMutableCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + customFallbackMessages_ = + com.google.protobuf.MapField.newMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + if (!customFallbackMessages_.isMutable()) { + customFallbackMessages_ = customFallbackMessages_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return customFallbackMessages_; + } + + public int getCustomFallbackMessagesCount() { + return internalGetCustomFallbackMessages().getMap().size(); + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomFallbackMessages().getMap().containsKey(key); + } + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomFallbackMessages() { + return getCustomFallbackMessagesMap(); + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomFallbackMessagesMap() { + return internalGetCustomFallbackMessages().getMap(); + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomFallbackMessages() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableCustomFallbackMessages().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCustomFallbackMessages().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCustomFallbackMessages() { + bitField0_ |= 0x00000001; + return internalGetMutableCustomFallbackMessages().getMutableMap(); + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putCustomFallbackMessages(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableCustomFallbackMessages().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllCustomFallbackMessages( + java.util.Map values) { + internalGetMutableCustomFallbackMessages().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private int maxFallbackAttempts_; + + /** + * + * + *
+       * Optional. The maximum number of fallback attempts to make before the
+       * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+       * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + @java.lang.Override + public int getMaxFallbackAttempts() { + return maxFallbackAttempts_; + } + + /** + * + * + *
+       * Optional. The maximum number of fallback attempts to make before the
+       * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+       * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxFallbackAttempts to set. + * @return This builder for chaining. + */ + public Builder setMaxFallbackAttempts(int value) { + + maxFallbackAttempts_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The maximum number of fallback attempts to make before the
+       * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+       * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxFallbackAttempts() { + bitField0_ = (bitField0_ & ~0x00000002); + maxFallbackAttempts_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + private static final com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig(); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FallbackResponseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EndSessionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Whether to escalate the session in
+     * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+     * escalated, [metadata in
+     * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+     * `session_escalated = true`. See
+     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+     * for details.
+     * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + boolean hasEscalateSession(); + + /** + * + * + *
+     * Optional. Whether to escalate the session in
+     * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+     * escalated, [metadata in
+     * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+     * `session_escalated = true`. See
+     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+     * for details.
+     * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + boolean getEscalateSession(); + } + + /** + * + * + *
+   * Configuration for ending the session in case of system errors (e.g. LLM
+   * errors).
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig} + */ + public static final class EndSessionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + EndSessionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndSessionConfig"); + } + + // Use EndSessionConfig.newBuilder() to construct. + private EndSessionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndSessionConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.class, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder.class); + } + + private int bitField0_; + public static final int ESCALATE_SESSION_FIELD_NUMBER = 1; + private boolean escalateSession_ = false; + + /** + * + * + *
+     * Optional. Whether to escalate the session in
+     * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+     * escalated, [metadata in
+     * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+     * `session_escalated = true`. See
+     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+     * for details.
+     * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + @java.lang.Override + public boolean hasEscalateSession() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Whether to escalate the session in
+     * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+     * escalated, [metadata in
+     * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+     * `session_escalated = true`. See
+     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+     * for details.
+     * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + @java.lang.Override + public boolean getEscalateSession() { + return escalateSession_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, escalateSession_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, escalateSession_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig other = + (com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) obj; + + if (hasEscalateSession() != other.hasEscalateSession()) return false; + if (hasEscalateSession()) { + if (getEscalateSession() != other.getEscalateSession()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEscalateSession()) { + hash = (37 * hash) + ESCALATE_SESSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEscalateSession()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for ending the session in case of system errors (e.g. LLM
+     * errors).
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.class, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + escalateSession_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig build() { + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig buildPartial() { + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig result = + new com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.escalateSession_ = escalateSession_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) { + return mergeFrom( + (com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig other) { + if (other + == com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance()) return this; + if (other.hasEscalateSession()) { + setEscalateSession(other.getEscalateSession()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + escalateSession_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean escalateSession_; + + /** + * + * + *
+       * Optional. Whether to escalate the session in
+       * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+       * escalated, [metadata in
+       * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+       * `session_escalated = true`. See
+       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+       * for details.
+       * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + @java.lang.Override + public boolean hasEscalateSession() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Whether to escalate the session in
+       * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+       * escalated, [metadata in
+       * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+       * `session_escalated = true`. See
+       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+       * for details.
+       * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + @java.lang.Override + public boolean getEscalateSession() { + return escalateSession_; + } + + /** + * + * + *
+       * Optional. Whether to escalate the session in
+       * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+       * escalated, [metadata in
+       * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+       * `session_escalated = true`. See
+       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+       * for details.
+       * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The escalateSession to set. + * @return This builder for chaining. + */ + public Builder setEscalateSession(boolean value) { + + escalateSession_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Whether to escalate the session in
+       * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+       * escalated, [metadata in
+       * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+       * `session_escalated = true`. See
+       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+       * for details.
+       * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEscalateSession() { + bitField0_ = (bitField0_ & ~0x00000001); + escalateSession_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + private static final com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig(); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndSessionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int ERROR_HANDLING_STRATEGY_FIELD_NUMBER = 1; private int errorHandlingStrategy_ = 0; @@ -316,6 +1961,133 @@ public int getErrorHandlingStrategyValue() { : result; } + public static final int FALLBACK_RESPONSE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + fallbackResponseConfig_; + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + @java.lang.Override + public boolean hasFallbackResponseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getFallbackResponseConfig() { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder() { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } + + public static final int END_SESSION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig endSessionConfig_; + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + @java.lang.Override + public boolean hasEndSessionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig getEndSessionConfig() { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance() + : endSessionConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder() { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance() + : endSessionConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -336,6 +2108,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, errorHandlingStrategy_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFallbackResponseConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndSessionConfig()); + } getUnknownFields().writeTo(output); } @@ -351,6 +2129,13 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorHandlingStrategy_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFallbackResponseConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndSessionConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -368,6 +2153,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.ErrorHandlingSettings) obj; if (errorHandlingStrategy_ != other.errorHandlingStrategy_) return false; + if (hasFallbackResponseConfig() != other.hasFallbackResponseConfig()) return false; + if (hasFallbackResponseConfig()) { + if (!getFallbackResponseConfig().equals(other.getFallbackResponseConfig())) return false; + } + if (hasEndSessionConfig() != other.hasEndSessionConfig()) return false; + if (hasEndSessionConfig()) { + if (!getEndSessionConfig().equals(other.getEndSessionConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,6 +2174,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ERROR_HANDLING_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + errorHandlingStrategy_; + if (hasFallbackResponseConfig()) { + hash = (37 * hash) + FALLBACK_RESPONSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFallbackResponseConfig().hashCode(); + } + if (hasEndSessionConfig()) { + hash = (37 * hash) + END_SESSION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEndSessionConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -511,10 +2312,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1beta.ErrorHandlingSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFallbackResponseConfigFieldBuilder(); + internalGetEndSessionConfigFieldBuilder(); + } } @java.lang.Override @@ -522,6 +2333,16 @@ public Builder clear() { super.clear(); bitField0_ = 0; errorHandlingStrategy_ = 0; + fallbackResponseConfig_ = null; + if (fallbackResponseConfigBuilder_ != null) { + fallbackResponseConfigBuilder_.dispose(); + fallbackResponseConfigBuilder_ = null; + } + endSessionConfig_ = null; + if (endSessionConfigBuilder_ != null) { + endSessionConfigBuilder_.dispose(); + endSessionConfigBuilder_ = null; + } return this; } @@ -561,6 +2382,20 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ErrorHandlingSettings res if (((from_bitField0_ & 0x00000001) != 0)) { result.errorHandlingStrategy_ = errorHandlingStrategy_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fallbackResponseConfig_ = + fallbackResponseConfigBuilder_ == null + ? fallbackResponseConfig_ + : fallbackResponseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endSessionConfig_ = + endSessionConfigBuilder_ == null ? endSessionConfig_ : endSessionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -579,6 +2414,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ErrorHandlingSettings other if (other.errorHandlingStrategy_ != 0) { setErrorHandlingStrategyValue(other.getErrorHandlingStrategyValue()); } + if (other.hasFallbackResponseConfig()) { + mergeFallbackResponseConfig(other.getFallbackResponseConfig()); + } + if (other.hasEndSessionConfig()) { + mergeEndSessionConfig(other.getEndSessionConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -611,6 +2452,21 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + input.readMessage( + internalGetFallbackResponseConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEndSessionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -740,6 +2596,462 @@ public Builder clearErrorHandlingStrategy() { return this; } + private com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + fallbackResponseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder> + fallbackResponseConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + public boolean hasFallbackResponseConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getFallbackResponseConfig() { + if (fallbackResponseConfigBuilder_ == null) { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } else { + return fallbackResponseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFallbackResponseConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig value) { + if (fallbackResponseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fallbackResponseConfig_ = value; + } else { + fallbackResponseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFallbackResponseConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder + builderForValue) { + if (fallbackResponseConfigBuilder_ == null) { + fallbackResponseConfig_ = builderForValue.build(); + } else { + fallbackResponseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFallbackResponseConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig value) { + if (fallbackResponseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && fallbackResponseConfig_ != null + && fallbackResponseConfig_ + != com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance()) { + getFallbackResponseConfigBuilder().mergeFrom(value); + } else { + fallbackResponseConfig_ = value; + } + } else { + fallbackResponseConfigBuilder_.mergeFrom(value); + } + if (fallbackResponseConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFallbackResponseConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + fallbackResponseConfig_ = null; + if (fallbackResponseConfigBuilder_ != null) { + fallbackResponseConfigBuilder_.dispose(); + fallbackResponseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder + getFallbackResponseConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFallbackResponseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder() { + if (fallbackResponseConfigBuilder_ != null) { + return fallbackResponseConfigBuilder_.getMessageOrBuilder(); + } else { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder> + internalGetFallbackResponseConfigFieldBuilder() { + if (fallbackResponseConfigBuilder_ == null) { + fallbackResponseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder>( + getFallbackResponseConfig(), getParentForChildren(), isClean()); + fallbackResponseConfig_ = null; + } + return fallbackResponseConfigBuilder_; + } + + private com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig endSessionConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder> + endSessionConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + public boolean hasEndSessionConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + getEndSessionConfig() { + if (endSessionConfigBuilder_ == null) { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance() + : endSessionConfig_; + } else { + return endSessionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndSessionConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig value) { + if (endSessionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endSessionConfig_ = value; + } else { + endSessionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndSessionConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder + builderForValue) { + if (endSessionConfigBuilder_ == null) { + endSessionConfig_ = builderForValue.build(); + } else { + endSessionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndSessionConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig value) { + if (endSessionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endSessionConfig_ != null + && endSessionConfig_ + != com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance()) { + getEndSessionConfigBuilder().mergeFrom(value); + } else { + endSessionConfig_ = value; + } + } else { + endSessionConfigBuilder_.mergeFrom(value); + } + if (endSessionConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndSessionConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + endSessionConfig_ = null; + if (endSessionConfigBuilder_ != null) { + endSessionConfigBuilder_.dispose(); + endSessionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder + getEndSessionConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEndSessionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder() { + if (endSessionConfigBuilder_ != null) { + return endSessionConfigBuilder_.getMessageOrBuilder(); + } else { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance() + : endSessionConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder> + internalGetEndSessionConfigFieldBuilder() { + if (endSessionConfigBuilder_ == null) { + endSessionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder>( + getEndSessionConfig(), getParentForChildren(), isClean()); + endSessionConfig_ = null; + } + return endSessionConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ErrorHandlingSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettingsOrBuilder.java index 2677f8611b5c..3666c502f582 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettingsOrBuilder.java @@ -56,4 +56,96 @@ public interface ErrorHandlingSettingsOrBuilder */ com.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy getErrorHandlingStrategy(); + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + boolean hasFallbackResponseConfig(); + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getFallbackResponseConfig(); + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + boolean hasEndSessionConfig(); + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig getEndSessionConfig(); + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java index d46db23f2cee..c234e3d91302 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java @@ -259,7 +259,7 @@ private EvaluationChannel(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return Whether the inputAudioConfig field is set. */ @java.lang.Override @@ -280,7 +280,7 @@ public boolean hasInputAudioConfig() { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return The inputAudioConfig. */ @java.lang.Override @@ -325,7 +325,7 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return Whether the outputAudioConfig field is set. */ @java.lang.Override @@ -346,7 +346,7 @@ public boolean hasOutputAudioConfig() { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return The outputAudioConfig. */ @java.lang.Override @@ -907,7 +907,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return Whether the inputAudioConfig field is set. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public boolean hasInputAudioConfig() { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return The inputAudioConfig. */ @java.lang.Deprecated @@ -1133,7 +1133,7 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return Whether the outputAudioConfig field is set. */ @java.lang.Deprecated @@ -1153,7 +1153,7 @@ public boolean hasOutputAudioConfig() { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return The outputAudioConfig. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java index e9edea45b74c..1292493bd3c3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java @@ -38,7 +38,7 @@ public interface EvaluationConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return Whether the inputAudioConfig field is set. */ @java.lang.Deprecated @@ -56,7 +56,7 @@ public interface EvaluationConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return The inputAudioConfig. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface EvaluationConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return Whether the outputAudioConfig field is set. */ @java.lang.Deprecated @@ -106,7 +106,7 @@ public interface EvaluationConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return The outputAudioConfig. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java index 286c9cfc83cf..1ee27eca9fc7 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java @@ -4770,7 +4770,7 @@ public boolean hasGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -4792,7 +4792,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5586,7 +5586,7 @@ public Builder clearGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -5608,7 +5608,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5633,7 +5633,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5662,7 +5662,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @param value The hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5691,7 +5691,7 @@ public Builder setHallucinationMetricBehavior( * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java index 9220a0d0d71b..7e95d5e040e2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java @@ -84,7 +84,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Deprecated @@ -103,7 +103,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The hallucinationMetricBehavior. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java index 1ce6b21ec362..bfed484231ed 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java @@ -444,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.ces.v1beta.AggregatedMetricsB\003\340A\003:\255\001\352A\251\001\n" + "$ces.googleapis.com/EvaluationDataset\022Zprojects/{proje" + "ct}/locations/{location}/apps/{app}/eval" - + "uationDatasets/{evaluation_dataset}*\022evaluationDatasets2\021evaluationDataset\"\2637\n" + + "uationDatasets/{evaluation_dataset}*\022evaluationDatasets2\021evaluationDataset\"\3007\n" + "\020EvaluationResult\022T\n\r" + "golden_result\030\007 \001(\01326" + ".google.cloud.ces.v1beta.EvaluationResult.GoldenResultB\003\340A\003H\000\022X\n" @@ -642,19 +642,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\005B\003\340A\003H\000\210\001\001\022\022\n" + "\005label\030\002 \001(\tB\003\340A\003\022\030\n" + "\013explanation\030\003 \001(\tB\003\340A\003B\010\n" - + "\006_score\"6\n" + + "\006_score\"C\n" + "\007Outcome\022\027\n" + "\023OUTCOME_UNSPECIFIED\020\000\022\010\n" + "\004PASS\020\001\022\010\n" - + "\004FAIL\020\002\"X\n" + + "\004FAIL\020\002\022\013\n" + + "\007SKIPPED\020\003\"X\n" + "\016ExecutionState\022\037\n" + "\033EXECUTION_STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003:\267\001\352A\263\001\n" - + "#ces.googleapis.com/EvaluationResult\022gprojects/{project}/loc" - + "ations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result" - + "}*\021evaluationResults2\020evaluationResultB\010\n" + + "#ces.googleapis.com/EvaluationResult\022gprojects/" + + "{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{eval" + + "uation_result}*\021evaluationResults2\020evaluationResultB\010\n" + "\006result\"\251\021\n\r" + "EvaluationRun\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" @@ -676,31 +677,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ces.googleapis.com/Evaluation\022H\n" + "\022evaluation_dataset\030\010 \001(\tB,\340A\003\372A&\n" + "$ces.googleapis.com/EvaluationDataset\022S\n" - + "\017evaluation_type\030\t" - + " \001(\01625.google.cloud.ces.v1beta.EvaluationRun.EvaluationTypeB\003\340A\003\022M\n" + + "\017evaluation_type\030\t \001(\01625.google.cloud.ces.v1" + + "beta.EvaluationRun.EvaluationTypeB\003\340A\003\022M\n" + "\005state\030\n" - + " \001(\016" - + "29.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\003\340A\003\022F\n" - + "\010progress\030\013 \001" - + "(\0132/.google.cloud.ces.v1beta.EvaluationRun.ProgressB\003\340A\003\022>\n" - + "\006config\030\014 \001(\0132).googl" - + "e.cloud.ces.v1beta.EvaluationConfigB\003\340A\003\022(\n" + + " \001(\01629.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\003\340A\003\022F\n" + + "\010progress\030\013" + + " \001(\0132/.google.cloud.ces.v1beta.EvaluationRun.ProgressB\003\340A\003\022>\n" + + "\006config\030\014" + + " \001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\003\340A\003\022(\n" + "\005error\030\016 \001(\0132\022.google.rpc.StatusB\005\030\001\340A\003\022E\n\n" - + "error_info\030\021" - + " \001(\0132,.google.cloud.ces.v1beta.EvaluationErrorInfoB\003\340A\003\022i\n" - + "\030evaluation_run_summaries\030\017 \003(\0132B.google.clo" - + "ud.ces.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\003\340A\003\022C\n" + + "error_info\030\021 \001(\0132,.go" + + "ogle.cloud.ces.v1beta.EvaluationErrorInfoB\003\340A\003\022i\n" + + "\030evaluation_run_summaries\030\017 \003(\013" + + "2B.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\003\340A\003\022C\n" + "\016latency_report\030\031" + " \001(\0132&.google.cloud.ces.v1beta.LatencyReportB\003\340A\003\022\026\n" + "\trun_count\030\020 \001(\005B\003\340A\003\022K\n" - + "\023persona_run_configs\030\022" - + " \003(\0132).google.cloud.ces.v1beta.PersonaRunConfigB\003\340A\003\022M\n" - + "\023optimization_config\030\023" - + " \001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\003\340A\001\022S\n" + + "\023persona_run_configs\030\022 \003(\0132).go" + + "ogle.cloud.ces.v1beta.PersonaRunConfigB\003\340A\003\022M\n" + + "\023optimization_config\030\023 \001(\0132+.googl" + + "e.cloud.ces.v1beta.OptimizationConfigB\003\340A\001\022S\n" + "\030scheduled_evaluation_run\030\024 \001(\tB1\340A\003\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\022H\n" - + "\021golden_run_method\030\025" - + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\003\340A\003\032\222\001\n" + + "\021golden_run_method\030\025 \001(\0162(.goo" + + "gle.cloud.ces.v1beta.GoldenRunMethodB\003\340A\003\032\222\001\n" + "\010Progress\022\030\n" + "\013total_count\030\001 \001(\005B\003\340A\003\022\031\n" + "\014failed_count\030\002 \001(\005B\003\340A\003\022\030\n" @@ -713,8 +713,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013error_count\030\003 \001(\005B\003\340A\003\032z\n" + "\033EvaluationRunSummariesEntry\022\013\n" + "\003key\030\001 \001(\t\022J\n" - + "\005value\030\002 \001(\0132;.google.cloud.ces." - + "v1beta.EvaluationRun.EvaluationRunSummary:\0028\001\"V\n" + + "\005value\030\002 \001(\0132;.goog" + + "le.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummary:\0028\001\"V\n" + "\016EvaluationType\022\037\n" + "\033EVALUATION_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006GOLDEN\020\001\022\014\n" @@ -725,52 +725,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003:\231\001\352A\225\001\n" - + " ces.googleapis.com/EvaluationRun\022Rprojects/{project}/locations/{location}/apps/" - + "{app}/evaluationRuns/{evaluation_run}*\016evaluationRuns2\r" + + " ces.googleapis.com/EvaluationRun\022Rprojects/{project}/locations/{lo" + + "cation}/apps/{app}/evaluationRuns/{evaluation_run}*\016evaluationRuns2\r" + "evaluationRun\"\252\n\n\r" + "LatencyReport\022R\n" - + "\016tool_latencies\030\001 \003(\01322.google." - + "cloud.ces.v1beta.LatencyReport.ToolLatencyB\006\340A\003\340A\006\022Z\n" - + "\022callback_latencies\030\002 \003(\01326" - + ".google.cloud.ces.v1beta.LatencyReport.CallbackLatencyB\006\340A\003\340A\006\022\\\n" - + "\023guardrail_latencies\030\003" - + " \003(\01327.google.cloud.ces.v1beta.LatencyReport.GuardrailLatencyB\006\340A\003\340A\006\022Y\n" - + "\022llm_call_latencies\030\004 \003(\01325.google.cloud." - + "ces.v1beta.LatencyReport.LlmCallLatencyB\006\340A\003\340A\006\022\032\n\r" + + "\016tool_latencies\030\001 " + + "\003(\01322.google.cloud.ces.v1beta.LatencyReport.ToolLatencyB\006\340A\003\340A\006\022Z\n" + + "\022callback_latencies\030\002" + + " \003(\01326.google.cloud.ces.v1beta.LatencyReport.CallbackLatencyB\006\340A\003\340A\006\022\\\n" + + "\023guardrail_latencies\030\003 \003(\01327.google.cloud." + + "ces.v1beta.LatencyReport.GuardrailLatencyB\006\340A\003\340A\006\022Y\n" + + "\022llm_call_latencies\030\004 \003(\01325." + + "google.cloud.ces.v1beta.LatencyReport.LlmCallLatencyB\006\340A\003\340A\006\022\032\n\r" + "session_count\030\005 \001(\005B\003\340A\003\032\310\001\n" + "\016LatencyMetrics\0223\n" + "\013p50_latency\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0223\n" + "\013p90_latency\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0223\n" + "\013p99_latency\030\003" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\022\027\n\n" - + "call_count\030\004 \001(\005B\003\340A\003\032\211", - "\002\n" + + "call_count", + "\030\004 \001(\005B\003\340A\003\032\211\002\n" + "\013ToolLatency\022/\n" + "\004tool\030\001 \001(\tB\037\340A\003\372A\031\n" + "\027ces.googleapis.com/ToolH\000\022A\n" + "\014toolset_tool\030\002" + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\003\340A\003H\000\022\036\n" + "\021tool_display_name\030\003 \001(\tB\003\340A\003\022S\n" - + "\017latency_metrics\030\004 \001(\01325.google.clo" - + "ud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003B\021\n" + + "\017latency_metrics\030\004 \001(\013" + + "25.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003B\021\n" + "\017tool_identifier\032z\n" + "\017CallbackLatency\022\022\n" + "\005stage\030\001 \001(\tB\003\340A\003\022S\n" - + "\017latency_metrics\030\002" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\032\305\001\n" + + "\017latency_metrics\030\002 \001(\01325.google.cloud.c" + + "es.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\032\305\001\n" + "\020GuardrailLatency\0227\n" + "\tguardrail\030\001 \001(\tB$\340A\003\372A\036\n" + "\034ces.googleapis.com/Guardrail\022#\n" + "\026guardrail_display_name\030\002 \001(\tB\003\340A\003\022S\n" - + "\017latency_metrics\030\003" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\032y\n" + + "\017latency_metrics\030\003 \001(\01325.google.cloud.c" + + "es.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\032y\n" + "\016LlmCallLatency\022\022\n" + "\005model\030\001 \001(\tB\003\340A\003\022S\n" - + "\017latency_metrics\030\002" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\"\244\004\n" + + "\017latency_metrics\030\002 \001(\01325.google.clou" + + "d.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\"\244\004\n" + "\025EvaluationExpectation\022W\n" - + "\014llm_criteria\030\003 \001(" - + "\0132:.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteriaB\003\340A\001H\000\022\021\n" + + "\014llm_criteria\030\003 \001(\0132:.google.cloud.ces.v1beta" + + ".EvaluationExpectation.LlmCriteriaB\003\340A\001H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\021\n" + "\004tags\030\010 \003(\tB\003\340A\001\0224\n" @@ -780,26 +780,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\006 \001(\tB\003\340A\003\032\"\n" + "\013LlmCriteria\022\023\n" + "\006prompt\030\001 \001(\tB\003\340A\002:\301\001\352A\275\001\n" - + "(ces.googleapis.com/EvaluationExpectation\022bprojects/{pro" - + "ject}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expecta" - + "tion}*\026evaluationExpectations2\025evaluationExpectationB\n\n" + + "(ces.googleapis.com/EvaluationExpectation\022bprojects/{project}/locations/{location}/" + + "apps/{app}/evaluationExpectations/{evalu" + + "ation_expectation}*\026evaluationExpectations2\025evaluationExpectationB\n\n" + "\010criteria\"\264\003\n" + "\020EvaluationConfig\022L\n" - + "\022input_audio_config\030\001 \001(\0132).goog" - + "le.cloud.ces.v1beta.InputAudioConfigB\005\030\001\340A\001\022N\n" - + "\023output_audio_config\030\002 \001(\0132*.googl" - + "e.cloud.ces.v1beta.OutputAudioConfigB\005\030\001\340A\001\022\\\n" - + "\022evaluation_channel\030\003 \001(\0162;.google" - + ".cloud.ces.v1beta.EvaluationConfig.EvaluationChannelB\003\340A\001\022V\n" - + "\023tool_call_behaviour\030\004" - + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\"L\n" + + "\022input_audio_config\030\001" + + " \001(\0132).google.cloud.ces.v1beta.InputAudioConfigB\005\030\001\340A\001\022N\n" + + "\023output_audio_config\030\002" + + " \001(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\005\030\001\340A\001\022\\\n" + + "\022evaluation_channel\030\003" + + " \001(\0162;.google.cloud.ces.v1beta.EvaluationConfig.EvaluationChannelB\003\340A\001\022V\n" + + "\023tool_call_behaviour\030\004 \001(\01624.google.cloud.ces.v" + + "1beta.EvaluationToolCallBehaviourB\003\340A\001\"L\n" + "\021EvaluationChannel\022\"\n" + "\036EVALUATION_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" + "\005AUDIO\020\002\"\357\002\n" + "\023EvaluationErrorInfo\022O\n\n" - + "error_type\030\001 \001(\01626.google.clo" - + "ud.ces.v1beta.EvaluationErrorInfo.ErrorTypeB\003\340A\003\022\032\n\r" + + "error_type\030\001 \001(\016" + + "26.google.cloud.ces.v1beta.EvaluationErrorInfo.ErrorTypeB\003\340A\003\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\003\022\027\n\n" + "session_id\030\003 \001(\tB\003\340A\003\"\321\001\n" + "\tErrorType\022\032\n" @@ -820,13 +820,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\004 \001(\tB\003\340A\001\022:\n" + "\013app_version\030\006 \001(\tB%\340A\001\372A\037\n" + "\035ces.googleapis.com/AppVersion\022>\n" - + "\006config\030\010" - + " \001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\003\340A\001\022\033\n" + + "\006config\030\010 \001(\0132).goog" + + "le.cloud.ces.v1beta.EvaluationConfigB\003\340A\001\022\033\n" + "\trun_count\030\t \001(\005B\003\340A\001H\000\210\001\001\022K\n" + "\023persona_run_configs\030\n" + " \003(\0132).google.cloud.ces.v1beta.PersonaRunConfigB\003\340A\001\022M\n" - + "\023optimization_config\030\013 " - + "\001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\003\340A\001\022S\n" + + "\023optimization_config\030\013" + + " \001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\003\340A\001\022S\n" + "\030scheduled_evaluation_run\030\014 \001(\tB1\340A\001\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\022H\n" + "\021golden_run_method\030\r" @@ -836,11 +836,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ScheduledEvaluationRun\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022C\n" - + "\007request\030\003 \001(\0132-.goo" - + "gle.cloud.ces.v1beta.RunEvaluationRequestB\003\340A\002\022\030\n" + + "\007request\030\003" + + " \001(\0132-.google.cloud.ces.v1beta.RunEvaluationRequestB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022`\n" - + "\021scheduling_config\030\005 \001(\0132@.google.cloud.ces.v" - + "1beta.ScheduledEvaluationRun.SchedulingConfigB\003\340A\002\022\023\n" + + "\021scheduling_config\030\005 \001(\0132@.googl" + + "e.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfigB\003\340A\002\022\023\n" + "\006active\030\006 \001(\010B\003\340A\001\022D\n" + "\022last_completed_run\030\007 \001(\tB(\340A\003\372A\"\n" + " ces.googleapis.com/EvaluationRun\022\035\n" @@ -856,8 +856,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\003\022\021\n" + "\004etag\030\016 \001(\tB\003\340A\003\032\235\002\n" + "\020SchedulingConfig\022b\n" - + "\tfrequency\030\001 \001(\0162J.google.clou" - + "d.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.FrequencyB\003\340A\002\0223\n\n" + + "\tfrequency\030\001 \001(\0162J.google.cloud.ces.v1beta.ScheduledEvalu" + + "ationRun.SchedulingConfig.FrequencyB\003\340A\002\0223\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\031\n" + "\014days_of_week\030\003 \003(\005B\003\340A\001\"U\n" + "\tFrequency\022\031\n" @@ -866,9 +866,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DAILY\020\002\022\n\n" + "\006WEEKLY\020\003\022\014\n" + "\010BIWEEKLY\020\004:\307\001\352A\303\001\n" - + ")ces.googleapis.com/ScheduledEvaluationRun\022eprojects/{project}/locations/{loca" - + "tion}/apps/{app}/scheduledEvaluationRuns" - + "/{scheduled_evaluation_run}*\027scheduledEvaluationRuns2\026scheduledEvaluationRun\"A\n" + + ")ces.googleapis.com/ScheduledEvaluationRun\022eprojects/{project}/lo" + + "cations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}" + + "*\027scheduledEvaluationRuns2\026scheduledEvaluationRun\"A\n" + "\020PersonaRunConfig\022\024\n" + "\007persona\030\001 \001(\tB\003\340A\001\022\027\n\n" + "task_count\030\002 \001(\005B\003\340A\001\"\233\003\n" @@ -877,8 +877,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021assistant_session\030\002 \001(\tB\003\340A\003\022\033\n" + "\016report_summary\030\003 \001(\tB\003\340A\003\022\037\n" + "\022should_suggest_fix\030\005 \001(\010B\003\340A\003\022S\n" - + "\006status\030\004 \001(\0162>.google" - + ".cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\003\340A\003\022\032\n\r" + + "\006status\030\004" + + " \001(\0162>.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\003\340A\003\022\032\n\r" + "error_message\030\006 \001(\tB\003\340A\003\0221\n" + "\013loss_report\030\007 \001(\0132\027.google.protobuf.StructB\003\340A\003\"`\n" + "\022OptimizationStatus\022#\n" @@ -886,8 +886,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003B_\n" - + "\033com.google.cloud.ces.v1betaB\017Evaluation" - + "ProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\017EvaluationProtoP\001Z-cloud.google.com/g" + + "o/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java index ef2468c50189..7015877c05ab 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java @@ -121,6 +121,16 @@ public enum Outcome implements com.google.protobuf.ProtocolMessageEnum { * FAIL = 2; */ FAIL(2), + /** + * + * + *
+     * Evaluation/Expectation was skipped.
+     * 
+ * + * SKIPPED = 3; + */ + SKIPPED(3), UNRECOGNIZED(-1), ; @@ -169,6 +179,17 @@ public enum Outcome implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAIL_VALUE = 2; + /** + * + * + *
+     * Evaluation/Expectation was skipped.
+     * 
+ * + * SKIPPED = 3; + */ + public static final int SKIPPED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -199,6 +220,8 @@ public static Outcome forNumber(int value) { return PASS; case 2: return FAIL; + case 3: + return SKIPPED; default: return null; } @@ -34568,7 +34591,7 @@ public com.google.cloud.ces.v1beta.EvaluationErrorInfoOrBuilder getErrorInfoOrBu * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return Whether the error field is set. */ @java.lang.Override @@ -34590,7 +34613,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return The error. */ @java.lang.Override @@ -37643,7 +37666,7 @@ public com.google.cloud.ces.v1beta.EvaluationErrorInfoOrBuilder getErrorInfoOrBu * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -37664,7 +37687,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java index f20f2a72174e..0d18005ddfce 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java @@ -382,7 +382,7 @@ public interface EvaluationResultOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -401,7 +401,7 @@ public interface EvaluationResultOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java index 365ed7d21f59..47fffbe7f562 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java @@ -3116,7 +3116,7 @@ public com.google.cloud.ces.v1beta.EvaluationConfigOrBuilder getConfigOrBuilder( * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return Whether the error field is set. */ @java.lang.Override @@ -3138,7 +3138,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return The error. */ @java.lang.Override @@ -7191,7 +7191,7 @@ public com.google.cloud.ces.v1beta.EvaluationConfigOrBuilder getConfigOrBuilder( * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -7212,7 +7212,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java index 96cb0d073a4e..742ad4b28938 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java @@ -634,7 +634,7 @@ public interface EvaluationRunOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -653,7 +653,7 @@ public interface EvaluationRunOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java index d165854ace7c..c416c2616ccc 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java @@ -224,6 +224,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_ListEvaluationExpectationsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_ListEvaluationExpectationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportOptions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_FailedEvaluationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_FailedEvaluationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -238,10 +262,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "vice.proto\022\027google.cloud.ces.v1beta\032\034goo" + "gle/api/annotations.proto\032\027google/api/cl" + "ient.proto\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032*google/c" - + "loud/ces/v1beta/conversation.proto\032(google/cloud/ces/v1beta/evaluation.proto\032#go" - + "ogle/longrunning/operations.proto\032\036googl" - + "e/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + + "oto\032\031google/api/resource.proto\032+google/c" + + "loud/ces/v1beta/agent_service.proto\032*google/cloud/ces/v1beta/conversation.proto\032" + + "(google/cloud/ces/v1beta/evaluation.prot" + + "o\032#google/longrunning/operations.proto\032\036" + + "google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"V\n" + "\025RunEvaluationResponse\022=\n" + "\016evaluation_run\030\001 \001(\tB%\372A\"\n" @@ -266,33 +291,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031GenerateEvaluationRequest\022=\n" + "\014conversation\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022C\n" - + "\006source\030\002 \001(\0162" - + ",.google.cloud.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\373\004\n" + + "\006source\030\002" + + " \001(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\373\004\n" + "\030ImportEvaluationsRequest\022_\n" - + "\021conversation_list\030\002 \001(\0132B.google.cl" - + "oud.ces.v1beta.ImportEvaluationsRequest.ConversationListH\000\022\021\n" + + "\021conversation_list\030\002 \001(\0132B.goog" + + "le.cloud.ces.v1beta.ImportEvaluationsRequest.ConversationListH\000\022\021\n" + "\007gcs_uri\030\003 \001(\tH\000\022\025\n" + "\013csv_content\030\004 \001(\014H\000\022.\n" + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022\\\n" - + "\016import_options\030\005 \001(\0132?.google.cloud.ces.v1beta.I" - + "mportEvaluationsRequest.ImportOptionsB\003\340A\001\032.\n" + + "\016import_options\030\005 \001(\0132?.google.cloud.ces.v1b" + + "eta.ImportEvaluationsRequest.ImportOptionsB\003\340A\001\032.\n" + "\020ConversationList\022\032\n\r" + "conversations\030\001 \003(\tB\003\340A\001\032\213\002\n\r" + "ImportOptions\022\205\001\n" - + "\034conflict_resolution_strategy\030\001 \001(\0162Z.google.clo" - + "ud.ces.v1beta.ImportEvaluationsRequest.I" - + "mportOptions.ConflictResolutionStrategyB\003\340A\001\"r\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162Z.googl" + + "e.cloud.ces.v1beta.ImportEvaluationsRequ" + + "est.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"r\n" + "\032ConflictResolutionStrategy\022,\n" + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\r\n" + "\tOVERWRITE\020\001\022\010\n" + "\004SKIP\020\002\022\r\n" + "\tDUPLICATE\020\003B\010\n" - + "\006source\"\220\001\n" + + "\006source\"\365\002\n" + "\031ImportEvaluationsResponse\0228\n" - + "\013evaluations\030\001 \003(\0132#.google.cloud.ces.v1beta.Evaluation\022\033\n" + + "\013evaluations\030\001 \003(\0132#.google.cloud.ces.v1beta.Evaluation\022E\n" + + "\022evaluation_results\030\004" + + " \003(\0132).google.cloud.ces.v1beta.EvaluationResult\022?\n" + + "\017evaluation_runs\030\005 \003(\0132" + + "&.google.cloud.ces.v1beta.EvaluationRun\022\033\n" + "\016error_messages\030\002 \003(\tB\003\340A\001\022\034\n" - + "\024import_failure_count\030\003 \001(\005\"\252\001\n" + + "\024import_failure_count\030\003 \001(\005\022.\n" + + "&evaluation_result_import_failure_count\030\006 \001(\005\022+\n" + + "#evaluation_run_import_failure_count\030\007 \001(\005\"\252\001\n" + "\"ImportEvaluationsOperationMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" @@ -301,8 +332,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022\"\n" + "\025evaluation_dataset_id\030\002 \001(\tB\003\340A\001\022K\n" - + "\022evaluation_dataset\030\003 \001(\0132*." - + "google.cloud.ces.v1beta.EvaluationDatasetB\003\340A\002\"\215\001\n" + + "\022evaluation_dataset\030\003 \001(\0132*.google" + + ".cloud.ces.v1beta.EvaluationDatasetB\003\340A\002\"\215\001\n" + "\027UpdateEvaluationRequest\022<\n\n" + "evaluation\030\001 \001(\0132#.google.cloud.ces.v1beta.EvaluationB\003\340A\002\0224\n" + "\013update_mask\030\002" @@ -377,25 +408,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132).google.cloud.ces.v1beta.EvaluationResult\022\027\n" + "\017next_page_token\030\002 \001(\t\"\202\001\n" + "\036ListEvaluationDatasetsResponse\022G\n" - + "\023evaluation_datasets\030\001 \003" - + "(\0132*.google.cloud.ces.v1beta.EvaluationDataset\022\027\n" + + "\023evaluation_datasets\030\001 \003(\0132*.g" + + "oogle.cloud.ces.v1beta.EvaluationDataset\022\027\n" + "\017next_page_token\030\002 \001(\t\"v\n" + "\032ListEvaluationRunsResponse\022?\n" - + "\017evaluation_runs\030\001" - + " \003(\0132&.google.cloud.ces.v1beta.EvaluationRun\022\027\n" + + "\017evaluation_runs\030\001 \003(\013" + + "2&.google.cloud.ces.v1beta.EvaluationRun\022\027\n" + "\017next_page_token\030\002 \001(\t\"\327\001\n" + "#CreateScheduledEvaluationRunRequest\022.\n" + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022(\n" + "\033scheduled_evaluation_run_id\030\002 \001(\tB\003\340A\001\022V\n" - + "\030scheduled_evaluation_run\030\003 \001(\0132/.go" - + "ogle.cloud.ces.v1beta.ScheduledEvaluationRunB\003\340A\002\"c\n" + + "\030scheduled_evaluation_run\030\003 \001(\0132/.google.c" + + "loud.ces.v1beta.ScheduledEvaluationRunB\003\340A\002\"c\n" + " GetScheduledEvaluationRunRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\"\304\001\n" + "\"ListScheduledEvaluationRunsRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\340A\002\372A+\022)ces.googleapis.com/ScheduledEvaluationRun\022\026\n" + + "\006parent\030\001 \001(\tB" + + "1\340A\002\372A+\022)ces.googleapis.com/ScheduledEvaluationRun\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -432,11 +463,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022&\n" + "\031evaluation_expectation_id\030\002 \001(\tB\003\340A\001\022S\n" - + "\026evaluation_expectation\030\003 \001(\0132..goog" - + "le.cloud.ces.v1beta.EvaluationExpectationB\003\340A\002\"\257\001\n" + + "\026evaluation_expectation\030\003 \001(\0132..google.clo" + + "ud.ces.v1beta.EvaluationExpectationB\003\340A\002\"\257\001\n" + "\"UpdateEvaluationExpectationRequest\022S\n" - + "\026evaluation_expectation\030\001 \001(\0132.." - + "google.cloud.ces.v1beta.EvaluationExpectationB\003\340A\002\0224\n" + + "\026evaluation_expectation\030\001 \001(\0132..google" + + ".cloud.ces.v1beta.EvaluationExpectationB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"w\n" + "\"DeleteEvaluationExpectationRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -453,161 +484,199 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\216\001\n" + "\"ListEvaluationExpectationsResponse\022O\n" - + "\027evaluation_expectations\030\001 \003(\0132..goog" - + "le.cloud.ces.v1beta.EvaluationExpectation\022\027\n" - + "\017next_page_token\030\002 \001(\t2\245:\n" + + "\027evaluation_expectations\030\001" + + " \003(\0132..google.cloud.ces.v1beta.EvaluationExpectation\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\271\001\n\r" + + "ExportOptions\022O\n\r" + + "export_format\030\001 \001(\01623.google.cloud.ces" + + ".v1beta.ExportOptions.ExportFormatB\003\340A\001\022\024\n" + + "\007gcs_uri\030\002 \001(\tB\003\340A\001\"A\n" + + "\014ExportFormat\022\035\n" + + "\031EXPORT_FORMAT_UNSPECIFIED\020\000\022\010\n" + + "\004JSON\020\001\022\010\n" + + "\004YAML\020\002\"\220\002\n" + + "\030ExportEvaluationsRequest\022.\n" + + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + + "\026ces.googleapis.com/App\0224\n" + + "\005names\030\002 \003(\tB%\340A\002\372A\037\n" + + "\035ces.googleapis.com/Evaluation\022C\n" + + "\016export_options\030\003 " + + "\001(\0132&.google.cloud.ces.v1beta.ExportOptionsB\003\340A\001\022\'\n" + + "\032include_evaluation_results\030\004 \001(\010B\003\340A\001\022 \n" + + "\023include_evaluations\030\005 \001(\010B\003\340A\001\"\212\002\n" + + "\031ExportEvaluationsResponse\022\035\n" + + "\023evaluations_content\030\001 \001(\014H\000\022\031\n" + + "\017evaluations_uri\030\002 \001(\tH\000\022j\n" + + "\022failed_evaluations\030\003 \003(\0132I.google.cloud.ces.v1beta.ExportEvaluati" + + "onsResponse.FailedEvaluationsEntryB\003\340A\003\0328\n" + + "\026FailedEvaluationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + + "\005value\030\002 \001(\t:\0028\001B\r\n" + + "\013evaluations\"\177\n" + + "\037ExportEvaluationResultsResponse\022$\n" + + "\032evaluation_results_content\030\001 \001(\014H\000\022 \n" + + "\026evaluation_results_uri\030\002 \001(\tH\000B\024\n" + + "\022evaluation_results\"s\n" + + "\034ExportEvaluationRunsResponse\022!\n" + + "\027evaluation_runs_content\030\001 \001(\014H\000\022\035\n" + + "\023evaluation_runs_uri\030\002 \001(\tH\000B\021\n" + + "\017evaluation_runs2\226<\n" + "\021EvaluationService\022\344\001\n\r" - + "RunEvaluation\022-.google.clou" - + "d.ces.v1beta.RunEvaluationRequest\032\035.google.longrunning.Operation\"\204\001\312A7\n" - + "\025RunEvaluationResponse\022\036RunEvaluationOperationMet" - + "adata\332A\003app\202\323\344\223\002>\"9/v1beta/{app=projects" - + "/*/locations/*/apps/*}:runEvaluation:\001*\022\370\001\n" - + "\025UploadEvaluationAudio\0225.google.cloud.ces.v1beta.UploadEvaluationAudioRequest" - + "\0326.google.cloud.ces.v1beta.UploadEvaluat" - + "ionAudioResponse\"p\332A\022name,audio_content\202" - + "\323\344\223\002U\"P/v1beta/{name=projects/*/location" - + "s/*/apps/*/evaluations/*}:uploadEvaluationAudio:\001*\022\360\001\n" - + "\020CreateEvaluation\0220.google.cloud.ces.v1beta.CreateEvaluationReques" - + "t\032#.google.cloud.ces.v1beta.Evaluation\"\204" - + "\001\332A\037parent,evaluation,evaluation_id\332A\021pa" - + "rent,evaluation\202\323\344\223\002H\":/v1beta/{parent=p" - + "rojects/*/locations/*/apps/*}/evaluations:\n" + + "RunEvaluation\022-.google.cloud.ces.v1beta.RunEvaluationRe" + + "quest\032\035.google.longrunning.Operation\"\204\001\312A7\n" + + "\025RunEvaluationResponse\022\036RunEvaluation" + + "OperationMetadata\332A\003app\202\323\344\223\002>\"9/v1beta/{" + + "app=projects/*/locations/*/apps/*}:runEvaluation:\001*\022\370\001\n" + + "\025UploadEvaluationAudio\0225.google.cloud.ces.v1beta.UploadEvaluation" + + "AudioRequest\0326.google.cloud.ces.v1beta.U" + + "ploadEvaluationAudioResponse\"p\332A\022name,au" + + "dio_content\202\323\344\223\002U\"P/v1beta/{name=project" + + "s/*/locations/*/apps/*/evaluations/*}:uploadEvaluationAudio:\001*\022\360\001\n" + + "\020CreateEvaluation\0220.google.cloud.ces.v1beta.CreateEval" + + "uationRequest\032#.google.cloud.ces.v1beta." + + "Evaluation\"\204\001\332A\037parent,evaluation,evalua" + + "tion_id\332A\021parent,evaluation\202\323\344\223\002H\":/v1be" + + "ta/{parent=projects/*/locations/*/apps/*}/evaluations:\n" + "evaluation\022\217\002\n" - + "\022GenerateEvaluation\0222.google.cloud.ces.v1beta.GenerateEvaluatio" - + "nRequest\032\035.google.longrunning.Operation\"\245\001\312A1\n\n" - + "Evaluation\022#GenerateEvaluationOpe" - + "rationMetadata\332A\014conversation\202\323\344\223\002\\\"W/v1" - + "beta/{conversation=projects/*/locations/" - + "*/apps/*/conversations/*}:generateEvaluation:\001*\022\376\001\n" - + "\021ImportEvaluations\0221.google.c" - + "loud.ces.v1beta.ImportEvaluationsRequest\032\035.google.longrunning.Operation\"\226\001\312A?\n" - + "\031ImportEvaluationsResponse\022\"ImportEvaluati" - + "onsOperationMetadata\332A\006parent\202\323\344\223\002E\"@/v1" - + "beta/{parent=projects/*/locations/*/apps/*}:importEvaluations:\001*\022\254\002\n" - + "\027CreateEvaluationDataset\0227.google.cloud.ces.v1beta.C" - + "reateEvaluationDatasetRequest\032*.google.c" - + "loud.ces.v1beta.EvaluationDataset\"\253\001\332A/p" - + "arent,evaluation_dataset,evaluation_data" - + "set_id\332A\031parent,evaluation_dataset\202\323\344\223\002W" - + "\"A/v1beta/{parent=projects/*/locations/*" - + "/apps/*}/evaluationDatasets:\022evaluation_dataset\022\335\001\n" - + "\020UpdateEvaluation\0220.google.cloud.ces.v1beta.UpdateEvaluationRequest\032#" - + ".google.cloud.ces.v1beta.Evaluation\"r\332A\026" - + "evaluation,update_mask\202\323\344\223\002S2E/v1beta/{e" - + "valuation.name=projects/*/locations/*/apps/*/evaluations/*}:\n" + + "\022GenerateEvaluation\0222.google.cloud.ces.v1beta.Gener" + + "ateEvaluationRequest\032\035.google.longrunning.Operation\"\245\001\312A1\n\n" + + "Evaluation\022#GenerateEvaluationOperationMetadata\332A\014conversatio" + + "n\202\323\344\223\002\\\"W/v1beta/{conversation=projects/" + + "*/locations/*/apps/*/conversations/*}:generateEvaluation:\001*\022\376\001\n" + + "\021ImportEvaluations\0221.google.cloud.ces.v1beta.ImportEvalua" + + "tionsRequest\032\035.google.longrunning.Operation\"\226\001\312A?\n" + + "\031ImportEvaluationsResponse\022\"ImportEvaluationsOperationMetadata\332A\006paren" + + "t\202\323\344\223\002E\"@/v1beta/{parent=projects/*/locations/*/apps/*}:importEvaluations:\001*\022\254\002\n" + + "\027CreateEvaluationDataset\0227.google.cloud.ces.v1beta.CreateEvaluationDatasetReques" + + "t\032*.google.cloud.ces.v1beta.EvaluationDa" + + "taset\"\253\001\332A/parent,evaluation_dataset,eva" + + "luation_dataset_id\332A\031parent,evaluation_d" + + "ataset\202\323\344\223\002W\"A/v1beta/{parent=projects/*" + + "/locations/*/apps/*}/evaluationDatasets:\022evaluation_dataset\022\335\001\n" + + "\020UpdateEvaluation\0220.google.cloud.ces.v1beta.UpdateEvaluat" + + "ionRequest\032#.google.cloud.ces.v1beta.Eva" + + "luation\"r\332A\026evaluation,update_mask\202\323\344\223\002S" + + "2E/v1beta/{evaluation.name=projects/*/locations/*/apps/*/evaluations/*}:\n" + "evaluation\022\222\002\n" - + "\027UpdateEvaluationDataset\0227.google.cloud.ces.v" - + "1beta.UpdateEvaluationDatasetRequest\032*.google.cloud.ces.v1beta.EvaluationDataset" - + "\"\221\001\332A\036evaluation_dataset,update_mask\202\323\344\223" - + "\002j2T/v1beta/{evaluation_dataset.name=pro" - + "jects/*/locations/*/apps/*/evaluationDatasets/*}:\022evaluation_dataset\022\247\001\n" - + "\020DeleteEvaluation\0220.google.cloud.ces.v1beta.Dele" - + "teEvaluationRequest\032\026.google.protobuf.Em" - + "pty\"I\332A\004name\202\323\344\223\002<*:/v1beta/{name=projec" - + "ts/*/locations/*/apps/*/evaluations/*}\022\275\001\n" - + "\026DeleteEvaluationResult\0226.google.cloud.ces.v1beta.DeleteEvaluationResultReques" - + "t\032\026.google.protobuf.Empty\"S\332A\004name\202\323\344\223\002F" - + "*D/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*/results/*}\022\274\001\n" - + "\027DeleteEvaluationDataset\0227.google.cloud.ces.v1" - + "beta.DeleteEvaluationDatasetRequest\032\026.go" - + "ogle.protobuf.Empty\"P\332A\004name\202\323\344\223\002C*A/v1b" - + "eta/{name=projects/*/locations/*/apps/*/evaluationDatasets/*}\022\370\001\n" - + "\023DeleteEvaluationRun\0223.google.cloud.ces.v1beta.DeleteEv" - + "aluationRunRequest\032\035.google.longrunning.Operation\"\214\001\312A=\n" - + "\025google.protobuf.Empty\022$DeleteEvaluationRunOperationMetadata\332A\004n" - + "ame\202\323\344\223\002?*=/v1beta/{name=projects/*/locations/*/apps/*/evaluationRuns/*}\022\256\001\n\r" - + "GetEvaluation\022-.google.cloud.ces.v1beta.Get" - + "EvaluationRequest\032#.google.cloud.ces.v1b" - + "eta.Evaluation\"I\332A\004name\202\323\344\223\002<\022:/v1beta/{" - + "name=projects/*/locations/*/apps/*/evaluations/*}\022\312\001\n" - + "\023GetEvaluationResult\0223.google.cloud.ces.v1beta.GetEvaluationResultR" - + "equest\032).google.cloud.ces.v1beta.Evaluat" - + "ionResult\"S\332A\004name\202\323\344\223\002F\022D/v1beta/{name=" - + "projects/*/locations/*/apps/*/evaluations/*/results/*}\022\312\001\n" - + "\024GetEvaluationDataset\0224.google.cloud.ces.v1beta.GetEvaluationD" - + "atasetRequest\032*.google.cloud.ces.v1beta." - + "EvaluationDataset\"P\332A\004name\202\323\344\223\002C\022A/v1bet" - + "a/{name=projects/*/locations/*/apps/*/evaluationDatasets/*}\022\272\001\n" - + "\020GetEvaluationRun\0220.google.cloud.ces.v1beta.GetEvaluation" - + "RunRequest\032&.google.cloud.ces.v1beta.Eva" - + "luationRun\"L\332A\004name\202\323\344\223\002?\022=/v1beta/{name" - + "=projects/*/locations/*/apps/*/evaluationRuns/*}\022\301\001\n" - + "\017ListEvaluations\022/.google.cloud.ces.v1beta.ListEvaluationsRequest\0320." - + "google.cloud.ces.v1beta.ListEvaluationsR" - + "esponse\"K\332A\006parent\202\323\344\223\002<\022:/v1beta/{paren" - + "t=projects/*/locations/*/apps/*}/evaluations\022\335\001\n" - + "\025ListEvaluationResults\0225.google.cloud.ces.v1beta.ListEvaluationResultsRe" - + "quest\0326.google.cloud.ces.v1beta.ListEval" - + "uationResultsResponse\"U\332A\006parent\202\323\344\223\002F\022D" - + "/v1beta/{parent=projects/*/locations/*/apps/*/evaluations/*}/results\022\335\001\n" - + "\026ListEvaluationDatasets\0226.google.cloud.ces.v1bet" - + "a.ListEvaluationDatasetsRequest\0327.google.cloud.ces.v1beta.ListEvaluationDatasets" - + "Response\"R\332A\006parent\202\323\344\223\002C\022A/v1beta/{pare" - + "nt=projects/*/locations/*/apps/*}/evaluationDatasets\022\315\001\n" - + "\022ListEvaluationRuns\0222.google.cloud.ces.v1beta.ListEvaluationRuns" - + "Request\0323.google.cloud.ces.v1beta.ListEv" - + "aluationRunsResponse\"N\332A\006parent\202\323\344\223\002?\022=/" - + "v1beta/{parent=projects/*/locations/*/apps/*}/evaluationRuns\022\355\001\n" - + "\032ListEvaluationExpectations\022:.google.cloud.ces.v1beta.Li" - + "stEvaluationExpectationsRequest\032;.google.cloud.ces.v1beta.ListEvaluationExpectat" - + "ionsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1beta/{" - + "parent=projects/*/locations/*/apps/*}/evaluationExpectations\022\332\001\n" - + "\030GetEvaluationExpectation\0228.google.cloud.ces.v1beta.GetE" - + "valuationExpectationRequest\032..google.clo" - + "ud.ces.v1beta.EvaluationExpectation\"T\332A\004" - + "name\202\323\344\223\002G\022E/v1beta/{name=projects/*/loc" - + "ations/*/apps/*/evaluationExpectations/*}\022\314\002\n" - + "\033CreateEvaluationExpectation\022;.google.cloud.ces.v1beta.CreateEvaluationExpe" - + "ctationRequest\032..google.cloud.ces.v1beta" - + ".EvaluationExpectation\"\277\001\332A7parent,evalu" - + "ation_expectation,evaluation_expectation" - + "_id\332A\035parent,evaluation_expectation\202\323\344\223\002" - + "_\"E/v1beta/{parent=projects/*/locations/" - + "*/apps/*}/evaluationExpectations:\026evaluation_expectation\022\256\002\n" - + "\033UpdateEvaluationExpectation\022;.google.cloud.ces.v1beta.Updat" - + "eEvaluationExpectationRequest\032..google.c" - + "loud.ces.v1beta.EvaluationExpectation\"\241\001" - + "\332A\"evaluation_expectation,update_mask\202\323\344" - + "\223\002v2\\/v1beta/{evaluation_expectation.nam" - + "e=projects/*/locations/*/apps/*/evaluati" - + "onExpectations/*}:\026evaluation_expectation\022\310\001\n" - + "\033DeleteEvaluationExpectation\022;.google.cloud.ces.v1beta.DeleteEvaluationExpe" - + "ctationRequest\032\026.google.protobuf.Empty\"T" - + "\332A\004name\202\323\344\223\002G*E/v1beta/{name=projects/*/" - + "locations/*/apps/*/evaluationExpectations/*}\022\330\002\n" - + "\034CreateScheduledEvaluationRun\022<.google.cloud.ces.v1beta.CreateScheduledE" - + "valuationRunRequest\032/.google.cloud.ces.v" - + "1beta.ScheduledEvaluationRun\"\310\001\332A;parent" - + ",scheduled_evaluation_run,scheduled_evaluation_run_id\332A\037parent,scheduled_evaluat" - + "ion_run\202\323\344\223\002b\"F/v1beta/{parent=projects/" - + "*/locations/*/apps/*}/scheduledEvaluationRuns:\030scheduled_evaluation_run\022\336\001\n" - + "\031GetScheduledEvaluationRun\0229.google.cloud.ces" - + ".v1beta.GetScheduledEvaluationRunRequest\032/.google.cloud.ces.v1beta.ScheduledEval" - + "uationRun\"U\332A\004name\202\323\344\223\002H\022F/v1beta/{name=" - + "projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}\022\361\001\n" - + "\033ListScheduledEvaluationRuns\022;.google.cloud.ces.v1beta.ListS" - + "cheduledEvaluationRunsRequest\032<.google.cloud.ces.v1beta.ListScheduledEvaluationR" - + "unsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1beta/{p" - + "arent=projects/*/locations/*/apps/*}/scheduledEvaluationRuns\022\270\002\n" - + "\034UpdateScheduledEvaluationRun\022<.google.cloud.ces.v1beta." - + "UpdateScheduledEvaluationRunRequest\032/.google.cloud.ces.v1beta.ScheduledEvaluatio" - + "nRun\"\250\001\332A$scheduled_evaluation_run,updat" - + "e_mask\202\323\344\223\002{2_/v1beta/{scheduled_evaluat" - + "ion_run.name=projects/*/locations/*/apps" - + "/*/scheduledEvaluationRuns/*}:\030scheduled_evaluation_run\022\313\001\n" - + "\034DeleteScheduledEvaluationRun\022<.google.cloud.ces.v1beta.Delet" - + "eScheduledEvaluationRunRequest\032\026.google." - + "protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F/v1beta/{" - + "name=projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}\022\306\001\n" - + "\020TestPersonaVoice\0220.google.cloud.ces.v1beta.TestPersona" - + "VoiceRequest\0321.google.cloud.ces.v1beta.T" - + "estPersonaVoiceResponse\"M\332A\003app\202\323\344\223\002A\" + * Optional. Mock configuration for the tool execution. + * If this field is set, tools that call other tools will be + * mocked based on the provided patterns and responses. + * + * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + @java.lang.Override + public boolean hasMockConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig getMockConfig() { + return mockConfig_ == null + ? com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance() + : mockConfig_; + } + + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfigOrBuilder getMockConfigOrBuilder() { + return mockConfig_ == null + ? com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance() + : mockConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -577,6 +642,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toolExecutionContextCase_ == 6) { output.writeMessage(6, (com.google.protobuf.Struct) toolExecutionContext_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getMockConfig()); + } getUnknownFields().writeTo(output); } @@ -610,6 +678,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.protobuf.Struct) toolExecutionContext_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMockConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -631,6 +702,10 @@ public boolean equals(final java.lang.Object obj) { if (hasArgs()) { if (!getArgs().equals(other.getArgs())) return false; } + if (hasMockConfig() != other.hasMockConfig()) return false; + if (hasMockConfig()) { + if (!getMockConfig().equals(other.getMockConfig())) return false; + } if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; switch (toolIdentifierCase_) { case 1: @@ -670,6 +745,10 @@ public int hashCode() { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgs().hashCode(); } + if (hasMockConfig()) { + hash = (37 * hash) + MOCK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMockConfig().hashCode(); + } switch (toolIdentifierCase_) { case 1: hash = (37 * hash) + TOOL_FIELD_NUMBER; @@ -837,6 +916,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetArgsFieldBuilder(); + internalGetMockConfigFieldBuilder(); } } @@ -859,6 +939,11 @@ public Builder clear() { argsBuilder_.dispose(); argsBuilder_ = null; } + mockConfig_ = null; + if (mockConfigBuilder_ != null) { + mockConfigBuilder_.dispose(); + mockConfigBuilder_ = null; + } toolIdentifierCase_ = 0; toolIdentifier_ = null; toolExecutionContextCase_ = 0; @@ -908,6 +993,10 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ExecuteToolRequest result result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mockConfig_ = mockConfigBuilder_ == null ? mockConfig_ : mockConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -947,6 +1036,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ExecuteToolRequest other) { if (other.hasArgs()) { mergeArgs(other.getArgs()); } + if (other.hasMockConfig()) { + mergeMockConfig(other.getMockConfig()); + } switch (other.getToolIdentifierCase()) { case TOOL: { @@ -1046,6 +1138,13 @@ public Builder mergeFrom( toolExecutionContextCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + internalGetMockConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2276,6 +2375,236 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { return argsBuilder_; } + private com.google.cloud.ces.v1beta.MockConfig mockConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.MockConfig, + com.google.cloud.ces.v1beta.MockConfig.Builder, + com.google.cloud.ces.v1beta.MockConfigOrBuilder> + mockConfigBuilder_; + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + public boolean hasMockConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + public com.google.cloud.ces.v1beta.MockConfig getMockConfig() { + if (mockConfigBuilder_ == null) { + return mockConfig_ == null + ? com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance() + : mockConfig_; + } else { + return mockConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockConfig(com.google.cloud.ces.v1beta.MockConfig value) { + if (mockConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mockConfig_ = value; + } else { + mockConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockConfig(com.google.cloud.ces.v1beta.MockConfig.Builder builderForValue) { + if (mockConfigBuilder_ == null) { + mockConfig_ = builderForValue.build(); + } else { + mockConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMockConfig(com.google.cloud.ces.v1beta.MockConfig value) { + if (mockConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && mockConfig_ != null + && mockConfig_ != com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance()) { + getMockConfigBuilder().mergeFrom(value); + } else { + mockConfig_ = value; + } + } else { + mockConfigBuilder_.mergeFrom(value); + } + if (mockConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + mockConfig_ = null; + if (mockConfigBuilder_ != null) { + mockConfigBuilder_.dispose(); + mockConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockConfig.Builder getMockConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetMockConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockConfigOrBuilder getMockConfigOrBuilder() { + if (mockConfigBuilder_ != null) { + return mockConfigBuilder_.getMessageOrBuilder(); + } else { + return mockConfig_ == null + ? com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance() + : mockConfig_; + } + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.MockConfig, + com.google.cloud.ces.v1beta.MockConfig.Builder, + com.google.cloud.ces.v1beta.MockConfigOrBuilder> + internalGetMockConfigFieldBuilder() { + if (mockConfigBuilder_ == null) { + mockConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.MockConfig, + com.google.cloud.ces.v1beta.MockConfig.Builder, + com.google.cloud.ces.v1beta.MockConfigOrBuilder>( + getMockConfig(), getParentForChildren(), isClean()); + mockConfig_ = null; + } + return mockConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExecuteToolRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExecuteToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExecuteToolRequestOrBuilder.java index 05853423d692..427cafb7c77a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExecuteToolRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExecuteToolRequestOrBuilder.java @@ -275,6 +275,55 @@ public interface ExecuteToolRequestOrBuilder */ com.google.protobuf.StructOrBuilder getArgsOrBuilder(); + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + boolean hasMockConfig(); + + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + com.google.cloud.ces.v1beta.MockConfig getMockConfig(); + + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.MockConfigOrBuilder getMockConfigOrBuilder(); + com.google.cloud.ces.v1beta.ExecuteToolRequest.ToolIdentifierCase getToolIdentifierCase(); com.google.cloud.ces.v1beta.ExecuteToolRequest.ToolExecutionContextCase diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponse.java new file mode 100644 index 000000000000..5cedf7592453 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponse.java @@ -0,0 +1,899 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [EvaluationService.ExportEvaluationResults][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationResults].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationResultsResponse} + */ +@com.google.protobuf.Generated +public final class ExportEvaluationResultsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + ExportEvaluationResultsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportEvaluationResultsResponse"); + } + + // Use ExportEvaluationResultsResponse.newBuilder() to construct. + private ExportEvaluationResultsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportEvaluationResultsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.Builder.class); + } + + private int evaluationResultsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evaluationResults_; + + public enum EvaluationResultsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVALUATION_RESULTS_CONTENT(1), + EVALUATION_RESULTS_URI(2), + EVALUATIONRESULTS_NOT_SET(0); + private final int value; + + private EvaluationResultsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvaluationResultsCase valueOf(int value) { + return forNumber(value); + } + + public static EvaluationResultsCase forNumber(int value) { + switch (value) { + case 1: + return EVALUATION_RESULTS_CONTENT; + case 2: + return EVALUATION_RESULTS_URI; + case 0: + return EVALUATIONRESULTS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvaluationResultsCase getEvaluationResultsCase() { + return EvaluationResultsCase.forNumber(evaluationResultsCase_); + } + + public static final int EVALUATION_RESULTS_CONTENT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * The content of the exported Evaluation Results. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_results_content = 1; + * + * @return Whether the evaluationResultsContent field is set. + */ + @java.lang.Override + public boolean hasEvaluationResultsContent() { + return evaluationResultsCase_ == 1; + } + + /** + * + * + *
+   * The content of the exported Evaluation Results. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_results_content = 1; + * + * @return The evaluationResultsContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationResultsContent() { + if (evaluationResultsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluationResults_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int EVALUATION_RESULTS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return Whether the evaluationResultsUri field is set. + */ + public boolean hasEvaluationResultsUri() { + return evaluationResultsCase_ == 2; + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return The evaluationResultsUri. + */ + public java.lang.String getEvaluationResultsUri() { + java.lang.Object ref = ""; + if (evaluationResultsCase_ == 2) { + ref = evaluationResults_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationResultsCase_ == 2) { + evaluationResults_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return The bytes for evaluationResultsUri. + */ + public com.google.protobuf.ByteString getEvaluationResultsUriBytes() { + java.lang.Object ref = ""; + if (evaluationResultsCase_ == 2) { + ref = evaluationResults_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationResultsCase_ == 2) { + evaluationResults_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (evaluationResultsCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) evaluationResults_); + } + if (evaluationResultsCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, evaluationResults_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluationResultsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) evaluationResults_); + } + if (evaluationResultsCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, evaluationResults_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse other = + (com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse) obj; + + if (!getEvaluationResultsCase().equals(other.getEvaluationResultsCase())) return false; + switch (evaluationResultsCase_) { + case 1: + if (!getEvaluationResultsContent().equals(other.getEvaluationResultsContent())) + return false; + break; + case 2: + if (!getEvaluationResultsUri().equals(other.getEvaluationResultsUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (evaluationResultsCase_) { + case 1: + hash = (37 * hash) + EVALUATION_RESULTS_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsContent().hashCode(); + break; + case 2: + hash = (37 * hash) + EVALUATION_RESULTS_URI_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [EvaluationService.ExportEvaluationResults][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationResults].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationResultsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluationResultsCase_ = 0; + evaluationResults_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse build() { + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse buildPartial() { + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse result = + new com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse result) { + result.evaluationResultsCase_ = evaluationResultsCase_; + result.evaluationResults_ = this.evaluationResults_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse other) { + if (other == com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.getDefaultInstance()) + return this; + switch (other.getEvaluationResultsCase()) { + case EVALUATION_RESULTS_CONTENT: + { + setEvaluationResultsContent(other.getEvaluationResultsContent()); + break; + } + case EVALUATION_RESULTS_URI: + { + evaluationResultsCase_ = 2; + evaluationResults_ = other.evaluationResults_; + onChanged(); + break; + } + case EVALUATIONRESULTS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluationResults_ = input.readBytes(); + evaluationResultsCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + evaluationResultsCase_ = 2; + evaluationResults_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int evaluationResultsCase_ = 0; + private java.lang.Object evaluationResults_; + + public EvaluationResultsCase getEvaluationResultsCase() { + return EvaluationResultsCase.forNumber(evaluationResultsCase_); + } + + public Builder clearEvaluationResults() { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The content of the exported Evaluation Results. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_results_content = 1; + * + * @return Whether the evaluationResultsContent field is set. + */ + public boolean hasEvaluationResultsContent() { + return evaluationResultsCase_ == 1; + } + + /** + * + * + *
+     * The content of the exported Evaluation Results. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_results_content = 1; + * + * @return The evaluationResultsContent. + */ + public com.google.protobuf.ByteString getEvaluationResultsContent() { + if (evaluationResultsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluationResults_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
+     * The content of the exported Evaluation Results. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_results_content = 1; + * + * @param value The evaluationResultsContent to set. + * @return This builder for chaining. + */ + public Builder setEvaluationResultsContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResultsCase_ = 1; + evaluationResults_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The content of the exported Evaluation Results. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_results_content = 1; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationResultsContent() { + if (evaluationResultsCase_ == 1) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @return Whether the evaluationResultsUri field is set. + */ + @java.lang.Override + public boolean hasEvaluationResultsUri() { + return evaluationResultsCase_ == 2; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @return The evaluationResultsUri. + */ + @java.lang.Override + public java.lang.String getEvaluationResultsUri() { + java.lang.Object ref = ""; + if (evaluationResultsCase_ == 2) { + ref = evaluationResults_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationResultsCase_ == 2) { + evaluationResults_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @return The bytes for evaluationResultsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationResultsUriBytes() { + java.lang.Object ref = ""; + if (evaluationResultsCase_ == 2) { + ref = evaluationResults_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationResultsCase_ == 2) { + evaluationResults_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @param value The evaluationResultsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationResultsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResultsCase_ = 2; + evaluationResults_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationResultsUri() { + if (evaluationResultsCase_ == 2) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @param value The bytes for evaluationResultsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationResultsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationResultsCase_ = 2; + evaluationResults_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + private static final com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse(); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluationResultsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponseOrBuilder.java new file mode 100644 index 000000000000..6fa0ba49ff1d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportEvaluationResultsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The content of the exported Evaluation Results. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_results_content = 1; + * + * @return Whether the evaluationResultsContent field is set. + */ + boolean hasEvaluationResultsContent(); + + /** + * + * + *
+   * The content of the exported Evaluation Results. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_results_content = 1; + * + * @return The evaluationResultsContent. + */ + com.google.protobuf.ByteString getEvaluationResultsContent(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return Whether the evaluationResultsUri field is set. + */ + boolean hasEvaluationResultsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return The evaluationResultsUri. + */ + java.lang.String getEvaluationResultsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return The bytes for evaluationResultsUri. + */ + com.google.protobuf.ByteString getEvaluationResultsUriBytes(); + + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.EvaluationResultsCase + getEvaluationResultsCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponse.java new file mode 100644 index 000000000000..393f4f66b8b1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponse.java @@ -0,0 +1,898 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [EvaluationService.ExportEvaluationRuns][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationRuns].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationRunsResponse} + */ +@com.google.protobuf.Generated +public final class ExportEvaluationRunsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + ExportEvaluationRunsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportEvaluationRunsResponse"); + } + + // Use ExportEvaluationRunsResponse.newBuilder() to construct. + private ExportEvaluationRunsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportEvaluationRunsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.Builder.class); + } + + private int evaluationRunsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evaluationRuns_; + + public enum EvaluationRunsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVALUATION_RUNS_CONTENT(1), + EVALUATION_RUNS_URI(2), + EVALUATIONRUNS_NOT_SET(0); + private final int value; + + private EvaluationRunsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvaluationRunsCase valueOf(int value) { + return forNumber(value); + } + + public static EvaluationRunsCase forNumber(int value) { + switch (value) { + case 1: + return EVALUATION_RUNS_CONTENT; + case 2: + return EVALUATION_RUNS_URI; + case 0: + return EVALUATIONRUNS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvaluationRunsCase getEvaluationRunsCase() { + return EvaluationRunsCase.forNumber(evaluationRunsCase_); + } + + public static final int EVALUATION_RUNS_CONTENT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * The content of the exported Evaluation Runs. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return Whether the evaluationRunsContent field is set. + */ + @java.lang.Override + public boolean hasEvaluationRunsContent() { + return evaluationRunsCase_ == 1; + } + + /** + * + * + *
+   * The content of the exported Evaluation Runs. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return The evaluationRunsContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationRunsContent() { + if (evaluationRunsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluationRuns_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int EVALUATION_RUNS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return Whether the evaluationRunsUri field is set. + */ + public boolean hasEvaluationRunsUri() { + return evaluationRunsCase_ == 2; + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The evaluationRunsUri. + */ + public java.lang.String getEvaluationRunsUri() { + java.lang.Object ref = ""; + if (evaluationRunsCase_ == 2) { + ref = evaluationRuns_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationRunsCase_ == 2) { + evaluationRuns_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The bytes for evaluationRunsUri. + */ + public com.google.protobuf.ByteString getEvaluationRunsUriBytes() { + java.lang.Object ref = ""; + if (evaluationRunsCase_ == 2) { + ref = evaluationRuns_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationRunsCase_ == 2) { + evaluationRuns_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (evaluationRunsCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) evaluationRuns_); + } + if (evaluationRunsCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, evaluationRuns_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluationRunsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) evaluationRuns_); + } + if (evaluationRunsCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, evaluationRuns_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse other = + (com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse) obj; + + if (!getEvaluationRunsCase().equals(other.getEvaluationRunsCase())) return false; + switch (evaluationRunsCase_) { + case 1: + if (!getEvaluationRunsContent().equals(other.getEvaluationRunsContent())) return false; + break; + case 2: + if (!getEvaluationRunsUri().equals(other.getEvaluationRunsUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (evaluationRunsCase_) { + case 1: + hash = (37 * hash) + EVALUATION_RUNS_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunsContent().hashCode(); + break; + case 2: + hash = (37 * hash) + EVALUATION_RUNS_URI_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [EvaluationService.ExportEvaluationRuns][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationRuns].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationRunsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluationRunsCase_ = 0; + evaluationRuns_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse build() { + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse buildPartial() { + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse result = + new com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse result) { + result.evaluationRunsCase_ = evaluationRunsCase_; + result.evaluationRuns_ = this.evaluationRuns_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse other) { + if (other == com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.getDefaultInstance()) + return this; + switch (other.getEvaluationRunsCase()) { + case EVALUATION_RUNS_CONTENT: + { + setEvaluationRunsContent(other.getEvaluationRunsContent()); + break; + } + case EVALUATION_RUNS_URI: + { + evaluationRunsCase_ = 2; + evaluationRuns_ = other.evaluationRuns_; + onChanged(); + break; + } + case EVALUATIONRUNS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluationRuns_ = input.readBytes(); + evaluationRunsCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + evaluationRunsCase_ = 2; + evaluationRuns_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int evaluationRunsCase_ = 0; + private java.lang.Object evaluationRuns_; + + public EvaluationRunsCase getEvaluationRunsCase() { + return EvaluationRunsCase.forNumber(evaluationRunsCase_); + } + + public Builder clearEvaluationRuns() { + evaluationRunsCase_ = 0; + evaluationRuns_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The content of the exported Evaluation Runs. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return Whether the evaluationRunsContent field is set. + */ + public boolean hasEvaluationRunsContent() { + return evaluationRunsCase_ == 1; + } + + /** + * + * + *
+     * The content of the exported Evaluation Runs. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return The evaluationRunsContent. + */ + public com.google.protobuf.ByteString getEvaluationRunsContent() { + if (evaluationRunsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluationRuns_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
+     * The content of the exported Evaluation Runs. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_runs_content = 1; + * + * @param value The evaluationRunsContent to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRunsContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationRunsCase_ = 1; + evaluationRuns_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The content of the exported Evaluation Runs. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationRunsContent() { + if (evaluationRunsCase_ == 1) { + evaluationRunsCase_ = 0; + evaluationRuns_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @return Whether the evaluationRunsUri field is set. + */ + @java.lang.Override + public boolean hasEvaluationRunsUri() { + return evaluationRunsCase_ == 2; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The evaluationRunsUri. + */ + @java.lang.Override + public java.lang.String getEvaluationRunsUri() { + java.lang.Object ref = ""; + if (evaluationRunsCase_ == 2) { + ref = evaluationRuns_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationRunsCase_ == 2) { + evaluationRuns_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The bytes for evaluationRunsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationRunsUriBytes() { + java.lang.Object ref = ""; + if (evaluationRunsCase_ == 2) { + ref = evaluationRuns_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationRunsCase_ == 2) { + evaluationRuns_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @param value The evaluationRunsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRunsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationRunsCase_ = 2; + evaluationRuns_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationRunsUri() { + if (evaluationRunsCase_ == 2) { + evaluationRunsCase_ = 0; + evaluationRuns_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @param value The bytes for evaluationRunsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRunsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationRunsCase_ = 2; + evaluationRuns_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + private static final com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse(); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluationRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponseOrBuilder.java new file mode 100644 index 000000000000..cfc7a3587c6a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportEvaluationRunsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The content of the exported Evaluation Runs. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return Whether the evaluationRunsContent field is set. + */ + boolean hasEvaluationRunsContent(); + + /** + * + * + *
+   * The content of the exported Evaluation Runs. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return The evaluationRunsContent. + */ + com.google.protobuf.ByteString getEvaluationRunsContent(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return Whether the evaluationRunsUri field is set. + */ + boolean hasEvaluationRunsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The evaluationRunsUri. + */ + java.lang.String getEvaluationRunsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The bytes for evaluationRunsUri. + */ + com.google.protobuf.ByteString getEvaluationRunsUriBytes(); + + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.EvaluationRunsCase + getEvaluationRunsCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequest.java new file mode 100644 index 000000000000..eeed75345caa --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequest.java @@ -0,0 +1,1455 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationsRequest} + */ +@com.google.protobuf.Generated +public final class ExportEvaluationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportEvaluationsRequest) + ExportEvaluationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportEvaluationsRequest"); + } + + // Use ExportEvaluationsRequest.newBuilder() to construct. + private ExportEvaluationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportEvaluationsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest.class, + com.google.cloud.ces.v1beta.ExportEvaluationsRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource name of the app to export evaluations from.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the app to export evaluations from.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + public static final int EXPORT_OPTIONS_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1beta.ExportOptions exportOptions_; + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportOptions field is set. + */ + @java.lang.Override + public boolean hasExportOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportOptions. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions getExportOptions() { + return exportOptions_ == null + ? com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance() + : exportOptions_; + } + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptionsOrBuilder getExportOptionsOrBuilder() { + return exportOptions_ == null + ? com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance() + : exportOptions_; + } + + public static final int INCLUDE_EVALUATION_RESULTS_FIELD_NUMBER = 4; + private boolean includeEvaluationResults_ = false; + + /** + * + * + *
+   * Optional. Includes evaluation results in the export. At least one of
+   * include_evaluation_results or include_evaluations must be set.
+   * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluationResults. + */ + @java.lang.Override + public boolean getIncludeEvaluationResults() { + return includeEvaluationResults_; + } + + public static final int INCLUDE_EVALUATIONS_FIELD_NUMBER = 5; + private boolean includeEvaluations_ = false; + + /** + * + * + *
+   * Optional. Includes evaluations in the export. At least one of
+   * include_evaluation_results or include_evaluations must be set.
+   * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluations. + */ + @java.lang.Override + public boolean getIncludeEvaluations() { + return includeEvaluations_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, names_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getExportOptions()); + } + if (includeEvaluationResults_ != false) { + output.writeBool(4, includeEvaluationResults_); + } + if (includeEvaluations_ != false) { + output.writeBool(5, includeEvaluations_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExportOptions()); + } + if (includeEvaluationResults_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, includeEvaluationResults_); + } + if (includeEvaluations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeEvaluations_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ExportEvaluationsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportEvaluationsRequest other = + (com.google.cloud.ces.v1beta.ExportEvaluationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (hasExportOptions() != other.hasExportOptions()) return false; + if (hasExportOptions()) { + if (!getExportOptions().equals(other.getExportOptions())) return false; + } + if (getIncludeEvaluationResults() != other.getIncludeEvaluationResults()) return false; + if (getIncludeEvaluations() != other.getIncludeEvaluations()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + if (hasExportOptions()) { + hash = (37 * hash) + EXPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExportOptions().hashCode(); + } + hash = (37 * hash) + INCLUDE_EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeEvaluationResults()); + hash = (37 * hash) + INCLUDE_EVALUATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeEvaluations()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.ExportEvaluationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportEvaluationsRequest) + com.google.cloud.ces.v1beta.ExportEvaluationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest.class, + com.google.cloud.ces.v1beta.ExportEvaluationsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportEvaluationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExportOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exportOptions_ = null; + if (exportOptionsBuilder_ != null) { + exportOptionsBuilder_.dispose(); + exportOptionsBuilder_ = null; + } + includeEvaluationResults_ = false; + includeEvaluations_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportEvaluationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsRequest build() { + com.google.cloud.ces.v1beta.ExportEvaluationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsRequest buildPartial() { + com.google.cloud.ces.v1beta.ExportEvaluationsRequest result = + new com.google.cloud.ces.v1beta.ExportEvaluationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportEvaluationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.exportOptions_ = + exportOptionsBuilder_ == null ? exportOptions_ : exportOptionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.includeEvaluationResults_ = includeEvaluationResults_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.includeEvaluations_ = includeEvaluations_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportEvaluationsRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportEvaluationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportEvaluationsRequest other) { + if (other == com.google.cloud.ces.v1beta.ExportEvaluationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + if (other.hasExportOptions()) { + mergeExportOptions(other.getExportOptions()); + } + if (other.getIncludeEvaluationResults() != false) { + setIncludeEvaluationResults(other.getIncludeEvaluationResults()); + } + if (other.getIncludeEvaluations() != false) { + setIncludeEvaluations(other.getIncludeEvaluations()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetExportOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + includeEvaluationResults_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + includeEvaluations_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1beta.ExportOptions exportOptions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ExportOptions, + com.google.cloud.ces.v1beta.ExportOptions.Builder, + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder> + exportOptionsBuilder_; + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportOptions field is set. + */ + public boolean hasExportOptions() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportOptions. + */ + public com.google.cloud.ces.v1beta.ExportOptions getExportOptions() { + if (exportOptionsBuilder_ == null) { + return exportOptions_ == null + ? com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance() + : exportOptions_; + } else { + return exportOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportOptions(com.google.cloud.ces.v1beta.ExportOptions value) { + if (exportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportOptions_ = value; + } else { + exportOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportOptions( + com.google.cloud.ces.v1beta.ExportOptions.Builder builderForValue) { + if (exportOptionsBuilder_ == null) { + exportOptions_ = builderForValue.build(); + } else { + exportOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExportOptions(com.google.cloud.ces.v1beta.ExportOptions value) { + if (exportOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && exportOptions_ != null + && exportOptions_ != com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance()) { + getExportOptionsBuilder().mergeFrom(value); + } else { + exportOptions_ = value; + } + } else { + exportOptionsBuilder_.mergeFrom(value); + } + if (exportOptions_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExportOptions() { + bitField0_ = (bitField0_ & ~0x00000004); + exportOptions_ = null; + if (exportOptionsBuilder_ != null) { + exportOptionsBuilder_.dispose(); + exportOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ExportOptions.Builder getExportOptionsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetExportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ExportOptionsOrBuilder getExportOptionsOrBuilder() { + if (exportOptionsBuilder_ != null) { + return exportOptionsBuilder_.getMessageOrBuilder(); + } else { + return exportOptions_ == null + ? com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance() + : exportOptions_; + } + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ExportOptions, + com.google.cloud.ces.v1beta.ExportOptions.Builder, + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder> + internalGetExportOptionsFieldBuilder() { + if (exportOptionsBuilder_ == null) { + exportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ExportOptions, + com.google.cloud.ces.v1beta.ExportOptions.Builder, + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder>( + getExportOptions(), getParentForChildren(), isClean()); + exportOptions_ = null; + } + return exportOptionsBuilder_; + } + + private boolean includeEvaluationResults_; + + /** + * + * + *
+     * Optional. Includes evaluation results in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluationResults. + */ + @java.lang.Override + public boolean getIncludeEvaluationResults() { + return includeEvaluationResults_; + } + + /** + * + * + *
+     * Optional. Includes evaluation results in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeEvaluationResults to set. + * @return This builder for chaining. + */ + public Builder setIncludeEvaluationResults(boolean value) { + + includeEvaluationResults_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Includes evaluation results in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeEvaluationResults() { + bitField0_ = (bitField0_ & ~0x00000008); + includeEvaluationResults_ = false; + onChanged(); + return this; + } + + private boolean includeEvaluations_; + + /** + * + * + *
+     * Optional. Includes evaluations in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluations. + */ + @java.lang.Override + public boolean getIncludeEvaluations() { + return includeEvaluations_; + } + + /** + * + * + *
+     * Optional. Includes evaluations in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeEvaluations to set. + * @return This builder for chaining. + */ + public Builder setIncludeEvaluations(boolean value) { + + includeEvaluations_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Includes evaluations in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeEvaluations() { + bitField0_ = (bitField0_ & ~0x00000010); + includeEvaluations_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportEvaluationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportEvaluationsRequest) + private static final com.google.cloud.ces.v1beta.ExportEvaluationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportEvaluationsRequest(); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequestOrBuilder.java new file mode 100644 index 000000000000..0ef0747e0b8a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequestOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportEvaluationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportEvaluationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the app to export evaluations from.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource name of the app to export evaluations from.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportOptions field is set. + */ + boolean hasExportOptions(); + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportOptions. + */ + com.google.cloud.ces.v1beta.ExportOptions getExportOptions(); + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder getExportOptionsOrBuilder(); + + /** + * + * + *
+   * Optional. Includes evaluation results in the export. At least one of
+   * include_evaluation_results or include_evaluations must be set.
+   * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluationResults. + */ + boolean getIncludeEvaluationResults(); + + /** + * + * + *
+   * Optional. Includes evaluations in the export. At least one of
+   * include_evaluation_results or include_evaluations must be set.
+   * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluations. + */ + boolean getIncludeEvaluations(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponse.java new file mode 100644 index 000000000000..b5cc56273c6f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponse.java @@ -0,0 +1,1283 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationsResponse} + */ +@com.google.protobuf.Generated +public final class ExportEvaluationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportEvaluationsResponse) + ExportEvaluationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportEvaluationsResponse"); + } + + // Use ExportEvaluationsResponse.newBuilder() to construct. + private ExportEvaluationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportEvaluationsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetFailedEvaluations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.Builder.class); + } + + private int evaluationsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evaluations_; + + public enum EvaluationsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVALUATIONS_CONTENT(1), + EVALUATIONS_URI(2), + EVALUATIONS_NOT_SET(0); + private final int value; + + private EvaluationsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvaluationsCase valueOf(int value) { + return forNumber(value); + } + + public static EvaluationsCase forNumber(int value) { + switch (value) { + case 1: + return EVALUATIONS_CONTENT; + case 2: + return EVALUATIONS_URI; + case 0: + return EVALUATIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvaluationsCase getEvaluationsCase() { + return EvaluationsCase.forNumber(evaluationsCase_); + } + + public static final int EVALUATIONS_CONTENT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * The content of the exported Evaluations. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluations_content = 1; + * + * @return Whether the evaluationsContent field is set. + */ + @java.lang.Override + public boolean hasEvaluationsContent() { + return evaluationsCase_ == 1; + } + + /** + * + * + *
+   * The content of the exported Evaluations. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluations_content = 1; + * + * @return The evaluationsContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationsContent() { + if (evaluationsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluations_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int EVALUATIONS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return Whether the evaluationsUri field is set. + */ + public boolean hasEvaluationsUri() { + return evaluationsCase_ == 2; + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return The evaluationsUri. + */ + public java.lang.String getEvaluationsUri() { + java.lang.Object ref = ""; + if (evaluationsCase_ == 2) { + ref = evaluations_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationsCase_ == 2) { + evaluations_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return The bytes for evaluationsUri. + */ + public com.google.protobuf.ByteString getEvaluationsUriBytes() { + java.lang.Object ref = ""; + if (evaluationsCase_ == 2) { + ref = evaluations_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationsCase_ == 2) { + evaluations_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAILED_EVALUATIONS_FIELD_NUMBER = 3; + + private static final class FailedEvaluationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_FailedEvaluationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField failedEvaluations_; + + private com.google.protobuf.MapField + internalGetFailedEvaluations() { + if (failedEvaluations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FailedEvaluationsDefaultEntryHolder.defaultEntry); + } + return failedEvaluations_; + } + + public int getFailedEvaluationsCount() { + return internalGetFailedEvaluations().getMap().size(); + } + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsFailedEvaluations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFailedEvaluations().getMap().containsKey(key); + } + + /** Use {@link #getFailedEvaluationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFailedEvaluations() { + return getFailedEvaluationsMap(); + } + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getFailedEvaluationsMap() { + return internalGetFailedEvaluations().getMap(); + } + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFailedEvaluationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFailedEvaluations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getFailedEvaluationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFailedEvaluations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (evaluationsCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) evaluations_); + } + if (evaluationsCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, evaluations_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetFailedEvaluations(), + FailedEvaluationsDefaultEntryHolder.defaultEntry, + 3); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluationsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) evaluations_); + } + if (evaluationsCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, evaluations_); + } + for (java.util.Map.Entry entry : + internalGetFailedEvaluations().getMap().entrySet()) { + com.google.protobuf.MapEntry failedEvaluations__ = + FailedEvaluationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, failedEvaluations__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ExportEvaluationsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportEvaluationsResponse other = + (com.google.cloud.ces.v1beta.ExportEvaluationsResponse) obj; + + if (!internalGetFailedEvaluations().equals(other.internalGetFailedEvaluations())) return false; + if (!getEvaluationsCase().equals(other.getEvaluationsCase())) return false; + switch (evaluationsCase_) { + case 1: + if (!getEvaluationsContent().equals(other.getEvaluationsContent())) return false; + break; + case 2: + if (!getEvaluationsUri().equals(other.getEvaluationsUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetFailedEvaluations().getMap().isEmpty()) { + hash = (37 * hash) + FAILED_EVALUATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFailedEvaluations().hashCode(); + } + switch (evaluationsCase_) { + case 1: + hash = (37 * hash) + EVALUATIONS_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationsContent().hashCode(); + break; + case 2: + hash = (37 * hash) + EVALUATIONS_URI_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ExportEvaluationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportEvaluationsResponse) + com.google.cloud.ces.v1beta.ExportEvaluationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetFailedEvaluations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableFailedEvaluations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportEvaluationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableFailedEvaluations().clear(); + evaluationsCase_ = 0; + evaluations_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportEvaluationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsResponse build() { + com.google.cloud.ces.v1beta.ExportEvaluationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsResponse buildPartial() { + com.google.cloud.ces.v1beta.ExportEvaluationsResponse result = + new com.google.cloud.ces.v1beta.ExportEvaluationsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportEvaluationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failedEvaluations_ = internalGetFailedEvaluations(); + result.failedEvaluations_.makeImmutable(); + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.ExportEvaluationsResponse result) { + result.evaluationsCase_ = evaluationsCase_; + result.evaluations_ = this.evaluations_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportEvaluationsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportEvaluationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportEvaluationsResponse other) { + if (other == com.google.cloud.ces.v1beta.ExportEvaluationsResponse.getDefaultInstance()) + return this; + internalGetMutableFailedEvaluations().mergeFrom(other.internalGetFailedEvaluations()); + bitField0_ |= 0x00000004; + switch (other.getEvaluationsCase()) { + case EVALUATIONS_CONTENT: + { + setEvaluationsContent(other.getEvaluationsContent()); + break; + } + case EVALUATIONS_URI: + { + evaluationsCase_ = 2; + evaluations_ = other.evaluations_; + onChanged(); + break; + } + case EVALUATIONS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluations_ = input.readBytes(); + evaluationsCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + evaluationsCase_ = 2; + evaluations_ = s; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry + failedEvaluations__ = + input.readMessage( + FailedEvaluationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFailedEvaluations() + .getMutableMap() + .put(failedEvaluations__.getKey(), failedEvaluations__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int evaluationsCase_ = 0; + private java.lang.Object evaluations_; + + public EvaluationsCase getEvaluationsCase() { + return EvaluationsCase.forNumber(evaluationsCase_); + } + + public Builder clearEvaluations() { + evaluationsCase_ = 0; + evaluations_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The content of the exported Evaluations. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluations_content = 1; + * + * @return Whether the evaluationsContent field is set. + */ + public boolean hasEvaluationsContent() { + return evaluationsCase_ == 1; + } + + /** + * + * + *
+     * The content of the exported Evaluations. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluations_content = 1; + * + * @return The evaluationsContent. + */ + public com.google.protobuf.ByteString getEvaluationsContent() { + if (evaluationsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluations_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
+     * The content of the exported Evaluations. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluations_content = 1; + * + * @param value The evaluationsContent to set. + * @return This builder for chaining. + */ + public Builder setEvaluationsContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationsCase_ = 1; + evaluations_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The content of the exported Evaluations. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluations_content = 1; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationsContent() { + if (evaluationsCase_ == 1) { + evaluationsCase_ = 0; + evaluations_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @return Whether the evaluationsUri field is set. + */ + @java.lang.Override + public boolean hasEvaluationsUri() { + return evaluationsCase_ == 2; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @return The evaluationsUri. + */ + @java.lang.Override + public java.lang.String getEvaluationsUri() { + java.lang.Object ref = ""; + if (evaluationsCase_ == 2) { + ref = evaluations_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationsCase_ == 2) { + evaluations_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @return The bytes for evaluationsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationsUriBytes() { + java.lang.Object ref = ""; + if (evaluationsCase_ == 2) { + ref = evaluations_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationsCase_ == 2) { + evaluations_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @param value The evaluationsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationsCase_ = 2; + evaluations_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationsUri() { + if (evaluationsCase_ == 2) { + evaluationsCase_ = 0; + evaluations_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @param value The bytes for evaluationsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationsCase_ = 2; + evaluations_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField failedEvaluations_; + + private com.google.protobuf.MapField + internalGetFailedEvaluations() { + if (failedEvaluations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FailedEvaluationsDefaultEntryHolder.defaultEntry); + } + return failedEvaluations_; + } + + private com.google.protobuf.MapField + internalGetMutableFailedEvaluations() { + if (failedEvaluations_ == null) { + failedEvaluations_ = + com.google.protobuf.MapField.newMapField( + FailedEvaluationsDefaultEntryHolder.defaultEntry); + } + if (!failedEvaluations_.isMutable()) { + failedEvaluations_ = failedEvaluations_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return failedEvaluations_; + } + + public int getFailedEvaluationsCount() { + return internalGetFailedEvaluations().getMap().size(); + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsFailedEvaluations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFailedEvaluations().getMap().containsKey(key); + } + + /** Use {@link #getFailedEvaluationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFailedEvaluations() { + return getFailedEvaluationsMap(); + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getFailedEvaluationsMap() { + return internalGetFailedEvaluations().getMap(); + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFailedEvaluationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetFailedEvaluations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getFailedEvaluationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetFailedEvaluations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFailedEvaluations() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableFailedEvaluations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeFailedEvaluations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFailedEvaluations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFailedEvaluations() { + bitField0_ |= 0x00000004; + return internalGetMutableFailedEvaluations().getMutableMap(); + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putFailedEvaluations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFailedEvaluations().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllFailedEvaluations( + java.util.Map values) { + internalGetMutableFailedEvaluations().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportEvaluationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportEvaluationsResponse) + private static final com.google.cloud.ces.v1beta.ExportEvaluationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportEvaluationsResponse(); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponseOrBuilder.java new file mode 100644 index 000000000000..641edf33a872 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponseOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportEvaluationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportEvaluationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The content of the exported Evaluations. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluations_content = 1; + * + * @return Whether the evaluationsContent field is set. + */ + boolean hasEvaluationsContent(); + + /** + * + * + *
+   * The content of the exported Evaluations. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluations_content = 1; + * + * @return The evaluationsContent. + */ + com.google.protobuf.ByteString getEvaluationsContent(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return Whether the evaluationsUri field is set. + */ + boolean hasEvaluationsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return The evaluationsUri. + */ + java.lang.String getEvaluationsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return The bytes for evaluationsUri. + */ + com.google.protobuf.ByteString getEvaluationsUriBytes(); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFailedEvaluationsCount(); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsFailedEvaluations(java.lang.String key); + + /** Use {@link #getFailedEvaluationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFailedEvaluations(); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getFailedEvaluationsMap(); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + java.lang.String getFailedEvaluationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getFailedEvaluationsOrThrow(java.lang.String key); + + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.EvaluationsCase getEvaluationsCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptions.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptions.java new file mode 100644 index 000000000000..7d8d0c8423d1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptions.java @@ -0,0 +1,956 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Options for exporting CES evaluation resources.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportOptions} + */ +@com.google.protobuf.Generated +public final class ExportOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportOptions) + ExportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportOptions"); + } + + // Use ExportOptions.newBuilder() to construct. + private ExportOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportOptions() { + exportFormat_ = 0; + gcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportOptions.class, + com.google.cloud.ces.v1beta.ExportOptions.Builder.class); + } + + /** + * + * + *
+   * The format to export the items in. Defaults to JSON if not
+   * specified.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.ExportOptions.ExportFormat} + */ + public enum ExportFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified format.
+     * 
+ * + * EXPORT_FORMAT_UNSPECIFIED = 0; + */ + EXPORT_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * JSON format.
+     * 
+ * + * JSON = 1; + */ + JSON(1), + /** + * + * + *
+     * YAML format.
+     * 
+ * + * YAML = 2; + */ + YAML(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportFormat"); + } + + /** + * + * + *
+     * Unspecified format.
+     * 
+ * + * EXPORT_FORMAT_UNSPECIFIED = 0; + */ + public static final int EXPORT_FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * JSON format.
+     * 
+ * + * JSON = 1; + */ + public static final int JSON_VALUE = 1; + + /** + * + * + *
+     * YAML format.
+     * 
+ * + * YAML = 2; + */ + public static final int YAML_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExportFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ExportFormat forNumber(int value) { + switch (value) { + case 0: + return EXPORT_FORMAT_UNSPECIFIED; + case 1: + return JSON; + case 2: + return YAML; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportFormat findValueByNumber(int number) { + return ExportFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ExportOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final ExportFormat[] VALUES = values(); + + public static ExportFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExportFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.ExportOptions.ExportFormat) + } + + public static final int EXPORT_FORMAT_FIELD_NUMBER = 1; + private int exportFormat_ = 0; + + /** + * + * + *
+   * Optional. The format to export the evaluation results in. Defaults to JSON
+   * if not specified.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + @java.lang.Override + public int getExportFormatValue() { + return exportFormat_; + } + + /** + * + * + *
+   * Optional. The format to export the evaluation results in. Defaults to JSON
+   * if not specified.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportFormat. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions.ExportFormat getExportFormat() { + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat result = + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.forNumber(exportFormat_); + return result == null + ? com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.UNRECOGNIZED + : result; + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Optional. The Google Cloud Storage URI to write the exported Evaluation
+   * Results to.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The Google Cloud Storage URI to write the exported Evaluation
+   * Results to.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (exportFormat_ + != com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.EXPORT_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, exportFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, gcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exportFormat_ + != com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.EXPORT_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, exportFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, gcsUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.ExportOptions)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportOptions other = + (com.google.cloud.ces.v1beta.ExportOptions) obj; + + if (exportFormat_ != other.exportFormat_) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXPORT_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + exportFormat_; + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.ExportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Options for exporting CES evaluation resources.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportOptions) + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportOptions.class, + com.google.cloud.ces.v1beta.ExportOptions.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + exportFormat_ = 0; + gcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions build() { + com.google.cloud.ces.v1beta.ExportOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions buildPartial() { + com.google.cloud.ces.v1beta.ExportOptions result = + new com.google.cloud.ces.v1beta.ExportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.exportFormat_ = exportFormat_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsUri_ = gcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportOptions) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportOptions other) { + if (other == com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance()) return this; + if (other.exportFormat_ != 0) { + setExportFormatValue(other.getExportFormatValue()); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + exportFormat_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int exportFormat_ = 0; + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + @java.lang.Override + public int getExportFormatValue() { + return exportFormat_; + } + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for exportFormat to set. + * @return This builder for chaining. + */ + public Builder setExportFormatValue(int value) { + exportFormat_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportFormat. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions.ExportFormat getExportFormat() { + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat result = + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.forNumber(exportFormat_); + return result == null + ? com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The exportFormat to set. + * @return This builder for chaining. + */ + public Builder setExportFormat(com.google.cloud.ces.v1beta.ExportOptions.ExportFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + exportFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExportFormat() { + bitField0_ = (bitField0_ & ~0x00000001); + exportFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportOptions) + private static final com.google.cloud.ces.v1beta.ExportOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportOptions(); + } + + public static com.google.cloud.ces.v1beta.ExportOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptionsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptionsOrBuilder.java new file mode 100644 index 000000000000..ca7e0aa568e3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptionsOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The format to export the evaluation results in. Defaults to JSON
+   * if not specified.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + int getExportFormatValue(); + + /** + * + * + *
+   * Optional. The format to export the evaluation results in. Defaults to JSON
+   * if not specified.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportFormat. + */ + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat getExportFormat(); + + /** + * + * + *
+   * Optional. The Google Cloud Storage URI to write the exported Evaluation
+   * Results to.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Optional. The Google Cloud Storage URI to write the exported Evaluation
+   * Results to.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java index e6538dfc2aa8..3e186e6801c2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getConversationBytes() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -171,7 +171,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The source. */ @java.lang.Override @@ -662,7 +662,7 @@ public Builder setConversationBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -684,7 +684,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -709,7 +709,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The source. */ @java.lang.Override @@ -733,7 +733,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @param value The source to set. * @return This builder for chaining. */ @@ -761,7 +761,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java index 57191e040822..b7d234826472 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface GenerateEvaluationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GenerateEvaluationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponse.java index 68bdf9e69151..e412ec09011c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponse.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponse.java @@ -54,6 +54,8 @@ private ImportEvaluationsResponse(com.google.protobuf.GeneratedMessage.Builder evaluationResults_; + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public java.util.List getEvaluationResultsList() { + return evaluationResults_; + } + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public java.util.List + getEvaluationResultsOrBuilderList() { + return evaluationResults_; + } + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public int getEvaluationResultsCount() { + return evaluationResults_.size(); + } + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationResult getEvaluationResults(int index) { + return evaluationResults_.get(index); + } + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationResultOrBuilder getEvaluationResultsOrBuilder( + int index) { + return evaluationResults_.get(index); + } + + public static final int EVALUATION_RUNS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List evaluationRuns_; + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public java.util.List getEvaluationRunsList() { + return evaluationRuns_; + } + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public java.util.List + getEvaluationRunsOrBuilderList() { + return evaluationRuns_; + } + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public int getEvaluationRunsCount() { + return evaluationRuns_.size(); + } + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRun getEvaluationRuns(int index) { + return evaluationRuns_.get(index); + } + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunOrBuilder getEvaluationRunsOrBuilder(int index) { + return evaluationRuns_.get(index); + } + public static final int ERROR_MESSAGES_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -227,7 +382,8 @@ public com.google.protobuf.ByteString getErrorMessagesBytes(int index) { * * *
-   * The number of evaluations that were not imported due to errors.
+   * The number of evaluations that either failed to import entirely or
+   * completed import with one or more errors.
    * 
* * int32 import_failure_count = 3; @@ -239,6 +395,46 @@ public int getImportFailureCount() { return importFailureCount_; } + public static final int EVALUATION_RESULT_IMPORT_FAILURE_COUNT_FIELD_NUMBER = 6; + private int evaluationResultImportFailureCount_ = 0; + + /** + * + * + *
+   * The number of evaluation results that either failed to import entirely or
+   * completed import with one or more errors.
+   * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @return The evaluationResultImportFailureCount. + */ + @java.lang.Override + public int getEvaluationResultImportFailureCount() { + return evaluationResultImportFailureCount_; + } + + public static final int EVALUATION_RUN_IMPORT_FAILURE_COUNT_FIELD_NUMBER = 7; + private int evaluationRunImportFailureCount_ = 0; + + /** + * + * + *
+   * The number of evaluation runs that either failed to import entirely or
+   * completed import with one or more errors.
+   * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @return The evaluationRunImportFailureCount. + */ + @java.lang.Override + public int getEvaluationRunImportFailureCount() { + return evaluationRunImportFailureCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -262,6 +458,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (importFailureCount_ != 0) { output.writeInt32(3, importFailureCount_); } + for (int i = 0; i < evaluationResults_.size(); i++) { + output.writeMessage(4, evaluationResults_.get(i)); + } + for (int i = 0; i < evaluationRuns_.size(); i++) { + output.writeMessage(5, evaluationRuns_.get(i)); + } + if (evaluationResultImportFailureCount_ != 0) { + output.writeInt32(6, evaluationResultImportFailureCount_); + } + if (evaluationRunImportFailureCount_ != 0) { + output.writeInt32(7, evaluationRunImportFailureCount_); + } getUnknownFields().writeTo(output); } @@ -285,6 +493,23 @@ public int getSerializedSize() { if (importFailureCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, importFailureCount_); } + for (int i = 0; i < evaluationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, evaluationResults_.get(i)); + } + for (int i = 0; i < evaluationRuns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, evaluationRuns_.get(i)); + } + if (evaluationResultImportFailureCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 6, evaluationResultImportFailureCount_); + } + if (evaluationRunImportFailureCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 7, evaluationRunImportFailureCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -302,8 +527,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.ImportEvaluationsResponse) obj; if (!getEvaluationsList().equals(other.getEvaluationsList())) return false; + if (!getEvaluationResultsList().equals(other.getEvaluationResultsList())) return false; + if (!getEvaluationRunsList().equals(other.getEvaluationRunsList())) return false; if (!getErrorMessagesList().equals(other.getErrorMessagesList())) return false; if (getImportFailureCount() != other.getImportFailureCount()) return false; + if (getEvaluationResultImportFailureCount() != other.getEvaluationResultImportFailureCount()) + return false; + if (getEvaluationRunImportFailureCount() != other.getEvaluationRunImportFailureCount()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,12 +550,24 @@ public int hashCode() { hash = (37 * hash) + EVALUATIONS_FIELD_NUMBER; hash = (53 * hash) + getEvaluationsList().hashCode(); } + if (getEvaluationResultsCount() > 0) { + hash = (37 * hash) + EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsList().hashCode(); + } + if (getEvaluationRunsCount() > 0) { + hash = (37 * hash) + EVALUATION_RUNS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunsList().hashCode(); + } if (getErrorMessagesCount() > 0) { hash = (37 * hash) + ERROR_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getErrorMessagesList().hashCode(); } hash = (37 * hash) + IMPORT_FAILURE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getImportFailureCount(); + hash = (37 * hash) + EVALUATION_RESULT_IMPORT_FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultImportFailureCount(); + hash = (37 * hash) + EVALUATION_RUN_IMPORT_FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunImportFailureCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -474,8 +717,24 @@ public Builder clear() { evaluationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + } else { + evaluationResults_ = null; + evaluationResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (evaluationRunsBuilder_ == null) { + evaluationRuns_ = java.util.Collections.emptyList(); + } else { + evaluationRuns_ = null; + evaluationRunsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); errorMessages_ = com.google.protobuf.LazyStringArrayList.emptyList(); importFailureCount_ = 0; + evaluationResultImportFailureCount_ = 0; + evaluationRunImportFailureCount_ = 0; return this; } @@ -522,17 +781,41 @@ private void buildPartialRepeatedFields( } else { result.evaluations_ = evaluationsBuilder_.build(); } + if (evaluationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + evaluationResults_ = java.util.Collections.unmodifiableList(evaluationResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.evaluationResults_ = evaluationResults_; + } else { + result.evaluationResults_ = evaluationResultsBuilder_.build(); + } + if (evaluationRunsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + evaluationRuns_ = java.util.Collections.unmodifiableList(evaluationRuns_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.evaluationRuns_ = evaluationRuns_; + } else { + result.evaluationRuns_ = evaluationRunsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.ces.v1beta.ImportEvaluationsResponse result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { errorMessages_.makeImmutable(); result.errorMessages_ = errorMessages_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.importFailureCount_ = importFailureCount_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.evaluationResultImportFailureCount_ = evaluationResultImportFailureCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.evaluationRunImportFailureCount_ = evaluationRunImportFailureCount_; + } } @java.lang.Override @@ -575,10 +858,64 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportEvaluationsResponse o } } } + if (evaluationResultsBuilder_ == null) { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResults_.isEmpty()) { + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEvaluationResultsIsMutable(); + evaluationResults_.addAll(other.evaluationResults_); + } + onChanged(); + } + } else { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResultsBuilder_.isEmpty()) { + evaluationResultsBuilder_.dispose(); + evaluationResultsBuilder_ = null; + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000002); + evaluationResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEvaluationResultsFieldBuilder() + : null; + } else { + evaluationResultsBuilder_.addAllMessages(other.evaluationResults_); + } + } + } + if (evaluationRunsBuilder_ == null) { + if (!other.evaluationRuns_.isEmpty()) { + if (evaluationRuns_.isEmpty()) { + evaluationRuns_ = other.evaluationRuns_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.addAll(other.evaluationRuns_); + } + onChanged(); + } + } else { + if (!other.evaluationRuns_.isEmpty()) { + if (evaluationRunsBuilder_.isEmpty()) { + evaluationRunsBuilder_.dispose(); + evaluationRunsBuilder_ = null; + evaluationRuns_ = other.evaluationRuns_; + bitField0_ = (bitField0_ & ~0x00000004); + evaluationRunsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEvaluationRunsFieldBuilder() + : null; + } else { + evaluationRunsBuilder_.addAllMessages(other.evaluationRuns_); + } + } + } if (!other.errorMessages_.isEmpty()) { if (errorMessages_.isEmpty()) { errorMessages_ = other.errorMessages_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } else { ensureErrorMessagesIsMutable(); errorMessages_.addAll(other.errorMessages_); @@ -588,6 +925,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportEvaluationsResponse o if (other.getImportFailureCount() != 0) { setImportFailureCount(other.getImportFailureCount()); } + if (other.getEvaluationResultImportFailureCount() != 0) { + setEvaluationResultImportFailureCount(other.getEvaluationResultImportFailureCount()); + } + if (other.getEvaluationRunImportFailureCount() != 0) { + setEvaluationRunImportFailureCount(other.getEvaluationRunImportFailureCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -637,9 +980,47 @@ public Builder mergeFrom( case 24: { importFailureCount_ = input.readInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 24 + case 34: + { + com.google.cloud.ces.v1beta.EvaluationResult m = + input.readMessage( + com.google.cloud.ces.v1beta.EvaluationResult.parser(), extensionRegistry); + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(m); + } else { + evaluationResultsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.ces.v1beta.EvaluationRun m = + input.readMessage( + com.google.cloud.ces.v1beta.EvaluationRun.parser(), extensionRegistry); + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(m); + } else { + evaluationRunsBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: + { + evaluationResultImportFailureCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + evaluationRunImportFailureCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1026,104 +1407,853 @@ public com.google.cloud.ces.v1beta.Evaluation.Builder addEvaluationsBuilder(int return evaluationsBuilder_; } - private com.google.protobuf.LazyStringArrayList errorMessages_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private java.util.List evaluationResults_ = + java.util.Collections.emptyList(); - private void ensureErrorMessagesIsMutable() { - if (!errorMessages_.isModifiable()) { - errorMessages_ = new com.google.protobuf.LazyStringArrayList(errorMessages_); + private void ensureEvaluationResultsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + evaluationResults_ = + new java.util.ArrayList( + evaluationResults_); + bitField0_ |= 0x00000002; } - bitField0_ |= 0x00000002; } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationResult, + com.google.cloud.ces.v1beta.EvaluationResult.Builder, + com.google.cloud.ces.v1beta.EvaluationResultOrBuilder> + evaluationResultsBuilder_; + /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the errorMessages. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public com.google.protobuf.ProtocolStringList getErrorMessagesList() { - errorMessages_.makeImmutable(); - return errorMessages_; + public java.util.List getEvaluationResultsList() { + if (evaluationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluationResults_); + } else { + return evaluationResultsBuilder_.getMessageList(); + } } /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of errorMessages. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public int getErrorMessagesCount() { - return errorMessages_.size(); + public int getEvaluationResultsCount() { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.size(); + } else { + return evaluationResultsBuilder_.getCount(); + } } /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The errorMessages at the given index. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public java.lang.String getErrorMessages(int index) { - return errorMessages_.get(index); + public com.google.cloud.ces.v1beta.EvaluationResult getEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessage(index); + } } /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the errorMessages at the given index. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public com.google.protobuf.ByteString getErrorMessagesBytes(int index) { - return errorMessages_.getByteString(index); + public Builder setEvaluationResults( + int index, com.google.cloud.ces.v1beta.EvaluationResult value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, value); + } + return this; } /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The errorMessages to set. - * @return This builder for chaining. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public Builder setErrorMessages(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setEvaluationResults( + int index, com.google.cloud.ces.v1beta.EvaluationResult.Builder builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addEvaluationResults(com.google.cloud.ces.v1beta.EvaluationResult value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addEvaluationResults( + int index, com.google.cloud.ces.v1beta.EvaluationResult value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addEvaluationResults( + com.google.cloud.ces.v1beta.EvaluationResult.Builder builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addEvaluationResults( + int index, com.google.cloud.ces.v1beta.EvaluationResult.Builder builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addAllEvaluationResults( + java.lang.Iterable values) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationResults_); + onChanged(); + } else { + evaluationResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder clearEvaluationResults() { + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + evaluationResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder removeEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.remove(index); + onChanged(); + } else { + evaluationResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public com.google.cloud.ces.v1beta.EvaluationResult.Builder getEvaluationResultsBuilder( + int index) { + return internalGetEvaluationResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public com.google.cloud.ces.v1beta.EvaluationResultOrBuilder getEvaluationResultsOrBuilder( + int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public java.util.List + getEvaluationResultsOrBuilderList() { + if (evaluationResultsBuilder_ != null) { + return evaluationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluationResults_); + } + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public com.google.cloud.ces.v1beta.EvaluationResult.Builder addEvaluationResultsBuilder() { + return internalGetEvaluationResultsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.EvaluationResult.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public com.google.cloud.ces.v1beta.EvaluationResult.Builder addEvaluationResultsBuilder( + int index) { + return internalGetEvaluationResultsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.EvaluationResult.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public java.util.List + getEvaluationResultsBuilderList() { + return internalGetEvaluationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationResult, + com.google.cloud.ces.v1beta.EvaluationResult.Builder, + com.google.cloud.ces.v1beta.EvaluationResultOrBuilder> + internalGetEvaluationResultsFieldBuilder() { + if (evaluationResultsBuilder_ == null) { + evaluationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationResult, + com.google.cloud.ces.v1beta.EvaluationResult.Builder, + com.google.cloud.ces.v1beta.EvaluationResultOrBuilder>( + evaluationResults_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + return evaluationResultsBuilder_; + } + + private java.util.List evaluationRuns_ = + java.util.Collections.emptyList(); + + private void ensureEvaluationRunsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + evaluationRuns_ = + new java.util.ArrayList(evaluationRuns_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRun, + com.google.cloud.ces.v1beta.EvaluationRun.Builder, + com.google.cloud.ces.v1beta.EvaluationRunOrBuilder> + evaluationRunsBuilder_; + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public java.util.List getEvaluationRunsList() { + if (evaluationRunsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluationRuns_); + } else { + return evaluationRunsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public int getEvaluationRunsCount() { + if (evaluationRunsBuilder_ == null) { + return evaluationRuns_.size(); + } else { + return evaluationRunsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRun getEvaluationRuns(int index) { + if (evaluationRunsBuilder_ == null) { + return evaluationRuns_.get(index); + } else { + return evaluationRunsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder setEvaluationRuns(int index, com.google.cloud.ces.v1beta.EvaluationRun value) { + if (evaluationRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationRunsIsMutable(); + evaluationRuns_.set(index, value); + onChanged(); + } else { + evaluationRunsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder setEvaluationRuns( + int index, com.google.cloud.ces.v1beta.EvaluationRun.Builder builderForValue) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationRunsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addEvaluationRuns(com.google.cloud.ces.v1beta.EvaluationRun value) { + if (evaluationRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(value); + onChanged(); + } else { + evaluationRunsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addEvaluationRuns(int index, com.google.cloud.ces.v1beta.EvaluationRun value) { + if (evaluationRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(index, value); + onChanged(); + } else { + evaluationRunsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addEvaluationRuns( + com.google.cloud.ces.v1beta.EvaluationRun.Builder builderForValue) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(builderForValue.build()); + onChanged(); + } else { + evaluationRunsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addEvaluationRuns( + int index, com.google.cloud.ces.v1beta.EvaluationRun.Builder builderForValue) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationRunsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addAllEvaluationRuns( + java.lang.Iterable values) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationRuns_); + onChanged(); + } else { + evaluationRunsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder clearEvaluationRuns() { + if (evaluationRunsBuilder_ == null) { + evaluationRuns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + evaluationRunsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder removeEvaluationRuns(int index) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.remove(index); + onChanged(); + } else { + evaluationRunsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRun.Builder getEvaluationRunsBuilder(int index) { + return internalGetEvaluationRunsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRunOrBuilder getEvaluationRunsOrBuilder( + int index) { + if (evaluationRunsBuilder_ == null) { + return evaluationRuns_.get(index); + } else { + return evaluationRunsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public java.util.List + getEvaluationRunsOrBuilderList() { + if (evaluationRunsBuilder_ != null) { + return evaluationRunsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluationRuns_); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRun.Builder addEvaluationRunsBuilder() { + return internalGetEvaluationRunsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.EvaluationRun.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRun.Builder addEvaluationRunsBuilder(int index) { + return internalGetEvaluationRunsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.EvaluationRun.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public java.util.List + getEvaluationRunsBuilderList() { + return internalGetEvaluationRunsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRun, + com.google.cloud.ces.v1beta.EvaluationRun.Builder, + com.google.cloud.ces.v1beta.EvaluationRunOrBuilder> + internalGetEvaluationRunsFieldBuilder() { + if (evaluationRunsBuilder_ == null) { + evaluationRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRun, + com.google.cloud.ces.v1beta.EvaluationRun.Builder, + com.google.cloud.ces.v1beta.EvaluationRunOrBuilder>( + evaluationRuns_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + evaluationRuns_ = null; + } + return evaluationRunsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList errorMessages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureErrorMessagesIsMutable() { + if (!errorMessages_.isModifiable()) { + errorMessages_ = new com.google.protobuf.LazyStringArrayList(errorMessages_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the errorMessages. + */ + public com.google.protobuf.ProtocolStringList getErrorMessagesList() { + errorMessages_.makeImmutable(); + return errorMessages_; + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of errorMessages. + */ + public int getErrorMessagesCount() { + return errorMessages_.size(); + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The errorMessages at the given index. + */ + public java.lang.String getErrorMessages(int index) { + return errorMessages_.get(index); + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the errorMessages at the given index. + */ + public com.google.protobuf.ByteString getErrorMessagesBytes(int index) { + return errorMessages_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The errorMessages to set. + * @return This builder for chaining. + */ + public Builder setErrorMessages(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } ensureErrorMessagesIsMutable(); errorMessages_.set(index, value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1147,7 +2277,7 @@ public Builder addErrorMessages(java.lang.String value) { } ensureErrorMessagesIsMutable(); errorMessages_.add(value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1168,7 +2298,7 @@ public Builder addErrorMessages(java.lang.String value) { public Builder addAllErrorMessages(java.lang.Iterable values) { ensureErrorMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorMessages_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1187,7 +2317,7 @@ public Builder addAllErrorMessages(java.lang.Iterable values) */ public Builder clearErrorMessages() { errorMessages_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; @@ -1213,7 +2343,7 @@ public Builder addErrorMessagesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureErrorMessagesIsMutable(); errorMessages_.add(value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1224,7 +2354,8 @@ public Builder addErrorMessagesBytes(com.google.protobuf.ByteString value) { * * *
-     * The number of evaluations that were not imported due to errors.
+     * The number of evaluations that either failed to import entirely or
+     * completed import with one or more errors.
      * 
* * int32 import_failure_count = 3; @@ -1240,7 +2371,8 @@ public int getImportFailureCount() { * * *
-     * The number of evaluations that were not imported due to errors.
+     * The number of evaluations that either failed to import entirely or
+     * completed import with one or more errors.
      * 
* * int32 import_failure_count = 3; @@ -1251,7 +2383,7 @@ public int getImportFailureCount() { public Builder setImportFailureCount(int value) { importFailureCount_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1260,7 +2392,8 @@ public Builder setImportFailureCount(int value) { * * *
-     * The number of evaluations that were not imported due to errors.
+     * The number of evaluations that either failed to import entirely or
+     * completed import with one or more errors.
      * 
* * int32 import_failure_count = 3; @@ -1268,12 +2401,130 @@ public Builder setImportFailureCount(int value) { * @return This builder for chaining. */ public Builder clearImportFailureCount() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); importFailureCount_ = 0; onChanged(); return this; } + private int evaluationResultImportFailureCount_; + + /** + * + * + *
+     * The number of evaluation results that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @return The evaluationResultImportFailureCount. + */ + @java.lang.Override + public int getEvaluationResultImportFailureCount() { + return evaluationResultImportFailureCount_; + } + + /** + * + * + *
+     * The number of evaluation results that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @param value The evaluationResultImportFailureCount to set. + * @return This builder for chaining. + */ + public Builder setEvaluationResultImportFailureCount(int value) { + + evaluationResultImportFailureCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The number of evaluation results that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationResultImportFailureCount() { + bitField0_ = (bitField0_ & ~0x00000020); + evaluationResultImportFailureCount_ = 0; + onChanged(); + return this; + } + + private int evaluationRunImportFailureCount_; + + /** + * + * + *
+     * The number of evaluation runs that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @return The evaluationRunImportFailureCount. + */ + @java.lang.Override + public int getEvaluationRunImportFailureCount() { + return evaluationRunImportFailureCount_; + } + + /** + * + * + *
+     * The number of evaluation runs that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @param value The evaluationRunImportFailureCount to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRunImportFailureCount(int value) { + + evaluationRunImportFailureCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * The number of evaluation runs that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationRunImportFailureCount() { + bitField0_ = (bitField0_ & ~0x00000040); + evaluationRunImportFailureCount_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ImportEvaluationsResponse) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponseOrBuilder.java index 319130cd72cb..79c247051abd 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponseOrBuilder.java @@ -82,6 +82,118 @@ public interface ImportEvaluationsResponseOrBuilder */ com.google.cloud.ces.v1beta.EvaluationOrBuilder getEvaluationsOrBuilder(int index); + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + java.util.List getEvaluationResultsList(); + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + com.google.cloud.ces.v1beta.EvaluationResult getEvaluationResults(int index); + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + int getEvaluationResultsCount(); + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + java.util.List + getEvaluationResultsOrBuilderList(); + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + com.google.cloud.ces.v1beta.EvaluationResultOrBuilder getEvaluationResultsOrBuilder(int index); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + java.util.List getEvaluationRunsList(); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + com.google.cloud.ces.v1beta.EvaluationRun getEvaluationRuns(int index); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + int getEvaluationRunsCount(); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + java.util.List + getEvaluationRunsOrBuilderList(); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + com.google.cloud.ces.v1beta.EvaluationRunOrBuilder getEvaluationRunsOrBuilder(int index); + /** * * @@ -144,7 +256,8 @@ public interface ImportEvaluationsResponseOrBuilder * * *
-   * The number of evaluations that were not imported due to errors.
+   * The number of evaluations that either failed to import entirely or
+   * completed import with one or more errors.
    * 
* * int32 import_failure_count = 3; @@ -152,4 +265,32 @@ public interface ImportEvaluationsResponseOrBuilder * @return The importFailureCount. */ int getImportFailureCount(); + + /** + * + * + *
+   * The number of evaluation results that either failed to import entirely or
+   * completed import with one or more errors.
+   * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @return The evaluationResultImportFailureCount. + */ + int getEvaluationResultImportFailureCount(); + + /** + * + * + *
+   * The number of evaluation runs that either failed to import entirely or
+   * completed import with one or more errors.
+   * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @return The evaluationRunImportFailureCount. + */ + int getEvaluationRunImportFailureCount(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java index 305433e441b9..7d838c1d68e7 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java @@ -230,7 +230,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The filter. */ @java.lang.Override @@ -258,7 +258,7 @@ public java.lang.String getFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The bytes for filter. */ @java.lang.Override @@ -1269,7 +1269,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The filter. */ @java.lang.Deprecated @@ -1296,7 +1296,7 @@ public java.lang.String getFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The bytes for filter. */ @java.lang.Deprecated @@ -1323,7 +1323,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @param value The filter to set. * @return This builder for chaining. */ @@ -1349,7 +1349,7 @@ public Builder setFilter(java.lang.String value) { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1371,7 +1371,7 @@ public Builder clearFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @param value The bytes for filter to set. * @return This builder for chaining. */ diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java index 8722b400a0b3..cd70b266cf56 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java @@ -115,7 +115,7 @@ public interface ListEvaluationsRequestOrBuilder * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The filter. */ @java.lang.Deprecated @@ -132,7 +132,7 @@ public interface ListEvaluationsRequestOrBuilder * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The bytes for filter. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfig.java new file mode 100644 index 000000000000..8a805ee92d62 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfig.java @@ -0,0 +1,1337 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Mock tool calls configuration for the session.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.MockConfig} + */ +@com.google.protobuf.Generated +public final class MockConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.MockConfig) + MockConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MockConfig"); + } + + // Use MockConfig.newBuilder() to construct. + private MockConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MockConfig() { + mockedToolCalls_ = java.util.Collections.emptyList(); + unmatchedToolCallBehavior_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.MockConfig.class, + com.google.cloud.ces.v1beta.MockConfig.Builder.class); + } + + /** + * + * + *
+   * What to do when a tool call doesn't match any mocked tool calls.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior} + */ + public enum UnmatchedToolCallBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + */ + UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
+     * Throw an error for any tool calls that don't match a mock expected input
+     * pattern.
+     * 
+ * + * FAIL = 1; + */ + FAIL(1), + /** + * + * + *
+     * For unmatched tool calls, pass the tool call through to real tool.
+     * 
+ * + * PASS_THROUGH = 2; + */ + PASS_THROUGH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UnmatchedToolCallBehavior"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Throw an error for any tool calls that don't match a mock expected input
+     * pattern.
+     * 
+ * + * FAIL = 1; + */ + public static final int FAIL_VALUE = 1; + + /** + * + * + *
+     * For unmatched tool calls, pass the tool call through to real tool.
+     * 
+ * + * PASS_THROUGH = 2; + */ + public static final int PASS_THROUGH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UnmatchedToolCallBehavior valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UnmatchedToolCallBehavior forNumber(int value) { + switch (value) { + case 0: + return UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED; + case 1: + return FAIL; + case 2: + return PASS_THROUGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UnmatchedToolCallBehavior findValueByNumber(int number) { + return UnmatchedToolCallBehavior.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.MockConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final UnmatchedToolCallBehavior[] VALUES = values(); + + public static UnmatchedToolCallBehavior valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private UnmatchedToolCallBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior) + } + + public static final int MOCKED_TOOL_CALLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mockedToolCalls_; + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMockedToolCallsList() { + return mockedToolCalls_; + } + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMockedToolCallsOrBuilderList() { + return mockedToolCalls_; + } + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMockedToolCallsCount() { + return mockedToolCalls_.size(); + } + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall getMockedToolCalls(int index) { + return mockedToolCalls_.get(index); + } + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCallOrBuilder getMockedToolCallsOrBuilder( + int index) { + return mockedToolCalls_.get(index); + } + + public static final int UNMATCHED_TOOL_CALL_BEHAVIOR_FIELD_NUMBER = 2; + private int unmatchedToolCallBehavior_ = 0; + + /** + * + * + *
+   * Required. Beavhior for tool calls that don't match any args patterns in
+   * mocked_tool_calls.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + @java.lang.Override + public int getUnmatchedToolCallBehaviorValue() { + return unmatchedToolCallBehavior_; + } + + /** + * + * + *
+   * Required. Beavhior for tool calls that don't match any args patterns in
+   * mocked_tool_calls.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior + getUnmatchedToolCallBehavior() { + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior result = + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior.forNumber( + unmatchedToolCallBehavior_); + return result == null + ? com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < mockedToolCalls_.size(); i++) { + output.writeMessage(1, mockedToolCalls_.get(i)); + } + if (unmatchedToolCallBehavior_ + != com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior + .UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, unmatchedToolCallBehavior_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mockedToolCalls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mockedToolCalls_.get(i)); + } + if (unmatchedToolCallBehavior_ + != com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior + .UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unmatchedToolCallBehavior_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.MockConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.MockConfig other = (com.google.cloud.ces.v1beta.MockConfig) obj; + + if (!getMockedToolCallsList().equals(other.getMockedToolCallsList())) return false; + if (unmatchedToolCallBehavior_ != other.unmatchedToolCallBehavior_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMockedToolCallsCount() > 0) { + hash = (37 * hash) + MOCKED_TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getMockedToolCallsList().hashCode(); + } + hash = (37 * hash) + UNMATCHED_TOOL_CALL_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + unmatchedToolCallBehavior_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.MockConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Mock tool calls configuration for the session.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.MockConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.MockConfig) + com.google.cloud.ces.v1beta.MockConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.MockConfig.class, + com.google.cloud.ces.v1beta.MockConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.MockConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mockedToolCallsBuilder_ == null) { + mockedToolCalls_ = java.util.Collections.emptyList(); + } else { + mockedToolCalls_ = null; + mockedToolCallsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + unmatchedToolCallBehavior_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig build() { + com.google.cloud.ces.v1beta.MockConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig buildPartial() { + com.google.cloud.ces.v1beta.MockConfig result = + new com.google.cloud.ces.v1beta.MockConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.MockConfig result) { + if (mockedToolCallsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mockedToolCalls_ = java.util.Collections.unmodifiableList(mockedToolCalls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mockedToolCalls_ = mockedToolCalls_; + } else { + result.mockedToolCalls_ = mockedToolCallsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.MockConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unmatchedToolCallBehavior_ = unmatchedToolCallBehavior_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.MockConfig) { + return mergeFrom((com.google.cloud.ces.v1beta.MockConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.MockConfig other) { + if (other == com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance()) return this; + if (mockedToolCallsBuilder_ == null) { + if (!other.mockedToolCalls_.isEmpty()) { + if (mockedToolCalls_.isEmpty()) { + mockedToolCalls_ = other.mockedToolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.addAll(other.mockedToolCalls_); + } + onChanged(); + } + } else { + if (!other.mockedToolCalls_.isEmpty()) { + if (mockedToolCallsBuilder_.isEmpty()) { + mockedToolCallsBuilder_.dispose(); + mockedToolCallsBuilder_ = null; + mockedToolCalls_ = other.mockedToolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + mockedToolCallsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMockedToolCallsFieldBuilder() + : null; + } else { + mockedToolCallsBuilder_.addAllMessages(other.mockedToolCalls_); + } + } + } + if (other.unmatchedToolCallBehavior_ != 0) { + setUnmatchedToolCallBehaviorValue(other.getUnmatchedToolCallBehaviorValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1beta.MockedToolCall m = + input.readMessage( + com.google.cloud.ces.v1beta.MockedToolCall.parser(), extensionRegistry); + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(m); + } else { + mockedToolCallsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + unmatchedToolCallBehavior_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List mockedToolCalls_ = + java.util.Collections.emptyList(); + + private void ensureMockedToolCallsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mockedToolCalls_ = + new java.util.ArrayList(mockedToolCalls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.MockedToolCall, + com.google.cloud.ces.v1beta.MockedToolCall.Builder, + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder> + mockedToolCallsBuilder_; + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMockedToolCallsList() { + if (mockedToolCallsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mockedToolCalls_); + } else { + return mockedToolCallsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMockedToolCallsCount() { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.size(); + } else { + return mockedToolCallsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCall getMockedToolCalls(int index) { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.get(index); + } else { + return mockedToolCallsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockedToolCalls(int index, com.google.cloud.ces.v1beta.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.set(index, value); + onChanged(); + } else { + mockedToolCallsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockedToolCalls( + int index, com.google.cloud.ces.v1beta.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.set(index, builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls(com.google.cloud.ces.v1beta.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(value); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls(int index, com.google.cloud.ces.v1beta.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(index, value); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls( + com.google.cloud.ces.v1beta.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls( + int index, com.google.cloud.ces.v1beta.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(index, builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMockedToolCalls( + java.lang.Iterable values) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mockedToolCalls_); + onChanged(); + } else { + mockedToolCallsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockedToolCalls() { + if (mockedToolCallsBuilder_ == null) { + mockedToolCalls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mockedToolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMockedToolCalls(int index) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.remove(index); + onChanged(); + } else { + mockedToolCallsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCall.Builder getMockedToolCallsBuilder(int index) { + return internalGetMockedToolCallsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCallOrBuilder getMockedToolCallsOrBuilder( + int index) { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.get(index); + } else { + return mockedToolCallsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMockedToolCallsOrBuilderList() { + if (mockedToolCallsBuilder_ != null) { + return mockedToolCallsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mockedToolCalls_); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCall.Builder addMockedToolCallsBuilder() { + return internalGetMockedToolCallsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.MockedToolCall.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCall.Builder addMockedToolCallsBuilder(int index) { + return internalGetMockedToolCallsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.MockedToolCall.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMockedToolCallsBuilderList() { + return internalGetMockedToolCallsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.MockedToolCall, + com.google.cloud.ces.v1beta.MockedToolCall.Builder, + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder> + internalGetMockedToolCallsFieldBuilder() { + if (mockedToolCallsBuilder_ == null) { + mockedToolCallsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.MockedToolCall, + com.google.cloud.ces.v1beta.MockedToolCall.Builder, + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder>( + mockedToolCalls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mockedToolCalls_ = null; + } + return mockedToolCallsBuilder_; + } + + private int unmatchedToolCallBehavior_ = 0; + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + @java.lang.Override + public int getUnmatchedToolCallBehaviorValue() { + return unmatchedToolCallBehavior_; + } + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for unmatchedToolCallBehavior to set. + * @return This builder for chaining. + */ + public Builder setUnmatchedToolCallBehaviorValue(int value) { + unmatchedToolCallBehavior_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior + getUnmatchedToolCallBehavior() { + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior result = + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior.forNumber( + unmatchedToolCallBehavior_); + return result == null + ? com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The unmatchedToolCallBehavior to set. + * @return This builder for chaining. + */ + public Builder setUnmatchedToolCallBehavior( + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + unmatchedToolCallBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearUnmatchedToolCallBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + unmatchedToolCallBehavior_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.MockConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.MockConfig) + private static final com.google.cloud.ces.v1beta.MockConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.MockConfig(); + } + + public static com.google.cloud.ces.v1beta.MockConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MockConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfigOrBuilder.java new file mode 100644 index 000000000000..76ebee59d6b9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfigOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface MockConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.MockConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMockedToolCallsList(); + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.MockedToolCall getMockedToolCalls(int index); + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMockedToolCallsCount(); + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMockedToolCallsOrBuilderList(); + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder getMockedToolCallsOrBuilder(int index); + + /** + * + * + *
+   * Required. Beavhior for tool calls that don't match any args patterns in
+   * mocked_tool_calls.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + int getUnmatchedToolCallBehaviorValue(); + + /** + * + * + *
+   * Required. Beavhior for tool calls that don't match any args patterns in
+   * mocked_tool_calls.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior getUnmatchedToolCallBehavior(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCall.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCall.java new file mode 100644 index 000000000000..9c2e82d8fe9f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCall.java @@ -0,0 +1,1963 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A mocked tool call.
+ *
+ * Expresses the target tool + a pattern to match against that tool's
+ * args / inputs. If the pattern matches, then the mock response will be
+ * returned.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.MockedToolCall} + */ +@com.google.protobuf.Generated +public final class MockedToolCall extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.MockedToolCall) + MockedToolCallOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MockedToolCall"); + } + + // Use MockedToolCall.newBuilder() to construct. + private MockedToolCall(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MockedToolCall() { + tool_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.MockedToolCall.class, + com.google.cloud.ces.v1beta.MockedToolCall.Builder.class); + } + + private int bitField0_; + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL_ID(4), + TOOLSET(5), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 4: + return TOOL_ID; + case 5: + return TOOLSET; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_ID_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + public boolean hasToolId() { + return toolIdentifierCase_ == 4; + } + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + public java.lang.String getToolId() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + @java.lang.Override + public boolean hasToolset() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ToolsetTool getToolset() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ToolsetToolOrBuilder getToolsetOrBuilder() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
+   * Optional. Deprecated. Use tool_identifier instead.
+   * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Deprecated. Use tool_identifier instead.
+   * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_ARGS_PATTERN_FIELD_NUMBER = 2; + private com.google.protobuf.Struct expectedArgsPattern_; + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + @java.lang.Override + public boolean hasExpectedArgsPattern() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + @java.lang.Override + public com.google.protobuf.Struct getExpectedArgsPattern() { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder() { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + + public static final int MOCK_RESPONSE_FIELD_NUMBER = 3; + private com.google.protobuf.Struct mockResponse_; + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + @java.lang.Override + public boolean hasMockResponse() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + @java.lang.Override + public com.google.protobuf.Struct getMockResponse() { + return mockResponse_ == null ? com.google.protobuf.Struct.getDefaultInstance() : mockResponse_; + } + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMockResponseOrBuilder() { + return mockResponse_ == null ? com.google.protobuf.Struct.getDefaultInstance() : mockResponse_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExpectedArgsPattern()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMockResponse()); + } + if (toolIdentifierCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, toolIdentifier_); + } + if (toolIdentifierCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpectedArgsPattern()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMockResponse()); + } + if (toolIdentifierCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, toolIdentifier_); + } + if (toolIdentifierCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1beta.MockedToolCall)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.MockedToolCall other = + (com.google.cloud.ces.v1beta.MockedToolCall) obj; + + if (!getTool().equals(other.getTool())) return false; + if (hasExpectedArgsPattern() != other.hasExpectedArgsPattern()) return false; + if (hasExpectedArgsPattern()) { + if (!getExpectedArgsPattern().equals(other.getExpectedArgsPattern())) return false; + } + if (hasMockResponse() != other.hasMockResponse()) return false; + if (hasMockResponse()) { + if (!getMockResponse().equals(other.getMockResponse())) return false; + } + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 4: + if (!getToolId().equals(other.getToolId())) return false; + break; + case 5: + if (!getToolset().equals(other.getToolset())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + if (hasExpectedArgsPattern()) { + hash = (37 * hash) + EXPECTED_ARGS_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getExpectedArgsPattern().hashCode(); + } + if (hasMockResponse()) { + hash = (37 * hash) + MOCK_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getMockResponse().hashCode(); + } + switch (toolIdentifierCase_) { + case 4: + hash = (37 * hash) + TOOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getToolId().hashCode(); + break; + case 5: + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.MockedToolCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A mocked tool call.
+   *
+   * Expresses the target tool + a pattern to match against that tool's
+   * args / inputs. If the pattern matches, then the mock response will be
+   * returned.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.MockedToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.MockedToolCall) + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.MockedToolCall.class, + com.google.cloud.ces.v1beta.MockedToolCall.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.MockedToolCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExpectedArgsPatternFieldBuilder(); + internalGetMockResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetBuilder_ != null) { + toolsetBuilder_.clear(); + } + tool_ = ""; + expectedArgsPattern_ = null; + if (expectedArgsPatternBuilder_ != null) { + expectedArgsPatternBuilder_.dispose(); + expectedArgsPatternBuilder_ = null; + } + mockResponse_ = null; + if (mockResponseBuilder_ != null) { + mockResponseBuilder_.dispose(); + mockResponseBuilder_ = null; + } + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.MockedToolCall.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall build() { + com.google.cloud.ces.v1beta.MockedToolCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall buildPartial() { + com.google.cloud.ces.v1beta.MockedToolCall result = + new com.google.cloud.ces.v1beta.MockedToolCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.MockedToolCall result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tool_ = tool_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.expectedArgsPattern_ = + expectedArgsPatternBuilder_ == null + ? expectedArgsPattern_ + : expectedArgsPatternBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mockResponse_ = + mockResponseBuilder_ == null ? mockResponse_ : mockResponseBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.MockedToolCall result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 5 && toolsetBuilder_ != null) { + result.toolIdentifier_ = toolsetBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.MockedToolCall) { + return mergeFrom((com.google.cloud.ces.v1beta.MockedToolCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.MockedToolCall other) { + if (other == com.google.cloud.ces.v1beta.MockedToolCall.getDefaultInstance()) return this; + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasExpectedArgsPattern()) { + mergeExpectedArgsPattern(other.getExpectedArgsPattern()); + } + if (other.hasMockResponse()) { + mergeMockResponse(other.getMockResponse()); + } + switch (other.getToolIdentifierCase()) { + case TOOL_ID: + { + toolIdentifierCase_ = 4; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET: + { + mergeToolset(other.getToolset()); + break; + } + case TOOLIDENTIFIER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExpectedArgsPatternFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetMockResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 4; + toolIdentifier_ = s; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetToolsetFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + @java.lang.Override + public boolean hasToolId() { + return toolIdentifierCase_ == 4; + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + @java.lang.Override + public java.lang.String getToolId() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolId to set. + * @return This builder for chaining. + */ + public Builder setToolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 4; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolId() { + if (toolIdentifierCase_ == 4) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolId to set. + * @return This builder for chaining. + */ + public Builder setToolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 4; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ToolsetTool, + com.google.cloud.ces.v1beta.ToolsetTool.Builder, + com.google.cloud.ces.v1beta.ToolsetToolOrBuilder> + toolsetBuilder_; + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + @java.lang.Override + public boolean hasToolset() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ToolsetTool getToolset() { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 5) { + return toolsetBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1beta.ToolsetTool value) { + if (toolsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetBuilder_.setMessage(value); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1beta.ToolsetTool.Builder builderForValue) { + if (toolsetBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolset(com.google.cloud.ces.v1beta.ToolsetTool value) { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5 + && toolIdentifier_ != com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1beta.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 5) { + toolsetBuilder_.mergeFrom(value); + } else { + toolsetBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolset() { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ToolsetTool.Builder getToolsetBuilder() { + return internalGetToolsetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ToolsetToolOrBuilder getToolsetOrBuilder() { + if ((toolIdentifierCase_ == 5) && (toolsetBuilder_ != null)) { + return toolsetBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ToolsetTool, + com.google.cloud.ces.v1beta.ToolsetTool.Builder, + com.google.cloud.ces.v1beta.ToolsetToolOrBuilder> + internalGetToolsetFieldBuilder() { + if (toolsetBuilder_ == null) { + if (!(toolIdentifierCase_ == 5)) { + toolIdentifier_ = com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + toolsetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ToolsetTool, + com.google.cloud.ces.v1beta.ToolsetTool.Builder, + com.google.cloud.ces.v1beta.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 5; + onChanged(); + return toolsetBuilder_; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Deprecated + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @param value The tool to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct expectedArgsPattern_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + expectedArgsPatternBuilder_; + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + public boolean hasExpectedArgsPattern() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + public com.google.protobuf.Struct getExpectedArgsPattern() { + if (expectedArgsPatternBuilder_ == null) { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } else { + return expectedArgsPatternBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpectedArgsPattern(com.google.protobuf.Struct value) { + if (expectedArgsPatternBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedArgsPattern_ = value; + } else { + expectedArgsPatternBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpectedArgsPattern(com.google.protobuf.Struct.Builder builderForValue) { + if (expectedArgsPatternBuilder_ == null) { + expectedArgsPattern_ = builderForValue.build(); + } else { + expectedArgsPatternBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpectedArgsPattern(com.google.protobuf.Struct value) { + if (expectedArgsPatternBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && expectedArgsPattern_ != null + && expectedArgsPattern_ != com.google.protobuf.Struct.getDefaultInstance()) { + getExpectedArgsPatternBuilder().mergeFrom(value); + } else { + expectedArgsPattern_ = value; + } + } else { + expectedArgsPatternBuilder_.mergeFrom(value); + } + if (expectedArgsPattern_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpectedArgsPattern() { + bitField0_ = (bitField0_ & ~0x00000008); + expectedArgsPattern_ = null; + if (expectedArgsPatternBuilder_ != null) { + expectedArgsPatternBuilder_.dispose(); + expectedArgsPatternBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Struct.Builder getExpectedArgsPatternBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetExpectedArgsPatternFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder() { + if (expectedArgsPatternBuilder_ != null) { + return expectedArgsPatternBuilder_.getMessageOrBuilder(); + } else { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetExpectedArgsPatternFieldBuilder() { + if (expectedArgsPatternBuilder_ == null) { + expectedArgsPatternBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getExpectedArgsPattern(), getParentForChildren(), isClean()); + expectedArgsPattern_ = null; + } + return expectedArgsPatternBuilder_; + } + + private com.google.protobuf.Struct mockResponse_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + mockResponseBuilder_; + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + public boolean hasMockResponse() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + public com.google.protobuf.Struct getMockResponse() { + if (mockResponseBuilder_ == null) { + return mockResponse_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : mockResponse_; + } else { + return mockResponseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockResponse(com.google.protobuf.Struct value) { + if (mockResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mockResponse_ = value; + } else { + mockResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockResponse(com.google.protobuf.Struct.Builder builderForValue) { + if (mockResponseBuilder_ == null) { + mockResponse_ = builderForValue.build(); + } else { + mockResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMockResponse(com.google.protobuf.Struct value) { + if (mockResponseBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && mockResponse_ != null + && mockResponse_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMockResponseBuilder().mergeFrom(value); + } else { + mockResponse_ = value; + } + } else { + mockResponseBuilder_.mergeFrom(value); + } + if (mockResponse_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockResponse() { + bitField0_ = (bitField0_ & ~0x00000010); + mockResponse_ = null; + if (mockResponseBuilder_ != null) { + mockResponseBuilder_.dispose(); + mockResponseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getMockResponseBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetMockResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getMockResponseOrBuilder() { + if (mockResponseBuilder_ != null) { + return mockResponseBuilder_.getMessageOrBuilder(); + } else { + return mockResponse_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : mockResponse_; + } + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMockResponseFieldBuilder() { + if (mockResponseBuilder_ == null) { + mockResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMockResponse(), getParentForChildren(), isClean()); + mockResponse_ = null; + } + return mockResponseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.MockedToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.MockedToolCall) + private static final com.google.cloud.ces.v1beta.MockedToolCall DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.MockedToolCall(); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MockedToolCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCallOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCallOrBuilder.java new file mode 100644 index 000000000000..800036863d70 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCallOrBuilder.java @@ -0,0 +1,249 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface MockedToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.MockedToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + boolean hasToolId(); + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + java.lang.String getToolId(); + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + com.google.protobuf.ByteString getToolIdBytes(); + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + boolean hasToolset(); + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + com.google.cloud.ces.v1beta.ToolsetTool getToolset(); + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ToolsetToolOrBuilder getToolsetOrBuilder(); + + /** + * + * + *
+   * Optional. Deprecated. Use tool_identifier instead.
+   * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Deprecated + java.lang.String getTool(); + + /** + * + * + *
+   * Optional. Deprecated. Use tool_identifier instead.
+   * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + boolean hasExpectedArgsPattern(); + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + com.google.protobuf.Struct getExpectedArgsPattern(); + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder(); + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + boolean hasMockResponse(); + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + com.google.protobuf.Struct getMockResponse(); + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getMockResponseOrBuilder(); + + com.google.cloud.ces.v1beta.MockedToolCall.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MocksProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MocksProto.java new file mode 100644 index 000000000000..843bff268608 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MocksProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public final class MocksProto extends com.google.protobuf.GeneratedFile { + private MocksProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MocksProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_MockedToolCall_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "#google/cloud/ces/v1beta/mocks.proto\022\027g" + + "oogle.cloud.ces.v1beta\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032*google/cloud/ces/v1beta/toolset_tool.proto\032\034google/protobuf/struct.proto\"\270\002\n" + + "\016MockedToolCall\0222\n" + + "\007tool_id\030\004 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\022<\n" + + "\007toolset\030\005" + + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\003\340A\001H\000\022/\n" + + "\004tool\030\001 \001(\tB!\030\001\340A\001\372A\031\n" + + "\027ces.googleapis.com/Tool\022;\n" + + "\025expected_args_pattern\030\002" + + " \001(\0132\027.google.protobuf.StructB\003\340A\002\0223\n\r" + + "mock_response\030\003 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n" + + "\017tool_identifierBZ\n" + + "\033com.google.cloud.ces.v1betaB\n" + + "MocksProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1beta.ToolsetToolProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1beta_MockedToolCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor, + new java.lang.String[] { + "ToolId", "Toolset", "Tool", "ExpectedArgsPattern", "MockResponse", "ToolIdentifier", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1beta.ToolsetToolProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java index b1b74f36d304..efd40d05bca8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_MockConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_MockConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_InputAudioConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -139,24 +143,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/annotations.proto\032\027google/api/clien" + "t.proto\032\037google/api/field_behavior.proto" + "\032\031google/api/resource.proto\032$google/clou" - + "d/ces/v1beta/common.proto\032%google/cloud/ces/v1beta/example.proto\0320google/cloud/c" - + "es/v1beta/search_suggestions.proto\032\034google/protobuf/struct.proto\"\235\001\n" + + "d/ces/v1beta/common.proto\032%google/cloud/ces/v1beta/example.proto\032#google/cloud/c" + + "es/v1beta/mocks.proto\0320google/cloud/ces/" + + "v1beta/search_suggestions.proto\032\034google/protobuf/struct.proto\"\246\002\n\n" + + "MockConfig\022G\n" + + "\021mocked_tool_calls\030\001" + + " \003(\0132\'.google.cloud.ces.v1beta.MockedToolCallB\003\340A\001\022h\n" + + "\034unmatched_tool_call_behavior\030\002 \001(\0162=.google.clo" + + "ud.ces.v1beta.MockConfig.UnmatchedToolCallBehaviorB\003\340A\002\"e\n" + + "\031UnmatchedToolCallBehavior\022,\n" + + "(UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + + "\004FAIL\020\001\022\020\n" + + "\014PASS_THROUGH\020\002\"\235\001\n" + "\020InputAudioConfig\022C\n" - + "\016audio_encoding\030\001" - + " \001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" + + "\016audio_encoding\030\001 " + + "\001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\022$\n" + "\027noise_suppression_level\030\006 \001(\tB\003\340A\001\"x\n" + "\021OutputAudioConfig\022C\n" - + "\016audio_encoding\030\001" - + " \001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" + + "\016audio_encoding\030\001 " + + "\001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\201\007\n\r" + "SessionConfig\0223\n" + "\007session\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032ces.googleapis.com/Session\022J\n" + "\022input_audio_config\030\002" + " \001(\0132).google.cloud.ces.v1beta.InputAudioConfigB\003\340A\001\022L\n" - + "\023output_audio_config\030\003 \001" - + "(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\003\340A\001\022B\n" + + "\023output_audio_config\030\003" + + " \001(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\003\340A\001\022B\n" + "\023historical_contexts\030\005 \003(\0132" + " .google.cloud.ces.v1beta.MessageB\003\340A\001\0225\n" + "\013entry_agent\030\014 \001(\tB \340A\001\372A\032\n" @@ -164,13 +178,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "deployment\030\010 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\013 \001(\tB\003\340A\001\022\033\n" + "\016use_tool_fakes\030\016 \001(\010B\003\340A\001\022w\n" - + "\"remote_dialogflow_query_parameters\030\017 \001(\0132F.google.cloud.ces.v1be" - + "ta.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + + "\"remote_dialogflow_query_parameters\030\017 \001(\0132F.google." + + "cloud.ces.v1beta.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + "\025enable_text_streaming\030\022 \001(\010B\003\340A\001\032\272\002\n" + "\037RemoteDialogflowQueryParameters\022x\n" - + "\017webhook_headers\030\001 \003(\0132Z.google." - + "cloud.ces.v1beta.SessionConfig.RemoteDia" - + "logflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + + "\017webhook_headers\030\001 \003(\0132Z.google.cloud.ces.v1beta.SessionCo" + + "nfig.RemoteDialogflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\0227\n" + "\021end_user_metadata\030\003" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0325\n" @@ -180,11 +193,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tToolCalls\022:\n\n" + "tool_calls\030\001 \003(\0132!.google.cloud.ces.v1beta.ToolCallB\003\340A\001\"S\n\r" + "ToolResponses\022B\n" - + "\016tool_responses\030\001 \003(\013" - + "2%.google.cloud.ces.v1beta.ToolResponseB\003\340A\001\"\210\001\n" + + "\016tool_responses\030\001" + + " \003(\0132%.google.cloud.ces.v1beta.ToolResponseB\003\340A\001\"\210\001\n" + "\tCitations\022C\n" - + "\014cited_chunks\030\001 \003(\013" - + "2-.google.cloud.ces.v1beta.Citations.CitedChunk\0326\n\n" + + "\014cited_chunks\030\001" + + " \003(\0132-.google.cloud.ces.v1beta.Citations.CitedChunk\0326\n\n" + "CitedChunk\022\013\n" + "\003uri\030\001 \001(\t\022\r\n" + "\005title\030\002 \001(\t\022\014\n" @@ -195,8 +208,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\001 \001(\tB\003\340A\001H\000\022\023\n" + "\004dtmf\030\006 \001(\tB\003\340A\001H\000\022\024\n" + "\005audio\030\002 \001(\014B\003\340A\001H\000\022E\n" - + "\016tool_responses\030\003 \001(\0132&." - + "google.cloud.ces.v1beta.ToolResponsesB\003\340A\001H\000\0224\n" + + "\016tool_responses\030\003" + + " \001(\0132&.google.cloud.ces.v1beta.ToolResponsesB\003\340A\001H\000\0224\n" + "\005image\030\004" + " \001(\0132\036.google.cloud.ces.v1beta.ImageB\003\340A\001H\000\0222\n" + "\004blob\030\007 \001(\0132\035.google.cloud.ces.v1beta.BlobB\003\340A\001H\000\0221\n" @@ -216,8 +229,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007payload\030\013 \001(\0132\027.google.protobuf.StructH\000\022\022\n\n" + "turn_index\030\006 \001(\005\022\026\n" + "\016turn_completed\030\004 \001(\010\022S\n" - + "\017diagnostic_info\030\007 " - + "\001(\01325.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoB\003\340A\001\032v\n" + + "\017diagnostic_info\030\007" + + " \001(\01325.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoB\003\340A\001\032v\n" + "\016DiagnosticInfo\0222\n" + "\010messages\030\001 \003(\0132 .google.cloud.ces.v1beta.Message\0220\n" + "\troot_span\030\003 \001(\0132\035.google.cloud.ces.v1beta.SpanB\r\n" @@ -230,14 +243,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001\"\010\n" + "\006GoAway\"\214\001\n" + "\021RunSessionRequest\022;\n" - + "\006config\030\001 \001(\0132&.goo" - + "gle.cloud.ces.v1beta.SessionConfigB\003\340A\002\022:\n" + + "\006config\030\001" + + " \001(\0132&.google.cloud.ces.v1beta.SessionConfigB\003\340A\002\022:\n" + "\006inputs\030\003 \003(\0132%.google.cloud.ces.v1beta.SessionInputB\003\340A\002\"M\n" + "\022RunSessionResponse\0227\n" + "\007outputs\030\001 \003(\0132&.google.cloud.ces.v1beta.SessionOutput\"\257\001\n" + "\030BidiSessionClientMessage\022=\n" - + "\006config\030\001" - + " \001(\0132&.google.cloud.ces.v1beta.SessionConfigB\003\340A\001H\000\022D\n" + + "\006config\030\001 \001(\0132&." + + "google.cloud.ces.v1beta.SessionConfigB\003\340A\001H\000\022D\n" + "\016realtime_input\030\002" + " \001(\0132%.google.cloud.ces.v1beta.SessionInputB\003\340A\001H\000B\016\n" + "\014message_type\"\213\003\n" @@ -248,8 +261,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.ces.v1beta.RecognitionResultB\003\340A\001H\000\022O\n" + "\023interruption_signal\030\003" + " \001(\0132+.google.cloud.ces.v1beta.InterruptionSignalB\003\340A\001H\000\022?\n" - + "\013end_session\030\005 \001(\0132#." - + "google.cloud.ces.v1beta.EndSessionB\003\340A\001H\000\0227\n" + + "\013end_session\030\005" + + " \001(\0132#.google.cloud.ces.v1beta.EndSessionB\003\340A\001H\000\0227\n" + "\007go_away\030\006" + " \001(\0132\037.google.cloud.ces.v1beta.GoAwayB\003\340A\001H\000B\016\n" + "\014message_type*R\n\r" @@ -259,23 +272,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005MULAW\020\002\022\010\n" + "\004ALAW\020\0032\212\005\n" + "\016SessionService\022\276\001\n\n" - + "RunSession\022*.google.cloud.ces.v1beta.RunSessionRequest\032+.g" - + "oogle.cloud.ces.v1beta.RunSessionRespons" - + "e\"W\202\323\344\223\002Q\"L/v1beta/{config.session=proje" - + "cts/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\314\001\n" - + "\020StreamRunSession\022*.google.cloud.ces.v1beta.RunSessionRequest\032+.go" - + "ogle.cloud.ces.v1beta.RunSessionResponse" - + "\"]\202\323\344\223\002W\"R/v1beta/{config.session=projec" - + "ts/*/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022|\n" - + "\016BidiRunSession\0221.google.cloud.ces.v1beta.BidiSessionClientM" - + "essage\0321.google.cloud.ces.v1beta.BidiSes" - + "sionServerMessage\"\000(\0010\001\032j\312A\022ces.googleap" - + "is.com\322ARhttps://www.googleapis.com/auth" - + "/ces,https://www.googleapis.com/auth/cloud-platformB\311\001\n" - + "\033com.google.cloud.ces.v1b" - + "etaB\023SessionServiceProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" - + "\032ces.googleapis.com/Session\022Eprojects/{proj" - + "ect}/locations/{location}/apps/{app}/sessions/{session}b\006proto3" + + "RunSession\022*.google.cloud.ces.v1beta.RunSess" + + "ionRequest\032+.google.cloud.ces.v1beta.Run" + + "SessionResponse\"W\202\323\344\223\002Q\"L/v1beta/{config" + + ".session=projects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\314\001\n" + + "\020StreamRunSession\022*.google.cloud.ces.v1beta.RunSessi" + + "onRequest\032+.google.cloud.ces.v1beta.RunS" + + "essionResponse\"]\202\323\344\223\002W\"R/v1beta/{config." + + "session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022|\n" + + "\016BidiRunSession\0221.google.cloud.ces.v1beta.Bidi" + + "SessionClientMessage\0321.google.cloud.ces." + + "v1beta.BidiSessionServerMessage\"\000(\0010\001\032j\312" + + "A\022ces.googleapis.com\322ARhttps://www.googl" + + "eapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\311\001\n" + + "\033com.google.cloud.ces.v1betaB\023SessionServiceProtoP\001" + + "Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" + + "\032ces.googleapis.com/Session\022Eprojects/{project}/locations/{location}/" + + "apps/{app}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -287,11 +300,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.ces.v1beta.CommonProto.getDescriptor(), com.google.cloud.ces.v1beta.ExampleProto.getDescriptor(), + com.google.cloud.ces.v1beta.MocksProto.getDescriptor(), com.google.cloud.ces.v1beta.SearchSuggestionsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); - internal_static_google_cloud_ces_v1beta_InputAudioConfig_descriptor = + internal_static_google_cloud_ces_v1beta_MockConfig_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1beta_MockConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_MockConfig_descriptor, + new java.lang.String[] { + "MockedToolCalls", "UnmatchedToolCallBehavior", + }); + internal_static_google_cloud_ces_v1beta_InputAudioConfig_descriptor = + getDescriptor().getMessageType(1); internal_static_google_cloud_ces_v1beta_InputAudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_InputAudioConfig_descriptor, @@ -299,7 +321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioEncoding", "SampleRateHertz", "NoiseSuppressionLevel", }); internal_static_google_cloud_ces_v1beta_OutputAudioConfig_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(2); internal_static_google_cloud_ces_v1beta_OutputAudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_OutputAudioConfig_descriptor, @@ -307,7 +329,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioEncoding", "SampleRateHertz", }); internal_static_google_cloud_ces_v1beta_SessionConfig_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_ces_v1beta_SessionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_SessionConfig_descriptor, @@ -341,7 +363,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_ces_v1beta_ToolCalls_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_ces_v1beta_ToolCalls_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ToolCalls_descriptor, @@ -349,7 +371,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ToolCalls", }); internal_static_google_cloud_ces_v1beta_ToolResponses_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(5); internal_static_google_cloud_ces_v1beta_ToolResponses_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ToolResponses_descriptor, @@ -357,7 +379,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ToolResponses", }); internal_static_google_cloud_ces_v1beta_Citations_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(6); internal_static_google_cloud_ces_v1beta_Citations_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Citations_descriptor, @@ -372,7 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "Title", "Text", }); - internal_static_google_cloud_ces_v1beta_Event_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1beta_Event_descriptor = getDescriptor().getMessageType(7); internal_static_google_cloud_ces_v1beta_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Event_descriptor, @@ -380,7 +402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Event", }); internal_static_google_cloud_ces_v1beta_SessionInput_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_cloud_ces_v1beta_SessionInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_SessionInput_descriptor, @@ -397,7 +419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InputType", }); internal_static_google_cloud_ces_v1beta_SessionOutput_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_cloud_ces_v1beta_SessionOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_SessionOutput_descriptor, @@ -423,7 +445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Messages", "RootSpan", }); internal_static_google_cloud_ces_v1beta_RecognitionResult_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_ces_v1beta_RecognitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RecognitionResult_descriptor, @@ -431,7 +453,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transcript", }); internal_static_google_cloud_ces_v1beta_InterruptionSignal_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_ces_v1beta_InterruptionSignal_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_InterruptionSignal_descriptor, @@ -439,19 +461,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BargeIn", }); internal_static_google_cloud_ces_v1beta_EndSession_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_ces_v1beta_EndSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_EndSession_descriptor, new java.lang.String[] { "Metadata", }); - internal_static_google_cloud_ces_v1beta_GoAway_descriptor = getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1beta_GoAway_descriptor = getDescriptor().getMessageType(13); internal_static_google_cloud_ces_v1beta_GoAway_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_GoAway_descriptor, new java.lang.String[] {}); internal_static_google_cloud_ces_v1beta_RunSessionRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_ces_v1beta_RunSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RunSessionRequest_descriptor, @@ -459,7 +481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "Inputs", }); internal_static_google_cloud_ces_v1beta_RunSessionResponse_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_ces_v1beta_RunSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RunSessionResponse_descriptor, @@ -467,7 +489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Outputs", }); internal_static_google_cloud_ces_v1beta_BidiSessionClientMessage_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_ces_v1beta_BidiSessionClientMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_BidiSessionClientMessage_descriptor, @@ -475,7 +497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "RealtimeInput", "MessageType", }); internal_static_google_cloud_ces_v1beta_BidiSessionServerMessage_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_ces_v1beta_BidiSessionServerMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_BidiSessionServerMessage_descriptor, @@ -494,6 +516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.ces.v1beta.CommonProto.getDescriptor(); com.google.cloud.ces.v1beta.ExampleProto.getDescriptor(); + com.google.cloud.ces.v1beta.MocksProto.getDescriptor(); com.google.cloud.ces.v1beta.SearchSuggestionsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolServiceProto.java index f891d5963d69..911a514f4c12 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolServiceProto.java @@ -73,71 +73,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "*google/cloud/ces/v1beta/tool_service.p" + "\n*google/cloud/ces/v1beta/tool_service.p" + "roto\022\027google.cloud.ces.v1beta\032\034google/ap" + "i/annotations.proto\032\027google/api/client.p" + "roto\032\037google/api/field_behavior.proto\032\031g" + "oogle/api/resource.proto\032$google/cloud/c" - + "es/v1beta/schema.proto\032\"google/cloud/ces" - + "/v1beta/tool.proto\032*google/cloud/ces/v1b" - + "eta/toolset_tool.proto\032\034google/protobuf/struct.proto\"\365\002\n" - + "\022ExecuteToolRequest\022/\n" - + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022A\n" - + "\014toolset_tool\030\003" - + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\003\340A\001H\000\0221\n" - + "\tvariables\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001H\001\022/\n" - + "\007context\030\006 \001(\0132\027.google.protobuf.StructB\003\340A\001H\001\022.\n" - + "\006parent\030\004 \001(\tB\036\340A\002\372A\030\n" - + "\026ces.googleapis.com/App\022*\n" - + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n" - + "\017tool_identifierB\030\n" - + "\026tool_execution_context\"\353\001\n" - + "\023ExecuteToolResponse\022,\n" - + "\004tool\030\001 \001(\tB\034\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022<\n" - + "\014toolset_tool\030\003 \001(\0132$.google.cloud.ces.v1beta.ToolsetToolH\000\022)\n" - + "\010response\030\002 \001(\0132\027.google.protobuf.Struct\022*\n" - + "\tvariables\030\004 \001(\0132\027.google.protobuf.StructB\021\n" - + "\017tool_identifier\"\322\001\n" - + "\031RetrieveToolSchemaRequest\022/\n" - + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022A\n" - + "\014toolset_tool\030\002" - + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\003\340A\001H\000\022.\n" - + "\006parent\030\003 \001(\tB\036\340A\002\372A\030\n" - + "\026ces.googleapis.com/AppB\021\n" - + "\017tool_identifier\"\212\002\n" - + "\032RetrieveToolSchemaResponse\022,\n" - + "\004tool\030\001 \001(\tB\034\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022<\n" - + "\014toolset_tool\030\002 \001(\0132$.google.cloud.ces.v1beta.ToolsetToolH\000\0225\n" - + "\014input_schema\030\003 \001(\0132\037.google.cloud.ces.v1beta.Schema\0226\n\r" - + "output_schema\030\004 \001(\0132\037.google.cloud.ces.v1beta.SchemaB\021\n" - + "\017tool_identifier\"b\n" - + "\024RetrieveToolsRequest\0223\n" - + "\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n" - + "\032ces.googleapis.com/Toolset\022\025\n" - + "\010tool_ids\030\003 \003(\tB\003\340A\001\"E\n" - + "\025RetrieveToolsResponse\022,\n" - + "\005tools\030\001 \003(\0132\035.google.cloud.ces.v1beta.Tool2\277\005\n" - + "\013ToolService\022\257\001\n" - + "\013ExecuteTool\022+.google.cloud.ces.v1beta.ExecuteToolRequest\032,.g" - + "oogle.cloud.ces.v1beta.ExecuteToolRespon" - + "se\"E\202\323\344\223\002?\":/v1beta/{parent=projects/*/locations/*/apps/*}:executeTool:\001*\022\313\001\n" - + "\022RetrieveToolSchema\0222.google.cloud.ces.v1be" - + "ta.RetrieveToolSchemaRequest\0323.google.cloud.ces.v1beta.RetrieveToolSchemaRespons" - + "e\"L\202\323\344\223\002F\"A/v1beta/{parent=projects/*/lo" - + "cations/*/apps/*}:retrieveToolSchema:\001*\022\303\001\n\r" - + "RetrieveTools\022-.google.cloud.ces.v1beta.RetrieveToolsRequest\032..google.cloud." - + "ces.v1beta.RetrieveToolsResponse\"S\202\323\344\223\002M" - + "\"H/v1beta/{toolset=projects/*/locations/" - + "*/apps/*/toolsets/*}:retrieveTools:\001*\032j\312" - + "A\022ces.googleapis.com\322ARhttps://www.googl" - + "eapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB`\n" - + "\033com.google.cloud.ces.v1betaB\020ToolServiceProtoP\001Z-cl" - + "oud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "es/v1beta/schema.proto\032-google/cloud/ces" + + "/v1beta/session_service.proto\032\"google/cl" + + "oud/ces/v1beta/tool.proto\032*google/cloud/" + + "ces/v1beta/toolset_tool.proto\032\034google/pr" + + "otobuf/struct.proto\"\264\003\n\022ExecuteToolReque" + + "st\022/\n\004tool\030\001 \001(\tB\037\340A\001\372A\031\n\027ces.googleapis" + + ".com/ToolH\000\022A\n\014toolset_tool\030\003 \001(\0132$.goog" + + "le.cloud.ces.v1beta.ToolsetToolB\003\340A\001H\000\0221" + + "\n\tvariables\030\005 \001(\0132\027.google.protobuf.Stru" + + "ctB\003\340A\001H\001\022/\n\007context\030\006 \001(\0132\027.google.prot" + + "obuf.StructB\003\340A\001H\001\022.\n\006parent\030\004 \001(\tB\036\340A\002\372" + + "A\030\n\026ces.googleapis.com/App\022*\n\004args\030\002 \001(\013" + + "2\027.google.protobuf.StructB\003\340A\001\022=\n\013mock_c" + + "onfig\030\007 \001(\0132#.google.cloud.ces.v1beta.Mo" + + "ckConfigB\003\340A\001B\021\n\017tool_identifierB\030\n\026tool" + + "_execution_context\"\353\001\n\023ExecuteToolRespon" + + "se\022,\n\004tool\030\001 \001(\tB\034\372A\031\n\027ces.googleapis.co" + + "m/ToolH\000\022<\n\014toolset_tool\030\003 \001(\0132$.google." + + "cloud.ces.v1beta.ToolsetToolH\000\022)\n\010respon" + + "se\030\002 \001(\0132\027.google.protobuf.Struct\022*\n\tvar" + + "iables\030\004 \001(\0132\027.google.protobuf.StructB\021\n" + + "\017tool_identifier\"\322\001\n\031RetrieveToolSchemaR" + + "equest\022/\n\004tool\030\001 \001(\tB\037\340A\001\372A\031\n\027ces.google" + + "apis.com/ToolH\000\022A\n\014toolset_tool\030\002 \001(\0132$." + + "google.cloud.ces.v1beta.ToolsetToolB\003\340A\001" + + "H\000\022.\n\006parent\030\003 \001(\tB\036\340A\002\372A\030\n\026ces.googleap" + + "is.com/AppB\021\n\017tool_identifier\"\212\002\n\032Retrie" + + "veToolSchemaResponse\022,\n\004tool\030\001 \001(\tB\034\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\022<\n\014toolset_to" + + "ol\030\002 \001(\0132$.google.cloud.ces.v1beta.Tools" + + "etToolH\000\0225\n\014input_schema\030\003 \001(\0132\037.google." + + "cloud.ces.v1beta.Schema\0226\n\routput_schema" + + "\030\004 \001(\0132\037.google.cloud.ces.v1beta.SchemaB" + + "\021\n\017tool_identifier\"b\n\024RetrieveToolsReque" + + "st\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.googlea" + + "pis.com/Toolset\022\025\n\010tool_ids\030\003 \003(\tB\003\340A\001\"E" + + "\n\025RetrieveToolsResponse\022,\n\005tools\030\001 \003(\0132\035" + + ".google.cloud.ces.v1beta.Tool2\277\005\n\013ToolSe" + + "rvice\022\257\001\n\013ExecuteTool\022+.google.cloud.ces" + + ".v1beta.ExecuteToolRequest\032,.google.clou" + + "d.ces.v1beta.ExecuteToolResponse\"E\202\323\344\223\002?" + + "\":/v1beta/{parent=projects/*/locations/*" + + "/apps/*}:executeTool:\001*\022\313\001\n\022RetrieveTool" + + "Schema\0222.google.cloud.ces.v1beta.Retriev" + + "eToolSchemaRequest\0323.google.cloud.ces.v1" + + "beta.RetrieveToolSchemaResponse\"L\202\323\344\223\002F\"" + + "A/v1beta/{parent=projects/*/locations/*/" + + "apps/*}:retrieveToolSchema:\001*\022\303\001\n\rRetrie" + + "veTools\022-.google.cloud.ces.v1beta.Retrie" + + "veToolsRequest\032..google.cloud.ces.v1beta" + + ".RetrieveToolsResponse\"S\202\323\344\223\002M\"H/v1beta/" + + "{toolset=projects/*/locations/*/apps/*/t" + + "oolsets/*}:retrieveTools:\001*\032j\312A\022ces.goog" + + "leapis.com\322ARhttps://www.googleapis.com/" + + "auth/ces,https://www.googleapis.com/auth" + + "/cloud-platformB`\n\033com.google.cloud.ces." + + "v1betaB\020ToolServiceProtoP\001Z-cloud.google" + + ".com/go/ces/apiv1beta/cespb;cespbb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -148,6 +147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.ces.v1beta.SchemaProto.getDescriptor(), + com.google.cloud.ces.v1beta.SessionServiceProto.getDescriptor(), com.google.cloud.ces.v1beta.ToolProto.getDescriptor(), com.google.cloud.ces.v1beta.ToolsetToolProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -164,6 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Context", "Parent", "Args", + "MockConfig", "ToolIdentifier", "ToolExecutionContext", }); @@ -213,6 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.ces.v1beta.SchemaProto.getDescriptor(); + com.google.cloud.ces.v1beta.SessionServiceProto.getDescriptor(); com.google.cloud.ces.v1beta.ToolProto.getDescriptor(); com.google.cloud.ces.v1beta.ToolsetToolProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto index 7ac3059788d9..8d32f2f4d894 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto @@ -424,6 +424,32 @@ message LoggingSettings { // Settings to describe how errors should be handled in the app. message ErrorHandlingSettings { + // Configuration for handling fallback responses. + message FallbackResponseConfig { + // Optional. The fallback messages in case of system errors (e.g. LLM + // errors), mapped by [supported language + // code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language). + map custom_fallback_messages = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of fallback attempts to make before the + // agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal. + int32 max_fallback_attempts = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for ending the session in case of system errors (e.g. LLM + // errors). + message EndSessionConfig { + // Optional. Whether to escalate the session in + // [EndSession][google.cloud.ces.v1beta.EndSession]. If session is + // escalated, [metadata in + // EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain + // `session_escalated = true`. See + // https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent + // for details. + optional bool escalate_session = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Defines the strategy for handling errors. enum ErrorHandlingStrategy { // Unspecified error handling strategy. @@ -444,6 +470,15 @@ message ErrorHandlingSettings { // Optional. The strategy to use for error handling. ErrorHandlingStrategy error_handling_strategy = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for handling fallback responses. + FallbackResponseConfig fallback_response_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for ending the session in case of system errors + // (e.g. LLM errors). + EndSessionConfig end_session_config = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Threshold settings for metrics in an Evaluation. @@ -618,6 +653,11 @@ message ConversationLoggingSettings { // Optional. Whether to disable conversation logging for the sessions. bool disable_conversation_logging = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls the retention window for the conversation. + // If not set, the conversation will be retained for 365 days. + google.protobuf.Duration retention_window = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Settings to describe the Cloud Logging behaviors for the app. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto index aacb4fd09310..1ec191d70e4c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto @@ -919,6 +919,9 @@ message EvaluationResult { // Evaluation/Expectation failed. In the case of an evaluation, this means // that at least one expectation was not met. FAIL = 2; + + // Evaluation/Expectation was skipped. + SKIPPED = 3; } // The state of the evaluation result execution. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto index 9e61271d789b..fc676c7010a9 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_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/ces/v1beta/agent_service.proto"; import "google/cloud/ces/v1beta/conversation.proto"; import "google/cloud/ces/v1beta/evaluation.proto"; import "google/longrunning/operations.proto"; @@ -354,6 +355,20 @@ service EvaluationService { }; option (google.api.method_signature) = "app"; } + + // Exports evaluations. + rpc ExportEvaluations(ExportEvaluationsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations:export" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "ExportEvaluationsResponse" + metadata_type: "OperationMetadata" + }; + } } // Response message for @@ -521,12 +536,27 @@ message ImportEvaluationsResponse { // The list of evaluations that were imported into the app. repeated Evaluation evaluations = 1; + // The list of evaluation results that were imported into the app. + repeated EvaluationResult evaluation_results = 4; + + // The list of evaluation runs that were imported into the app. + repeated EvaluationRun evaluation_runs = 5; + // Optional. A list of error messages associated with evaluations that failed // to be imported. repeated string error_messages = 2 [(google.api.field_behavior) = OPTIONAL]; - // The number of evaluations that were not imported due to errors. + // The number of evaluations that either failed to import entirely or + // completed import with one or more errors. int32 import_failure_count = 3; + + // The number of evaluation results that either failed to import entirely or + // completed import with one or more errors. + int32 evaluation_result_import_failure_count = 6; + + // The number of evaluation runs that either failed to import entirely or + // completed import with one or more errors. + int32 evaluation_run_import_failure_count = 7; } // Represents the metadata of the long-running operation for @@ -1195,3 +1225,107 @@ message ListEvaluationExpectationsResponse { // subsequent pages. string next_page_token = 2; } + +// Options for exporting CES evaluation resources. +message ExportOptions { + // The format to export the items in. Defaults to JSON if not + // specified. + enum ExportFormat { + // Unspecified format. + EXPORT_FORMAT_UNSPECIFIED = 0; + + // JSON format. + JSON = 1; + + // YAML format. + YAML = 2; + } + + // Optional. The format to export the evaluation results in. Defaults to JSON + // if not specified. + ExportFormat export_format = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Google Cloud Storage URI to write the exported Evaluation + // Results to. + string gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations]. +message ExportEvaluationsRequest { + // Required. The resource name of the app to export evaluations from. + // Format: `projects/{project}/locations/{location}/apps/{app}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Required. The resource names of the evaluations to export. + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Evaluation" } + ]; + + // Optional. The export options for the evaluations. + ExportOptions export_options = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Includes evaluation results in the export. At least one of + // include_evaluation_results or include_evaluations must be set. + bool include_evaluation_results = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Includes evaluations in the export. At least one of + // include_evaluation_results or include_evaluations must be set. + bool include_evaluations = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations]. +message ExportEvaluationsResponse { + // The exported evaluations. + oneof evaluations { + // The content of the exported Evaluations. This will be populated if + // gcs_uri was not specified in the request. + bytes evaluations_content = 1; + + // The Google Cloud Storage URI folder where the exported evaluations were + // written. This will be populated if gcs_uri was specified in the request. + string evaluations_uri = 2; + } + + // Output only. A map of evaluation resource names that could not be exported, + // to the reason why they failed. + map failed_evaluations = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Response message for +// [EvaluationService.ExportEvaluationResults][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationResults]. +message ExportEvaluationResultsResponse { + // The exported evaluation results. + oneof evaluation_results { + // The content of the exported Evaluation Results. This will be populated if + // gcs_uri was not specified in the request. + bytes evaluation_results_content = 1; + + // The Google Cloud Storage URI folder where the exported Evaluation Results + // were written. This will be populated if gcs_uri was specified in the + // request. + string evaluation_results_uri = 2; + } +} + +// Response message for +// [EvaluationService.ExportEvaluationRuns][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationRuns]. +message ExportEvaluationRunsResponse { + // The exported evaluation runs. + oneof evaluation_runs { + // The content of the exported Evaluation Runs. This will be populated if + // gcs_uri was not specified in the request. + bytes evaluation_runs_content = 1; + + // The Google Cloud Storage URI folder where the exported Evaluation Runs + // were written. This will be populated if gcs_uri was specified in the + // request. + string evaluation_runs_uri = 2; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mocks.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mocks.proto new file mode 100644 index 000000000000..7dafb78e95a9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mocks.proto @@ -0,0 +1,65 @@ +// Copyright 2026 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.ces.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1beta/toolset_tool.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1beta/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "MocksProto"; +option java_package = "com.google.cloud.ces.v1beta"; + +// A mocked tool call. +// +// Expresses the target tool + a pattern to match against that tool's +// args / inputs. If the pattern matches, then the mock response will be +// returned. +message MockedToolCall { + // The identifier of the tool to mock. + oneof tool_identifier { + // Optional. The name of the tool to mock. + // Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + string tool_id = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. The toolset to mock. + ToolsetTool toolset = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Deprecated. Use tool_identifier instead. + string tool = 1 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Required. A pattern to match against the args / inputs of all dispatched + // tool calls. If the tool call inputs match this pattern, then mock output + // will be returned. + google.protobuf.Struct expected_args_pattern = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The mock response / output to return if the tool call args / + // inputs match the pattern. + google.protobuf.Struct mock_response = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto index 59f00fc67d56..b8f893fdce82 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/ces/v1beta/common.proto"; import "google/cloud/ces/v1beta/example.proto"; +import "google/cloud/ces/v1beta/mocks.proto"; import "google/cloud/ces/v1beta/search_suggestions.proto"; import "google/protobuf/struct.proto"; @@ -148,6 +149,31 @@ enum AudioEncoding { ALAW = 3; } +// Mock tool calls configuration for the session. +message MockConfig { + // What to do when a tool call doesn't match any mocked tool calls. + enum UnmatchedToolCallBehavior { + // Default value. This value is unused. + UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + + // Throw an error for any tool calls that don't match a mock expected input + // pattern. + FAIL = 1; + + // For unmatched tool calls, pass the tool call through to real tool. + PASS_THROUGH = 2; + } + + // Optional. All tool calls to mock for the duration of the session. + repeated MockedToolCall mocked_tool_calls = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Beavhior for tool calls that don't match any args patterns in + // mocked_tool_calls. + UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 + [(google.api.field_behavior) = REQUIRED]; +} + // InputAudioConfig configures how the CES agent should interpret the incoming // audio data. message InputAudioConfig { diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/tool_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/tool_service.proto index deb16b4bc4c0..6a6ba4758a91 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/tool_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/tool_service.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/ces/v1beta/schema.proto"; +import "google/cloud/ces/v1beta/session_service.proto"; import "google/cloud/ces/v1beta/tool.proto"; import "google/cloud/ces/v1beta/toolset_tool.proto"; import "google/protobuf/struct.proto"; @@ -105,6 +106,11 @@ message ExecuteToolRequest { // Optional. The input parameters and values for the tool in JSON object // format. google.protobuf.Struct args = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mock configuration for the tool execution. + // If this field is set, tools that call other tools will be + // mocked based on the provided patterns and responses. + MockConfig mock_config = 7 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluations.java new file mode 100644 index 000000000000..a27f787a7ebc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluations.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportOptions; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncExportEvaluations { + + public static void main(String[] args) throws Exception { + asyncExportEvaluations(); + } + + public static void asyncExportEvaluations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllNames(new ArrayList()) + .setExportOptions(ExportOptions.newBuilder().build()) + .setIncludeEvaluationResults(true) + .setIncludeEvaluations(true) + .build(); + ApiFuture future = + evaluationServiceClient.exportEvaluationsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluationsLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluationsLRO.java new file mode 100644 index 000000000000..2cee87512dfc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluationsLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; +import com.google.cloud.ces.v1beta.ExportOptions; +import com.google.cloud.ces.v1beta.OperationMetadata; +import java.util.ArrayList; + +public class AsyncExportEvaluationsLRO { + + public static void main(String[] args) throws Exception { + asyncExportEvaluationsLRO(); + } + + public static void asyncExportEvaluationsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllNames(new ArrayList()) + .setExportOptions(ExportOptions.newBuilder().build()) + .setIncludeEvaluationResults(true) + .setIncludeEvaluations(true) + .build(); + OperationFuture future = + evaluationServiceClient.exportEvaluationsOperationCallable().futureCall(request); + // Do something. + ExportEvaluationsResponse response = future.get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_LRO_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluations.java new file mode 100644 index 000000000000..280f512e566f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_sync] +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; +import com.google.cloud.ces.v1beta.ExportOptions; +import java.util.ArrayList; + +public class SyncExportEvaluations { + + public static void main(String[] args) throws Exception { + syncExportEvaluations(); + } + + public static void syncExportEvaluations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllNames(new ArrayList()) + .setExportOptions(ExportOptions.newBuilder().build()) + .setIncludeEvaluationResults(true) + .setIncludeEvaluations(true) + .build(); + ExportEvaluationsResponse response = + evaluationServiceClient.exportEvaluationsAsync(request).get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsAppname.java new file mode 100644 index 000000000000..aa0ae7537687 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsAppname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_Appname_sync] +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; + +public class SyncExportEvaluationsAppname { + + public static void main(String[] args) throws Exception { + syncExportEvaluationsAppname(); + } + + public static void syncExportEvaluationsAppname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + ExportEvaluationsResponse response = + evaluationServiceClient.exportEvaluationsAsync(parent).get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsString.java new file mode 100644 index 000000000000..cc01e7a50624 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_String_sync] +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; + +public class SyncExportEvaluationsString { + + public static void main(String[] args) throws Exception { + syncExportEvaluationsString(); + } + + public static void syncExportEvaluationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + ExportEvaluationsResponse response = + evaluationServiceClient.exportEvaluationsAsync(parent).get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/AsyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/AsyncExecuteTool.java index 03c83d6d3a56..8956968f1e36 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/AsyncExecuteTool.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/AsyncExecuteTool.java @@ -21,6 +21,7 @@ import com.google.cloud.ces.v1beta.AppName; import com.google.cloud.ces.v1beta.ExecuteToolRequest; import com.google.cloud.ces.v1beta.ExecuteToolResponse; +import com.google.cloud.ces.v1beta.MockConfig; import com.google.cloud.ces.v1beta.ToolServiceClient; import com.google.protobuf.Struct; @@ -41,6 +42,7 @@ public static void asyncExecuteTool() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ApiFuture future = toolServiceClient.executeToolCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/SyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/SyncExecuteTool.java index a04abcc0a5f0..c92f063794f4 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/SyncExecuteTool.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/SyncExecuteTool.java @@ -20,6 +20,7 @@ import com.google.cloud.ces.v1beta.AppName; import com.google.cloud.ces.v1beta.ExecuteToolRequest; import com.google.cloud.ces.v1beta.ExecuteToolResponse; +import com.google.cloud.ces.v1beta.MockConfig; import com.google.cloud.ces.v1beta.ToolServiceClient; import com.google.protobuf.Struct; @@ -40,6 +41,7 @@ public static void syncExecuteTool() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse response = toolServiceClient.executeTool(request); } diff --git a/java-channel/README.md b/java-channel/README.md index 918da2ec92ec..cbb932557afb 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.94.0 + 3.95.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.94.0' +implementation 'com.google.cloud:google-cloud-channel:3.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.95.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-channel/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index e5390ce94110..bf670616c694 100644 --- a/java-channel/google-cloud-channel-bom/pom.xml +++ b/java-channel/google-cloud-channel-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-channel-bom - 3.95.0 + 3.96.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-channel - 3.95.0 + 3.96.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.95.0 + 3.96.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.95.0 + 3.96.0
diff --git a/java-channel/google-cloud-channel/pom.xml b/java-channel/google-cloud-channel/pom.xml index 3f7c8ef6784e..508715c57f7c 100644 --- a/java-channel/google-cloud-channel/pom.xml +++ b/java-channel/google-cloud-channel/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-channel - 3.95.0 + 3.96.0 jar Google Channel Services With Channel Services, Google Cloud partners and resellers have a single unified resale platform, with a unified resale catalog, customer management, order management, billing management, policy and authorization management, and cost management. com.google.cloud google-cloud-channel-parent - 3.95.0 + 3.96.0 google-cloud-channel diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/Version.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/Version.java index 4aca9e0a90b1..49827ab3d6d3 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/Version.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-channel:current} - static final String VERSION = "3.95.0"; + static final String VERSION = "3.96.0"; // {x-version-update-end} } diff --git a/java-channel/grpc-google-cloud-channel-v1/pom.xml b/java-channel/grpc-google-cloud-channel-v1/pom.xml index f3469a77aa5f..f1c45acbdd3b 100644 --- a/java-channel/grpc-google-cloud-channel-v1/pom.xml +++ b/java-channel/grpc-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.95.0 + 3.96.0 grpc-google-cloud-channel-v1 GRPC library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.95.0 + 3.96.0 diff --git a/java-channel/pom.xml b/java-channel/pom.xml index fb991b50f186..407d68f130f0 100644 --- a/java-channel/pom.xml +++ b/java-channel/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-channel-parent pom - 3.95.0 + 3.96.0 Google Channel Services Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-channel - 3.95.0 + 3.96.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.95.0 + 3.96.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.95.0 + 3.96.0 diff --git a/java-channel/proto-google-cloud-channel-v1/pom.xml b/java-channel/proto-google-cloud-channel-v1/pom.xml index ae9216b2a5af..7d066fbbef36 100644 --- a/java-channel/proto-google-cloud-channel-v1/pom.xml +++ b/java-channel/proto-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.95.0 + 3.96.0 proto-google-cloud-channel-v1 Proto library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.95.0 + 3.96.0 diff --git a/java-chat/README.md b/java-chat/README.md index dbb3e327406b..d93ab91a7ad0 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.54.0' +implementation 'com.google.cloud:google-cloud-chat:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.55.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chat/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/google-cloud-chat-bom/pom.xml b/java-chat/google-cloud-chat-bom/pom.xml index 629ae0e84064..feea7e97515c 100644 --- a/java-chat/google-cloud-chat-bom/pom.xml +++ b/java-chat/google-cloud-chat-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-chat-bom - 0.55.0 + 0.56.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-chat - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.55.0 + 0.56.0 diff --git a/java-chat/google-cloud-chat/pom.xml b/java-chat/google-cloud-chat/pom.xml index 9da739cf5f94..533d0deef268 100644 --- a/java-chat/google-cloud-chat/pom.xml +++ b/java-chat/google-cloud-chat/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chat - 0.55.0 + 0.56.0 jar Google Google Chat API Google Chat API The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. com.google.cloud google-cloud-chat-parent - 0.55.0 + 0.56.0 google-cloud-chat diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index b36fe40cb319..e7ab105d23c3 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -471,6 +471,25 @@ * * * + *

FindGroupChats + *

Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have joined the conversation are supported. For an example, see [Find group chats](https://developers.google.com/workspace/chat/find-group-chats). + *

If the calling user blocks, or is blocked by, some users, and no spaces with the entire specified set of users are found, this method returns spaces that don't include the blocked or blocking users. + *

The specified set of users must contain only human (non-app) memberships. A request that contains non-human users doesn't return any spaces. + *

Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

- `https://www.googleapis.com/auth/chat.memberships.readonly` - `https://www.googleapis.com/auth/chat.memberships` + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • findGroupChats(FindGroupChatsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • findGroupChatsPagedCallable() + *

  • findGroupChatsCallable() + *

+ * + * + * *

CreateMembership *

Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships for other Chat apps isn't supported. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. *

Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): @@ -4500,6 +4519,166 @@ public final UnaryCallable findDirectMessageCal return stub.findDirectMessageCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the + * calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have + * joined the conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * + *

If the calling user blocks, or is blocked by, some users, and no spaces with the entire + * specified set of users are found, this method returns spaces that don't include the blocked or + * blocking users. + * + *

The specified set of users must contain only human (non-app) memberships. A request that + * contains non-human users doesn't return any spaces. + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.memberships.readonly` - + * `https://www.googleapis.com/auth/chat.memberships` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   FindGroupChatsRequest request =
+   *       FindGroupChatsRequest.newBuilder()
+   *           .addAllUsers(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setSpaceView(SpaceView.forNumber(0))
+   *           .build();
+   *   for (Space element : chatServiceClient.findGroupChats(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FindGroupChatsPagedResponse findGroupChats(FindGroupChatsRequest request) { + return findGroupChatsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the + * calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have + * joined the conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * + *

If the calling user blocks, or is blocked by, some users, and no spaces with the entire + * specified set of users are found, this method returns spaces that don't include the blocked or + * blocking users. + * + *

The specified set of users must contain only human (non-app) memberships. A request that + * contains non-human users doesn't return any spaces. + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.memberships.readonly` - + * `https://www.googleapis.com/auth/chat.memberships` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   FindGroupChatsRequest request =
+   *       FindGroupChatsRequest.newBuilder()
+   *           .addAllUsers(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setSpaceView(SpaceView.forNumber(0))
+   *           .build();
+   *   ApiFuture future = chatServiceClient.findGroupChatsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Space element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + findGroupChatsPagedCallable() { + return stub.findGroupChatsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the + * calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have + * joined the conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * + *

If the calling user blocks, or is blocked by, some users, and no spaces with the entire + * specified set of users are found, this method returns spaces that don't include the blocked or + * blocking users. + * + *

The specified set of users must contain only human (non-app) memberships. A request that + * contains non-human users doesn't return any spaces. + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.memberships.readonly` - + * `https://www.googleapis.com/auth/chat.memberships` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   FindGroupChatsRequest request =
+   *       FindGroupChatsRequest.newBuilder()
+   *           .addAllUsers(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setSpaceView(SpaceView.forNumber(0))
+   *           .build();
+   *   while (true) {
+   *     FindGroupChatsResponse response = chatServiceClient.findGroupChatsCallable().call(request);
+   *     for (Space element : response.getSpacesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + findGroupChatsCallable() { + return stub.findGroupChatsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships @@ -9374,6 +9553,82 @@ protected SearchSpacesFixedSizeCollection createCollection( } } + public static class FindGroupChatsPagedResponse + extends AbstractPagedListResponse< + FindGroupChatsRequest, + FindGroupChatsResponse, + Space, + FindGroupChatsPage, + FindGroupChatsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FindGroupChatsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FindGroupChatsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FindGroupChatsPagedResponse(FindGroupChatsPage page) { + super(page, FindGroupChatsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FindGroupChatsPage + extends AbstractPage< + FindGroupChatsRequest, FindGroupChatsResponse, Space, FindGroupChatsPage> { + + private FindGroupChatsPage( + PageContext context, + FindGroupChatsResponse response) { + super(context, response); + } + + private static FindGroupChatsPage createEmptyPage() { + return new FindGroupChatsPage(null, null); + } + + @Override + protected FindGroupChatsPage createPage( + PageContext context, + FindGroupChatsResponse response) { + return new FindGroupChatsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FindGroupChatsFixedSizeCollection + extends AbstractFixedSizeCollection< + FindGroupChatsRequest, + FindGroupChatsResponse, + Space, + FindGroupChatsPage, + FindGroupChatsFixedSizeCollection> { + + private FindGroupChatsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FindGroupChatsFixedSizeCollection createEmptyCollection() { + return new FindGroupChatsFixedSizeCollection(null, 0); + } + + @Override + protected FindGroupChatsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FindGroupChatsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListReactionsPagedResponse extends AbstractPagedListResponse< ListReactionsRequest, diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java index d0f288e2fc7e..414c7437df2f 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java @@ -16,6 +16,7 @@ package com.google.chat.v1; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -193,6 +194,13 @@ public UnaryCallSettings findDirectMessageSetti return ((ChatServiceStubSettings) getStubSettings()).findDirectMessageSettings(); } + /** Returns the object with the settings used for calls to findGroupChats. */ + public PagedCallSettings< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings() { + return ((ChatServiceStubSettings) getStubSettings()).findGroupChatsSettings(); + } + /** Returns the object with the settings used for calls to createMembership. */ public UnaryCallSettings createMembershipSettings() { return ((ChatServiceStubSettings) getStubSettings()).createMembershipSettings(); @@ -537,6 +545,13 @@ public UnaryCallSettings.Builder findDirectMess return getStubSettingsBuilder().findDirectMessageSettings(); } + /** Returns the builder for the settings used for calls to findGroupChats. */ + public PagedCallSettings.Builder< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings() { + return getStubSettingsBuilder().findGroupChatsSettings(); + } + /** Returns the builder for the settings used for calls to createMembership. */ public UnaryCallSettings.Builder createMembershipSettings() { diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json index ccdd152e2645..3c17aa5e5b7f 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json @@ -52,6 +52,9 @@ "FindDirectMessage": { "methods": ["findDirectMessage", "findDirectMessageCallable"] }, + "FindGroupChats": { + "methods": ["findGroupChats", "findGroupChatsPagedCallable", "findGroupChatsCallable"] + }, "GetAttachment": { "methods": ["getAttachment", "getAttachment", "getAttachment", "getAttachmentCallable"] }, diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java index bf882802d428..8f023fcf7c43 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java @@ -16,6 +16,7 @@ package com.google.chat.v1.stub; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -45,6 +46,8 @@ import com.google.chat.v1.DeleteSectionRequest; import com.google.chat.v1.DeleteSpaceRequest; import com.google.chat.v1.FindDirectMessageRequest; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; @@ -197,6 +200,15 @@ public UnaryCallable findDirectMessageCallable( throw new UnsupportedOperationException("Not implemented: findDirectMessageCallable()"); } + public UnaryCallable + findGroupChatsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: findGroupChatsPagedCallable()"); + } + + public UnaryCallable findGroupChatsCallable() { + throw new UnsupportedOperationException("Not implemented: findGroupChatsCallable()"); + } + public UnaryCallable createMembershipCallable() { throw new UnsupportedOperationException("Not implemented: createMembershipCallable()"); } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index e230dff29482..b3ff9092fe8f 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -16,6 +16,7 @@ package com.google.chat.v1.stub; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -70,6 +71,8 @@ import com.google.chat.v1.DeleteSectionRequest; import com.google.chat.v1.DeleteSpaceRequest; import com.google.chat.v1.FindDirectMessageRequest; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; @@ -249,6 +252,9 @@ public class ChatServiceStubSettings extends StubSettings completeImportSpaceSettings; private final UnaryCallSettings findDirectMessageSettings; + private final PagedCallSettings< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings; private final UnaryCallSettings createMembershipSettings; private final UnaryCallSettings updateMembershipSettings; private final UnaryCallSettings deleteMembershipSettings; @@ -430,6 +436,41 @@ public Iterable extractResources(SearchSpacesResponse payload) { } }; + private static final PagedListDescriptor + FIND_GROUP_CHATS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FindGroupChatsRequest injectToken(FindGroupChatsRequest payload, String token) { + return FindGroupChatsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public FindGroupChatsRequest injectPageSize( + FindGroupChatsRequest payload, int pageSize) { + return FindGroupChatsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(FindGroupChatsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FindGroupChatsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(FindGroupChatsResponse payload) { + return payload.getSpacesList(); + } + }; + private static final PagedListDescriptor LIST_REACTIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -679,6 +720,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + FIND_GROUP_CHATS_PAGE_STR_FACT = + new PagedListResponseFactory< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + FindGroupChatsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, FIND_GROUP_CHATS_PAGE_STR_DESC, request, context); + return FindGroupChatsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListReactionsRequest, ListReactionsResponse, ListReactionsPagedResponse> LIST_REACTIONS_PAGE_STR_FACT = @@ -865,6 +923,13 @@ public UnaryCallSettings findDirectMessageSetti return findDirectMessageSettings; } + /** Returns the object with the settings used for calls to findGroupChats. */ + public PagedCallSettings< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings() { + return findGroupChatsSettings; + } + /** Returns the object with the settings used for calls to createMembership. */ public UnaryCallSettings createMembershipSettings() { return createMembershipSettings; @@ -1128,6 +1193,7 @@ protected ChatServiceStubSettings(Builder settingsBuilder) throws IOException { deleteSpaceSettings = settingsBuilder.deleteSpaceSettings().build(); completeImportSpaceSettings = settingsBuilder.completeImportSpaceSettings().build(); findDirectMessageSettings = settingsBuilder.findDirectMessageSettings().build(); + findGroupChatsSettings = settingsBuilder.findGroupChatsSettings().build(); createMembershipSettings = settingsBuilder.createMembershipSettings().build(); updateMembershipSettings = settingsBuilder.updateMembershipSettings().build(); deleteMembershipSettings = settingsBuilder.deleteMembershipSettings().build(); @@ -1197,6 +1263,9 @@ public static class Builder extends StubSettings.Builder findDirectMessageSettings; + private final PagedCallSettings.Builder< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings; private final UnaryCallSettings.Builder createMembershipSettings; private final UnaryCallSettings.Builder @@ -1302,6 +1371,7 @@ protected Builder(ClientContext clientContext) { deleteSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); completeImportSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); findDirectMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + findGroupChatsSettings = PagedCallSettings.newBuilder(FIND_GROUP_CHATS_PAGE_STR_FACT); createMembershipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateMembershipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteMembershipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1347,6 +1417,7 @@ protected Builder(ClientContext clientContext) { deleteSpaceSettings, completeImportSpaceSettings, findDirectMessageSettings, + findGroupChatsSettings, createMembershipSettings, updateMembershipSettings, deleteMembershipSettings, @@ -1395,6 +1466,7 @@ protected Builder(ChatServiceStubSettings settings) { deleteSpaceSettings = settings.deleteSpaceSettings.toBuilder(); completeImportSpaceSettings = settings.completeImportSpaceSettings.toBuilder(); findDirectMessageSettings = settings.findDirectMessageSettings.toBuilder(); + findGroupChatsSettings = settings.findGroupChatsSettings.toBuilder(); createMembershipSettings = settings.createMembershipSettings.toBuilder(); updateMembershipSettings = settings.updateMembershipSettings.toBuilder(); deleteMembershipSettings = settings.deleteMembershipSettings.toBuilder(); @@ -1442,6 +1514,7 @@ protected Builder(ChatServiceStubSettings settings) { deleteSpaceSettings, completeImportSpaceSettings, findDirectMessageSettings, + findGroupChatsSettings, createMembershipSettings, updateMembershipSettings, deleteMembershipSettings, @@ -1583,6 +1656,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .findGroupChatsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createMembershipSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1820,6 +1898,13 @@ public UnaryCallSettings.Builder findDirectMess return findDirectMessageSettings; } + /** Returns the builder for the settings used for calls to findGroupChats. */ + public PagedCallSettings.Builder< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings() { + return findGroupChatsSettings; + } + /** Returns the builder for the settings used for calls to createMembership. */ public UnaryCallSettings.Builder createMembershipSettings() { diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java index 79293686d5c3..54f7371c6f4b 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java @@ -16,6 +16,7 @@ package com.google.chat.v1.stub; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -50,6 +51,8 @@ import com.google.chat.v1.DeleteSectionRequest; import com.google.chat.v1.DeleteSpaceRequest; import com.google.chat.v1.FindDirectMessageRequest; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; @@ -301,6 +304,18 @@ public class GrpcChatServiceStub extends ChatServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + findGroupChatsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/FindGroupChats") + .setRequestMarshaller( + ProtoUtils.marshaller(FindGroupChatsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FindGroupChatsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor createMembershipMethodDescriptor = MethodDescriptor.newBuilder() @@ -603,6 +618,9 @@ public class GrpcChatServiceStub extends ChatServiceStub { private final UnaryCallable completeImportSpaceCallable; private final UnaryCallable findDirectMessageCallable; + private final UnaryCallable findGroupChatsCallable; + private final UnaryCallable + findGroupChatsPagedCallable; private final UnaryCallable createMembershipCallable; private final UnaryCallable updateMembershipCallable; private final UnaryCallable deleteMembershipCallable; @@ -853,6 +871,11 @@ protected GrpcChatServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(findDirectMessageMethodDescriptor) .build(); + GrpcCallSettings + findGroupChatsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(findGroupChatsMethodDescriptor) + .build(); GrpcCallSettings createMembershipTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createMembershipMethodDescriptor) @@ -1185,6 +1208,12 @@ protected GrpcChatServiceStub( findDirectMessageTransportSettings, settings.findDirectMessageSettings(), clientContext); + this.findGroupChatsCallable = + callableFactory.createUnaryCallable( + findGroupChatsTransportSettings, settings.findGroupChatsSettings(), clientContext); + this.findGroupChatsPagedCallable = + callableFactory.createPagedCallable( + findGroupChatsTransportSettings, settings.findGroupChatsSettings(), clientContext); this.createMembershipCallable = callableFactory.createUnaryCallable( createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); @@ -1408,6 +1437,17 @@ public UnaryCallable findDirectMessageCallable( return findDirectMessageCallable; } + @Override + public UnaryCallable findGroupChatsCallable() { + return findGroupChatsCallable; + } + + @Override + public UnaryCallable + findGroupChatsPagedCallable() { + return findGroupChatsPagedCallable; + } + @Override public UnaryCallable createMembershipCallable() { return createMembershipCallable; diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java index 860c48a928df..e218f956a5db 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java @@ -16,6 +16,7 @@ package com.google.chat.v1.stub; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -55,6 +56,8 @@ import com.google.chat.v1.DeleteSectionRequest; import com.google.chat.v1.DeleteSpaceRequest; import com.google.chat.v1.FindDirectMessageRequest; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; @@ -789,6 +792,44 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + findGroupChatsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/FindGroupChats") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/spaces:findGroupChats", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "spaceView", request.getSpaceViewValue()); + serializer.putQueryParam(fields, "users", request.getUsersList()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FindGroupChatsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createMembershipMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1700,6 +1741,9 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { private final UnaryCallable completeImportSpaceCallable; private final UnaryCallable findDirectMessageCallable; + private final UnaryCallable findGroupChatsCallable; + private final UnaryCallable + findGroupChatsPagedCallable; private final UnaryCallable createMembershipCallable; private final UnaryCallable updateMembershipCallable; private final UnaryCallable deleteMembershipCallable; @@ -1969,6 +2013,12 @@ protected HttpJsonChatServiceStub( .setMethodDescriptor(findDirectMessageMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + findGroupChatsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(findGroupChatsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings createMembershipTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createMembershipMethodDescriptor) @@ -2327,6 +2377,12 @@ protected HttpJsonChatServiceStub( findDirectMessageTransportSettings, settings.findDirectMessageSettings(), clientContext); + this.findGroupChatsCallable = + callableFactory.createUnaryCallable( + findGroupChatsTransportSettings, settings.findGroupChatsSettings(), clientContext); + this.findGroupChatsPagedCallable = + callableFactory.createPagedCallable( + findGroupChatsTransportSettings, settings.findGroupChatsSettings(), clientContext); this.createMembershipCallable = callableFactory.createUnaryCallable( createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); @@ -2454,6 +2510,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(deleteSpaceMethodDescriptor); methodDescriptors.add(completeImportSpaceMethodDescriptor); methodDescriptors.add(findDirectMessageMethodDescriptor); + methodDescriptors.add(findGroupChatsMethodDescriptor); methodDescriptors.add(createMembershipMethodDescriptor); methodDescriptors.add(updateMembershipMethodDescriptor); methodDescriptors.add(deleteMembershipMethodDescriptor); @@ -2594,6 +2651,17 @@ public UnaryCallable findDirectMessageCallable( return findDirectMessageCallable; } + @Override + public UnaryCallable findGroupChatsCallable() { + return findGroupChatsCallable; + } + + @Override + public UnaryCallable + findGroupChatsPagedCallable() { + return findGroupChatsPagedCallable; + } + @Override public UnaryCallable createMembershipCallable() { return createMembershipCallable; diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/Version.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/Version.java index d6c618f6ab18..ba375a5edd71 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/Version.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-chat:current} - static final String VERSION = "0.55.0"; + static final String VERSION = "0.56.0"; // {x-version-update-end} } diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index e15da918c968..380734d403e7 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -2312,6 +2312,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.FindGroupChatsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.FindGroupChatsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.FindGroupChatsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.FindGroupChatsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.ForwardedMetadata", "queryAllDeclaredConstructors": true, @@ -3779,6 +3815,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.SpaceView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.Thread", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index 9a326688ccc6..102c5df63892 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.chat.v1; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -1656,6 +1657,68 @@ public void findDirectMessageExceptionTest() throws Exception { } } + @Test + public void findGroupChatsTest() throws Exception { + Space responsesElement = Space.newBuilder().build(); + FindGroupChatsResponse expectedResponse = + FindGroupChatsResponse.newBuilder() + .setNextPageToken("") + .addAllSpaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + + FindGroupChatsPagedResponse pagedListResponse = client.findGroupChats(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpacesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void findGroupChatsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + client.findGroupChats(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createMembershipTest() throws Exception { Membership expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index b6817f027887..e0a31917330a 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -16,6 +16,7 @@ package com.google.chat.v1; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -1412,6 +1413,65 @@ public void findDirectMessageExceptionTest() throws Exception { } } + @Test + public void findGroupChatsTest() throws Exception { + Space responsesElement = Space.newBuilder().build(); + FindGroupChatsResponse expectedResponse = + FindGroupChatsResponse.newBuilder() + .setNextPageToken("") + .addAllSpaces(Arrays.asList(responsesElement)) + .build(); + mockChatService.addResponse(expectedResponse); + + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + + FindGroupChatsPagedResponse pagedListResponse = client.findGroupChats(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpacesList().get(0), resources.get(0)); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FindGroupChatsRequest actualRequest = ((FindGroupChatsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getUsersList(), actualRequest.getUsersList()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getSpaceView(), actualRequest.getSpaceView()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void findGroupChatsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + client.findGroupChats(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createMembershipTest() throws Exception { Membership expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java index 33c98f3ce115..276c57293fa2 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java @@ -431,6 +431,27 @@ public void findDirectMessage( } } + @Override + public void findGroupChats( + FindGroupChatsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FindGroupChatsResponse) { + requests.add(request); + responseObserver.onNext(((FindGroupChatsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FindGroupChats, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FindGroupChatsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createMembership( CreateMembershipRequest request, StreamObserver responseObserver) { diff --git a/java-chat/grpc-google-cloud-chat-v1/pom.xml b/java-chat/grpc-google-cloud-chat-v1/pom.xml index 2af37fcae706..387cd95ef6fd 100644 --- a/java-chat/grpc-google-cloud-chat-v1/pom.xml +++ b/java-chat/grpc-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.55.0 + 0.56.0 grpc-google-cloud-chat-v1 GRPC library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.55.0 + 0.56.0 diff --git a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java index ff694f9e63de..9b1af68b3d96 100644 --- a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java +++ b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java @@ -750,6 +750,48 @@ private ChatServiceGrpc() {} return getFindDirectMessageMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.FindGroupChatsRequest, com.google.chat.v1.FindGroupChatsResponse> + getFindGroupChatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FindGroupChats", + requestType = com.google.chat.v1.FindGroupChatsRequest.class, + responseType = com.google.chat.v1.FindGroupChatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.FindGroupChatsRequest, com.google.chat.v1.FindGroupChatsResponse> + getFindGroupChatsMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.FindGroupChatsRequest, com.google.chat.v1.FindGroupChatsResponse> + getFindGroupChatsMethod; + if ((getFindGroupChatsMethod = ChatServiceGrpc.getFindGroupChatsMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getFindGroupChatsMethod = ChatServiceGrpc.getFindGroupChatsMethod) == null) { + ChatServiceGrpc.getFindGroupChatsMethod = + getFindGroupChatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FindGroupChats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.FindGroupChatsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.FindGroupChatsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("FindGroupChats")) + .build(); + } + } + } + return getFindGroupChatsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.chat.v1.CreateMembershipRequest, com.google.chat.v1.Membership> getCreateMembershipMethod; @@ -2468,6 +2510,35 @@ default void findDirectMessage( getFindDirectMessageMethod(), responseObserver); } + /** + * + * + *
+     * Returns all spaces with `spaceType == GROUP_CHAT`, whose
+     * human memberships contain exactly the calling user, and the users specified
+     * in `FindGroupChatsRequest.users`. Only members that have joined the
+     * conversation are supported. For an example, see [Find group
+     * chats](https://developers.google.com/workspace/chat/find-group-chats).
+     * If the calling user blocks, or is blocked by, some users, and no spaces
+     * with the entire specified set of users are found, this method returns
+     * spaces that don't include the blocked or blocking users.
+     * The specified set of users must contain only human (non-app) memberships.
+     * A request that contains non-human users doesn't return any spaces.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.memberships.readonly`
+     *   - `https://www.googleapis.com/auth/chat.memberships`
+     * 
+ */ + default void findGroupChats( + com.google.chat.v1.FindGroupChatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFindGroupChatsMethod(), responseObserver); + } + /** * * @@ -3857,6 +3928,37 @@ public void findDirectMessage( responseObserver); } + /** + * + * + *
+     * Returns all spaces with `spaceType == GROUP_CHAT`, whose
+     * human memberships contain exactly the calling user, and the users specified
+     * in `FindGroupChatsRequest.users`. Only members that have joined the
+     * conversation are supported. For an example, see [Find group
+     * chats](https://developers.google.com/workspace/chat/find-group-chats).
+     * If the calling user blocks, or is blocked by, some users, and no spaces
+     * with the entire specified set of users are found, this method returns
+     * spaces that don't include the blocked or blocking users.
+     * The specified set of users must contain only human (non-app) memberships.
+     * A request that contains non-human users doesn't return any spaces.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.memberships.readonly`
+     *   - `https://www.googleapis.com/auth/chat.memberships`
+     * 
+ */ + public void findGroupChats( + com.google.chat.v1.FindGroupChatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFindGroupChatsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -5231,6 +5333,34 @@ public com.google.chat.v1.Space findDirectMessage( getChannel(), getFindDirectMessageMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Returns all spaces with `spaceType == GROUP_CHAT`, whose
+     * human memberships contain exactly the calling user, and the users specified
+     * in `FindGroupChatsRequest.users`. Only members that have joined the
+     * conversation are supported. For an example, see [Find group
+     * chats](https://developers.google.com/workspace/chat/find-group-chats).
+     * If the calling user blocks, or is blocked by, some users, and no spaces
+     * with the entire specified set of users are found, this method returns
+     * spaces that don't include the blocked or blocking users.
+     * The specified set of users must contain only human (non-app) memberships.
+     * A request that contains non-human users doesn't return any spaces.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.memberships.readonly`
+     *   - `https://www.googleapis.com/auth/chat.memberships`
+     * 
+ */ + public com.google.chat.v1.FindGroupChatsResponse findGroupChats( + com.google.chat.v1.FindGroupChatsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFindGroupChatsMethod(), getCallOptions(), request); + } + /** * * @@ -6529,6 +6659,34 @@ public com.google.chat.v1.Space findDirectMessage( getChannel(), getFindDirectMessageMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Returns all spaces with `spaceType == GROUP_CHAT`, whose
+     * human memberships contain exactly the calling user, and the users specified
+     * in `FindGroupChatsRequest.users`. Only members that have joined the
+     * conversation are supported. For an example, see [Find group
+     * chats](https://developers.google.com/workspace/chat/find-group-chats).
+     * If the calling user blocks, or is blocked by, some users, and no spaces
+     * with the entire specified set of users are found, this method returns
+     * spaces that don't include the blocked or blocking users.
+     * The specified set of users must contain only human (non-app) memberships.
+     * A request that contains non-human users doesn't return any spaces.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.memberships.readonly`
+     *   - `https://www.googleapis.com/auth/chat.memberships`
+     * 
+ */ + public com.google.chat.v1.FindGroupChatsResponse findGroupChats( + com.google.chat.v1.FindGroupChatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFindGroupChatsMethod(), getCallOptions(), request); + } + /** * * @@ -7836,6 +7994,35 @@ public com.google.common.util.concurrent.ListenableFuture + * Returns all spaces with `spaceType == GROUP_CHAT`, whose + * human memberships contain exactly the calling user, and the users specified + * in `FindGroupChatsRequest.users`. Only members that have joined the + * conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * If the calling user blocks, or is blocked by, some users, and no spaces + * with the entire specified set of users are found, this method returns + * spaces that don't include the blocked or blocking users. + * The specified set of users must contain only human (non-app) memberships. + * A request that contains non-human users doesn't return any spaces. + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * - `https://www.googleapis.com/auth/chat.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.memberships` + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.chat.v1.FindGroupChatsResponse> + findGroupChats(com.google.chat.v1.FindGroupChatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFindGroupChatsMethod(), getCallOptions()), request); + } + /** * * @@ -8510,30 +8697,31 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -8648,6 +8836,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.chat.v1.FindDirectMessageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_FIND_GROUP_CHATS: + serviceImpl.findGroupChats( + (com.google.chat.v1.FindGroupChatsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_CREATE_MEMBERSHIP: serviceImpl.createMembership( (com.google.chat.v1.CreateMembershipRequest) request, @@ -8902,6 +9096,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.chat.v1.FindDirectMessageRequest, com.google.chat.v1.Space>( service, METHODID_FIND_DIRECT_MESSAGE))) + .addMethod( + getFindGroupChatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.FindGroupChatsRequest, + com.google.chat.v1.FindGroupChatsResponse>(service, METHODID_FIND_GROUP_CHATS))) .addMethod( getCreateMembershipMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -9122,6 +9322,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteSpaceMethod()) .addMethod(getCompleteImportSpaceMethod()) .addMethod(getFindDirectMessageMethod()) + .addMethod(getFindGroupChatsMethod()) .addMethod(getCreateMembershipMethod()) .addMethod(getUpdateMembershipMethod()) .addMethod(getDeleteMembershipMethod()) diff --git a/java-chat/pom.xml b/java-chat/pom.xml index 73ba9d2c1efa..5b241972841b 100644 --- a/java-chat/pom.xml +++ b/java-chat/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chat-parent pom - 0.55.0 + 0.56.0 Google Google Chat API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chat - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.55.0 + 0.56.0
diff --git a/java-chat/proto-google-cloud-chat-v1/pom.xml b/java-chat/proto-google-cloud-chat-v1/pom.xml index 37d0404117f5..9ad5488c8d01 100644 --- a/java-chat/proto-google-cloud-chat-v1/pom.xml +++ b/java-chat/proto-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.55.0 + 0.56.0 proto-google-cloud-chat-v1 Proto library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.55.0 + 0.56.0 diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java index 2af0aa39dbc3..5139ea4ce4fc 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java @@ -60,7 +60,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_setting.proto\032%google/chat/v1/space_rea" + "d_state.proto\032 google/chat/v1/space_setu" + "p.proto\032&google/chat/v1/thread_read_stat" - + "e.proto\032\033google/protobuf/empty.proto2\314?\n" + + "e.proto\032\033google/protobuf/empty.proto2\321@\n" + "\013ChatService\022\233\001\n\rCreateMessage\022$.google." + "chat.v1.CreateMessageRequest\032\027.google.ch" + "at.v1.Message\"K\332A\031parent,message,message" @@ -121,154 +121,158 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/*}:completeImport:\001*\022z\n\021FindDirectMessa" + "ge\022(.google.chat.v1.FindDirectMessageReq" + "uest\032\025.google.chat.v1.Space\"$\202\323\344\223\002\036\022\034/v1" - + "/spaces:findDirectMessage\022\236\001\n\020CreateMemb" - + "ership\022\'.google.chat.v1.CreateMembership" - + "Request\032\032.google.chat.v1.Membership\"E\332A\021" - + "parent,membership\202\323\344\223\002+\"\035/v1/{parent=spa" - + "ces/*}/members:\nmembership\022\256\001\n\020UpdateMem" - + "bership\022\'.google.chat.v1.UpdateMembershi" - + "pRequest\032\032.google.chat.v1.Membership\"U\332A" - + "\026membership,update_mask\202\323\344\223\00262(/v1/{memb" - + "ership.name=spaces/*/members/*}:\nmembers" - + "hip\022\205\001\n\020DeleteMembership\022\'.google.chat.v" - + "1.DeleteMembershipRequest\032\032.google.chat." - + "v1.Membership\",\332A\004name\202\323\344\223\002\037*\035/v1/{name=" - + "spaces/*/members/*}\022\241\001\n\016CreateReaction\022%" - + ".google.chat.v1.CreateReactionRequest\032\030." - + "google.chat.v1.Reaction\"N\332A\017parent,react" - + "ion\202\323\344\223\0026\"*/v1/{parent=spaces/*/messages" - + "/*}/reactions:\010reaction\022\231\001\n\rListReaction" - + "s\022$.google.chat.v1.ListReactionsRequest\032" - + "%.google.chat.v1.ListReactionsResponse\";" - + "\332A\006parent\202\323\344\223\002,\022*/v1/{parent=spaces/*/me" - + "ssages/*}/reactions\022\212\001\n\016DeleteReaction\022%" - + ".google.chat.v1.DeleteReactionRequest\032\026." - + "google.protobuf.Empty\"9\332A\004name\202\323\344\223\002,**/v" - + "1/{name=spaces/*/messages/*/reactions/*}" - + "\022\221\001\n\021CreateCustomEmoji\022(.google.chat.v1." - + "CreateCustomEmojiRequest\032\033.google.chat.v" - + "1.CustomEmoji\"5\332A\014custom_emoji\202\323\344\223\002 \"\020/v" - + "1/customEmojis:\014custom_emoji\022~\n\016GetCusto" - + "mEmoji\022%.google.chat.v1.GetCustomEmojiRe" - + "quest\032\033.google.chat.v1.CustomEmoji\"(\332A\004n" - + "ame\202\323\344\223\002\033\022\031/v1/{name=customEmojis/*}\022\202\001\n" - + "\020ListCustomEmojis\022\'.google.chat.v1.ListC" - + "ustomEmojisRequest\032(.google.chat.v1.List" - + "CustomEmojisResponse\"\033\332A\000\202\323\344\223\002\022\022\020/v1/cus" - + "tomEmojis\022\177\n\021DeleteCustomEmoji\022(.google." - + "chat.v1.DeleteCustomEmojiRequest\032\026.googl" - + "e.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v1/{na" - + "me=customEmojis/*}\022\230\001\n\021GetSpaceReadState" - + "\022(.google.chat.v1.GetSpaceReadStateReque" - + "st\032\036.google.chat.v1.SpaceReadState\"9\332A\004n" - + "ame\202\323\344\223\002,\022*/v1/{name=users/*/spaces/*/sp" - + "aceReadState}\022\331\001\n\024UpdateSpaceReadState\022+" - + ".google.chat.v1.UpdateSpaceReadStateRequ" - + "est\032\036.google.chat.v1.SpaceReadState\"t\332A\034" - + "space_read_state,update_mask\202\323\344\223\002O2;/v1/" - + "{space_read_state.name=users/*/spaces/*/" - + "spaceReadState}:\020space_read_state\022\246\001\n\022Ge" - + "tThreadReadState\022).google.chat.v1.GetThr" - + "eadReadStateRequest\032\037.google.chat.v1.Thr" - + "eadReadState\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=u" - + "sers/*/spaces/*/threads/*/threadReadStat" - + "e}\022\203\001\n\rGetSpaceEvent\022$.google.chat.v1.Ge" - + "tSpaceEventRequest\032\032.google.chat.v1.Spac" - + "eEvent\"0\332A\004name\202\323\344\223\002#\022!/v1/{name=spaces/" - + "*/spaceEvents/*}\022\235\001\n\017ListSpaceEvents\022&.g" - + "oogle.chat.v1.ListSpaceEventsRequest\032\'.g" - + "oogle.chat.v1.ListSpaceEventsResponse\"9\332" - + "A\rparent,filter\202\323\344\223\002#\022!/v1/{parent=space" - + "s/*}/spaceEvents\022\300\001\n\033GetSpaceNotificatio" - + "nSetting\0222.google.chat.v1.GetSpaceNotifi" - + "cationSettingRequest\032(.google.chat.v1.Sp" - + "aceNotificationSetting\"C\332A\004name\202\323\344\223\0026\0224/" - + "v1/{name=users/*/spaces/*/spaceNotificat" - + "ionSetting}\022\240\002\n\036UpdateSpaceNotificationS" - + "etting\0225.google.chat.v1.UpdateSpaceNotif" - + "icationSettingRequest\032(.google.chat.v1.S" - + "paceNotificationSetting\"\234\001\332A&space_notif" - + "ication_setting,update_mask\202\323\344\223\002m2O/v1/{" - + "space_notification_setting.name=users/*/" - + "spaces/*/spaceNotificationSetting}:\032spac" - + "e_notification_setting\022\217\001\n\rCreateSection" - + "\022$.google.chat.v1.CreateSectionRequest\032\027" - + ".google.chat.v1.Section\"?\332A\016parent,secti" - + "on\202\323\344\223\002(\"\035/v1/{parent=users/*}/sections:" - + "\007section\022{\n\rDeleteSection\022$.google.chat." - + "v1.DeleteSectionRequest\032\026.google.protobu" - + "f.Empty\",\332A\004name\202\323\344\223\002\037*\035/v1/{name=users/" - + "*/sections/*}\022\234\001\n\rUpdateSection\022$.google" - + ".chat.v1.UpdateSectionRequest\032\027.google.c" - + "hat.v1.Section\"L\332A\023section,update_mask\202\323" - + "\344\223\00202%/v1/{section.name=users/*/sections" - + "/*}:\007section\022\211\001\n\014ListSections\022#.google.c" - + "hat.v1.ListSectionsRequest\032$.google.chat" - + ".v1.ListSectionsResponse\".\332A\006parent\202\323\344\223\002" - + "\037\022\035/v1/{parent=users/*}/sections\022\225\001\n\017Pos" - + "itionSection\022&.google.chat.v1.PositionSe" - + "ctionRequest\032\'.google.chat.v1.PositionSe" - + "ctionResponse\"1\202\323\344\223\002+\"&/v1/{name=users/*" - + "/sections/*}:position:\001*\022\235\001\n\020ListSection" - + "Items\022\'.google.chat.v1.ListSectionItemsR" - + "equest\032(.google.chat.v1.ListSectionItems" - + "Response\"6\332A\006parent\202\323\344\223\002\'\022%/v1/{parent=u" - + "sers/*/sections/*}/items\022\257\001\n\017MoveSection" - + "Item\022&.google.chat.v1.MoveSectionItemReq" - + "uest\032\'.google.chat.v1.MoveSectionItemRes" - + "ponse\"K\332A\023name,target_section\202\323\344\223\002/\"*/v1" - + "/{name=users/*/sections/*/items/*}:move:" - + "\001*\032\276\016\312A\023chat.googleapis.com\322A\244\016https://w" - + "ww.googleapis.com/auth/chat.admin.delete" - + ",https://www.googleapis.com/auth/chat.ad" - + "min.memberships,https://www.googleapis.c" - + "om/auth/chat.admin.memberships.readonly," - + "https://www.googleapis.com/auth/chat.adm" - + "in.spaces,https://www.googleapis.com/aut" - + "h/chat.admin.spaces.readonly,https://www" - + ".googleapis.com/auth/chat.app.delete,htt" - + "ps://www.googleapis.com/auth/chat.app.me" - + "mberships,https://www.googleapis.com/aut" - + "h/chat.app.memberships.readonly,https://" - + "www.googleapis.com/auth/chat.app.message" - + "s.readonly,https://www.googleapis.com/au" - + "th/chat.app.spaces,https://www.googleapi" - + "s.com/auth/chat.app.spaces.create,https:" - + "//www.googleapis.com/auth/chat.app.space" - + "s.readonly,https://www.googleapis.com/au" - + "th/chat.bot,https://www.googleapis.com/a" - + "uth/chat.customemojis,https://www.google" - + "apis.com/auth/chat.customemojis.readonly" - + ",https://www.googleapis.com/auth/chat.de" - + "lete,https://www.googleapis.com/auth/cha" - + "t.import,https://www.googleapis.com/auth" - + "/chat.memberships,https://www.googleapis" - + ".com/auth/chat.memberships.app,https://w" + + "/spaces:findDirectMessage\022\202\001\n\016FindGroupC" + + "hats\022%.google.chat.v1.FindGroupChatsRequ" + + "est\032&.google.chat.v1.FindGroupChatsRespo" + + "nse\"!\202\323\344\223\002\033\022\031/v1/spaces:findGroupChats\022\236" + + "\001\n\020CreateMembership\022\'.google.chat.v1.Cre" + + "ateMembershipRequest\032\032.google.chat.v1.Me" + + "mbership\"E\332A\021parent,membership\202\323\344\223\002+\"\035/v" + + "1/{parent=spaces/*}/members:\nmembership\022" + + "\256\001\n\020UpdateMembership\022\'.google.chat.v1.Up" + + "dateMembershipRequest\032\032.google.chat.v1.M" + + "embership\"U\332A\026membership,update_mask\202\323\344\223" + + "\00262(/v1/{membership.name=spaces/*/member" + + "s/*}:\nmembership\022\205\001\n\020DeleteMembership\022\'." + + "google.chat.v1.DeleteMembershipRequest\032\032" + + ".google.chat.v1.Membership\",\332A\004name\202\323\344\223\002" + + "\037*\035/v1/{name=spaces/*/members/*}\022\241\001\n\016Cre" + + "ateReaction\022%.google.chat.v1.CreateReact" + + "ionRequest\032\030.google.chat.v1.Reaction\"N\332A" + + "\017parent,reaction\202\323\344\223\0026\"*/v1/{parent=spac" + + "es/*/messages/*}/reactions:\010reaction\022\231\001\n" + + "\rListReactions\022$.google.chat.v1.ListReac" + + "tionsRequest\032%.google.chat.v1.ListReacti" + + "onsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{paren" + + "t=spaces/*/messages/*}/reactions\022\212\001\n\016Del" + + "eteReaction\022%.google.chat.v1.DeleteReact" + + "ionRequest\032\026.google.protobuf.Empty\"9\332A\004n" + + "ame\202\323\344\223\002,**/v1/{name=spaces/*/messages/*" + + "/reactions/*}\022\221\001\n\021CreateCustomEmoji\022(.go" + + "ogle.chat.v1.CreateCustomEmojiRequest\032\033." + + "google.chat.v1.CustomEmoji\"5\332A\014custom_em" + + "oji\202\323\344\223\002 \"\020/v1/customEmojis:\014custom_emoj" + + "i\022~\n\016GetCustomEmoji\022%.google.chat.v1.Get" + + "CustomEmojiRequest\032\033.google.chat.v1.Cust" + + "omEmoji\"(\332A\004name\202\323\344\223\002\033\022\031/v1/{name=custom" + + "Emojis/*}\022\202\001\n\020ListCustomEmojis\022\'.google." + + "chat.v1.ListCustomEmojisRequest\032(.google" + + ".chat.v1.ListCustomEmojisResponse\"\033\332A\000\202\323" + + "\344\223\002\022\022\020/v1/customEmojis\022\177\n\021DeleteCustomEm" + + "oji\022(.google.chat.v1.DeleteCustomEmojiRe" + + "quest\032\026.google.protobuf.Empty\"(\332A\004name\202\323" + + "\344\223\002\033*\031/v1/{name=customEmojis/*}\022\230\001\n\021GetS" + + "paceReadState\022(.google.chat.v1.GetSpaceR" + + "eadStateRequest\032\036.google.chat.v1.SpaceRe" + + "adState\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=users/" + + "*/spaces/*/spaceReadState}\022\331\001\n\024UpdateSpa" + + "ceReadState\022+.google.chat.v1.UpdateSpace" + + "ReadStateRequest\032\036.google.chat.v1.SpaceR" + + "eadState\"t\332A\034space_read_state,update_mas" + + "k\202\323\344\223\002O2;/v1/{space_read_state.name=user" + + "s/*/spaces/*/spaceReadState}:\020space_read" + + "_state\022\246\001\n\022GetThreadReadState\022).google.c" + + "hat.v1.GetThreadReadStateRequest\032\037.googl" + + "e.chat.v1.ThreadReadState\"D\332A\004name\202\323\344\223\0027" + + "\0225/v1/{name=users/*/spaces/*/threads/*/t" + + "hreadReadState}\022\203\001\n\rGetSpaceEvent\022$.goog" + + "le.chat.v1.GetSpaceEventRequest\032\032.google" + + ".chat.v1.SpaceEvent\"0\332A\004name\202\323\344\223\002#\022!/v1/" + + "{name=spaces/*/spaceEvents/*}\022\235\001\n\017ListSp" + + "aceEvents\022&.google.chat.v1.ListSpaceEven" + + "tsRequest\032\'.google.chat.v1.ListSpaceEven" + + "tsResponse\"9\332A\rparent,filter\202\323\344\223\002#\022!/v1/" + + "{parent=spaces/*}/spaceEvents\022\300\001\n\033GetSpa" + + "ceNotificationSetting\0222.google.chat.v1.G" + + "etSpaceNotificationSettingRequest\032(.goog" + + "le.chat.v1.SpaceNotificationSetting\"C\332A\004" + + "name\202\323\344\223\0026\0224/v1/{name=users/*/spaces/*/s" + + "paceNotificationSetting}\022\240\002\n\036UpdateSpace" + + "NotificationSetting\0225.google.chat.v1.Upd" + + "ateSpaceNotificationSettingRequest\032(.goo" + + "gle.chat.v1.SpaceNotificationSetting\"\234\001\332" + + "A&space_notification_setting,update_mask" + + "\202\323\344\223\002m2O/v1/{space_notification_setting." + + "name=users/*/spaces/*/spaceNotificationS" + + "etting}:\032space_notification_setting\022\217\001\n\r" + + "CreateSection\022$.google.chat.v1.CreateSec" + + "tionRequest\032\027.google.chat.v1.Section\"?\332A" + + "\016parent,section\202\323\344\223\002(\"\035/v1/{parent=users" + + "/*}/sections:\007section\022{\n\rDeleteSection\022$" + + ".google.chat.v1.DeleteSectionRequest\032\026.g" + + "oogle.protobuf.Empty\",\332A\004name\202\323\344\223\002\037*\035/v1" + + "/{name=users/*/sections/*}\022\234\001\n\rUpdateSec" + + "tion\022$.google.chat.v1.UpdateSectionReque" + + "st\032\027.google.chat.v1.Section\"L\332A\023section," + + "update_mask\202\323\344\223\00202%/v1/{section.name=use" + + "rs/*/sections/*}:\007section\022\211\001\n\014ListSectio" + + "ns\022#.google.chat.v1.ListSectionsRequest\032" + + "$.google.chat.v1.ListSectionsResponse\".\332" + + "A\006parent\202\323\344\223\002\037\022\035/v1/{parent=users/*}/sec" + + "tions\022\225\001\n\017PositionSection\022&.google.chat." + + "v1.PositionSectionRequest\032\'.google.chat." + + "v1.PositionSectionResponse\"1\202\323\344\223\002+\"&/v1/" + + "{name=users/*/sections/*}:position:\001*\022\235\001" + + "\n\020ListSectionItems\022\'.google.chat.v1.List" + + "SectionItemsRequest\032(.google.chat.v1.Lis" + + "tSectionItemsResponse\"6\332A\006parent\202\323\344\223\002\'\022%" + + "/v1/{parent=users/*/sections/*}/items\022\257\001" + + "\n\017MoveSectionItem\022&.google.chat.v1.MoveS" + + "ectionItemRequest\032\'.google.chat.v1.MoveS" + + "ectionItemResponse\"K\332A\023name,target_secti" + + "on\202\323\344\223\002/\"*/v1/{name=users/*/sections/*/i" + + "tems/*}:move:\001*\032\276\016\312A\023chat.googleapis.com" + + "\322A\244\016https://www.googleapis.com/auth/chat" + + ".admin.delete,https://www.googleapis.com" + + "/auth/chat.admin.memberships,https://www" + + ".googleapis.com/auth/chat.admin.membersh" + + "ips.readonly,https://www.googleapis.com/" + + "auth/chat.admin.spaces,https://www.googl" + + "eapis.com/auth/chat.admin.spaces.readonl" + + "y,https://www.googleapis.com/auth/chat.a" + + "pp.delete,https://www.googleapis.com/aut" + + "h/chat.app.memberships,https://www.googl" + + "eapis.com/auth/chat.app.memberships.read" + + "only,https://www.googleapis.com/auth/cha" + + "t.app.messages.readonly,https://www.goog" + + "leapis.com/auth/chat.app.spaces,https://" + + "www.googleapis.com/auth/chat.app.spaces." + + "create,https://www.googleapis.com/auth/c" + + "hat.app.spaces.readonly,https://www.goog" + + "leapis.com/auth/chat.bot,https://www.goo" + + "gleapis.com/auth/chat.customemojis,https" + + "://www.googleapis.com/auth/chat.customem" + + "ojis.readonly,https://www.googleapis.com" + + "/auth/chat.delete,https://www.googleapis" + + ".com/auth/chat.import,https://www.google" + + "apis.com/auth/chat.memberships,https://w" + "ww.googleapis.com/auth/chat.memberships." - + "readonly,https://www.googleapis.com/auth" - + "/chat.messages,https://www.googleapis.co" - + "m/auth/chat.messages.create,https://www." - + "googleapis.com/auth/chat.messages.reacti" - + "ons,https://www.googleapis.com/auth/chat" - + ".messages.reactions.create,https://www.g" - + "oogleapis.com/auth/chat.messages.reactio" - + "ns.readonly,https://www.googleapis.com/a" - + "uth/chat.messages.readonly,https://www.g" - + "oogleapis.com/auth/chat.spaces,https://w" - + "ww.googleapis.com/auth/chat.spaces.creat" - + "e,https://www.googleapis.com/auth/chat.s" - + "paces.readonly,https://www.googleapis.co" - + "m/auth/chat.users.readstate,https://www." + + "app,https://www.googleapis.com/auth/chat" + + ".memberships.readonly,https://www.google" + + "apis.com/auth/chat.messages,https://www." + + "googleapis.com/auth/chat.messages.create" + + ",https://www.googleapis.com/auth/chat.me" + + "ssages.reactions,https://www.googleapis." + + "com/auth/chat.messages.reactions.create," + + "https://www.googleapis.com/auth/chat.mes" + + "sages.reactions.readonly,https://www.goo" + + "gleapis.com/auth/chat.messages.readonly," + + "https://www.googleapis.com/auth/chat.spa" + + "ces,https://www.googleapis.com/auth/chat" + + ".spaces.create,https://www.googleapis.co" + + "m/auth/chat.spaces.readonly,https://www." + "googleapis.com/auth/chat.users.readstate" - + ".readonly,https://www.googleapis.com/aut" - + "h/chat.users.sections,https://www.google" - + "apis.com/auth/chat.users.sections.readon" - + "ly,https://www.googleapis.com/auth/chat." - + "users.spacesettingsB\251\001\n\022com.google.chat." - + "v1B\020ChatServiceProtoP\001Z,cloud.google.com" - + "/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIPro" - + "to\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps\\C" - + "hat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + ",https://www.googleapis.com/auth/chat.us" + + "ers.readstate.readonly,https://www.googl" + + "eapis.com/auth/chat.users.sections,https" + + "://www.googleapis.com/auth/chat.users.se" + + "ctions.readonly,https://www.googleapis.c" + + "om/auth/chat.users.spacesettingsB\251\001\n\022com" + + ".google.chat.v1B\020ChatServiceProtoP\001Z,clo" + + "ud.google.com/go/chat/apiv1/chatpb;chatp" + + "b\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023" + + "Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequest.java new file mode 100644 index 000000000000..b973415cb584 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequest.java @@ -0,0 +1,1431 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
+ * A request to get group chat spaces based on user resources.
+ * 
+ * + * Protobuf type {@code google.chat.v1.FindGroupChatsRequest} + */ +@com.google.protobuf.Generated +public final class FindGroupChatsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.FindGroupChatsRequest) + FindGroupChatsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindGroupChatsRequest"); + } + + // Use FindGroupChatsRequest.newBuilder() to construct. + private FindGroupChatsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FindGroupChatsRequest() { + users_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pageToken_ = ""; + spaceView_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.FindGroupChatsRequest.class, + com.google.chat.v1.FindGroupChatsRequest.Builder.class); + } + + public static final int USERS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList users_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Resource names of all human users in group chat with the calling
+   * user. Chat apps can't be included in the request.
+   *
+   * The maximum number of users that can be specified in a single request is
+   * `49`.
+   *
+   * Format: `users/{user}`, where `{user}` is either the `id` for the
+   * [person](https://developers.google.com/people/api/rest/v1/people) from the
+   * People API, or the `id` for the
+   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+   * in the Directory API. For example, to find all group chats with the calling
+   * user and two other users, with People API profile IDs `123456789` and
+   * `987654321`, you can use `users/123456789` and `users/987654321`.
+   * You can also use the email as an alias for `{user}`. For example,
+   * `users/example@gmail.com` where `example@gmail.com` is the email of the
+   * Google Chat user.
+   * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the users. + */ + public com.google.protobuf.ProtocolStringList getUsersList() { + return users_; + } + + /** + * + * + *
+   * Optional. Resource names of all human users in group chat with the calling
+   * user. Chat apps can't be included in the request.
+   *
+   * The maximum number of users that can be specified in a single request is
+   * `49`.
+   *
+   * Format: `users/{user}`, where `{user}` is either the `id` for the
+   * [person](https://developers.google.com/people/api/rest/v1/people) from the
+   * People API, or the `id` for the
+   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+   * in the Directory API. For example, to find all group chats with the calling
+   * user and two other users, with People API profile IDs `123456789` and
+   * `987654321`, you can use `users/123456789` and `users/987654321`.
+   * You can also use the email as an alias for `{user}`. For example,
+   * `users/example@gmail.com` where `example@gmail.com` is the email of the
+   * Google Chat user.
+   * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of users. + */ + public int getUsersCount() { + return users_.size(); + } + + /** + * + * + *
+   * Optional. Resource names of all human users in group chat with the calling
+   * user. Chat apps can't be included in the request.
+   *
+   * The maximum number of users that can be specified in a single request is
+   * `49`.
+   *
+   * Format: `users/{user}`, where `{user}` is either the `id` for the
+   * [person](https://developers.google.com/people/api/rest/v1/people) from the
+   * People API, or the `id` for the
+   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+   * in the Directory API. For example, to find all group chats with the calling
+   * user and two other users, with People API profile IDs `123456789` and
+   * `987654321`, you can use `users/123456789` and `users/987654321`.
+   * You can also use the email as an alias for `{user}`. For example,
+   * `users/example@gmail.com` where `example@gmail.com` is the email of the
+   * Google Chat user.
+   * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The users at the given index. + */ + public java.lang.String getUsers(int index) { + return users_.get(index); + } + + /** + * + * + *
+   * Optional. Resource names of all human users in group chat with the calling
+   * user. Chat apps can't be included in the request.
+   *
+   * The maximum number of users that can be specified in a single request is
+   * `49`.
+   *
+   * Format: `users/{user}`, where `{user}` is either the `id` for the
+   * [person](https://developers.google.com/people/api/rest/v1/people) from the
+   * People API, or the `id` for the
+   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+   * in the Directory API. For example, to find all group chats with the calling
+   * user and two other users, with People API profile IDs `123456789` and
+   * `987654321`, you can use `users/123456789` and `users/987654321`.
+   * You can also use the email as an alias for `{user}`. For example,
+   * `users/example@gmail.com` where `example@gmail.com` is the email of the
+   * Google Chat user.
+   * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + public com.google.protobuf.ByteString getUsersBytes(int index) { + return users_.getByteString(index); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of spaces to return. The service might return
+   * fewer than this value.
+   *
+   * If unspecified, at most 10 spaces are returned.
+   *
+   * The maximum value is 30. If you use a value more than 30, it's
+   * automatically changed to 30.
+   *
+   * Negative values return an `INVALID_ARGUMENT` error.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous call to find group chats.
+   * Provide this parameter to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided should match the call that
+   * provided the token. Passing different values may lead to unexpected
+   * results.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous call to find group chats.
+   * Provide this parameter to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided should match the call that
+   * provided the token. Passing different values may lead to unexpected
+   * results.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPACE_VIEW_FIELD_NUMBER = 4; + private int spaceView_ = 0; + + /** + * + * + *
+   * Requested space view type. If unset, defaults to
+   * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+   * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+   * for example,
+   * https://www.googleapis.com/auth/chat.spaces or
+   * https://www.googleapis.com/auth/chat.spaces.readonly.
+   * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The enum numeric value on the wire for spaceView. + */ + @java.lang.Override + public int getSpaceViewValue() { + return spaceView_; + } + + /** + * + * + *
+   * Requested space view type. If unset, defaults to
+   * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+   * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+   * for example,
+   * https://www.googleapis.com/auth/chat.spaces or
+   * https://www.googleapis.com/auth/chat.spaces.readonly.
+   * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The spaceView. + */ + @java.lang.Override + public com.google.chat.v1.SpaceView getSpaceView() { + com.google.chat.v1.SpaceView result = com.google.chat.v1.SpaceView.forNumber(spaceView_); + return result == null ? com.google.chat.v1.SpaceView.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (spaceView_ != com.google.chat.v1.SpaceView.SPACE_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(4, spaceView_); + } + for (int i = 0; i < users_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, users_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (spaceView_ != com.google.chat.v1.SpaceView.SPACE_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, spaceView_); + } + { + int dataSize = 0; + for (int i = 0; i < users_.size(); i++) { + dataSize += computeStringSizeNoTag(users_.getRaw(i)); + } + size += dataSize; + size += 1 * getUsersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.FindGroupChatsRequest)) { + return super.equals(obj); + } + com.google.chat.v1.FindGroupChatsRequest other = (com.google.chat.v1.FindGroupChatsRequest) obj; + + if (!getUsersList().equals(other.getUsersList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (spaceView_ != other.spaceView_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUsersCount() > 0) { + hash = (37 * hash) + USERS_FIELD_NUMBER; + hash = (53 * hash) + getUsersList().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SPACE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + spaceView_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.FindGroupChatsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request to get group chat spaces based on user resources.
+   * 
+ * + * Protobuf type {@code google.chat.v1.FindGroupChatsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.FindGroupChatsRequest) + com.google.chat.v1.FindGroupChatsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.FindGroupChatsRequest.class, + com.google.chat.v1.FindGroupChatsRequest.Builder.class); + } + + // Construct using com.google.chat.v1.FindGroupChatsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + users_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pageSize_ = 0; + pageToken_ = ""; + spaceView_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsRequest getDefaultInstanceForType() { + return com.google.chat.v1.FindGroupChatsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsRequest build() { + com.google.chat.v1.FindGroupChatsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsRequest buildPartial() { + com.google.chat.v1.FindGroupChatsRequest result = + new com.google.chat.v1.FindGroupChatsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.FindGroupChatsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + users_.makeImmutable(); + result.users_ = users_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.spaceView_ = spaceView_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.FindGroupChatsRequest) { + return mergeFrom((com.google.chat.v1.FindGroupChatsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.FindGroupChatsRequest other) { + if (other == com.google.chat.v1.FindGroupChatsRequest.getDefaultInstance()) return this; + if (!other.users_.isEmpty()) { + if (users_.isEmpty()) { + users_ = other.users_; + bitField0_ |= 0x00000001; + } else { + ensureUsersIsMutable(); + users_.addAll(other.users_); + } + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.spaceView_ != 0) { + setSpaceViewValue(other.getSpaceViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + spaceView_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUsersIsMutable(); + users_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList users_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUsersIsMutable() { + if (!users_.isModifiable()) { + users_ = new com.google.protobuf.LazyStringArrayList(users_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the users. + */ + public com.google.protobuf.ProtocolStringList getUsersList() { + users_.makeImmutable(); + return users_; + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of users. + */ + public int getUsersCount() { + return users_.size(); + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The users at the given index. + */ + public java.lang.String getUsers(int index) { + return users_.get(index); + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + public com.google.protobuf.ByteString getUsersBytes(int index) { + return users_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The users to set. + * @return This builder for chaining. + */ + public Builder setUsers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The users to add. + * @return This builder for chaining. + */ + public Builder addUsers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The users to add. + * @return This builder for chaining. + */ + public Builder addAllUsers(java.lang.Iterable values) { + ensureUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, users_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUsers() { + users_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Resource names of all human users in group chat with the calling
+     * user. Chat apps can't be included in the request.
+     *
+     * The maximum number of users that can be specified in a single request is
+     * `49`.
+     *
+     * Format: `users/{user}`, where `{user}` is either the `id` for the
+     * [person](https://developers.google.com/people/api/rest/v1/people) from the
+     * People API, or the `id` for the
+     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+     * in the Directory API. For example, to find all group chats with the calling
+     * user and two other users, with People API profile IDs `123456789` and
+     * `987654321`, you can use `users/123456789` and `users/987654321`.
+     * You can also use the email as an alias for `{user}`. For example,
+     * `users/example@gmail.com` where `example@gmail.com` is the email of the
+     * Google Chat user.
+     * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the users to add. + * @return This builder for chaining. + */ + public Builder addUsersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUsersIsMutable(); + users_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of spaces to return. The service might return
+     * fewer than this value.
+     *
+     * If unspecified, at most 10 spaces are returned.
+     *
+     * The maximum value is 30. If you use a value more than 30, it's
+     * automatically changed to 30.
+     *
+     * Negative values return an `INVALID_ARGUMENT` error.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of spaces to return. The service might return
+     * fewer than this value.
+     *
+     * If unspecified, at most 10 spaces are returned.
+     *
+     * The maximum value is 30. If you use a value more than 30, it's
+     * automatically changed to 30.
+     *
+     * Negative values return an `INVALID_ARGUMENT` error.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of spaces to return. The service might return
+     * fewer than this value.
+     *
+     * If unspecified, at most 10 spaces are returned.
+     *
+     * The maximum value is 30. If you use a value more than 30, it's
+     * automatically changed to 30.
+     *
+     * Negative values return an `INVALID_ARGUMENT` error.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous call to find group chats.
+     * Provide this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the token. Passing different values may lead to unexpected
+     * results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous call to find group chats.
+     * Provide this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the token. Passing different values may lead to unexpected
+     * results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous call to find group chats.
+     * Provide this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the token. Passing different values may lead to unexpected
+     * results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous call to find group chats.
+     * Provide this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the token. Passing different values may lead to unexpected
+     * results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous call to find group chats.
+     * Provide this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the token. Passing different values may lead to unexpected
+     * results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int spaceView_ = 0; + + /** + * + * + *
+     * Requested space view type. If unset, defaults to
+     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+     * for example,
+     * https://www.googleapis.com/auth/chat.spaces or
+     * https://www.googleapis.com/auth/chat.spaces.readonly.
+     * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The enum numeric value on the wire for spaceView. + */ + @java.lang.Override + public int getSpaceViewValue() { + return spaceView_; + } + + /** + * + * + *
+     * Requested space view type. If unset, defaults to
+     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+     * for example,
+     * https://www.googleapis.com/auth/chat.spaces or
+     * https://www.googleapis.com/auth/chat.spaces.readonly.
+     * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @param value The enum numeric value on the wire for spaceView to set. + * @return This builder for chaining. + */ + public Builder setSpaceViewValue(int value) { + spaceView_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested space view type. If unset, defaults to
+     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+     * for example,
+     * https://www.googleapis.com/auth/chat.spaces or
+     * https://www.googleapis.com/auth/chat.spaces.readonly.
+     * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The spaceView. + */ + @java.lang.Override + public com.google.chat.v1.SpaceView getSpaceView() { + com.google.chat.v1.SpaceView result = com.google.chat.v1.SpaceView.forNumber(spaceView_); + return result == null ? com.google.chat.v1.SpaceView.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Requested space view type. If unset, defaults to
+     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+     * for example,
+     * https://www.googleapis.com/auth/chat.spaces or
+     * https://www.googleapis.com/auth/chat.spaces.readonly.
+     * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @param value The spaceView to set. + * @return This builder for chaining. + */ + public Builder setSpaceView(com.google.chat.v1.SpaceView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + spaceView_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested space view type. If unset, defaults to
+     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+     * for example,
+     * https://www.googleapis.com/auth/chat.spaces or
+     * https://www.googleapis.com/auth/chat.spaces.readonly.
+     * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return This builder for chaining. + */ + public Builder clearSpaceView() { + bitField0_ = (bitField0_ & ~0x00000008); + spaceView_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.FindGroupChatsRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.FindGroupChatsRequest) + private static final com.google.chat.v1.FindGroupChatsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.FindGroupChatsRequest(); + } + + public static com.google.chat.v1.FindGroupChatsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindGroupChatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequestOrBuilder.java new file mode 100644 index 000000000000..066d1e4582cf --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequestOrBuilder.java @@ -0,0 +1,235 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface FindGroupChatsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.FindGroupChatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Resource names of all human users in group chat with the calling
+   * user. Chat apps can't be included in the request.
+   *
+   * The maximum number of users that can be specified in a single request is
+   * `49`.
+   *
+   * Format: `users/{user}`, where `{user}` is either the `id` for the
+   * [person](https://developers.google.com/people/api/rest/v1/people) from the
+   * People API, or the `id` for the
+   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+   * in the Directory API. For example, to find all group chats with the calling
+   * user and two other users, with People API profile IDs `123456789` and
+   * `987654321`, you can use `users/123456789` and `users/987654321`.
+   * You can also use the email as an alias for `{user}`. For example,
+   * `users/example@gmail.com` where `example@gmail.com` is the email of the
+   * Google Chat user.
+   * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the users. + */ + java.util.List getUsersList(); + + /** + * + * + *
+   * Optional. Resource names of all human users in group chat with the calling
+   * user. Chat apps can't be included in the request.
+   *
+   * The maximum number of users that can be specified in a single request is
+   * `49`.
+   *
+   * Format: `users/{user}`, where `{user}` is either the `id` for the
+   * [person](https://developers.google.com/people/api/rest/v1/people) from the
+   * People API, or the `id` for the
+   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+   * in the Directory API. For example, to find all group chats with the calling
+   * user and two other users, with People API profile IDs `123456789` and
+   * `987654321`, you can use `users/123456789` and `users/987654321`.
+   * You can also use the email as an alias for `{user}`. For example,
+   * `users/example@gmail.com` where `example@gmail.com` is the email of the
+   * Google Chat user.
+   * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of users. + */ + int getUsersCount(); + + /** + * + * + *
+   * Optional. Resource names of all human users in group chat with the calling
+   * user. Chat apps can't be included in the request.
+   *
+   * The maximum number of users that can be specified in a single request is
+   * `49`.
+   *
+   * Format: `users/{user}`, where `{user}` is either the `id` for the
+   * [person](https://developers.google.com/people/api/rest/v1/people) from the
+   * People API, or the `id` for the
+   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+   * in the Directory API. For example, to find all group chats with the calling
+   * user and two other users, with People API profile IDs `123456789` and
+   * `987654321`, you can use `users/123456789` and `users/987654321`.
+   * You can also use the email as an alias for `{user}`. For example,
+   * `users/example@gmail.com` where `example@gmail.com` is the email of the
+   * Google Chat user.
+   * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The users at the given index. + */ + java.lang.String getUsers(int index); + + /** + * + * + *
+   * Optional. Resource names of all human users in group chat with the calling
+   * user. Chat apps can't be included in the request.
+   *
+   * The maximum number of users that can be specified in a single request is
+   * `49`.
+   *
+   * Format: `users/{user}`, where `{user}` is either the `id` for the
+   * [person](https://developers.google.com/people/api/rest/v1/people) from the
+   * People API, or the `id` for the
+   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
+   * in the Directory API. For example, to find all group chats with the calling
+   * user and two other users, with People API profile IDs `123456789` and
+   * `987654321`, you can use `users/123456789` and `users/987654321`.
+   * You can also use the email as an alias for `{user}`. For example,
+   * `users/example@gmail.com` where `example@gmail.com` is the email of the
+   * Google Chat user.
+   * 
+ * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + com.google.protobuf.ByteString getUsersBytes(int index); + + /** + * + * + *
+   * Optional. The maximum number of spaces to return. The service might return
+   * fewer than this value.
+   *
+   * If unspecified, at most 10 spaces are returned.
+   *
+   * The maximum value is 30. If you use a value more than 30, it's
+   * automatically changed to 30.
+   *
+   * Negative values return an `INVALID_ARGUMENT` error.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous call to find group chats.
+   * Provide this parameter to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided should match the call that
+   * provided the token. Passing different values may lead to unexpected
+   * results.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous call to find group chats.
+   * Provide this parameter to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided should match the call that
+   * provided the token. Passing different values may lead to unexpected
+   * results.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Requested space view type. If unset, defaults to
+   * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+   * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+   * for example,
+   * https://www.googleapis.com/auth/chat.spaces or
+   * https://www.googleapis.com/auth/chat.spaces.readonly.
+   * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The enum numeric value on the wire for spaceView. + */ + int getSpaceViewValue(); + + /** + * + * + *
+   * Requested space view type. If unset, defaults to
+   * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
+   * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
+   * for example,
+   * https://www.googleapis.com/auth/chat.spaces or
+   * https://www.googleapis.com/auth/chat.spaces.readonly.
+   * 
+ * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The spaceView. + */ + com.google.chat.v1.SpaceView getSpaceView(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponse.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponse.java new file mode 100644 index 000000000000..f78b9da04db6 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponse.java @@ -0,0 +1,1110 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
+ * A response containing group chat spaces with exactly the calling user and the
+ * requested users.
+ * 
+ * + * Protobuf type {@code google.chat.v1.FindGroupChatsResponse} + */ +@com.google.protobuf.Generated +public final class FindGroupChatsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.FindGroupChatsResponse) + FindGroupChatsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindGroupChatsResponse"); + } + + // Use FindGroupChatsResponse.newBuilder() to construct. + private FindGroupChatsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FindGroupChatsResponse() { + spaces_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.FindGroupChatsResponse.class, + com.google.chat.v1.FindGroupChatsResponse.Builder.class); + } + + public static final int SPACES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List spaces_; + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public java.util.List getSpacesList() { + return spaces_; + } + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public java.util.List getSpacesOrBuilderList() { + return spaces_; + } + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public int getSpacesCount() { + return spaces_.size(); + } + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public com.google.chat.v1.Space getSpaces(int index) { + return spaces_.get(index); + } + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public com.google.chat.v1.SpaceOrBuilder getSpacesOrBuilder(int index) { + return spaces_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token that you can send as `pageToken` to retrieve the next page of
+   * results. If empty, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token that you can send as `pageToken` to retrieve the next page of
+   * results. If empty, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < spaces_.size(); i++) { + output.writeMessage(1, spaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < spaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.FindGroupChatsResponse)) { + return super.equals(obj); + } + com.google.chat.v1.FindGroupChatsResponse other = + (com.google.chat.v1.FindGroupChatsResponse) obj; + + if (!getSpacesList().equals(other.getSpacesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSpacesCount() > 0) { + hash = (37 * hash) + SPACES_FIELD_NUMBER; + hash = (53 * hash) + getSpacesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.FindGroupChatsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A response containing group chat spaces with exactly the calling user and the
+   * requested users.
+   * 
+ * + * Protobuf type {@code google.chat.v1.FindGroupChatsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.FindGroupChatsResponse) + com.google.chat.v1.FindGroupChatsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.FindGroupChatsResponse.class, + com.google.chat.v1.FindGroupChatsResponse.Builder.class); + } + + // Construct using com.google.chat.v1.FindGroupChatsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (spacesBuilder_ == null) { + spaces_ = java.util.Collections.emptyList(); + } else { + spaces_ = null; + spacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsResponse getDefaultInstanceForType() { + return com.google.chat.v1.FindGroupChatsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsResponse build() { + com.google.chat.v1.FindGroupChatsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsResponse buildPartial() { + com.google.chat.v1.FindGroupChatsResponse result = + new com.google.chat.v1.FindGroupChatsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.FindGroupChatsResponse result) { + if (spacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + spaces_ = java.util.Collections.unmodifiableList(spaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.spaces_ = spaces_; + } else { + result.spaces_ = spacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.FindGroupChatsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.FindGroupChatsResponse) { + return mergeFrom((com.google.chat.v1.FindGroupChatsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.FindGroupChatsResponse other) { + if (other == com.google.chat.v1.FindGroupChatsResponse.getDefaultInstance()) return this; + if (spacesBuilder_ == null) { + if (!other.spaces_.isEmpty()) { + if (spaces_.isEmpty()) { + spaces_ = other.spaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSpacesIsMutable(); + spaces_.addAll(other.spaces_); + } + onChanged(); + } + } else { + if (!other.spaces_.isEmpty()) { + if (spacesBuilder_.isEmpty()) { + spacesBuilder_.dispose(); + spacesBuilder_ = null; + spaces_ = other.spaces_; + bitField0_ = (bitField0_ & ~0x00000001); + spacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSpacesFieldBuilder() + : null; + } else { + spacesBuilder_.addAllMessages(other.spaces_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.Space m = + input.readMessage(com.google.chat.v1.Space.parser(), extensionRegistry); + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(m); + } else { + spacesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List spaces_ = java.util.Collections.emptyList(); + + private void ensureSpacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + spaces_ = new java.util.ArrayList(spaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder> + spacesBuilder_; + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public java.util.List getSpacesList() { + if (spacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(spaces_); + } else { + return spacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public int getSpacesCount() { + if (spacesBuilder_ == null) { + return spaces_.size(); + } else { + return spacesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.Space getSpaces(int index) { + if (spacesBuilder_ == null) { + return spaces_.get(index); + } else { + return spacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder setSpaces(int index, com.google.chat.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.set(index, value); + onChanged(); + } else { + spacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder setSpaces(int index, com.google.chat.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.set(index, builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addSpaces(com.google.chat.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.add(value); + onChanged(); + } else { + spacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addSpaces(int index, com.google.chat.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.add(index, value); + onChanged(); + } else { + spacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addSpaces(com.google.chat.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addSpaces(int index, com.google.chat.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(index, builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addAllSpaces(java.lang.Iterable values) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spaces_); + onChanged(); + } else { + spacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder clearSpaces() { + if (spacesBuilder_ == null) { + spaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + spacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder removeSpaces(int index) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.remove(index); + onChanged(); + } else { + spacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.Space.Builder getSpacesBuilder(int index) { + return internalGetSpacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.SpaceOrBuilder getSpacesOrBuilder(int index) { + if (spacesBuilder_ == null) { + return spaces_.get(index); + } else { + return spacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public java.util.List getSpacesOrBuilderList() { + if (spacesBuilder_ != null) { + return spacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(spaces_); + } + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.Space.Builder addSpacesBuilder() { + return internalGetSpacesFieldBuilder() + .addBuilder(com.google.chat.v1.Space.getDefaultInstance()); + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.Space.Builder addSpacesBuilder(int index) { + return internalGetSpacesFieldBuilder() + .addBuilder(index, com.google.chat.v1.Space.getDefaultInstance()); + } + + /** + * + * + *
+     * List of spaces in the requested (or first) page.
+     * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + public java.util.List getSpacesBuilderList() { + return internalGetSpacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder> + internalGetSpacesFieldBuilder() { + if (spacesBuilder_ == null) { + spacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder>( + spaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spaces_ = null; + } + return spacesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token that you can send as `pageToken` to retrieve the next page of
+     * results. If empty, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token that you can send as `pageToken` to retrieve the next page of
+     * results. If empty, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token that you can send as `pageToken` to retrieve the next page of
+     * results. If empty, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that you can send as `pageToken` to retrieve the next page of
+     * results. If empty, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that you can send as `pageToken` to retrieve the next page of
+     * results. If empty, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.FindGroupChatsResponse) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.FindGroupChatsResponse) + private static final com.google.chat.v1.FindGroupChatsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.FindGroupChatsResponse(); + } + + public static com.google.chat.v1.FindGroupChatsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindGroupChatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponseOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponseOrBuilder.java new file mode 100644 index 000000000000..9af3d9c60e41 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface FindGroupChatsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.FindGroupChatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + java.util.List getSpacesList(); + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + com.google.chat.v1.Space getSpaces(int index); + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + int getSpacesCount(); + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + java.util.List getSpacesOrBuilderList(); + + /** + * + * + *
+   * List of spaces in the requested (or first) page.
+   * 
+ * + * repeated .google.chat.v1.Space spaces = 1; + */ + com.google.chat.v1.SpaceOrBuilder getSpacesOrBuilder(int index); + + /** + * + * + *
+   * A token that you can send as `pageToken` to retrieve the next page of
+   * results. If empty, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token that you can send as `pageToken` to retrieve the next page of
+   * results. If empty, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java index 4dad1cbd9002..744e18f815e8 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java @@ -84,6 +84,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_FindDirectMessageRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_chat_v1_FindDirectMessageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_FindGroupChatsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_FindGroupChatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_FindGroupChatsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_FindGroupChatsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_chat_v1_UpdateSpaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -237,7 +245,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031chat.googleapis.com/Space\022\035\n" + "\020use_admin_access\030\002 \001(\010B\003\340A\001\"-\n" + "\030FindDirectMessageRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\"\224\001\n" + + "\004name\030\001 \001(\tB\003\340A\002\"\213\001\n" + + "\025FindGroupChatsRequest\022\022\n" + + "\005users\030\005 \003(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022-\n\n" + + "space_view\030\004 \001(\0162\031.google.chat.v1.SpaceView\"X\n" + + "\026FindGroupChatsResponse\022%\n" + + "\006spaces\030\001 \003(\0132\025.google.chat.v1.Space\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\224\001\n" + "\022UpdateSpaceRequest\022)\n" + "\005space\030\001 \001(\0132\025.google.chat.v1.SpaceB\003\340A\002\0224\n" + "\013update_mask\030\002" @@ -261,11 +277,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB!\340A\002\372A\033\n" + "\031chat.googleapis.com/Space\"C\n" + "\033CompleteImportSpaceResponse\022$\n" - + "\005space\030\001 \001(\0132\025.google.chat.v1.SpaceB\243\001\n" + + "\005space\030\001 \001(\0132\025.google.chat.v1.Space*c\n" + + "\tSpaceView\022\032\n" + + "\026SPACE_VIEW_UNSPECIFIED\020\000\022!\n" + + "\035SPACE_VIEW_RESOURCE_NAME_ONLY\020\003\022\027\n" + + "\023SPACE_VIEW_EXPANDED\020\004B\243\001\n" + "\022com.google.chat.v1B\n" - + "SpaceProtoP\001Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb" - + "\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023G" - + "oogle\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "SpaceProtoP\001Z,cloud.google.com/go/chat/apiv1/" + + "chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Google.App" + + "s.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google" + + "::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -390,8 +411,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_chat_v1_UpdateSpaceRequest_descriptor = + internal_static_google_chat_v1_FindGroupChatsRequest_descriptor = getDescriptor().getMessageType(6); + internal_static_google_chat_v1_FindGroupChatsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_FindGroupChatsRequest_descriptor, + new java.lang.String[] { + "Users", "PageSize", "PageToken", "SpaceView", + }); + internal_static_google_chat_v1_FindGroupChatsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_chat_v1_FindGroupChatsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_FindGroupChatsResponse_descriptor, + new java.lang.String[] { + "Spaces", "NextPageToken", + }); + internal_static_google_chat_v1_UpdateSpaceRequest_descriptor = + getDescriptor().getMessageType(8); internal_static_google_chat_v1_UpdateSpaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_UpdateSpaceRequest_descriptor, @@ -399,7 +436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Space", "UpdateMask", "UseAdminAccess", }); internal_static_google_chat_v1_SearchSpacesRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_chat_v1_SearchSpacesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchSpacesRequest_descriptor, @@ -407,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UseAdminAccess", "PageSize", "PageToken", "Query", "OrderBy", }); internal_static_google_chat_v1_SearchSpacesResponse_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_chat_v1_SearchSpacesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchSpacesResponse_descriptor, @@ -415,7 +452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Spaces", "NextPageToken", "TotalSize", }); internal_static_google_chat_v1_DeleteSpaceRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_chat_v1_DeleteSpaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_DeleteSpaceRequest_descriptor, @@ -423,7 +460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "UseAdminAccess", }); internal_static_google_chat_v1_CompleteImportSpaceRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_chat_v1_CompleteImportSpaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CompleteImportSpaceRequest_descriptor, @@ -431,7 +468,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_chat_v1_CompleteImportSpaceResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_chat_v1_CompleteImportSpaceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CompleteImportSpaceResponse_descriptor, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceView.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceView.java new file mode 100644 index 000000000000..d8bb8973661c --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceView.java @@ -0,0 +1,205 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
+ * A view that specifies which fields should be populated on the
+ * [`Space`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
+ * resource.
+ * To ensure compatibility with future releases, we recommend that your code
+ * account for additional values.
+ * 
+ * + * Protobuf enum {@code google.chat.v1.SpaceView} + */ +@com.google.protobuf.Generated +public enum SpaceView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default / unset value.
+   * 
+ * + * SPACE_VIEW_UNSPECIFIED = 0; + */ + SPACE_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * Populates only the Space resource name.
+   * 
+ * + * SPACE_VIEW_RESOURCE_NAME_ONLY = 3; + */ + SPACE_VIEW_RESOURCE_NAME_ONLY(3), + /** + * + * + *
+   * Populates Space resource fields.  Note: the `permissionSettings` field
+   * will not be populated.
+   * Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow
+   * reading space data, for example,
+   * https://www.googleapis.com/auth/chat.spaces or
+   * https://www.googleapis.com/auth/chat.spaces.readonly.
+   * 
+ * + * SPACE_VIEW_EXPANDED = 4; + */ + SPACE_VIEW_EXPANDED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SpaceView"); + } + + /** + * + * + *
+   * The default / unset value.
+   * 
+ * + * SPACE_VIEW_UNSPECIFIED = 0; + */ + public static final int SPACE_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Populates only the Space resource name.
+   * 
+ * + * SPACE_VIEW_RESOURCE_NAME_ONLY = 3; + */ + public static final int SPACE_VIEW_RESOURCE_NAME_ONLY_VALUE = 3; + + /** + * + * + *
+   * Populates Space resource fields.  Note: the `permissionSettings` field
+   * will not be populated.
+   * Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow
+   * reading space data, for example,
+   * https://www.googleapis.com/auth/chat.spaces or
+   * https://www.googleapis.com/auth/chat.spaces.readonly.
+   * 
+ * + * SPACE_VIEW_EXPANDED = 4; + */ + public static final int SPACE_VIEW_EXPANDED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SpaceView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SpaceView forNumber(int value) { + switch (value) { + case 0: + return SPACE_VIEW_UNSPECIFIED; + case 3: + return SPACE_VIEW_RESOURCE_NAME_ONLY; + case 4: + return SPACE_VIEW_EXPANDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SpaceView findValueByNumber(int number) { + return SpaceView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.chat.v1.SpaceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final SpaceView[] VALUES = values(); + + public static SpaceView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SpaceView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.chat.v1.SpaceView) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/action_status.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/action_status.proto index 232bc488dfed..fb5942b40e13 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/action_status.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/action_status.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/annotation.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/annotation.proto index 4440621ba3fd..105f19dfb979 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/annotation.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/annotation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/attachment.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/attachment.proto index f7ea949d8fa8..d5730711f765 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/attachment.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/attachment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index afc37c0bbced..8aea14861df7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -717,6 +717,32 @@ service ChatService { }; } + // Returns all spaces with `spaceType == GROUP_CHAT`, whose + // human memberships contain exactly the calling user, and the users specified + // in `FindGroupChatsRequest.users`. Only members that have joined the + // conversation are supported. For an example, see [Find group + // chats](https://developers.google.com/workspace/chat/find-group-chats). + // + // If the calling user blocks, or is blocked by, some users, and no spaces + // with the entire specified set of users are found, this method returns + // spaces that don't include the blocked or blocking users. + // + // The specified set of users must contain only human (non-app) memberships. + // A request that contains non-human users doesn't return any spaces. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with one of the following [authorization + // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.memberships.readonly` + // - `https://www.googleapis.com/auth/chat.memberships` + rpc FindGroupChats(FindGroupChatsRequest) returns (FindGroupChatsResponse) { + option (google.api.http) = { + get: "/v1/spaces:findGroupChats" + }; + } + // Creates a membership for the calling Chat app, a user, or a Google Group. // Creating memberships for other Chat apps isn't supported. // When creating a membership, if the specified member has their auto-accept diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/contextual_addon.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/contextual_addon.proto index d998b8dc8ee3..3bd6a4da3ae3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/contextual_addon.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/contextual_addon.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto index 5008e7569352..3908ea5272d5 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/event_payload.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/event_payload.proto index 74503275ab35..44176c0f22c8 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/event_payload.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/event_payload.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/group.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/group.proto index 73139ab0212c..359e252be120 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/group.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/group.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/history_state.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/history_state.proto index 20d8fecd1a6e..60c55be14be7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/history_state.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/history_state.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/matched_url.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/matched_url.proto index 9c02e4b0687e..ac5dd38044a5 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/matched_url.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/matched_url.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto index 8b4ba4c7d347..0dcef65565a0 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/reaction.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/reaction.proto index c51538b5587b..3d2f4a369f42 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/reaction.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/reaction.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/slash_command.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/slash_command.proto index 46257852eb97..024c7a38f64e 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/slash_command.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/slash_command.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index 01873a3f99c8..3bd587bdbeb3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -552,6 +552,65 @@ message FindDirectMessageRequest { string name = 1 [(google.api.field_behavior) = REQUIRED]; } +// A request to get group chat spaces based on user resources. +message FindGroupChatsRequest { + // Optional. Resource names of all human users in group chat with the calling + // user. Chat apps can't be included in the request. + // + // The maximum number of users that can be specified in a single request is + // `49`. + // + // Format: `users/{user}`, where `{user}` is either the `id` for the + // [person](https://developers.google.com/people/api/rest/v1/people) from the + // People API, or the `id` for the + // [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + // in the Directory API. For example, to find all group chats with the calling + // user and two other users, with People API profile IDs `123456789` and + // `987654321`, you can use `users/123456789` and `users/987654321`. + // You can also use the email as an alias for `{user}`. For example, + // `users/example@gmail.com` where `example@gmail.com` is the email of the + // Google Chat user. + repeated string users = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of spaces to return. The service might return + // fewer than this value. + // + // If unspecified, at most 10 spaces are returned. + // + // The maximum value is 30. If you use a value more than 30, it's + // automatically changed to 30. + // + // Negative values return an `INVALID_ARGUMENT` error. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous call to find group chats. + // Provide this parameter to retrieve the subsequent page. + // + // When paginating, all other parameters provided should match the call that + // provided the token. Passing different values may lead to unexpected + // results. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Requested space view type. If unset, defaults to + // `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify + // `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, + // for example, + // https://www.googleapis.com/auth/chat.spaces or + // https://www.googleapis.com/auth/chat.spaces.readonly. + SpaceView space_view = 4; +} + +// A response containing group chat spaces with exactly the calling user and the +// requested users. +message FindGroupChatsResponse { + // List of spaces in the requested (or first) page. + repeated Space spaces = 1; + + // A token that you can send as `pageToken` to retrieve the next page of + // results. If empty, there are no subsequent pages. + string next_page_token = 2; +} + // A request to update a single space. message UpdateSpaceRequest { // Required. Space with fields to be updated. `Space.name` must be @@ -822,3 +881,24 @@ message CompleteImportSpaceResponse { // The import mode space. Space space = 1; } + +// A view that specifies which fields should be populated on the +// [`Space`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) +// resource. +// To ensure compatibility with future releases, we recommend that your code +// account for additional values. +enum SpaceView { + // The default / unset value. + SPACE_VIEW_UNSPECIFIED = 0; + + // Populates only the Space resource name. + SPACE_VIEW_RESOURCE_NAME_ONLY = 3; + + // Populates Space resource fields. Note: the `permissionSettings` field + // will not be populated. + // Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow + // reading space data, for example, + // https://www.googleapis.com/auth/chat.spaces or + // https://www.googleapis.com/auth/chat.spaces.readonly. + SPACE_VIEW_EXPANDED = 4; +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto index fde3611cd2ab..f0ed966ad906 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_notification_setting.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_notification_setting.proto index efbc15f681e9..a6ccdfce42c4 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_notification_setting.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_notification_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_read_state.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_read_state.proto index 848ef63d1cf1..a578f53b405b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_read_state.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_read_state.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_setup.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_setup.proto index d1ad807f6203..085843e49c9b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_setup.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_setup.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto index 4a07cde419c2..23934346840d 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/user.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/user.proto index 0d39bf514418..6b27023c4221 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/user.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/user.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/widgets.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/widgets.proto index caa42547dbb2..15ee413910a7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/widgets.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/widgets.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChats.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChats.java new file mode 100644 index 000000000000..17d3911c93a4 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChats.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_FindGroupChats_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceView; +import java.util.ArrayList; + +public class AsyncFindGroupChats { + + public static void main(String[] args) throws Exception { + asyncFindGroupChats(); + } + + public static void asyncFindGroupChats() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + ApiFuture future = chatServiceClient.findGroupChatsPagedCallable().futureCall(request); + // Do something. + for (Space element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_FindGroupChats_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChatsPaged.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChatsPaged.java new file mode 100644 index 000000000000..0f0b06cea032 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChatsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_FindGroupChats_Paged_async] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; +import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceView; +import com.google.common.base.Strings; +import java.util.ArrayList; + +public class AsyncFindGroupChatsPaged { + + public static void main(String[] args) throws Exception { + asyncFindGroupChatsPaged(); + } + + public static void asyncFindGroupChatsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + while (true) { + FindGroupChatsResponse response = chatServiceClient.findGroupChatsCallable().call(request); + for (Space element : response.getSpacesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chat_v1_generated_ChatService_FindGroupChats_Paged_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/SyncFindGroupChats.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/SyncFindGroupChats.java new file mode 100644 index 000000000000..d90768dc2da2 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/SyncFindGroupChats.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_FindGroupChats_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceView; +import java.util.ArrayList; + +public class SyncFindGroupChats { + + public static void main(String[] args) throws Exception { + syncFindGroupChats(); + } + + public static void syncFindGroupChats() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + for (Space element : chatServiceClient.findGroupChats(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_FindGroupChats_sync] diff --git a/java-chronicle/README.md b/java-chronicle/README.md index a32f507f19ca..127408863414 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.28.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.29.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chronicle/google-cloud-chronicle-bom/pom.xml b/java-chronicle/google-cloud-chronicle-bom/pom.xml index 7b9ce79ba6f7..fa51eb559c3c 100644 --- a/java-chronicle/google-cloud-chronicle-bom/pom.xml +++ b/java-chronicle/google-cloud-chronicle-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-chronicle-bom - 0.29.0 + 0.30.0 pom com.google.cloud google-cloud-pom-parent - 1.85.0 + 1.86.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-chronicle - 0.29.0 + 0.30.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.29.0 + 0.30.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.29.0 + 0.30.0
diff --git a/java-chronicle/google-cloud-chronicle/pom.xml b/java-chronicle/google-cloud-chronicle/pom.xml index cb5ac6a815c5..13bd527e12df 100644 --- a/java-chronicle/google-cloud-chronicle/pom.xml +++ b/java-chronicle/google-cloud-chronicle/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chronicle - 0.29.0 + 0.30.0 jar Google Chronicle API Chronicle API The Google Cloud Security Operations API, popularly known as the Chronicle API, serves endpoints that enable security analysts to analyze and mitigate a security threat throughout its lifecycle com.google.cloud google-cloud-chronicle-parent - 0.29.0 + 0.30.0 google-cloud-chronicle diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClient.java new file mode 100644 index 000000000000..327ef1dbbfbf --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClient.java @@ -0,0 +1,593 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.stub.BigQueryExportServiceStub; +import com.google.cloud.chronicle.v1.stub.BigQueryExportServiceStubSettings; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing BigQuery export configurations for Chronicle instances. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+ *     BigQueryExportServiceClient.create()) {
+ *   BigQueryExportName name = BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+ *   BigQueryExport response = bigQueryExportServiceClient.getBigQueryExport(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the BigQueryExportServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetBigQueryExport

Get the BigQuery export configuration for a Chronicle instance.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getBigQueryExport(GetBigQueryExportRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getBigQueryExport(BigQueryExportName name) + *

  • getBigQueryExport(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getBigQueryExportCallable() + *

+ *

UpdateBigQueryExport

Update the BigQuery export configuration for a Chronicle instance.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateBigQueryExport(UpdateBigQueryExportRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateBigQueryExport(BigQueryExport bigQueryExport, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateBigQueryExportCallable() + *

+ *

ProvisionBigQueryExport

Provision the BigQuery export for a Chronicle instance. This will create {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets and set default export settings for each data source.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • provisionBigQueryExport(ProvisionBigQueryExportRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • provisionBigQueryExport(InstanceName parent) + *

  • provisionBigQueryExport(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • provisionBigQueryExportCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of BigQueryExportServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BigQueryExportServiceSettings bigQueryExportServiceSettings =
+ *     BigQueryExportServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * BigQueryExportServiceClient bigQueryExportServiceClient =
+ *     BigQueryExportServiceClient.create(bigQueryExportServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BigQueryExportServiceSettings bigQueryExportServiceSettings =
+ *     BigQueryExportServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BigQueryExportServiceClient bigQueryExportServiceClient =
+ *     BigQueryExportServiceClient.create(bigQueryExportServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BigQueryExportServiceSettings bigQueryExportServiceSettings =
+ *     BigQueryExportServiceSettings.newHttpJsonBuilder().build();
+ * BigQueryExportServiceClient bigQueryExportServiceClient =
+ *     BigQueryExportServiceClient.create(bigQueryExportServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class BigQueryExportServiceClient implements BackgroundResource { + private final BigQueryExportServiceSettings settings; + private final BigQueryExportServiceStub stub; + + /** Constructs an instance of BigQueryExportServiceClient with default settings. */ + public static final BigQueryExportServiceClient create() throws IOException { + return create(BigQueryExportServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of BigQueryExportServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final BigQueryExportServiceClient create(BigQueryExportServiceSettings settings) + throws IOException { + return new BigQueryExportServiceClient(settings); + } + + /** + * Constructs an instance of BigQueryExportServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(BigQueryExportServiceSettings). + */ + public static final BigQueryExportServiceClient create(BigQueryExportServiceStub stub) { + return new BigQueryExportServiceClient(stub); + } + + /** + * Constructs an instance of BigQueryExportServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected BigQueryExportServiceClient(BigQueryExportServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((BigQueryExportServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected BigQueryExportServiceClient(BigQueryExportServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final BigQueryExportServiceSettings getSettings() { + return settings; + } + + public BigQueryExportServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the BigQuery export configuration for a Chronicle instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   BigQueryExportName name = BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   BigQueryExport response = bigQueryExportServiceClient.getBigQueryExport(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the BigqueryExport to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryExport getBigQueryExport(BigQueryExportName name) { + GetBigQueryExportRequest request = + GetBigQueryExportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getBigQueryExport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the BigQuery export configuration for a Chronicle instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   String name = BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   BigQueryExport response = bigQueryExportServiceClient.getBigQueryExport(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the BigqueryExport to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryExport getBigQueryExport(String name) { + GetBigQueryExportRequest request = GetBigQueryExportRequest.newBuilder().setName(name).build(); + return getBigQueryExport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the BigQuery export configuration for a Chronicle instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   GetBigQueryExportRequest request =
+   *       GetBigQueryExportRequest.newBuilder()
+   *           .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .build();
+   *   BigQueryExport response = bigQueryExportServiceClient.getBigQueryExport(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryExport getBigQueryExport(GetBigQueryExportRequest request) { + return getBigQueryExportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the BigQuery export configuration for a Chronicle instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   GetBigQueryExportRequest request =
+   *       GetBigQueryExportRequest.newBuilder()
+   *           .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       bigQueryExportServiceClient.getBigQueryExportCallable().futureCall(request);
+   *   // Do something.
+   *   BigQueryExport response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBigQueryExportCallable() { + return stub.getBigQueryExportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the BigQuery export configuration for a Chronicle instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   BigQueryExport response =
+   *       bigQueryExportServiceClient.updateBigQueryExport(bigQueryExport, updateMask);
+   * }
+   * }
+ * + * @param bigQueryExport Required. The BigQueryExport settings to update. Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryExport updateBigQueryExport( + BigQueryExport bigQueryExport, FieldMask updateMask) { + UpdateBigQueryExportRequest request = + UpdateBigQueryExportRequest.newBuilder() + .setBigQueryExport(bigQueryExport) + .setUpdateMask(updateMask) + .build(); + return updateBigQueryExport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the BigQuery export configuration for a Chronicle instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   UpdateBigQueryExportRequest request =
+   *       UpdateBigQueryExportRequest.newBuilder()
+   *           .setBigQueryExport(BigQueryExport.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   BigQueryExport response = bigQueryExportServiceClient.updateBigQueryExport(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryExport updateBigQueryExport(UpdateBigQueryExportRequest request) { + return updateBigQueryExportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the BigQuery export configuration for a Chronicle instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   UpdateBigQueryExportRequest request =
+   *       UpdateBigQueryExportRequest.newBuilder()
+   *           .setBigQueryExport(BigQueryExport.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       bigQueryExportServiceClient.updateBigQueryExportCallable().futureCall(request);
+   *   // Do something.
+   *   BigQueryExport response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateBigQueryExportCallable() { + return stub.updateBigQueryExportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provision the BigQuery export for a Chronicle instance. This will create {{gcp_name}} resources + * like {{storage_name}} buckets, BigQuery datasets and set default export settings for each data + * source. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   BigQueryExport response = bigQueryExportServiceClient.provisionBigQueryExport(parent);
+   * }
+   * }
+ * + * @param parent Required. The instance for which BigQuery export is being provisioned. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryExport provisionBigQueryExport(InstanceName parent) { + ProvisionBigQueryExportRequest request = + ProvisionBigQueryExportRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return provisionBigQueryExport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provision the BigQuery export for a Chronicle instance. This will create {{gcp_name}} resources + * like {{storage_name}} buckets, BigQuery datasets and set default export settings for each data + * source. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   BigQueryExport response = bigQueryExportServiceClient.provisionBigQueryExport(parent);
+   * }
+   * }
+ * + * @param parent Required. The instance for which BigQuery export is being provisioned. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryExport provisionBigQueryExport(String parent) { + ProvisionBigQueryExportRequest request = + ProvisionBigQueryExportRequest.newBuilder().setParent(parent).build(); + return provisionBigQueryExport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provision the BigQuery export for a Chronicle instance. This will create {{gcp_name}} resources + * like {{storage_name}} buckets, BigQuery datasets and set default export settings for each data + * source. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   ProvisionBigQueryExportRequest request =
+   *       ProvisionBigQueryExportRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .build();
+   *   BigQueryExport response = bigQueryExportServiceClient.provisionBigQueryExport(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryExport provisionBigQueryExport(ProvisionBigQueryExportRequest request) { + return provisionBigQueryExportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provision the BigQuery export for a Chronicle instance. This will create {{gcp_name}} resources + * like {{storage_name}} buckets, BigQuery datasets and set default export settings for each data + * source. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+   *     BigQueryExportServiceClient.create()) {
+   *   ProvisionBigQueryExportRequest request =
+   *       ProvisionBigQueryExportRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       bigQueryExportServiceClient.provisionBigQueryExportCallable().futureCall(request);
+   *   // Do something.
+   *   BigQueryExport response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + provisionBigQueryExportCallable() { + return stub.provisionBigQueryExportCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceSettings.java new file mode 100644 index 000000000000..12c6b5634bb9 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceSettings.java @@ -0,0 +1,243 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.stub.BigQueryExportServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BigQueryExportServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getBigQueryExport: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BigQueryExportServiceSettings.Builder bigQueryExportServiceSettingsBuilder =
+ *     BigQueryExportServiceSettings.newBuilder();
+ * bigQueryExportServiceSettingsBuilder
+ *     .getBigQueryExportSettings()
+ *     .setRetrySettings(
+ *         bigQueryExportServiceSettingsBuilder
+ *             .getBigQueryExportSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * BigQueryExportServiceSettings bigQueryExportServiceSettings =
+ *     bigQueryExportServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class BigQueryExportServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getBigQueryExport. */ + public UnaryCallSettings getBigQueryExportSettings() { + return ((BigQueryExportServiceStubSettings) getStubSettings()).getBigQueryExportSettings(); + } + + /** Returns the object with the settings used for calls to updateBigQueryExport. */ + public UnaryCallSettings + updateBigQueryExportSettings() { + return ((BigQueryExportServiceStubSettings) getStubSettings()).updateBigQueryExportSettings(); + } + + /** Returns the object with the settings used for calls to provisionBigQueryExport. */ + public UnaryCallSettings + provisionBigQueryExportSettings() { + return ((BigQueryExportServiceStubSettings) getStubSettings()) + .provisionBigQueryExportSettings(); + } + + public static final BigQueryExportServiceSettings create(BigQueryExportServiceStubSettings stub) + throws IOException { + return new BigQueryExportServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return BigQueryExportServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return BigQueryExportServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return BigQueryExportServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return BigQueryExportServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return BigQueryExportServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BigQueryExportServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return BigQueryExportServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BigQueryExportServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BigQueryExportServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for BigQueryExportServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(BigQueryExportServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(BigQueryExportServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(BigQueryExportServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(BigQueryExportServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(BigQueryExportServiceStubSettings.newHttpJsonBuilder()); + } + + public BigQueryExportServiceStubSettings.Builder getStubSettingsBuilder() { + return ((BigQueryExportServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getBigQueryExport. */ + public UnaryCallSettings.Builder + getBigQueryExportSettings() { + return getStubSettingsBuilder().getBigQueryExportSettings(); + } + + /** Returns the builder for the settings used for calls to updateBigQueryExport. */ + public UnaryCallSettings.Builder + updateBigQueryExportSettings() { + return getStubSettingsBuilder().updateBigQueryExportSettings(); + } + + /** Returns the builder for the settings used for calls to provisionBigQueryExport. */ + public UnaryCallSettings.Builder + provisionBigQueryExportSettings() { + return getStubSettingsBuilder().provisionBigQueryExportSettings(); + } + + @Override + public BigQueryExportServiceSettings build() throws IOException { + return new BigQueryExportServiceSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceClient.java new file mode 100644 index 000000000000..d69133ef191a --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceClient.java @@ -0,0 +1,492 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.stub.DashboardChartServiceStub; +import com.google.cloud.chronicle.v1.stub.DashboardChartServiceStubSettings; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service providing functionality for managing dashboards' charts. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DashboardChartServiceClient dashboardChartServiceClient =
+ *     DashboardChartServiceClient.create()) {
+ *   DashboardChartName name =
+ *       DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]");
+ *   DashboardChart response = dashboardChartServiceClient.getDashboardChart(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the DashboardChartServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetDashboardChart

Get a dashboard chart.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getDashboardChart(GetDashboardChartRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getDashboardChart(DashboardChartName name) + *

  • getDashboardChart(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getDashboardChartCallable() + *

+ *

BatchGetDashboardCharts

Get dashboard charts in batches.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • batchGetDashboardCharts(BatchGetDashboardChartsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • batchGetDashboardCharts(InstanceName parent, List<String> names) + *

  • batchGetDashboardCharts(String parent, List<String> names) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • batchGetDashboardChartsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of DashboardChartServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardChartServiceSettings dashboardChartServiceSettings =
+ *     DashboardChartServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DashboardChartServiceClient dashboardChartServiceClient =
+ *     DashboardChartServiceClient.create(dashboardChartServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardChartServiceSettings dashboardChartServiceSettings =
+ *     DashboardChartServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DashboardChartServiceClient dashboardChartServiceClient =
+ *     DashboardChartServiceClient.create(dashboardChartServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardChartServiceSettings dashboardChartServiceSettings =
+ *     DashboardChartServiceSettings.newHttpJsonBuilder().build();
+ * DashboardChartServiceClient dashboardChartServiceClient =
+ *     DashboardChartServiceClient.create(dashboardChartServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DashboardChartServiceClient implements BackgroundResource { + private final DashboardChartServiceSettings settings; + private final DashboardChartServiceStub stub; + + /** Constructs an instance of DashboardChartServiceClient with default settings. */ + public static final DashboardChartServiceClient create() throws IOException { + return create(DashboardChartServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DashboardChartServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DashboardChartServiceClient create(DashboardChartServiceSettings settings) + throws IOException { + return new DashboardChartServiceClient(settings); + } + + /** + * Constructs an instance of DashboardChartServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(DashboardChartServiceSettings). + */ + public static final DashboardChartServiceClient create(DashboardChartServiceStub stub) { + return new DashboardChartServiceClient(stub); + } + + /** + * Constructs an instance of DashboardChartServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected DashboardChartServiceClient(DashboardChartServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DashboardChartServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DashboardChartServiceClient(DashboardChartServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DashboardChartServiceSettings getSettings() { + return settings; + } + + public DashboardChartServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard chart. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardChartServiceClient dashboardChartServiceClient =
+   *     DashboardChartServiceClient.create()) {
+   *   DashboardChartName name =
+   *       DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]");
+   *   DashboardChart response = dashboardChartServiceClient.getDashboardChart(name);
+   * }
+   * }
+ * + * @param name Required. The name of the dashboardChart to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DashboardChart getDashboardChart(DashboardChartName name) { + GetDashboardChartRequest request = + GetDashboardChartRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDashboardChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard chart. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardChartServiceClient dashboardChartServiceClient =
+   *     DashboardChartServiceClient.create()) {
+   *   String name =
+   *       DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]").toString();
+   *   DashboardChart response = dashboardChartServiceClient.getDashboardChart(name);
+   * }
+   * }
+ * + * @param name Required. The name of the dashboardChart to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DashboardChart getDashboardChart(String name) { + GetDashboardChartRequest request = GetDashboardChartRequest.newBuilder().setName(name).build(); + return getDashboardChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard chart. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardChartServiceClient dashboardChartServiceClient =
+   *     DashboardChartServiceClient.create()) {
+   *   GetDashboardChartRequest request =
+   *       GetDashboardChartRequest.newBuilder()
+   *           .setName(
+   *               DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]")
+   *                   .toString())
+   *           .build();
+   *   DashboardChart response = dashboardChartServiceClient.getDashboardChart(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DashboardChart getDashboardChart(GetDashboardChartRequest request) { + return getDashboardChartCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard chart. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardChartServiceClient dashboardChartServiceClient =
+   *     DashboardChartServiceClient.create()) {
+   *   GetDashboardChartRequest request =
+   *       GetDashboardChartRequest.newBuilder()
+   *           .setName(
+   *               DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dashboardChartServiceClient.getDashboardChartCallable().futureCall(request);
+   *   // Do something.
+   *   DashboardChart response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDashboardChartCallable() { + return stub.getDashboardChartCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get dashboard charts in batches. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardChartServiceClient dashboardChartServiceClient =
+   *     DashboardChartServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   List names = new ArrayList<>();
+   *   BatchGetDashboardChartsResponse response =
+   *       dashboardChartServiceClient.batchGetDashboardCharts(parent, names);
+   * }
+   * }
+ * + * @param parent Required. The parent resource shared by all dashboard charts being retrieved. + * Format: projects/{project}/locations/{location}/instances/{instance} If this is set, the + * parent of all of the dashboard charts specified in `names` must match this field. + * @param names Required. The names of the dashboard charts to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchGetDashboardChartsResponse batchGetDashboardCharts( + InstanceName parent, List names) { + BatchGetDashboardChartsRequest request = + BatchGetDashboardChartsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchGetDashboardCharts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get dashboard charts in batches. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardChartServiceClient dashboardChartServiceClient =
+   *     DashboardChartServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchGetDashboardChartsResponse response =
+   *       dashboardChartServiceClient.batchGetDashboardCharts(parent, names);
+   * }
+   * }
+ * + * @param parent Required. The parent resource shared by all dashboard charts being retrieved. + * Format: projects/{project}/locations/{location}/instances/{instance} If this is set, the + * parent of all of the dashboard charts specified in `names` must match this field. + * @param names Required. The names of the dashboard charts to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchGetDashboardChartsResponse batchGetDashboardCharts( + String parent, List names) { + BatchGetDashboardChartsRequest request = + BatchGetDashboardChartsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchGetDashboardCharts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get dashboard charts in batches. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardChartServiceClient dashboardChartServiceClient =
+   *     DashboardChartServiceClient.create()) {
+   *   BatchGetDashboardChartsRequest request =
+   *       BatchGetDashboardChartsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchGetDashboardChartsResponse response =
+   *       dashboardChartServiceClient.batchGetDashboardCharts(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchGetDashboardChartsResponse batchGetDashboardCharts( + BatchGetDashboardChartsRequest request) { + return batchGetDashboardChartsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get dashboard charts in batches. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardChartServiceClient dashboardChartServiceClient =
+   *     DashboardChartServiceClient.create()) {
+   *   BatchGetDashboardChartsRequest request =
+   *       BatchGetDashboardChartsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dashboardChartServiceClient.batchGetDashboardChartsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchGetDashboardChartsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchGetDashboardChartsCallable() { + return stub.batchGetDashboardChartsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceSettings.java new file mode 100644 index 000000000000..752e1f6d6bb1 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceSettings.java @@ -0,0 +1,232 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.stub.DashboardChartServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DashboardChartServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDashboardChart: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardChartServiceSettings.Builder dashboardChartServiceSettingsBuilder =
+ *     DashboardChartServiceSettings.newBuilder();
+ * dashboardChartServiceSettingsBuilder
+ *     .getDashboardChartSettings()
+ *     .setRetrySettings(
+ *         dashboardChartServiceSettingsBuilder
+ *             .getDashboardChartSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DashboardChartServiceSettings dashboardChartServiceSettings =
+ *     dashboardChartServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class DashboardChartServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getDashboardChart. */ + public UnaryCallSettings getDashboardChartSettings() { + return ((DashboardChartServiceStubSettings) getStubSettings()).getDashboardChartSettings(); + } + + /** Returns the object with the settings used for calls to batchGetDashboardCharts. */ + public UnaryCallSettings + batchGetDashboardChartsSettings() { + return ((DashboardChartServiceStubSettings) getStubSettings()) + .batchGetDashboardChartsSettings(); + } + + public static final DashboardChartServiceSettings create(DashboardChartServiceStubSettings stub) + throws IOException { + return new DashboardChartServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DashboardChartServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DashboardChartServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DashboardChartServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DashboardChartServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DashboardChartServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DashboardChartServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DashboardChartServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DashboardChartServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DashboardChartServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DashboardChartServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DashboardChartServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DashboardChartServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DashboardChartServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DashboardChartServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(DashboardChartServiceStubSettings.newHttpJsonBuilder()); + } + + public DashboardChartServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DashboardChartServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getDashboardChart. */ + public UnaryCallSettings.Builder + getDashboardChartSettings() { + return getStubSettingsBuilder().getDashboardChartSettings(); + } + + /** Returns the builder for the settings used for calls to batchGetDashboardCharts. */ + public UnaryCallSettings.Builder< + BatchGetDashboardChartsRequest, BatchGetDashboardChartsResponse> + batchGetDashboardChartsSettings() { + return getStubSettingsBuilder().batchGetDashboardChartsSettings(); + } + + @Override + public DashboardChartServiceSettings build() throws IOException { + return new DashboardChartServiceSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClient.java new file mode 100644 index 000000000000..dcb293c59f46 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClient.java @@ -0,0 +1,499 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.stub.DashboardQueryServiceStub; +import com.google.cloud.chronicle.v1.stub.DashboardQueryServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service providing functionality for managing dashboards' queries. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+ *     DashboardQueryServiceClient.create()) {
+ *   DashboardQueryName name =
+ *       DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]");
+ *   DashboardQuery response = dashboardQueryServiceClient.getDashboardQuery(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the DashboardQueryServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetDashboardQuery

Get a dashboard query.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getDashboardQuery(GetDashboardQueryRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getDashboardQuery(DashboardQueryName name) + *

  • getDashboardQuery(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getDashboardQueryCallable() + *

+ *

ExecuteDashboardQuery

Execute a query and return the data.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • executeDashboardQuery(ExecuteDashboardQueryRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • executeDashboardQuery(InstanceName parent, DashboardQuery query) + *

  • executeDashboardQuery(String parent, DashboardQuery query) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • executeDashboardQueryCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of DashboardQueryServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardQueryServiceSettings dashboardQueryServiceSettings =
+ *     DashboardQueryServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DashboardQueryServiceClient dashboardQueryServiceClient =
+ *     DashboardQueryServiceClient.create(dashboardQueryServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardQueryServiceSettings dashboardQueryServiceSettings =
+ *     DashboardQueryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DashboardQueryServiceClient dashboardQueryServiceClient =
+ *     DashboardQueryServiceClient.create(dashboardQueryServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardQueryServiceSettings dashboardQueryServiceSettings =
+ *     DashboardQueryServiceSettings.newHttpJsonBuilder().build();
+ * DashboardQueryServiceClient dashboardQueryServiceClient =
+ *     DashboardQueryServiceClient.create(dashboardQueryServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DashboardQueryServiceClient implements BackgroundResource { + private final DashboardQueryServiceSettings settings; + private final DashboardQueryServiceStub stub; + + /** Constructs an instance of DashboardQueryServiceClient with default settings. */ + public static final DashboardQueryServiceClient create() throws IOException { + return create(DashboardQueryServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DashboardQueryServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DashboardQueryServiceClient create(DashboardQueryServiceSettings settings) + throws IOException { + return new DashboardQueryServiceClient(settings); + } + + /** + * Constructs an instance of DashboardQueryServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(DashboardQueryServiceSettings). + */ + public static final DashboardQueryServiceClient create(DashboardQueryServiceStub stub) { + return new DashboardQueryServiceClient(stub); + } + + /** + * Constructs an instance of DashboardQueryServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected DashboardQueryServiceClient(DashboardQueryServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DashboardQueryServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DashboardQueryServiceClient(DashboardQueryServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DashboardQueryServiceSettings getSettings() { + return settings; + } + + public DashboardQueryServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard query. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+   *     DashboardQueryServiceClient.create()) {
+   *   DashboardQueryName name =
+   *       DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]");
+   *   DashboardQuery response = dashboardQueryServiceClient.getDashboardQuery(name);
+   * }
+   * }
+ * + * @param name Required. The name of the dashboardQuery to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DashboardQuery getDashboardQuery(DashboardQueryName name) { + GetDashboardQueryRequest request = + GetDashboardQueryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDashboardQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard query. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+   *     DashboardQueryServiceClient.create()) {
+   *   String name =
+   *       DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]").toString();
+   *   DashboardQuery response = dashboardQueryServiceClient.getDashboardQuery(name);
+   * }
+   * }
+ * + * @param name Required. The name of the dashboardQuery to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DashboardQuery getDashboardQuery(String name) { + GetDashboardQueryRequest request = GetDashboardQueryRequest.newBuilder().setName(name).build(); + return getDashboardQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard query. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+   *     DashboardQueryServiceClient.create()) {
+   *   GetDashboardQueryRequest request =
+   *       GetDashboardQueryRequest.newBuilder()
+   *           .setName(
+   *               DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]")
+   *                   .toString())
+   *           .build();
+   *   DashboardQuery response = dashboardQueryServiceClient.getDashboardQuery(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DashboardQuery getDashboardQuery(GetDashboardQueryRequest request) { + return getDashboardQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard query. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+   *     DashboardQueryServiceClient.create()) {
+   *   GetDashboardQueryRequest request =
+   *       GetDashboardQueryRequest.newBuilder()
+   *           .setName(
+   *               DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dashboardQueryServiceClient.getDashboardQueryCallable().futureCall(request);
+   *   // Do something.
+   *   DashboardQuery response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDashboardQueryCallable() { + return stub.getDashboardQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Execute a query and return the data. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+   *     DashboardQueryServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   DashboardQuery query = DashboardQuery.newBuilder().build();
+   *   ExecuteDashboardQueryResponse response =
+   *       dashboardQueryServiceClient.executeDashboardQuery(parent, query);
+   * }
+   * }
+ * + * @param parent Required. The parent, under which to run this dashboardQuery. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param query Required. The query to execute and get results back for. QueryID or 'query', + * 'input.time_window' fields will be used. Use 'native_dashboard' and 'dashboard_chart' + * fields if it is an in-dashboard query. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteDashboardQueryResponse executeDashboardQuery( + InstanceName parent, DashboardQuery query) { + ExecuteDashboardQueryRequest request = + ExecuteDashboardQueryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return executeDashboardQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Execute a query and return the data. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+   *     DashboardQueryServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   DashboardQuery query = DashboardQuery.newBuilder().build();
+   *   ExecuteDashboardQueryResponse response =
+   *       dashboardQueryServiceClient.executeDashboardQuery(parent, query);
+   * }
+   * }
+ * + * @param parent Required. The parent, under which to run this dashboardQuery. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param query Required. The query to execute and get results back for. QueryID or 'query', + * 'input.time_window' fields will be used. Use 'native_dashboard' and 'dashboard_chart' + * fields if it is an in-dashboard query. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteDashboardQueryResponse executeDashboardQuery( + String parent, DashboardQuery query) { + ExecuteDashboardQueryRequest request = + ExecuteDashboardQueryRequest.newBuilder().setParent(parent).setQuery(query).build(); + return executeDashboardQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Execute a query and return the data. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+   *     DashboardQueryServiceClient.create()) {
+   *   ExecuteDashboardQueryRequest request =
+   *       ExecuteDashboardQueryRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setQuery(DashboardQuery.newBuilder().build())
+   *           .addAllFilters(new ArrayList())
+   *           .setClearCache(true)
+   *           .setUsePreviousTimeRange(true)
+   *           .build();
+   *   ExecuteDashboardQueryResponse response =
+   *       dashboardQueryServiceClient.executeDashboardQuery(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteDashboardQueryResponse executeDashboardQuery( + ExecuteDashboardQueryRequest request) { + return executeDashboardQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Execute a query and return the data. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+   *     DashboardQueryServiceClient.create()) {
+   *   ExecuteDashboardQueryRequest request =
+   *       ExecuteDashboardQueryRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setQuery(DashboardQuery.newBuilder().build())
+   *           .addAllFilters(new ArrayList())
+   *           .setClearCache(true)
+   *           .setUsePreviousTimeRange(true)
+   *           .build();
+   *   ApiFuture future =
+   *       dashboardQueryServiceClient.executeDashboardQueryCallable().futureCall(request);
+   *   // Do something.
+   *   ExecuteDashboardQueryResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + executeDashboardQueryCallable() { + return stub.executeDashboardQueryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceSettings.java new file mode 100644 index 000000000000..e0cf3a7f17fa --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceSettings.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.stub.DashboardQueryServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DashboardQueryServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDashboardQuery: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardQueryServiceSettings.Builder dashboardQueryServiceSettingsBuilder =
+ *     DashboardQueryServiceSettings.newBuilder();
+ * dashboardQueryServiceSettingsBuilder
+ *     .getDashboardQuerySettings()
+ *     .setRetrySettings(
+ *         dashboardQueryServiceSettingsBuilder
+ *             .getDashboardQuerySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DashboardQueryServiceSettings dashboardQueryServiceSettings =
+ *     dashboardQueryServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class DashboardQueryServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getDashboardQuery. */ + public UnaryCallSettings getDashboardQuerySettings() { + return ((DashboardQueryServiceStubSettings) getStubSettings()).getDashboardQuerySettings(); + } + + /** Returns the object with the settings used for calls to executeDashboardQuery. */ + public UnaryCallSettings + executeDashboardQuerySettings() { + return ((DashboardQueryServiceStubSettings) getStubSettings()).executeDashboardQuerySettings(); + } + + public static final DashboardQueryServiceSettings create(DashboardQueryServiceStubSettings stub) + throws IOException { + return new DashboardQueryServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DashboardQueryServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DashboardQueryServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DashboardQueryServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DashboardQueryServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DashboardQueryServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DashboardQueryServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DashboardQueryServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DashboardQueryServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DashboardQueryServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DashboardQueryServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DashboardQueryServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DashboardQueryServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DashboardQueryServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DashboardQueryServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(DashboardQueryServiceStubSettings.newHttpJsonBuilder()); + } + + public DashboardQueryServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DashboardQueryServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getDashboardQuery. */ + public UnaryCallSettings.Builder + getDashboardQuerySettings() { + return getStubSettingsBuilder().getDashboardQuerySettings(); + } + + /** Returns the builder for the settings used for calls to executeDashboardQuery. */ + public UnaryCallSettings.Builder + executeDashboardQuerySettings() { + return getStubSettingsBuilder().executeDashboardQuerySettings(); + } + + @Override + public DashboardQueryServiceSettings build() throws IOException { + return new DashboardQueryServiceSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClient.java new file mode 100644 index 000000000000..1fb020c317cc --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClient.java @@ -0,0 +1,871 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.stub.FeaturedContentNativeDashboardServiceStub; +import com.google.cloud.chronicle.v1.stub.FeaturedContentNativeDashboardServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: This service provides functionality for managing + * FeaturedContentNativeDashboard. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+ *     FeaturedContentNativeDashboardServiceClient.create()) {
+ *   FeaturedContentNativeDashboardName name =
+ *       FeaturedContentNativeDashboardName.of(
+ *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
+ *   FeaturedContentNativeDashboard response =
+ *       featuredContentNativeDashboardServiceClient.getFeaturedContentNativeDashboard(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the FeaturedContentNativeDashboardServiceClient object to + * clean up resources such as threads. In the example above, try-with-resources is used, which + * automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetFeaturedContentNativeDashboard

Get a native dashboard featured content.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getFeaturedContentNativeDashboard(GetFeaturedContentNativeDashboardRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getFeaturedContentNativeDashboard(FeaturedContentNativeDashboardName name) + *

  • getFeaturedContentNativeDashboard(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getFeaturedContentNativeDashboardCallable() + *

+ *

ListFeaturedContentNativeDashboards

List all native dashboards featured content.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listFeaturedContentNativeDashboards(ListFeaturedContentNativeDashboardsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listFeaturedContentNativeDashboards(ContentHubName parent) + *

  • listFeaturedContentNativeDashboards(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listFeaturedContentNativeDashboardsPagedCallable() + *

  • listFeaturedContentNativeDashboardsCallable() + *

+ *

InstallFeaturedContentNativeDashboard

Install a native dashboard featured content.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • installFeaturedContentNativeDashboard(InstallFeaturedContentNativeDashboardRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • installFeaturedContentNativeDashboard(FeaturedContentNativeDashboardName name) + *

  • installFeaturedContentNativeDashboard(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • installFeaturedContentNativeDashboardCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * FeaturedContentNativeDashboardServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * FeaturedContentNativeDashboardServiceSettings featuredContentNativeDashboardServiceSettings =
+ *     FeaturedContentNativeDashboardServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+ *     FeaturedContentNativeDashboardServiceClient.create(
+ *         featuredContentNativeDashboardServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * FeaturedContentNativeDashboardServiceSettings featuredContentNativeDashboardServiceSettings =
+ *     FeaturedContentNativeDashboardServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+ *     FeaturedContentNativeDashboardServiceClient.create(
+ *         featuredContentNativeDashboardServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * FeaturedContentNativeDashboardServiceSettings featuredContentNativeDashboardServiceSettings =
+ *     FeaturedContentNativeDashboardServiceSettings.newHttpJsonBuilder().build();
+ * FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+ *     FeaturedContentNativeDashboardServiceClient.create(
+ *         featuredContentNativeDashboardServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class FeaturedContentNativeDashboardServiceClient implements BackgroundResource { + private final FeaturedContentNativeDashboardServiceSettings settings; + private final FeaturedContentNativeDashboardServiceStub stub; + + /** + * Constructs an instance of FeaturedContentNativeDashboardServiceClient with default settings. + */ + public static final FeaturedContentNativeDashboardServiceClient create() throws IOException { + return create(FeaturedContentNativeDashboardServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of FeaturedContentNativeDashboardServiceClient, using the given + * settings. The channels are created based on the settings passed in, or defaults for any + * settings that are not set. + */ + public static final FeaturedContentNativeDashboardServiceClient create( + FeaturedContentNativeDashboardServiceSettings settings) throws IOException { + return new FeaturedContentNativeDashboardServiceClient(settings); + } + + /** + * Constructs an instance of FeaturedContentNativeDashboardServiceClient, using the given stub for + * making calls. This is for advanced usage - prefer using + * create(FeaturedContentNativeDashboardServiceSettings). + */ + public static final FeaturedContentNativeDashboardServiceClient create( + FeaturedContentNativeDashboardServiceStub stub) { + return new FeaturedContentNativeDashboardServiceClient(stub); + } + + /** + * Constructs an instance of FeaturedContentNativeDashboardServiceClient, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected FeaturedContentNativeDashboardServiceClient( + FeaturedContentNativeDashboardServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = + ((FeaturedContentNativeDashboardServiceStubSettings) settings.getStubSettings()) + .createStub(); + } + + protected FeaturedContentNativeDashboardServiceClient( + FeaturedContentNativeDashboardServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final FeaturedContentNativeDashboardServiceSettings getSettings() { + return settings; + } + + public FeaturedContentNativeDashboardServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a native dashboard featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   FeaturedContentNativeDashboardName name =
+   *       FeaturedContentNativeDashboardName.of(
+   *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
+   *   FeaturedContentNativeDashboard response =
+   *       featuredContentNativeDashboardServiceClient.getFeaturedContentNativeDashboard(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the FeaturedContentNativeDashboard to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FeaturedContentNativeDashboard getFeaturedContentNativeDashboard( + FeaturedContentNativeDashboardName name) { + GetFeaturedContentNativeDashboardRequest request = + GetFeaturedContentNativeDashboardRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getFeaturedContentNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a native dashboard featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   String name =
+   *       FeaturedContentNativeDashboardName.of(
+   *               "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]")
+   *           .toString();
+   *   FeaturedContentNativeDashboard response =
+   *       featuredContentNativeDashboardServiceClient.getFeaturedContentNativeDashboard(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the FeaturedContentNativeDashboard to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FeaturedContentNativeDashboard getFeaturedContentNativeDashboard(String name) { + GetFeaturedContentNativeDashboardRequest request = + GetFeaturedContentNativeDashboardRequest.newBuilder().setName(name).build(); + return getFeaturedContentNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a native dashboard featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   GetFeaturedContentNativeDashboardRequest request =
+   *       GetFeaturedContentNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               FeaturedContentNativeDashboardName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[INSTANCE]",
+   *                       "[FEATURED_CONTENT_NATIVE_DASHBOARD]")
+   *                   .toString())
+   *           .build();
+   *   FeaturedContentNativeDashboard response =
+   *       featuredContentNativeDashboardServiceClient.getFeaturedContentNativeDashboard(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FeaturedContentNativeDashboard getFeaturedContentNativeDashboard( + GetFeaturedContentNativeDashboardRequest request) { + return getFeaturedContentNativeDashboardCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a native dashboard featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   GetFeaturedContentNativeDashboardRequest request =
+   *       GetFeaturedContentNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               FeaturedContentNativeDashboardName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[INSTANCE]",
+   *                       "[FEATURED_CONTENT_NATIVE_DASHBOARD]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       featuredContentNativeDashboardServiceClient
+   *           .getFeaturedContentNativeDashboardCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   FeaturedContentNativeDashboard response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardCallable() { + return stub.getFeaturedContentNativeDashboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all native dashboards featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   ContentHubName parent = ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   for (FeaturedContentNativeDashboard element :
+   *       featuredContentNativeDashboardServiceClient
+   *           .listFeaturedContentNativeDashboards(parent)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturedContentNativeDashboardsPagedResponse listFeaturedContentNativeDashboards( + ContentHubName parent) { + ListFeaturedContentNativeDashboardsRequest request = + ListFeaturedContentNativeDashboardsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFeaturedContentNativeDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all native dashboards featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   String parent = ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   for (FeaturedContentNativeDashboard element :
+   *       featuredContentNativeDashboardServiceClient
+   *           .listFeaturedContentNativeDashboards(parent)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturedContentNativeDashboardsPagedResponse listFeaturedContentNativeDashboards( + String parent) { + ListFeaturedContentNativeDashboardsRequest request = + ListFeaturedContentNativeDashboardsRequest.newBuilder().setParent(parent).build(); + return listFeaturedContentNativeDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all native dashboards featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   ListFeaturedContentNativeDashboardsRequest request =
+   *       ListFeaturedContentNativeDashboardsRequest.newBuilder()
+   *           .setParent(ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (FeaturedContentNativeDashboard element :
+   *       featuredContentNativeDashboardServiceClient
+   *           .listFeaturedContentNativeDashboards(request)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturedContentNativeDashboardsPagedResponse listFeaturedContentNativeDashboards( + ListFeaturedContentNativeDashboardsRequest request) { + return listFeaturedContentNativeDashboardsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all native dashboards featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   ListFeaturedContentNativeDashboardsRequest request =
+   *       ListFeaturedContentNativeDashboardsRequest.newBuilder()
+   *           .setParent(ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       featuredContentNativeDashboardServiceClient
+   *           .listFeaturedContentNativeDashboardsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (FeaturedContentNativeDashboard element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsPagedCallable() { + return stub.listFeaturedContentNativeDashboardsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all native dashboards featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   ListFeaturedContentNativeDashboardsRequest request =
+   *       ListFeaturedContentNativeDashboardsRequest.newBuilder()
+   *           .setParent(ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListFeaturedContentNativeDashboardsResponse response =
+   *         featuredContentNativeDashboardServiceClient
+   *             .listFeaturedContentNativeDashboardsCallable()
+   *             .call(request);
+   *     for (FeaturedContentNativeDashboard element :
+   *         response.getFeaturedContentNativeDashboardsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsCallable() { + return stub.listFeaturedContentNativeDashboardsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Install a native dashboard featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   FeaturedContentNativeDashboardName name =
+   *       FeaturedContentNativeDashboardName.of(
+   *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
+   *   InstallFeaturedContentNativeDashboardResponse response =
+   *       featuredContentNativeDashboardServiceClient.installFeaturedContentNativeDashboard(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the FeaturedContentNativeDashboard to install. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstallFeaturedContentNativeDashboardResponse installFeaturedContentNativeDashboard( + FeaturedContentNativeDashboardName name) { + InstallFeaturedContentNativeDashboardRequest request = + InstallFeaturedContentNativeDashboardRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return installFeaturedContentNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Install a native dashboard featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   String name =
+   *       FeaturedContentNativeDashboardName.of(
+   *               "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]")
+   *           .toString();
+   *   InstallFeaturedContentNativeDashboardResponse response =
+   *       featuredContentNativeDashboardServiceClient.installFeaturedContentNativeDashboard(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the FeaturedContentNativeDashboard to install. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstallFeaturedContentNativeDashboardResponse installFeaturedContentNativeDashboard( + String name) { + InstallFeaturedContentNativeDashboardRequest request = + InstallFeaturedContentNativeDashboardRequest.newBuilder().setName(name).build(); + return installFeaturedContentNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Install a native dashboard featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   InstallFeaturedContentNativeDashboardRequest request =
+   *       InstallFeaturedContentNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               FeaturedContentNativeDashboardName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[INSTANCE]",
+   *                       "[FEATURED_CONTENT_NATIVE_DASHBOARD]")
+   *                   .toString())
+   *           .setFeaturedContentNativeDashboard(
+   *               FeaturedContentNativeDashboard.newBuilder().build())
+   *           .build();
+   *   InstallFeaturedContentNativeDashboardResponse response =
+   *       featuredContentNativeDashboardServiceClient.installFeaturedContentNativeDashboard(
+   *           request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstallFeaturedContentNativeDashboardResponse installFeaturedContentNativeDashboard( + InstallFeaturedContentNativeDashboardRequest request) { + return installFeaturedContentNativeDashboardCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Install a native dashboard featured content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+   *     FeaturedContentNativeDashboardServiceClient.create()) {
+   *   InstallFeaturedContentNativeDashboardRequest request =
+   *       InstallFeaturedContentNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               FeaturedContentNativeDashboardName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[INSTANCE]",
+   *                       "[FEATURED_CONTENT_NATIVE_DASHBOARD]")
+   *                   .toString())
+   *           .setFeaturedContentNativeDashboard(
+   *               FeaturedContentNativeDashboard.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featuredContentNativeDashboardServiceClient
+   *           .installFeaturedContentNativeDashboardCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   InstallFeaturedContentNativeDashboardResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardCallable() { + return stub.installFeaturedContentNativeDashboardCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListFeaturedContentNativeDashboardsPagedResponse + extends AbstractPagedListResponse< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard, + ListFeaturedContentNativeDashboardsPage, + ListFeaturedContentNativeDashboardsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFeaturedContentNativeDashboardsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFeaturedContentNativeDashboardsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFeaturedContentNativeDashboardsPagedResponse( + ListFeaturedContentNativeDashboardsPage page) { + super(page, ListFeaturedContentNativeDashboardsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFeaturedContentNativeDashboardsPage + extends AbstractPage< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard, + ListFeaturedContentNativeDashboardsPage> { + + private ListFeaturedContentNativeDashboardsPage( + PageContext< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard> + context, + ListFeaturedContentNativeDashboardsResponse response) { + super(context, response); + } + + private static ListFeaturedContentNativeDashboardsPage createEmptyPage() { + return new ListFeaturedContentNativeDashboardsPage(null, null); + } + + @Override + protected ListFeaturedContentNativeDashboardsPage createPage( + PageContext< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard> + context, + ListFeaturedContentNativeDashboardsResponse response) { + return new ListFeaturedContentNativeDashboardsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFeaturedContentNativeDashboardsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard, + ListFeaturedContentNativeDashboardsPage, + ListFeaturedContentNativeDashboardsFixedSizeCollection> { + + private ListFeaturedContentNativeDashboardsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFeaturedContentNativeDashboardsFixedSizeCollection createEmptyCollection() { + return new ListFeaturedContentNativeDashboardsFixedSizeCollection(null, 0); + } + + @Override + protected ListFeaturedContentNativeDashboardsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFeaturedContentNativeDashboardsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceSettings.java new file mode 100644 index 000000000000..ada830c9d275 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceSettings.java @@ -0,0 +1,271 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.stub.FeaturedContentNativeDashboardServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FeaturedContentNativeDashboardServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getFeaturedContentNativeDashboard: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * FeaturedContentNativeDashboardServiceSettings.Builder
+ *     featuredContentNativeDashboardServiceSettingsBuilder =
+ *         FeaturedContentNativeDashboardServiceSettings.newBuilder();
+ * featuredContentNativeDashboardServiceSettingsBuilder
+ *     .getFeaturedContentNativeDashboardSettings()
+ *     .setRetrySettings(
+ *         featuredContentNativeDashboardServiceSettingsBuilder
+ *             .getFeaturedContentNativeDashboardSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * FeaturedContentNativeDashboardServiceSettings featuredContentNativeDashboardServiceSettings =
+ *     featuredContentNativeDashboardServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class FeaturedContentNativeDashboardServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getFeaturedContentNativeDashboard. */ + public UnaryCallSettings + getFeaturedContentNativeDashboardSettings() { + return ((FeaturedContentNativeDashboardServiceStubSettings) getStubSettings()) + .getFeaturedContentNativeDashboardSettings(); + } + + /** Returns the object with the settings used for calls to listFeaturedContentNativeDashboards. */ + public PagedCallSettings< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsSettings() { + return ((FeaturedContentNativeDashboardServiceStubSettings) getStubSettings()) + .listFeaturedContentNativeDashboardsSettings(); + } + + /** + * Returns the object with the settings used for calls to installFeaturedContentNativeDashboard. + */ + public UnaryCallSettings< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardSettings() { + return ((FeaturedContentNativeDashboardServiceStubSettings) getStubSettings()) + .installFeaturedContentNativeDashboardSettings(); + } + + public static final FeaturedContentNativeDashboardServiceSettings create( + FeaturedContentNativeDashboardServiceStubSettings stub) throws IOException { + return new FeaturedContentNativeDashboardServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return FeaturedContentNativeDashboardServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return FeaturedContentNativeDashboardServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return FeaturedContentNativeDashboardServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return FeaturedContentNativeDashboardServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return FeaturedContentNativeDashboardServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return FeaturedContentNativeDashboardServiceStubSettings + .defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return FeaturedContentNativeDashboardServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FeaturedContentNativeDashboardServiceStubSettings + .defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FeaturedContentNativeDashboardServiceSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + } + + /** Builder for FeaturedContentNativeDashboardServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(FeaturedContentNativeDashboardServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(FeaturedContentNativeDashboardServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(FeaturedContentNativeDashboardServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(FeaturedContentNativeDashboardServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(FeaturedContentNativeDashboardServiceStubSettings.newHttpJsonBuilder()); + } + + public FeaturedContentNativeDashboardServiceStubSettings.Builder getStubSettingsBuilder() { + return ((FeaturedContentNativeDashboardServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getFeaturedContentNativeDashboard. */ + public UnaryCallSettings.Builder< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardSettings() { + return getStubSettingsBuilder().getFeaturedContentNativeDashboardSettings(); + } + + /** + * Returns the builder for the settings used for calls to listFeaturedContentNativeDashboards. + */ + public PagedCallSettings.Builder< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsSettings() { + return getStubSettingsBuilder().listFeaturedContentNativeDashboardsSettings(); + } + + /** + * Returns the builder for the settings used for calls to installFeaturedContentNativeDashboard. + */ + public UnaryCallSettings.Builder< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardSettings() { + return getStubSettingsBuilder().installFeaturedContentNativeDashboardSettings(); + } + + @Override + public FeaturedContentNativeDashboardServiceSettings build() throws IOException { + return new FeaturedContentNativeDashboardServiceSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClient.java new file mode 100644 index 000000000000..2c3a1d82b2a5 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClient.java @@ -0,0 +1,2165 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.stub.NativeDashboardServiceStub; +import com.google.cloud.chronicle.v1.stub.NativeDashboardServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service providing functionality for managing native dashboards. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+ *     NativeDashboardServiceClient.create()) {
+ *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+ *   NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build();
+ *   NativeDashboard response =
+ *       nativeDashboardServiceClient.createNativeDashboard(parent, nativeDashboard);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the NativeDashboardServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

CreateNativeDashboard

Create a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createNativeDashboard(CreateNativeDashboardRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createNativeDashboard(InstanceName parent, NativeDashboard nativeDashboard) + *

  • createNativeDashboard(String parent, NativeDashboard nativeDashboard) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createNativeDashboardCallable() + *

+ *

GetNativeDashboard

Get a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getNativeDashboard(GetNativeDashboardRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getNativeDashboard(NativeDashboardName name) + *

  • getNativeDashboard(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getNativeDashboardCallable() + *

+ *

ListNativeDashboards

List all dashboards.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listNativeDashboards(ListNativeDashboardsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listNativeDashboards(InstanceName parent) + *

  • listNativeDashboards(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listNativeDashboardsPagedCallable() + *

  • listNativeDashboardsCallable() + *

+ *

UpdateNativeDashboard

Update a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateNativeDashboard(UpdateNativeDashboardRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateNativeDashboard(NativeDashboard nativeDashboard, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateNativeDashboardCallable() + *

+ *

DuplicateNativeDashboard

Duplicate a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • duplicateNativeDashboard(DuplicateNativeDashboardRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • duplicateNativeDashboard(NativeDashboardName name, NativeDashboard nativeDashboard) + *

  • duplicateNativeDashboard(String name, NativeDashboard nativeDashboard) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • duplicateNativeDashboardCallable() + *

+ *

DeleteNativeDashboard

Delete a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteNativeDashboard(DeleteNativeDashboardRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteNativeDashboard(NativeDashboardName name) + *

  • deleteNativeDashboard(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteNativeDashboardCallable() + *

+ *

AddChart

Add chart in a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • addChart(AddChartRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • addChart(NativeDashboardName name, DashboardQuery dashboardQuery, DashboardChart dashboardChart) + *

  • addChart(String name, DashboardQuery dashboardQuery, DashboardChart dashboardChart) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • addChartCallable() + *

+ *

RemoveChart

Remove chart from a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • removeChart(RemoveChartRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • removeChart(NativeDashboardName name) + *

  • removeChart(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • removeChartCallable() + *

+ *

EditChart

Edit chart in a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • editChart(EditChartRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • editChart(NativeDashboardName name, DashboardQuery dashboardQuery, DashboardChart dashboardChart, FieldMask editMask) + *

  • editChart(String name, DashboardQuery dashboardQuery, DashboardChart dashboardChart, FieldMask editMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • editChartCallable() + *

+ *

DuplicateChart

Duplicate chart in a dashboard.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • duplicateChart(DuplicateChartRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • duplicateChart(NativeDashboardName name) + *

  • duplicateChart(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • duplicateChartCallable() + *

+ *

ExportNativeDashboards

Exports the dashboards.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • exportNativeDashboards(ExportNativeDashboardsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • exportNativeDashboards(InstanceName parent, List<String> names) + *

  • exportNativeDashboards(String parent, List<String> names) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • exportNativeDashboardsCallable() + *

+ *

ImportNativeDashboards

Imports the dashboards.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • importNativeDashboards(ImportNativeDashboardsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • importNativeDashboards(InstanceName parent, ImportNativeDashboardsInlineSource source) + *

  • importNativeDashboards(String parent, ImportNativeDashboardsInlineSource source) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • importNativeDashboardsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of NativeDashboardServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * NativeDashboardServiceSettings nativeDashboardServiceSettings =
+ *     NativeDashboardServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * NativeDashboardServiceClient nativeDashboardServiceClient =
+ *     NativeDashboardServiceClient.create(nativeDashboardServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * NativeDashboardServiceSettings nativeDashboardServiceSettings =
+ *     NativeDashboardServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * NativeDashboardServiceClient nativeDashboardServiceClient =
+ *     NativeDashboardServiceClient.create(nativeDashboardServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * NativeDashboardServiceSettings nativeDashboardServiceSettings =
+ *     NativeDashboardServiceSettings.newHttpJsonBuilder().build();
+ * NativeDashboardServiceClient nativeDashboardServiceClient =
+ *     NativeDashboardServiceClient.create(nativeDashboardServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class NativeDashboardServiceClient implements BackgroundResource { + private final NativeDashboardServiceSettings settings; + private final NativeDashboardServiceStub stub; + + /** Constructs an instance of NativeDashboardServiceClient with default settings. */ + public static final NativeDashboardServiceClient create() throws IOException { + return create(NativeDashboardServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of NativeDashboardServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final NativeDashboardServiceClient create(NativeDashboardServiceSettings settings) + throws IOException { + return new NativeDashboardServiceClient(settings); + } + + /** + * Constructs an instance of NativeDashboardServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(NativeDashboardServiceSettings). + */ + public static final NativeDashboardServiceClient create(NativeDashboardServiceStub stub) { + return new NativeDashboardServiceClient(stub); + } + + /** + * Constructs an instance of NativeDashboardServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected NativeDashboardServiceClient(NativeDashboardServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((NativeDashboardServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected NativeDashboardServiceClient(NativeDashboardServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final NativeDashboardServiceSettings getSettings() { + return settings; + } + + public NativeDashboardServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build();
+   *   NativeDashboard response =
+   *       nativeDashboardServiceClient.createNativeDashboard(parent, nativeDashboard);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this dashboard will be created. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param nativeDashboard Required. The dashboard to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard createNativeDashboard( + InstanceName parent, NativeDashboard nativeDashboard) { + CreateNativeDashboardRequest request = + CreateNativeDashboardRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setNativeDashboard(nativeDashboard) + .build(); + return createNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build();
+   *   NativeDashboard response =
+   *       nativeDashboardServiceClient.createNativeDashboard(parent, nativeDashboard);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this dashboard will be created. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param nativeDashboard Required. The dashboard to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard createNativeDashboard( + String parent, NativeDashboard nativeDashboard) { + CreateNativeDashboardRequest request = + CreateNativeDashboardRequest.newBuilder() + .setParent(parent) + .setNativeDashboard(nativeDashboard) + .build(); + return createNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   CreateNativeDashboardRequest request =
+   *       CreateNativeDashboardRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setNativeDashboard(NativeDashboard.newBuilder().build())
+   *           .build();
+   *   NativeDashboard response = nativeDashboardServiceClient.createNativeDashboard(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard createNativeDashboard(CreateNativeDashboardRequest request) { + return createNativeDashboardCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   CreateNativeDashboardRequest request =
+   *       CreateNativeDashboardRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setNativeDashboard(NativeDashboard.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.createNativeDashboardCallable().futureCall(request);
+   *   // Do something.
+   *   NativeDashboard response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createNativeDashboardCallable() { + return stub.createNativeDashboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   NativeDashboardName name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]");
+   *   NativeDashboard response = nativeDashboardServiceClient.getNativeDashboard(name);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to fetch. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard getNativeDashboard(NativeDashboardName name) { + GetNativeDashboardRequest request = + GetNativeDashboardRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]").toString();
+   *   NativeDashboard response = nativeDashboardServiceClient.getNativeDashboard(name);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to fetch. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard getNativeDashboard(String name) { + GetNativeDashboardRequest request = + GetNativeDashboardRequest.newBuilder().setName(name).build(); + return getNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   GetNativeDashboardRequest request =
+   *       GetNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setView(NativeDashboardView.forNumber(0))
+   *           .build();
+   *   NativeDashboard response = nativeDashboardServiceClient.getNativeDashboard(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard getNativeDashboard(GetNativeDashboardRequest request) { + return getNativeDashboardCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   GetNativeDashboardRequest request =
+   *       GetNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setView(NativeDashboardView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.getNativeDashboardCallable().futureCall(request);
+   *   // Do something.
+   *   NativeDashboard response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getNativeDashboardCallable() { + return stub.getNativeDashboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   for (NativeDashboard element :
+   *       nativeDashboardServiceClient.listNativeDashboards(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent owning this dashboard collection. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNativeDashboardsPagedResponse listNativeDashboards(InstanceName parent) { + ListNativeDashboardsRequest request = + ListNativeDashboardsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listNativeDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   for (NativeDashboard element :
+   *       nativeDashboardServiceClient.listNativeDashboards(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent owning this dashboard collection. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNativeDashboardsPagedResponse listNativeDashboards(String parent) { + ListNativeDashboardsRequest request = + ListNativeDashboardsRequest.newBuilder().setParent(parent).build(); + return listNativeDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   ListNativeDashboardsRequest request =
+   *       ListNativeDashboardsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(NativeDashboardView.forNumber(0))
+   *           .build();
+   *   for (NativeDashboard element :
+   *       nativeDashboardServiceClient.listNativeDashboards(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNativeDashboardsPagedResponse listNativeDashboards( + ListNativeDashboardsRequest request) { + return listNativeDashboardsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   ListNativeDashboardsRequest request =
+   *       ListNativeDashboardsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(NativeDashboardView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.listNativeDashboardsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (NativeDashboard element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listNativeDashboardsPagedCallable() { + return stub.listNativeDashboardsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   ListNativeDashboardsRequest request =
+   *       ListNativeDashboardsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(NativeDashboardView.forNumber(0))
+   *           .build();
+   *   while (true) {
+   *     ListNativeDashboardsResponse response =
+   *         nativeDashboardServiceClient.listNativeDashboardsCallable().call(request);
+   *     for (NativeDashboard element : response.getNativeDashboardsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listNativeDashboardsCallable() { + return stub.listNativeDashboardsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   NativeDashboard response =
+   *       nativeDashboardServiceClient.updateNativeDashboard(nativeDashboard, updateMask);
+   * }
+   * }
+ * + * @param nativeDashboard Required. The dashboard to update. + *

The dashboard's `name` field is used to identify the dashboard to update. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param updateMask Required. LINT.IfChange(update_mask_values) The list of fields to update. + * Supported paths are - display_name description definition.filters definition.charts type + * access dashboard_user_data.is_pinned + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard updateNativeDashboard( + NativeDashboard nativeDashboard, FieldMask updateMask) { + UpdateNativeDashboardRequest request = + UpdateNativeDashboardRequest.newBuilder() + .setNativeDashboard(nativeDashboard) + .setUpdateMask(updateMask) + .build(); + return updateNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   UpdateNativeDashboardRequest request =
+   *       UpdateNativeDashboardRequest.newBuilder()
+   *           .setNativeDashboard(NativeDashboard.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   NativeDashboard response = nativeDashboardServiceClient.updateNativeDashboard(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard updateNativeDashboard(UpdateNativeDashboardRequest request) { + return updateNativeDashboardCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   UpdateNativeDashboardRequest request =
+   *       UpdateNativeDashboardRequest.newBuilder()
+   *           .setNativeDashboard(NativeDashboard.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.updateNativeDashboardCallable().futureCall(request);
+   *   // Do something.
+   *   NativeDashboard response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateNativeDashboardCallable() { + return stub.updateNativeDashboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Duplicate a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   NativeDashboardName name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]");
+   *   NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build();
+   *   NativeDashboard response =
+   *       nativeDashboardServiceClient.duplicateNativeDashboard(name, nativeDashboard);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to duplicate. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param nativeDashboard Required. Any fields that need modification can be passed through this + * like name, description etc. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard duplicateNativeDashboard( + NativeDashboardName name, NativeDashboard nativeDashboard) { + DuplicateNativeDashboardRequest request = + DuplicateNativeDashboardRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setNativeDashboard(nativeDashboard) + .build(); + return duplicateNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Duplicate a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]").toString();
+   *   NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build();
+   *   NativeDashboard response =
+   *       nativeDashboardServiceClient.duplicateNativeDashboard(name, nativeDashboard);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to duplicate. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param nativeDashboard Required. Any fields that need modification can be passed through this + * like name, description etc. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard duplicateNativeDashboard( + String name, NativeDashboard nativeDashboard) { + DuplicateNativeDashboardRequest request = + DuplicateNativeDashboardRequest.newBuilder() + .setName(name) + .setNativeDashboard(nativeDashboard) + .build(); + return duplicateNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Duplicate a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   DuplicateNativeDashboardRequest request =
+   *       DuplicateNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setNativeDashboard(NativeDashboard.newBuilder().build())
+   *           .build();
+   *   NativeDashboard response = nativeDashboardServiceClient.duplicateNativeDashboard(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard duplicateNativeDashboard(DuplicateNativeDashboardRequest request) { + return duplicateNativeDashboardCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Duplicate a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   DuplicateNativeDashboardRequest request =
+   *       DuplicateNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setNativeDashboard(NativeDashboard.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.duplicateNativeDashboardCallable().futureCall(request);
+   *   // Do something.
+   *   NativeDashboard response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + duplicateNativeDashboardCallable() { + return stub.duplicateNativeDashboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   NativeDashboardName name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]");
+   *   nativeDashboardServiceClient.deleteNativeDashboard(name);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to delete. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteNativeDashboard(NativeDashboardName name) { + DeleteNativeDashboardRequest request = + DeleteNativeDashboardRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]").toString();
+   *   nativeDashboardServiceClient.deleteNativeDashboard(name);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to delete. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteNativeDashboard(String name) { + DeleteNativeDashboardRequest request = + DeleteNativeDashboardRequest.newBuilder().setName(name).build(); + deleteNativeDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   DeleteNativeDashboardRequest request =
+   *       DeleteNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .build();
+   *   nativeDashboardServiceClient.deleteNativeDashboard(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteNativeDashboard(DeleteNativeDashboardRequest request) { + deleteNativeDashboardCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   DeleteNativeDashboardRequest request =
+   *       DeleteNativeDashboardRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.deleteNativeDashboardCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteNativeDashboardCallable() { + return stub.deleteNativeDashboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   NativeDashboardName name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]");
+   *   DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build();
+   *   DashboardChart dashboardChart = DashboardChart.newBuilder().build();
+   *   AddChartResponse response =
+   *       nativeDashboardServiceClient.addChart(name, dashboardQuery, dashboardChart);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to add chart in. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param dashboardQuery Optional. Query used to create the chart. + * @param dashboardChart Required. Chart to be added to the dashboard. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddChartResponse addChart( + NativeDashboardName name, DashboardQuery dashboardQuery, DashboardChart dashboardChart) { + AddChartRequest request = + AddChartRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDashboardQuery(dashboardQuery) + .setDashboardChart(dashboardChart) + .build(); + return addChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]").toString();
+   *   DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build();
+   *   DashboardChart dashboardChart = DashboardChart.newBuilder().build();
+   *   AddChartResponse response =
+   *       nativeDashboardServiceClient.addChart(name, dashboardQuery, dashboardChart);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to add chart in. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param dashboardQuery Optional. Query used to create the chart. + * @param dashboardChart Required. Chart to be added to the dashboard. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddChartResponse addChart( + String name, DashboardQuery dashboardQuery, DashboardChart dashboardChart) { + AddChartRequest request = + AddChartRequest.newBuilder() + .setName(name) + .setDashboardQuery(dashboardQuery) + .setDashboardChart(dashboardChart) + .build(); + return addChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   AddChartRequest request =
+   *       AddChartRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setDashboardQuery(DashboardQuery.newBuilder().build())
+   *           .setDashboardChart(DashboardChart.newBuilder().build())
+   *           .setChartLayout(DashboardDefinition.ChartConfig.ChartLayout.newBuilder().build())
+   *           .build();
+   *   AddChartResponse response = nativeDashboardServiceClient.addChart(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddChartResponse addChart(AddChartRequest request) { + return addChartCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   AddChartRequest request =
+   *       AddChartRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setDashboardQuery(DashboardQuery.newBuilder().build())
+   *           .setDashboardChart(DashboardChart.newBuilder().build())
+   *           .setChartLayout(DashboardDefinition.ChartConfig.ChartLayout.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.addChartCallable().futureCall(request);
+   *   // Do something.
+   *   AddChartResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable addChartCallable() { + return stub.addChartCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Remove chart from a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   NativeDashboardName name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]");
+   *   NativeDashboard response = nativeDashboardServiceClient.removeChart(name);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to remove chart from. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard removeChart(NativeDashboardName name) { + RemoveChartRequest request = + RemoveChartRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return removeChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Remove chart from a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]").toString();
+   *   NativeDashboard response = nativeDashboardServiceClient.removeChart(name);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to remove chart from. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard removeChart(String name) { + RemoveChartRequest request = RemoveChartRequest.newBuilder().setName(name).build(); + return removeChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Remove chart from a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   RemoveChartRequest request =
+   *       RemoveChartRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setDashboardChart(
+   *               DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]")
+   *                   .toString())
+   *           .build();
+   *   NativeDashboard response = nativeDashboardServiceClient.removeChart(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NativeDashboard removeChart(RemoveChartRequest request) { + return removeChartCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Remove chart from a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   RemoveChartRequest request =
+   *       RemoveChartRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setDashboardChart(
+   *               DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.removeChartCallable().futureCall(request);
+   *   // Do something.
+   *   NativeDashboard response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable removeChartCallable() { + return stub.removeChartCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Edit chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   NativeDashboardName name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]");
+   *   DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build();
+   *   DashboardChart dashboardChart = DashboardChart.newBuilder().build();
+   *   FieldMask editMask = FieldMask.newBuilder().build();
+   *   EditChartResponse response =
+   *       nativeDashboardServiceClient.editChart(name, dashboardQuery, dashboardChart, editMask);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to edit chart in. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param dashboardQuery Optional. Query for the edited chart. + * @param dashboardChart Optional. Edited chart. + * @param editMask Required. The list of fields to edit for chart and query. Supported paths in + * chart are - dashboard_chart.display_name dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources dashboard_chart.visualization + * dashboard_chart.visualization.button dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config Supported paths in query are - dashboard_query.query + * dashboard_query.input + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EditChartResponse editChart( + NativeDashboardName name, + DashboardQuery dashboardQuery, + DashboardChart dashboardChart, + FieldMask editMask) { + EditChartRequest request = + EditChartRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDashboardQuery(dashboardQuery) + .setDashboardChart(dashboardChart) + .setEditMask(editMask) + .build(); + return editChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Edit chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]").toString();
+   *   DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build();
+   *   DashboardChart dashboardChart = DashboardChart.newBuilder().build();
+   *   FieldMask editMask = FieldMask.newBuilder().build();
+   *   EditChartResponse response =
+   *       nativeDashboardServiceClient.editChart(name, dashboardQuery, dashboardChart, editMask);
+   * }
+   * }
+ * + * @param name Required. The dashboard name to edit chart in. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param dashboardQuery Optional. Query for the edited chart. + * @param dashboardChart Optional. Edited chart. + * @param editMask Required. The list of fields to edit for chart and query. Supported paths in + * chart are - dashboard_chart.display_name dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources dashboard_chart.visualization + * dashboard_chart.visualization.button dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config Supported paths in query are - dashboard_query.query + * dashboard_query.input + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EditChartResponse editChart( + String name, + DashboardQuery dashboardQuery, + DashboardChart dashboardChart, + FieldMask editMask) { + EditChartRequest request = + EditChartRequest.newBuilder() + .setName(name) + .setDashboardQuery(dashboardQuery) + .setDashboardChart(dashboardChart) + .setEditMask(editMask) + .build(); + return editChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Edit chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   EditChartRequest request =
+   *       EditChartRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setDashboardQuery(DashboardQuery.newBuilder().build())
+   *           .setDashboardChart(DashboardChart.newBuilder().build())
+   *           .setEditMask(FieldMask.newBuilder().build())
+   *           .addAllLanguageFeatures(new ArrayList())
+   *           .build();
+   *   EditChartResponse response = nativeDashboardServiceClient.editChart(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EditChartResponse editChart(EditChartRequest request) { + return editChartCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Edit chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   EditChartRequest request =
+   *       EditChartRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setDashboardQuery(DashboardQuery.newBuilder().build())
+   *           .setDashboardChart(DashboardChart.newBuilder().build())
+   *           .setEditMask(FieldMask.newBuilder().build())
+   *           .addAllLanguageFeatures(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.editChartCallable().futureCall(request);
+   *   // Do something.
+   *   EditChartResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable editChartCallable() { + return stub.editChartCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Duplicate chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   NativeDashboardName name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]");
+   *   DuplicateChartResponse response = nativeDashboardServiceClient.duplicateChart(name);
+   * }
+   * }
+ * + * @param name Required. The dashboard name that involves chart duplication. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DuplicateChartResponse duplicateChart(NativeDashboardName name) { + DuplicateChartRequest request = + DuplicateChartRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return duplicateChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Duplicate chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String name =
+   *       NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]").toString();
+   *   DuplicateChartResponse response = nativeDashboardServiceClient.duplicateChart(name);
+   * }
+   * }
+ * + * @param name Required. The dashboard name that involves chart duplication. Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DuplicateChartResponse duplicateChart(String name) { + DuplicateChartRequest request = DuplicateChartRequest.newBuilder().setName(name).build(); + return duplicateChart(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Duplicate chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   DuplicateChartRequest request =
+   *       DuplicateChartRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setDashboardChart(
+   *               DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]")
+   *                   .toString())
+   *           .build();
+   *   DuplicateChartResponse response = nativeDashboardServiceClient.duplicateChart(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DuplicateChartResponse duplicateChart(DuplicateChartRequest request) { + return duplicateChartCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Duplicate chart in a dashboard. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   DuplicateChartRequest request =
+   *       DuplicateChartRequest.newBuilder()
+   *           .setName(
+   *               NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]")
+   *                   .toString())
+   *           .setDashboardChart(
+   *               DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.duplicateChartCallable().futureCall(request);
+   *   // Do something.
+   *   DuplicateChartResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + duplicateChartCallable() { + return stub.duplicateChartCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   List names = new ArrayList<>();
+   *   ExportNativeDashboardsResponse response =
+   *       nativeDashboardServiceClient.exportNativeDashboards(parent, names);
+   * }
+   * }
+ * + * @param parent Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @param names Required. The resource names of the dashboards to export. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExportNativeDashboardsResponse exportNativeDashboards( + InstanceName parent, List names) { + ExportNativeDashboardsRequest request = + ExportNativeDashboardsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return exportNativeDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   List names = new ArrayList<>();
+   *   ExportNativeDashboardsResponse response =
+   *       nativeDashboardServiceClient.exportNativeDashboards(parent, names);
+   * }
+   * }
+ * + * @param parent Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @param names Required. The resource names of the dashboards to export. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExportNativeDashboardsResponse exportNativeDashboards( + String parent, List names) { + ExportNativeDashboardsRequest request = + ExportNativeDashboardsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return exportNativeDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   ExportNativeDashboardsRequest request =
+   *       ExportNativeDashboardsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ExportNativeDashboardsResponse response =
+   *       nativeDashboardServiceClient.exportNativeDashboards(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExportNativeDashboardsResponse exportNativeDashboards( + ExportNativeDashboardsRequest request) { + return exportNativeDashboardsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   ExportNativeDashboardsRequest request =
+   *       ExportNativeDashboardsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.exportNativeDashboardsCallable().futureCall(request);
+   *   // Do something.
+   *   ExportNativeDashboardsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + exportNativeDashboardsCallable() { + return stub.exportNativeDashboardsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   ImportNativeDashboardsInlineSource source =
+   *       ImportNativeDashboardsInlineSource.newBuilder().build();
+   *   ImportNativeDashboardsResponse response =
+   *       nativeDashboardServiceClient.importNativeDashboards(parent, source);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this dashboard will be created. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param source Required. The data will imported from this proto. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImportNativeDashboardsResponse importNativeDashboards( + InstanceName parent, ImportNativeDashboardsInlineSource source) { + ImportNativeDashboardsRequest request = + ImportNativeDashboardsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSource(source) + .build(); + return importNativeDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   ImportNativeDashboardsInlineSource source =
+   *       ImportNativeDashboardsInlineSource.newBuilder().build();
+   *   ImportNativeDashboardsResponse response =
+   *       nativeDashboardServiceClient.importNativeDashboards(parent, source);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this dashboard will be created. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param source Required. The data will imported from this proto. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImportNativeDashboardsResponse importNativeDashboards( + String parent, ImportNativeDashboardsInlineSource source) { + ImportNativeDashboardsRequest request = + ImportNativeDashboardsRequest.newBuilder().setParent(parent).setSource(source).build(); + return importNativeDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   ImportNativeDashboardsRequest request =
+   *       ImportNativeDashboardsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setSource(ImportNativeDashboardsInlineSource.newBuilder().build())
+   *           .build();
+   *   ImportNativeDashboardsResponse response =
+   *       nativeDashboardServiceClient.importNativeDashboards(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImportNativeDashboardsResponse importNativeDashboards( + ImportNativeDashboardsRequest request) { + return importNativeDashboardsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the dashboards. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+   *     NativeDashboardServiceClient.create()) {
+   *   ImportNativeDashboardsRequest request =
+   *       ImportNativeDashboardsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setSource(ImportNativeDashboardsInlineSource.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       nativeDashboardServiceClient.importNativeDashboardsCallable().futureCall(request);
+   *   // Do something.
+   *   ImportNativeDashboardsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + importNativeDashboardsCallable() { + return stub.importNativeDashboardsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListNativeDashboardsPagedResponse + extends AbstractPagedListResponse< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + NativeDashboard, + ListNativeDashboardsPage, + ListNativeDashboardsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListNativeDashboardsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListNativeDashboardsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListNativeDashboardsPagedResponse(ListNativeDashboardsPage page) { + super(page, ListNativeDashboardsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListNativeDashboardsPage + extends AbstractPage< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + NativeDashboard, + ListNativeDashboardsPage> { + + private ListNativeDashboardsPage( + PageContext + context, + ListNativeDashboardsResponse response) { + super(context, response); + } + + private static ListNativeDashboardsPage createEmptyPage() { + return new ListNativeDashboardsPage(null, null); + } + + @Override + protected ListNativeDashboardsPage createPage( + PageContext + context, + ListNativeDashboardsResponse response) { + return new ListNativeDashboardsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListNativeDashboardsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + NativeDashboard, + ListNativeDashboardsPage, + ListNativeDashboardsFixedSizeCollection> { + + private ListNativeDashboardsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListNativeDashboardsFixedSizeCollection createEmptyCollection() { + return new ListNativeDashboardsFixedSizeCollection(null, 0); + } + + @Override + protected ListNativeDashboardsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListNativeDashboardsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceSettings.java new file mode 100644 index 000000000000..39468e2eac46 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceSettings.java @@ -0,0 +1,356 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.NativeDashboardServiceClient.ListNativeDashboardsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.stub.NativeDashboardServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link NativeDashboardServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createNativeDashboard: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * NativeDashboardServiceSettings.Builder nativeDashboardServiceSettingsBuilder =
+ *     NativeDashboardServiceSettings.newBuilder();
+ * nativeDashboardServiceSettingsBuilder
+ *     .createNativeDashboardSettings()
+ *     .setRetrySettings(
+ *         nativeDashboardServiceSettingsBuilder
+ *             .createNativeDashboardSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * NativeDashboardServiceSettings nativeDashboardServiceSettings =
+ *     nativeDashboardServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class NativeDashboardServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createNativeDashboard. */ + public UnaryCallSettings + createNativeDashboardSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).createNativeDashboardSettings(); + } + + /** Returns the object with the settings used for calls to getNativeDashboard. */ + public UnaryCallSettings + getNativeDashboardSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).getNativeDashboardSettings(); + } + + /** Returns the object with the settings used for calls to listNativeDashboards. */ + public PagedCallSettings< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + ListNativeDashboardsPagedResponse> + listNativeDashboardsSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).listNativeDashboardsSettings(); + } + + /** Returns the object with the settings used for calls to updateNativeDashboard. */ + public UnaryCallSettings + updateNativeDashboardSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).updateNativeDashboardSettings(); + } + + /** Returns the object with the settings used for calls to duplicateNativeDashboard. */ + public UnaryCallSettings + duplicateNativeDashboardSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()) + .duplicateNativeDashboardSettings(); + } + + /** Returns the object with the settings used for calls to deleteNativeDashboard. */ + public UnaryCallSettings deleteNativeDashboardSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).deleteNativeDashboardSettings(); + } + + /** Returns the object with the settings used for calls to addChart. */ + public UnaryCallSettings addChartSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).addChartSettings(); + } + + /** Returns the object with the settings used for calls to removeChart. */ + public UnaryCallSettings removeChartSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).removeChartSettings(); + } + + /** Returns the object with the settings used for calls to editChart. */ + public UnaryCallSettings editChartSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).editChartSettings(); + } + + /** Returns the object with the settings used for calls to duplicateChart. */ + public UnaryCallSettings duplicateChartSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()).duplicateChartSettings(); + } + + /** Returns the object with the settings used for calls to exportNativeDashboards. */ + public UnaryCallSettings + exportNativeDashboardsSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()) + .exportNativeDashboardsSettings(); + } + + /** Returns the object with the settings used for calls to importNativeDashboards. */ + public UnaryCallSettings + importNativeDashboardsSettings() { + return ((NativeDashboardServiceStubSettings) getStubSettings()) + .importNativeDashboardsSettings(); + } + + public static final NativeDashboardServiceSettings create(NativeDashboardServiceStubSettings stub) + throws IOException { + return new NativeDashboardServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return NativeDashboardServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return NativeDashboardServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return NativeDashboardServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return NativeDashboardServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return NativeDashboardServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return NativeDashboardServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return NativeDashboardServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return NativeDashboardServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected NativeDashboardServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for NativeDashboardServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(NativeDashboardServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(NativeDashboardServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(NativeDashboardServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(NativeDashboardServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(NativeDashboardServiceStubSettings.newHttpJsonBuilder()); + } + + public NativeDashboardServiceStubSettings.Builder getStubSettingsBuilder() { + return ((NativeDashboardServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createNativeDashboard. */ + public UnaryCallSettings.Builder + createNativeDashboardSettings() { + return getStubSettingsBuilder().createNativeDashboardSettings(); + } + + /** Returns the builder for the settings used for calls to getNativeDashboard. */ + public UnaryCallSettings.Builder + getNativeDashboardSettings() { + return getStubSettingsBuilder().getNativeDashboardSettings(); + } + + /** Returns the builder for the settings used for calls to listNativeDashboards. */ + public PagedCallSettings.Builder< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + ListNativeDashboardsPagedResponse> + listNativeDashboardsSettings() { + return getStubSettingsBuilder().listNativeDashboardsSettings(); + } + + /** Returns the builder for the settings used for calls to updateNativeDashboard. */ + public UnaryCallSettings.Builder + updateNativeDashboardSettings() { + return getStubSettingsBuilder().updateNativeDashboardSettings(); + } + + /** Returns the builder for the settings used for calls to duplicateNativeDashboard. */ + public UnaryCallSettings.Builder + duplicateNativeDashboardSettings() { + return getStubSettingsBuilder().duplicateNativeDashboardSettings(); + } + + /** Returns the builder for the settings used for calls to deleteNativeDashboard. */ + public UnaryCallSettings.Builder + deleteNativeDashboardSettings() { + return getStubSettingsBuilder().deleteNativeDashboardSettings(); + } + + /** Returns the builder for the settings used for calls to addChart. */ + public UnaryCallSettings.Builder addChartSettings() { + return getStubSettingsBuilder().addChartSettings(); + } + + /** Returns the builder for the settings used for calls to removeChart. */ + public UnaryCallSettings.Builder removeChartSettings() { + return getStubSettingsBuilder().removeChartSettings(); + } + + /** Returns the builder for the settings used for calls to editChart. */ + public UnaryCallSettings.Builder editChartSettings() { + return getStubSettingsBuilder().editChartSettings(); + } + + /** Returns the builder for the settings used for calls to duplicateChart. */ + public UnaryCallSettings.Builder + duplicateChartSettings() { + return getStubSettingsBuilder().duplicateChartSettings(); + } + + /** Returns the builder for the settings used for calls to exportNativeDashboards. */ + public UnaryCallSettings.Builder + exportNativeDashboardsSettings() { + return getStubSettingsBuilder().exportNativeDashboardsSettings(); + } + + /** Returns the builder for the settings used for calls to importNativeDashboards. */ + public UnaryCallSettings.Builder + importNativeDashboardsSettings() { + return getStubSettingsBuilder().importNativeDashboardsSettings(); + } + + @Override + public NativeDashboardServiceSettings build() throws IOException { + return new NativeDashboardServiceSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json index be32a116d6e9..86e8723a51eb 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json @@ -5,6 +5,54 @@ "protoPackage": "google.cloud.chronicle.v1", "libraryPackage": "com.google.cloud.chronicle.v1", "services": { + "BigQueryExportService": { + "clients": { + "grpc": { + "libraryClient": "BigQueryExportServiceClient", + "rpcs": { + "GetBigQueryExport": { + "methods": ["getBigQueryExport", "getBigQueryExport", "getBigQueryExport", "getBigQueryExportCallable"] + }, + "ProvisionBigQueryExport": { + "methods": ["provisionBigQueryExport", "provisionBigQueryExport", "provisionBigQueryExport", "provisionBigQueryExportCallable"] + }, + "UpdateBigQueryExport": { + "methods": ["updateBigQueryExport", "updateBigQueryExport", "updateBigQueryExportCallable"] + } + } + } + } + }, + "DashboardChartService": { + "clients": { + "grpc": { + "libraryClient": "DashboardChartServiceClient", + "rpcs": { + "BatchGetDashboardCharts": { + "methods": ["batchGetDashboardCharts", "batchGetDashboardCharts", "batchGetDashboardCharts", "batchGetDashboardChartsCallable"] + }, + "GetDashboardChart": { + "methods": ["getDashboardChart", "getDashboardChart", "getDashboardChart", "getDashboardChartCallable"] + } + } + } + } + }, + "DashboardQueryService": { + "clients": { + "grpc": { + "libraryClient": "DashboardQueryServiceClient", + "rpcs": { + "ExecuteDashboardQuery": { + "methods": ["executeDashboardQuery", "executeDashboardQuery", "executeDashboardQuery", "executeDashboardQueryCallable"] + }, + "GetDashboardQuery": { + "methods": ["getDashboardQuery", "getDashboardQuery", "getDashboardQuery", "getDashboardQueryCallable"] + } + } + } + } + }, "DataAccessControlService": { "clients": { "grpc": { @@ -122,6 +170,24 @@ } } }, + "FeaturedContentNativeDashboardService": { + "clients": { + "grpc": { + "libraryClient": "FeaturedContentNativeDashboardServiceClient", + "rpcs": { + "GetFeaturedContentNativeDashboard": { + "methods": ["getFeaturedContentNativeDashboard", "getFeaturedContentNativeDashboard", "getFeaturedContentNativeDashboard", "getFeaturedContentNativeDashboardCallable"] + }, + "InstallFeaturedContentNativeDashboard": { + "methods": ["installFeaturedContentNativeDashboard", "installFeaturedContentNativeDashboard", "installFeaturedContentNativeDashboard", "installFeaturedContentNativeDashboardCallable"] + }, + "ListFeaturedContentNativeDashboards": { + "methods": ["listFeaturedContentNativeDashboards", "listFeaturedContentNativeDashboards", "listFeaturedContentNativeDashboards", "listFeaturedContentNativeDashboardsPagedCallable", "listFeaturedContentNativeDashboardsCallable"] + } + } + } + } + }, "InstanceService": { "clients": { "grpc": { @@ -134,6 +200,51 @@ } } }, + "NativeDashboardService": { + "clients": { + "grpc": { + "libraryClient": "NativeDashboardServiceClient", + "rpcs": { + "AddChart": { + "methods": ["addChart", "addChart", "addChart", "addChartCallable"] + }, + "CreateNativeDashboard": { + "methods": ["createNativeDashboard", "createNativeDashboard", "createNativeDashboard", "createNativeDashboardCallable"] + }, + "DeleteNativeDashboard": { + "methods": ["deleteNativeDashboard", "deleteNativeDashboard", "deleteNativeDashboard", "deleteNativeDashboardCallable"] + }, + "DuplicateChart": { + "methods": ["duplicateChart", "duplicateChart", "duplicateChart", "duplicateChartCallable"] + }, + "DuplicateNativeDashboard": { + "methods": ["duplicateNativeDashboard", "duplicateNativeDashboard", "duplicateNativeDashboard", "duplicateNativeDashboardCallable"] + }, + "EditChart": { + "methods": ["editChart", "editChart", "editChart", "editChartCallable"] + }, + "ExportNativeDashboards": { + "methods": ["exportNativeDashboards", "exportNativeDashboards", "exportNativeDashboards", "exportNativeDashboardsCallable"] + }, + "GetNativeDashboard": { + "methods": ["getNativeDashboard", "getNativeDashboard", "getNativeDashboard", "getNativeDashboardCallable"] + }, + "ImportNativeDashboards": { + "methods": ["importNativeDashboards", "importNativeDashboards", "importNativeDashboards", "importNativeDashboardsCallable"] + }, + "ListNativeDashboards": { + "methods": ["listNativeDashboards", "listNativeDashboards", "listNativeDashboards", "listNativeDashboardsPagedCallable", "listNativeDashboardsCallable"] + }, + "RemoveChart": { + "methods": ["removeChart", "removeChart", "removeChart", "removeChartCallable"] + }, + "UpdateNativeDashboard": { + "methods": ["updateNativeDashboard", "updateNativeDashboard", "updateNativeDashboardCallable"] + } + } + } + } + }, "ReferenceListService": { "clients": { "grpc": { diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java index 651406dd3777..bbf0be59f2e0 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java @@ -19,6 +19,66 @@ * *

The interfaces provided are listed below, along with usage samples. * + *

======================= BigQueryExportServiceClient ======================= + * + *

Service Description: Service for managing BigQuery export configurations for Chronicle + * instances. + * + *

Sample for BigQueryExportServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BigQueryExportServiceClient bigQueryExportServiceClient =
+ *     BigQueryExportServiceClient.create()) {
+ *   BigQueryExportName name = BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+ *   BigQueryExport response = bigQueryExportServiceClient.getBigQueryExport(name);
+ * }
+ * }
+ * + *

======================= DashboardChartServiceClient ======================= + * + *

Service Description: A service providing functionality for managing dashboards' charts. + * + *

Sample for DashboardChartServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DashboardChartServiceClient dashboardChartServiceClient =
+ *     DashboardChartServiceClient.create()) {
+ *   DashboardChartName name =
+ *       DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]");
+ *   DashboardChart response = dashboardChartServiceClient.getDashboardChart(name);
+ * }
+ * }
+ * + *

======================= DashboardQueryServiceClient ======================= + * + *

Service Description: A service providing functionality for managing dashboards' queries. + * + *

Sample for DashboardQueryServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DashboardQueryServiceClient dashboardQueryServiceClient =
+ *     DashboardQueryServiceClient.create()) {
+ *   DashboardQueryName name =
+ *       DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]");
+ *   DashboardQuery response = dashboardQueryServiceClient.getDashboardQuery(name);
+ * }
+ * }
+ * *

======================= DataAccessControlServiceClient ======================= * *

Service Description: DataAccessControlService exposes resources and endpoints related to data @@ -81,6 +141,29 @@ * } * } * + *

======================= FeaturedContentNativeDashboardServiceClient ======================= + * + *

Service Description: This service provides functionality for managing + * FeaturedContentNativeDashboard. + * + *

Sample for FeaturedContentNativeDashboardServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient =
+ *     FeaturedContentNativeDashboardServiceClient.create()) {
+ *   FeaturedContentNativeDashboardName name =
+ *       FeaturedContentNativeDashboardName.of(
+ *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
+ *   FeaturedContentNativeDashboard response =
+ *       featuredContentNativeDashboardServiceClient.getFeaturedContentNativeDashboard(name);
+ * }
+ * }
+ * *

======================= InstanceServiceClient ======================= * *

Service Description: InstanceService provides the entry interface for the Chronicle API. @@ -99,6 +182,27 @@ * } * } * + *

======================= NativeDashboardServiceClient ======================= + * + *

Service Description: A service providing functionality for managing native dashboards. + * + *

Sample for NativeDashboardServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NativeDashboardServiceClient nativeDashboardServiceClient =
+ *     NativeDashboardServiceClient.create()) {
+ *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+ *   NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build();
+ *   NativeDashboard response =
+ *       nativeDashboardServiceClient.createNativeDashboard(parent, nativeDashboard);
+ * }
+ * }
+ * *

======================= ReferenceListServiceClient ======================= * *

Service Description: ReferenceListService provides an interface for managing reference lists. diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStub.java new file mode 100644 index 000000000000..44ba18932c3d --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStub.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.BigQueryExport; +import com.google.cloud.chronicle.v1.GetBigQueryExportRequest; +import com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest; +import com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the BigQueryExportService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class BigQueryExportServiceStub implements BackgroundResource { + + public UnaryCallable getBigQueryExportCallable() { + throw new UnsupportedOperationException("Not implemented: getBigQueryExportCallable()"); + } + + public UnaryCallable updateBigQueryExportCallable() { + throw new UnsupportedOperationException("Not implemented: updateBigQueryExportCallable()"); + } + + public UnaryCallable + provisionBigQueryExportCallable() { + throw new UnsupportedOperationException("Not implemented: provisionBigQueryExportCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStubSettings.java new file mode 100644 index 000000000000..cd12b94ad386 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStubSettings.java @@ -0,0 +1,419 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.BigQueryExport; +import com.google.cloud.chronicle.v1.GetBigQueryExportRequest; +import com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest; +import com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BigQueryExportServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getBigQueryExport: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BigQueryExportServiceStubSettings.Builder bigQueryExportServiceSettingsBuilder =
+ *     BigQueryExportServiceStubSettings.newBuilder();
+ * bigQueryExportServiceSettingsBuilder
+ *     .getBigQueryExportSettings()
+ *     .setRetrySettings(
+ *         bigQueryExportServiceSettingsBuilder
+ *             .getBigQueryExportSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * BigQueryExportServiceStubSettings bigQueryExportServiceSettings =
+ *     bigQueryExportServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class BigQueryExportServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + getBigQueryExportSettings; + private final UnaryCallSettings + updateBigQueryExportSettings; + private final UnaryCallSettings + provisionBigQueryExportSettings; + + /** Returns the object with the settings used for calls to getBigQueryExport. */ + public UnaryCallSettings getBigQueryExportSettings() { + return getBigQueryExportSettings; + } + + /** Returns the object with the settings used for calls to updateBigQueryExport. */ + public UnaryCallSettings + updateBigQueryExportSettings() { + return updateBigQueryExportSettings; + } + + /** Returns the object with the settings used for calls to provisionBigQueryExport. */ + public UnaryCallSettings + provisionBigQueryExportSettings() { + return provisionBigQueryExportSettings; + } + + public BigQueryExportServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcBigQueryExportServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBigQueryExportServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "chronicle"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "chronicle.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "chronicle.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BigQueryExportServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BigQueryExportServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BigQueryExportServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BigQueryExportServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getBigQueryExportSettings = settingsBuilder.getBigQueryExportSettings().build(); + updateBigQueryExportSettings = settingsBuilder.updateBigQueryExportSettings().build(); + provisionBigQueryExportSettings = settingsBuilder.provisionBigQueryExportSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-chronicle") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for BigQueryExportServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getBigQueryExportSettings; + private final UnaryCallSettings.Builder + updateBigQueryExportSettings; + private final UnaryCallSettings.Builder + provisionBigQueryExportSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(120000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(120000L)) + .setTotalTimeoutDuration(Duration.ofMillis(120000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getBigQueryExportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBigQueryExportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + provisionBigQueryExportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getBigQueryExportSettings, + updateBigQueryExportSettings, + provisionBigQueryExportSettings); + initDefaults(this); + } + + protected Builder(BigQueryExportServiceStubSettings settings) { + super(settings); + + getBigQueryExportSettings = settings.getBigQueryExportSettings.toBuilder(); + updateBigQueryExportSettings = settings.updateBigQueryExportSettings.toBuilder(); + provisionBigQueryExportSettings = settings.provisionBigQueryExportSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getBigQueryExportSettings, + updateBigQueryExportSettings, + provisionBigQueryExportSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getBigQueryExportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateBigQueryExportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .provisionBigQueryExportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getBigQueryExport. */ + public UnaryCallSettings.Builder + getBigQueryExportSettings() { + return getBigQueryExportSettings; + } + + /** Returns the builder for the settings used for calls to updateBigQueryExport. */ + public UnaryCallSettings.Builder + updateBigQueryExportSettings() { + return updateBigQueryExportSettings; + } + + /** Returns the builder for the settings used for calls to provisionBigQueryExport. */ + public UnaryCallSettings.Builder + provisionBigQueryExportSettings() { + return provisionBigQueryExportSettings; + } + + @Override + public BigQueryExportServiceStubSettings build() throws IOException { + return new BigQueryExportServiceStubSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStub.java new file mode 100644 index 000000000000..154ca5eca56a --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStub.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest; +import com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse; +import com.google.cloud.chronicle.v1.DashboardChart; +import com.google.cloud.chronicle.v1.GetDashboardChartRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DashboardChartService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DashboardChartServiceStub implements BackgroundResource { + + public UnaryCallable getDashboardChartCallable() { + throw new UnsupportedOperationException("Not implemented: getDashboardChartCallable()"); + } + + public UnaryCallable + batchGetDashboardChartsCallable() { + throw new UnsupportedOperationException("Not implemented: batchGetDashboardChartsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStubSettings.java new file mode 100644 index 000000000000..26b716cabf02 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStubSettings.java @@ -0,0 +1,393 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest; +import com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse; +import com.google.cloud.chronicle.v1.DashboardChart; +import com.google.cloud.chronicle.v1.GetDashboardChartRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DashboardChartServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDashboardChart: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardChartServiceStubSettings.Builder dashboardChartServiceSettingsBuilder =
+ *     DashboardChartServiceStubSettings.newBuilder();
+ * dashboardChartServiceSettingsBuilder
+ *     .getDashboardChartSettings()
+ *     .setRetrySettings(
+ *         dashboardChartServiceSettingsBuilder
+ *             .getDashboardChartSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DashboardChartServiceStubSettings dashboardChartServiceSettings =
+ *     dashboardChartServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class DashboardChartServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + getDashboardChartSettings; + private final UnaryCallSettings + batchGetDashboardChartsSettings; + + /** Returns the object with the settings used for calls to getDashboardChart. */ + public UnaryCallSettings getDashboardChartSettings() { + return getDashboardChartSettings; + } + + /** Returns the object with the settings used for calls to batchGetDashboardCharts. */ + public UnaryCallSettings + batchGetDashboardChartsSettings() { + return batchGetDashboardChartsSettings; + } + + public DashboardChartServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDashboardChartServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDashboardChartServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "chronicle"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "chronicle.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "chronicle.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DashboardChartServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DashboardChartServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DashboardChartServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DashboardChartServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getDashboardChartSettings = settingsBuilder.getDashboardChartSettings().build(); + batchGetDashboardChartsSettings = settingsBuilder.batchGetDashboardChartsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-chronicle") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for DashboardChartServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getDashboardChartSettings; + private final UnaryCallSettings.Builder< + BatchGetDashboardChartsRequest, BatchGetDashboardChartsResponse> + batchGetDashboardChartsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getDashboardChartSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchGetDashboardChartsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDashboardChartSettings, batchGetDashboardChartsSettings); + initDefaults(this); + } + + protected Builder(DashboardChartServiceStubSettings settings) { + super(settings); + + getDashboardChartSettings = settings.getDashboardChartSettings.toBuilder(); + batchGetDashboardChartsSettings = settings.batchGetDashboardChartsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDashboardChartSettings, batchGetDashboardChartsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getDashboardChartSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchGetDashboardChartsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getDashboardChart. */ + public UnaryCallSettings.Builder + getDashboardChartSettings() { + return getDashboardChartSettings; + } + + /** Returns the builder for the settings used for calls to batchGetDashboardCharts. */ + public UnaryCallSettings.Builder< + BatchGetDashboardChartsRequest, BatchGetDashboardChartsResponse> + batchGetDashboardChartsSettings() { + return batchGetDashboardChartsSettings; + } + + @Override + public DashboardChartServiceStubSettings build() throws IOException { + return new DashboardChartServiceStubSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStub.java new file mode 100644 index 000000000000..8a1f8d4328af --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStub.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.DashboardQuery; +import com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest; +import com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse; +import com.google.cloud.chronicle.v1.GetDashboardQueryRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DashboardQueryService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DashboardQueryServiceStub implements BackgroundResource { + + public UnaryCallable getDashboardQueryCallable() { + throw new UnsupportedOperationException("Not implemented: getDashboardQueryCallable()"); + } + + public UnaryCallable + executeDashboardQueryCallable() { + throw new UnsupportedOperationException("Not implemented: executeDashboardQueryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStubSettings.java new file mode 100644 index 000000000000..4307d3815758 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStubSettings.java @@ -0,0 +1,402 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.DashboardQuery; +import com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest; +import com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse; +import com.google.cloud.chronicle.v1.GetDashboardQueryRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DashboardQueryServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDashboardQuery: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DashboardQueryServiceStubSettings.Builder dashboardQueryServiceSettingsBuilder =
+ *     DashboardQueryServiceStubSettings.newBuilder();
+ * dashboardQueryServiceSettingsBuilder
+ *     .getDashboardQuerySettings()
+ *     .setRetrySettings(
+ *         dashboardQueryServiceSettingsBuilder
+ *             .getDashboardQuerySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DashboardQueryServiceStubSettings dashboardQueryServiceSettings =
+ *     dashboardQueryServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class DashboardQueryServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + getDashboardQuerySettings; + private final UnaryCallSettings + executeDashboardQuerySettings; + + /** Returns the object with the settings used for calls to getDashboardQuery. */ + public UnaryCallSettings getDashboardQuerySettings() { + return getDashboardQuerySettings; + } + + /** Returns the object with the settings used for calls to executeDashboardQuery. */ + public UnaryCallSettings + executeDashboardQuerySettings() { + return executeDashboardQuerySettings; + } + + public DashboardQueryServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDashboardQueryServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDashboardQueryServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "chronicle"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "chronicle.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "chronicle.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DashboardQueryServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DashboardQueryServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DashboardQueryServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DashboardQueryServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getDashboardQuerySettings = settingsBuilder.getDashboardQuerySettings().build(); + executeDashboardQuerySettings = settingsBuilder.executeDashboardQuerySettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-chronicle") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for DashboardQueryServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getDashboardQuerySettings; + private final UnaryCallSettings.Builder< + ExecuteDashboardQueryRequest, ExecuteDashboardQueryResponse> + executeDashboardQuerySettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(1800000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(1800000L)) + .setTotalTimeoutDuration(Duration.ofMillis(1800000L)) + .build(); + definitions.put("no_retry_3_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getDashboardQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + executeDashboardQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDashboardQuerySettings, executeDashboardQuerySettings); + initDefaults(this); + } + + protected Builder(DashboardQueryServiceStubSettings settings) { + super(settings); + + getDashboardQuerySettings = settings.getDashboardQuerySettings.toBuilder(); + executeDashboardQuerySettings = settings.executeDashboardQuerySettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDashboardQuerySettings, executeDashboardQuerySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getDashboardQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .executeDashboardQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getDashboardQuery. */ + public UnaryCallSettings.Builder + getDashboardQuerySettings() { + return getDashboardQuerySettings; + } + + /** Returns the builder for the settings used for calls to executeDashboardQuery. */ + public UnaryCallSettings.Builder + executeDashboardQuerySettings() { + return executeDashboardQuerySettings; + } + + @Override + public DashboardQueryServiceStubSettings build() throws IOException { + return new DashboardQueryServiceStubSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataAccessControlServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataAccessControlServiceStubSettings.java index 5fb6fd7174f1..1baec45aefcc 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataAccessControlServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataAccessControlServiceStubSettings.java @@ -515,7 +515,7 @@ public static class Builder ImmutableMap.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); @@ -534,7 +534,7 @@ public static class Builder .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) .setTotalTimeoutDuration(Duration.ofMillis(60000L)) .build(); - definitions.put("no_retry_3_params", settings); + definitions.put("no_retry_5_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) @@ -639,8 +639,8 @@ private static Builder createHttpJsonDefault() { private static Builder initDefaults(Builder builder) { builder .createDataAccessLabelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); builder .getDataAccessLabelSettings() @@ -654,18 +654,18 @@ private static Builder initDefaults(Builder builder) { builder .updateDataAccessLabelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); builder .deleteDataAccessLabelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); builder .createDataAccessScopeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); builder .getDataAccessScopeSettings() @@ -679,13 +679,13 @@ private static Builder initDefaults(Builder builder) { builder .updateDataAccessScopeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); builder .deleteDataAccessScopeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); return builder; } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java index 8f346b9396dc..d1c7869682b0 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java @@ -546,9 +546,9 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_7_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_9_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( - "retry_policy_6_codes", + "retry_policy_8_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -565,7 +565,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_1_codes", + "retry_policy_2_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_7_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -374,7 +374,7 @@ public static class Builder extends StubSettings.BuilderThis class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class FeaturedContentNativeDashboardServiceStub implements BackgroundResource { + + public UnaryCallable + getFeaturedContentNativeDashboardCallable() { + throw new UnsupportedOperationException( + "Not implemented: getFeaturedContentNativeDashboardCallable()"); + } + + public UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFeaturedContentNativeDashboardsPagedCallable()"); + } + + public UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFeaturedContentNativeDashboardsCallable()"); + } + + public UnaryCallable< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardCallable() { + throw new UnsupportedOperationException( + "Not implemented: installFeaturedContentNativeDashboardCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FeaturedContentNativeDashboardServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FeaturedContentNativeDashboardServiceStubSettings.java new file mode 100644 index 000000000000..c620687281bc --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FeaturedContentNativeDashboardServiceStubSettings.java @@ -0,0 +1,560 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard; +import com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest; +import com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest; +import com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse; +import com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FeaturedContentNativeDashboardServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getFeaturedContentNativeDashboard: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * FeaturedContentNativeDashboardServiceStubSettings.Builder
+ *     featuredContentNativeDashboardServiceSettingsBuilder =
+ *         FeaturedContentNativeDashboardServiceStubSettings.newBuilder();
+ * featuredContentNativeDashboardServiceSettingsBuilder
+ *     .getFeaturedContentNativeDashboardSettings()
+ *     .setRetrySettings(
+ *         featuredContentNativeDashboardServiceSettingsBuilder
+ *             .getFeaturedContentNativeDashboardSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * FeaturedContentNativeDashboardServiceStubSettings
+ *     featuredContentNativeDashboardServiceSettings =
+ *         featuredContentNativeDashboardServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class FeaturedContentNativeDashboardServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardSettings; + private final PagedCallSettings< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsSettings; + private final UnaryCallSettings< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardSettings; + + private static final PagedListDescriptor< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard> + LIST_FEATURED_CONTENT_NATIVE_DASHBOARDS_PAGE_STR_DESC = + new PagedListDescriptor< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFeaturedContentNativeDashboardsRequest injectToken( + ListFeaturedContentNativeDashboardsRequest payload, String token) { + return ListFeaturedContentNativeDashboardsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListFeaturedContentNativeDashboardsRequest injectPageSize( + ListFeaturedContentNativeDashboardsRequest payload, int pageSize) { + return ListFeaturedContentNativeDashboardsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListFeaturedContentNativeDashboardsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFeaturedContentNativeDashboardsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListFeaturedContentNativeDashboardsResponse payload) { + return payload.getFeaturedContentNativeDashboardsList(); + } + }; + + private static final PagedListResponseFactory< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + ListFeaturedContentNativeDashboardsPagedResponse> + LIST_FEATURED_CONTENT_NATIVE_DASHBOARDS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + ListFeaturedContentNativeDashboardsPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse> + callable, + ListFeaturedContentNativeDashboardsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + FeaturedContentNativeDashboard> + pageContext = + PageContext.create( + callable, + LIST_FEATURED_CONTENT_NATIVE_DASHBOARDS_PAGE_STR_DESC, + request, + context); + return ListFeaturedContentNativeDashboardsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getFeaturedContentNativeDashboard. */ + public UnaryCallSettings + getFeaturedContentNativeDashboardSettings() { + return getFeaturedContentNativeDashboardSettings; + } + + /** Returns the object with the settings used for calls to listFeaturedContentNativeDashboards. */ + public PagedCallSettings< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsSettings() { + return listFeaturedContentNativeDashboardsSettings; + } + + /** + * Returns the object with the settings used for calls to installFeaturedContentNativeDashboard. + */ + public UnaryCallSettings< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardSettings() { + return installFeaturedContentNativeDashboardSettings; + } + + public FeaturedContentNativeDashboardServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcFeaturedContentNativeDashboardServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonFeaturedContentNativeDashboardServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "chronicle"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "chronicle.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "chronicle.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion( + FeaturedContentNativeDashboardServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion( + FeaturedContentNativeDashboardServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FeaturedContentNativeDashboardServiceStubSettings + .defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FeaturedContentNativeDashboardServiceStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + getFeaturedContentNativeDashboardSettings = + settingsBuilder.getFeaturedContentNativeDashboardSettings().build(); + listFeaturedContentNativeDashboardsSettings = + settingsBuilder.listFeaturedContentNativeDashboardsSettings().build(); + installFeaturedContentNativeDashboardSettings = + settingsBuilder.installFeaturedContentNativeDashboardSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-chronicle") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for FeaturedContentNativeDashboardServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardSettings; + private final PagedCallSettings.Builder< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsSettings; + private final UnaryCallSettings.Builder< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getFeaturedContentNativeDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listFeaturedContentNativeDashboardsSettings = + PagedCallSettings.newBuilder(LIST_FEATURED_CONTENT_NATIVE_DASHBOARDS_PAGE_STR_FACT); + installFeaturedContentNativeDashboardSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getFeaturedContentNativeDashboardSettings, + listFeaturedContentNativeDashboardsSettings, + installFeaturedContentNativeDashboardSettings); + initDefaults(this); + } + + protected Builder(FeaturedContentNativeDashboardServiceStubSettings settings) { + super(settings); + + getFeaturedContentNativeDashboardSettings = + settings.getFeaturedContentNativeDashboardSettings.toBuilder(); + listFeaturedContentNativeDashboardsSettings = + settings.listFeaturedContentNativeDashboardsSettings.toBuilder(); + installFeaturedContentNativeDashboardSettings = + settings.installFeaturedContentNativeDashboardSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getFeaturedContentNativeDashboardSettings, + listFeaturedContentNativeDashboardsSettings, + installFeaturedContentNativeDashboardSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getFeaturedContentNativeDashboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listFeaturedContentNativeDashboardsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .installFeaturedContentNativeDashboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getFeaturedContentNativeDashboard. */ + public UnaryCallSettings.Builder< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardSettings() { + return getFeaturedContentNativeDashboardSettings; + } + + /** + * Returns the builder for the settings used for calls to listFeaturedContentNativeDashboards. + */ + public PagedCallSettings.Builder< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsResponse, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsSettings() { + return listFeaturedContentNativeDashboardsSettings; + } + + /** + * Returns the builder for the settings used for calls to installFeaturedContentNativeDashboard. + */ + public UnaryCallSettings.Builder< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardSettings() { + return installFeaturedContentNativeDashboardSettings; + } + + @Override + public FeaturedContentNativeDashboardServiceStubSettings build() throws IOException { + return new FeaturedContentNativeDashboardServiceStubSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcBigQueryExportServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcBigQueryExportServiceCallableFactory.java new file mode 100644 index 000000000000..7d054313fd95 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcBigQueryExportServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the BigQueryExportService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcBigQueryExportServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcBigQueryExportServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcBigQueryExportServiceStub.java new file mode 100644 index 000000000000..c00be0e0f0cc --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcBigQueryExportServiceStub.java @@ -0,0 +1,243 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.BigQueryExport; +import com.google.cloud.chronicle.v1.GetBigQueryExportRequest; +import com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest; +import com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the BigQueryExportService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcBigQueryExportServiceStub extends BigQueryExportServiceStub { + private static final MethodDescriptor + getBigQueryExportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.BigQueryExportService/GetBigQueryExport") + .setRequestMarshaller( + ProtoUtils.marshaller(GetBigQueryExportRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(BigQueryExport.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateBigQueryExportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.BigQueryExportService/UpdateBigQueryExport") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateBigQueryExportRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(BigQueryExport.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + provisionBigQueryExportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.BigQueryExportService/ProvisionBigQueryExport") + .setRequestMarshaller( + ProtoUtils.marshaller(ProvisionBigQueryExportRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(BigQueryExport.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getBigQueryExportCallable; + private final UnaryCallable + updateBigQueryExportCallable; + private final UnaryCallable + provisionBigQueryExportCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcBigQueryExportServiceStub create( + BigQueryExportServiceStubSettings settings) throws IOException { + return new GrpcBigQueryExportServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcBigQueryExportServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcBigQueryExportServiceStub( + BigQueryExportServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcBigQueryExportServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcBigQueryExportServiceStub( + BigQueryExportServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcBigQueryExportServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcBigQueryExportServiceStub( + BigQueryExportServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcBigQueryExportServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcBigQueryExportServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcBigQueryExportServiceStub( + BigQueryExportServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getBigQueryExportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBigQueryExportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateBigQueryExportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBigQueryExportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "big_query_export.name", + String.valueOf(request.getBigQueryExport().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + provisionBigQueryExportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(provisionBigQueryExportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.getBigQueryExportCallable = + callableFactory.createUnaryCallable( + getBigQueryExportTransportSettings, + settings.getBigQueryExportSettings(), + clientContext); + this.updateBigQueryExportCallable = + callableFactory.createUnaryCallable( + updateBigQueryExportTransportSettings, + settings.updateBigQueryExportSettings(), + clientContext); + this.provisionBigQueryExportCallable = + callableFactory.createUnaryCallable( + provisionBigQueryExportTransportSettings, + settings.provisionBigQueryExportSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getBigQueryExportCallable() { + return getBigQueryExportCallable; + } + + @Override + public UnaryCallable updateBigQueryExportCallable() { + return updateBigQueryExportCallable; + } + + @Override + public UnaryCallable + provisionBigQueryExportCallable() { + return provisionBigQueryExportCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardChartServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardChartServiceCallableFactory.java new file mode 100644 index 000000000000..0fad3d2e1d43 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardChartServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DashboardChartService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDashboardChartServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardChartServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardChartServiceStub.java new file mode 100644 index 000000000000..5f8258a29171 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardChartServiceStub.java @@ -0,0 +1,210 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest; +import com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse; +import com.google.cloud.chronicle.v1.DashboardChart; +import com.google.cloud.chronicle.v1.GetDashboardChartRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DashboardChartService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDashboardChartServiceStub extends DashboardChartServiceStub { + private static final MethodDescriptor + getDashboardChartMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.DashboardChartService/GetDashboardChart") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDashboardChartRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DashboardChart.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + BatchGetDashboardChartsRequest, BatchGetDashboardChartsResponse> + batchGetDashboardChartsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.DashboardChartService/BatchGetDashboardCharts") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchGetDashboardChartsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchGetDashboardChartsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getDashboardChartCallable; + private final UnaryCallable + batchGetDashboardChartsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDashboardChartServiceStub create( + DashboardChartServiceStubSettings settings) throws IOException { + return new GrpcDashboardChartServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDashboardChartServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDashboardChartServiceStub( + DashboardChartServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDashboardChartServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDashboardChartServiceStub( + DashboardChartServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDashboardChartServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDashboardChartServiceStub( + DashboardChartServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDashboardChartServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDashboardChartServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDashboardChartServiceStub( + DashboardChartServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getDashboardChartTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDashboardChartMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + batchGetDashboardChartsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(batchGetDashboardChartsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.getDashboardChartCallable = + callableFactory.createUnaryCallable( + getDashboardChartTransportSettings, + settings.getDashboardChartSettings(), + clientContext); + this.batchGetDashboardChartsCallable = + callableFactory.createUnaryCallable( + batchGetDashboardChartsTransportSettings, + settings.batchGetDashboardChartsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getDashboardChartCallable() { + return getDashboardChartCallable; + } + + @Override + public UnaryCallable + batchGetDashboardChartsCallable() { + return batchGetDashboardChartsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardQueryServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardQueryServiceCallableFactory.java new file mode 100644 index 000000000000..33a1df38c4e4 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardQueryServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DashboardQueryService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDashboardQueryServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardQueryServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardQueryServiceStub.java new file mode 100644 index 000000000000..2c799d125ae3 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDashboardQueryServiceStub.java @@ -0,0 +1,208 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.DashboardQuery; +import com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest; +import com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse; +import com.google.cloud.chronicle.v1.GetDashboardQueryRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DashboardQueryService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDashboardQueryServiceStub extends DashboardQueryServiceStub { + private static final MethodDescriptor + getDashboardQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.DashboardQueryService/GetDashboardQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDashboardQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DashboardQuery.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + executeDashboardQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.DashboardQueryService/ExecuteDashboardQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(ExecuteDashboardQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ExecuteDashboardQueryResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getDashboardQueryCallable; + private final UnaryCallable + executeDashboardQueryCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDashboardQueryServiceStub create( + DashboardQueryServiceStubSettings settings) throws IOException { + return new GrpcDashboardQueryServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDashboardQueryServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDashboardQueryServiceStub( + DashboardQueryServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDashboardQueryServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDashboardQueryServiceStub( + DashboardQueryServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDashboardQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDashboardQueryServiceStub( + DashboardQueryServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDashboardQueryServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDashboardQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDashboardQueryServiceStub( + DashboardQueryServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getDashboardQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDashboardQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + executeDashboardQueryTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(executeDashboardQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.getDashboardQueryCallable = + callableFactory.createUnaryCallable( + getDashboardQueryTransportSettings, + settings.getDashboardQuerySettings(), + clientContext); + this.executeDashboardQueryCallable = + callableFactory.createUnaryCallable( + executeDashboardQueryTransportSettings, + settings.executeDashboardQuerySettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getDashboardQueryCallable() { + return getDashboardQueryCallable; + } + + @Override + public UnaryCallable + executeDashboardQueryCallable() { + return executeDashboardQueryCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFeaturedContentNativeDashboardServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFeaturedContentNativeDashboardServiceCallableFactory.java new file mode 100644 index 000000000000..38ef049b428d --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFeaturedContentNativeDashboardServiceCallableFactory.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the FeaturedContentNativeDashboardService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcFeaturedContentNativeDashboardServiceCallableFactory + implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFeaturedContentNativeDashboardServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFeaturedContentNativeDashboardServiceStub.java new file mode 100644 index 000000000000..72ab36d9a806 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcFeaturedContentNativeDashboardServiceStub.java @@ -0,0 +1,310 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard; +import com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest; +import com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest; +import com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse; +import com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the FeaturedContentNativeDashboardService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcFeaturedContentNativeDashboardServiceStub + extends FeaturedContentNativeDashboardServiceStub { + private static final MethodDescriptor< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetFeaturedContentNativeDashboardRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FeaturedContentNativeDashboard.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/ListFeaturedContentNativeDashboards") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListFeaturedContentNativeDashboardsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListFeaturedContentNativeDashboardsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/InstallFeaturedContentNativeDashboard") + .setRequestMarshaller( + ProtoUtils.marshaller( + InstallFeaturedContentNativeDashboardRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + InstallFeaturedContentNativeDashboardResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardCallable; + private final UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsCallable; + private final UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsPagedCallable; + private final UnaryCallable< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcFeaturedContentNativeDashboardServiceStub create( + FeaturedContentNativeDashboardServiceStubSettings settings) throws IOException { + return new GrpcFeaturedContentNativeDashboardServiceStub( + settings, ClientContext.create(settings)); + } + + public static final GrpcFeaturedContentNativeDashboardServiceStub create( + ClientContext clientContext) throws IOException { + return new GrpcFeaturedContentNativeDashboardServiceStub( + FeaturedContentNativeDashboardServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcFeaturedContentNativeDashboardServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcFeaturedContentNativeDashboardServiceStub( + FeaturedContentNativeDashboardServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcFeaturedContentNativeDashboardServiceStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected GrpcFeaturedContentNativeDashboardServiceStub( + FeaturedContentNativeDashboardServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcFeaturedContentNativeDashboardServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcFeaturedContentNativeDashboardServiceStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected GrpcFeaturedContentNativeDashboardServiceStub( + FeaturedContentNativeDashboardServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + getFeaturedContentNativeDashboardTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getFeaturedContentNativeDashboardMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listFeaturedContentNativeDashboardsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(installFeaturedContentNativeDashboardMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.getFeaturedContentNativeDashboardCallable = + callableFactory.createUnaryCallable( + getFeaturedContentNativeDashboardTransportSettings, + settings.getFeaturedContentNativeDashboardSettings(), + clientContext); + this.listFeaturedContentNativeDashboardsCallable = + callableFactory.createUnaryCallable( + listFeaturedContentNativeDashboardsTransportSettings, + settings.listFeaturedContentNativeDashboardsSettings(), + clientContext); + this.listFeaturedContentNativeDashboardsPagedCallable = + callableFactory.createPagedCallable( + listFeaturedContentNativeDashboardsTransportSettings, + settings.listFeaturedContentNativeDashboardsSettings(), + clientContext); + this.installFeaturedContentNativeDashboardCallable = + callableFactory.createUnaryCallable( + installFeaturedContentNativeDashboardTransportSettings, + settings.installFeaturedContentNativeDashboardSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + getFeaturedContentNativeDashboardCallable() { + return getFeaturedContentNativeDashboardCallable; + } + + @Override + public UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsCallable() { + return listFeaturedContentNativeDashboardsCallable; + } + + @Override + public UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsPagedCallable() { + return listFeaturedContentNativeDashboardsPagedCallable; + } + + @Override + public UnaryCallable< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardCallable() { + return installFeaturedContentNativeDashboardCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcNativeDashboardServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcNativeDashboardServiceCallableFactory.java new file mode 100644 index 000000000000..b9820bdce63d --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcNativeDashboardServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the NativeDashboardService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcNativeDashboardServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcNativeDashboardServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcNativeDashboardServiceStub.java new file mode 100644 index 000000000000..d89c44019c0a --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcNativeDashboardServiceStub.java @@ -0,0 +1,591 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.NativeDashboardServiceClient.ListNativeDashboardsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.AddChartRequest; +import com.google.cloud.chronicle.v1.AddChartResponse; +import com.google.cloud.chronicle.v1.CreateNativeDashboardRequest; +import com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest; +import com.google.cloud.chronicle.v1.DuplicateChartRequest; +import com.google.cloud.chronicle.v1.DuplicateChartResponse; +import com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest; +import com.google.cloud.chronicle.v1.EditChartRequest; +import com.google.cloud.chronicle.v1.EditChartResponse; +import com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.GetNativeDashboardRequest; +import com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.ListNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ListNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.NativeDashboard; +import com.google.cloud.chronicle.v1.RemoveChartRequest; +import com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the NativeDashboardService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcNativeDashboardServiceStub extends NativeDashboardServiceStub { + private static final MethodDescriptor + createNativeDashboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/CreateNativeDashboard") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateNativeDashboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NativeDashboard.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getNativeDashboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/GetNativeDashboard") + .setRequestMarshaller( + ProtoUtils.marshaller(GetNativeDashboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NativeDashboard.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listNativeDashboardsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/ListNativeDashboards") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNativeDashboardsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNativeDashboardsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateNativeDashboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/UpdateNativeDashboard") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateNativeDashboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NativeDashboard.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + duplicateNativeDashboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/DuplicateNativeDashboard") + .setRequestMarshaller( + ProtoUtils.marshaller(DuplicateNativeDashboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NativeDashboard.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteNativeDashboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/DeleteNativeDashboard") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteNativeDashboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + addChartMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.NativeDashboardService/AddChart") + .setRequestMarshaller(ProtoUtils.marshaller(AddChartRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AddChartResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + removeChartMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.NativeDashboardService/RemoveChart") + .setRequestMarshaller(ProtoUtils.marshaller(RemoveChartRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NativeDashboard.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + editChartMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.NativeDashboardService/EditChart") + .setRequestMarshaller(ProtoUtils.marshaller(EditChartRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(EditChartResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + duplicateChartMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.NativeDashboardService/DuplicateChart") + .setRequestMarshaller( + ProtoUtils.marshaller(DuplicateChartRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DuplicateChartResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ExportNativeDashboardsRequest, ExportNativeDashboardsResponse> + exportNativeDashboardsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/ExportNativeDashboards") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportNativeDashboardsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ExportNativeDashboardsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ImportNativeDashboardsRequest, ImportNativeDashboardsResponse> + importNativeDashboardsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/ImportNativeDashboards") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportNativeDashboardsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ImportNativeDashboardsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + createNativeDashboardCallable; + private final UnaryCallable + getNativeDashboardCallable; + private final UnaryCallable + listNativeDashboardsCallable; + private final UnaryCallable + listNativeDashboardsPagedCallable; + private final UnaryCallable + updateNativeDashboardCallable; + private final UnaryCallable + duplicateNativeDashboardCallable; + private final UnaryCallable deleteNativeDashboardCallable; + private final UnaryCallable addChartCallable; + private final UnaryCallable removeChartCallable; + private final UnaryCallable editChartCallable; + private final UnaryCallable duplicateChartCallable; + private final UnaryCallable + exportNativeDashboardsCallable; + private final UnaryCallable + importNativeDashboardsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcNativeDashboardServiceStub create( + NativeDashboardServiceStubSettings settings) throws IOException { + return new GrpcNativeDashboardServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcNativeDashboardServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcNativeDashboardServiceStub( + NativeDashboardServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcNativeDashboardServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcNativeDashboardServiceStub( + NativeDashboardServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcNativeDashboardServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcNativeDashboardServiceStub( + NativeDashboardServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcNativeDashboardServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcNativeDashboardServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcNativeDashboardServiceStub( + NativeDashboardServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createNativeDashboardTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNativeDashboardMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getNativeDashboardTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNativeDashboardMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listNativeDashboardsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNativeDashboardsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateNativeDashboardTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNativeDashboardMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "native_dashboard.name", + String.valueOf(request.getNativeDashboard().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + duplicateNativeDashboardTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(duplicateNativeDashboardMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteNativeDashboardTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteNativeDashboardMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings addChartTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(addChartMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings removeChartTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeChartMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings editChartTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(editChartMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + duplicateChartTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(duplicateChartMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + exportNativeDashboardsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(exportNativeDashboardsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + importNativeDashboardsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(importNativeDashboardsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.createNativeDashboardCallable = + callableFactory.createUnaryCallable( + createNativeDashboardTransportSettings, + settings.createNativeDashboardSettings(), + clientContext); + this.getNativeDashboardCallable = + callableFactory.createUnaryCallable( + getNativeDashboardTransportSettings, + settings.getNativeDashboardSettings(), + clientContext); + this.listNativeDashboardsCallable = + callableFactory.createUnaryCallable( + listNativeDashboardsTransportSettings, + settings.listNativeDashboardsSettings(), + clientContext); + this.listNativeDashboardsPagedCallable = + callableFactory.createPagedCallable( + listNativeDashboardsTransportSettings, + settings.listNativeDashboardsSettings(), + clientContext); + this.updateNativeDashboardCallable = + callableFactory.createUnaryCallable( + updateNativeDashboardTransportSettings, + settings.updateNativeDashboardSettings(), + clientContext); + this.duplicateNativeDashboardCallable = + callableFactory.createUnaryCallable( + duplicateNativeDashboardTransportSettings, + settings.duplicateNativeDashboardSettings(), + clientContext); + this.deleteNativeDashboardCallable = + callableFactory.createUnaryCallable( + deleteNativeDashboardTransportSettings, + settings.deleteNativeDashboardSettings(), + clientContext); + this.addChartCallable = + callableFactory.createUnaryCallable( + addChartTransportSettings, settings.addChartSettings(), clientContext); + this.removeChartCallable = + callableFactory.createUnaryCallable( + removeChartTransportSettings, settings.removeChartSettings(), clientContext); + this.editChartCallable = + callableFactory.createUnaryCallable( + editChartTransportSettings, settings.editChartSettings(), clientContext); + this.duplicateChartCallable = + callableFactory.createUnaryCallable( + duplicateChartTransportSettings, settings.duplicateChartSettings(), clientContext); + this.exportNativeDashboardsCallable = + callableFactory.createUnaryCallable( + exportNativeDashboardsTransportSettings, + settings.exportNativeDashboardsSettings(), + clientContext); + this.importNativeDashboardsCallable = + callableFactory.createUnaryCallable( + importNativeDashboardsTransportSettings, + settings.importNativeDashboardsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + createNativeDashboardCallable() { + return createNativeDashboardCallable; + } + + @Override + public UnaryCallable getNativeDashboardCallable() { + return getNativeDashboardCallable; + } + + @Override + public UnaryCallable + listNativeDashboardsCallable() { + return listNativeDashboardsCallable; + } + + @Override + public UnaryCallable + listNativeDashboardsPagedCallable() { + return listNativeDashboardsPagedCallable; + } + + @Override + public UnaryCallable + updateNativeDashboardCallable() { + return updateNativeDashboardCallable; + } + + @Override + public UnaryCallable + duplicateNativeDashboardCallable() { + return duplicateNativeDashboardCallable; + } + + @Override + public UnaryCallable deleteNativeDashboardCallable() { + return deleteNativeDashboardCallable; + } + + @Override + public UnaryCallable addChartCallable() { + return addChartCallable; + } + + @Override + public UnaryCallable removeChartCallable() { + return removeChartCallable; + } + + @Override + public UnaryCallable editChartCallable() { + return editChartCallable; + } + + @Override + public UnaryCallable duplicateChartCallable() { + return duplicateChartCallable; + } + + @Override + public UnaryCallable + exportNativeDashboardsCallable() { + return exportNativeDashboardsCallable; + } + + @Override + public UnaryCallable + importNativeDashboardsCallable() { + return importNativeDashboardsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonBigQueryExportServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonBigQueryExportServiceCallableFactory.java new file mode 100644 index 000000000000..b2a80cc72904 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonBigQueryExportServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BigQueryExportService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonBigQueryExportServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonBigQueryExportServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonBigQueryExportServiceStub.java new file mode 100644 index 000000000000..2e18cfc86e28 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonBigQueryExportServiceStub.java @@ -0,0 +1,340 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.BigQueryExport; +import com.google.cloud.chronicle.v1.GetBigQueryExportRequest; +import com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest; +import com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BigQueryExportService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonBigQueryExportServiceStub extends BigQueryExportServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getBigQueryExportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.BigQueryExportService/GetBigQueryExport") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/bigQueryExport}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BigQueryExport.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateBigQueryExportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.BigQueryExportService/UpdateBigQueryExport") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{bigQueryExport.name=projects/*/locations/*/instances/*/bigQueryExport}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "bigQueryExport.name", + request.getBigQueryExport().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("bigQueryExport", request.getBigQueryExport(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BigQueryExport.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + provisionBigQueryExportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.BigQueryExportService/ProvisionBigQueryExport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/bigQueryExport:provision", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BigQueryExport.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getBigQueryExportCallable; + private final UnaryCallable + updateBigQueryExportCallable; + private final UnaryCallable + provisionBigQueryExportCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBigQueryExportServiceStub create( + BigQueryExportServiceStubSettings settings) throws IOException { + return new HttpJsonBigQueryExportServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBigQueryExportServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBigQueryExportServiceStub( + BigQueryExportServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonBigQueryExportServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBigQueryExportServiceStub( + BigQueryExportServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonBigQueryExportServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonBigQueryExportServiceStub( + BigQueryExportServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonBigQueryExportServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBigQueryExportServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonBigQueryExportServiceStub( + BigQueryExportServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getBigQueryExportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBigQueryExportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + updateBigQueryExportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBigQueryExportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "big_query_export.name", + String.valueOf(request.getBigQueryExport().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + provisionBigQueryExportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(provisionBigQueryExportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.getBigQueryExportCallable = + callableFactory.createUnaryCallable( + getBigQueryExportTransportSettings, + settings.getBigQueryExportSettings(), + clientContext); + this.updateBigQueryExportCallable = + callableFactory.createUnaryCallable( + updateBigQueryExportTransportSettings, + settings.updateBigQueryExportSettings(), + clientContext); + this.provisionBigQueryExportCallable = + callableFactory.createUnaryCallable( + provisionBigQueryExportTransportSettings, + settings.provisionBigQueryExportSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getBigQueryExportMethodDescriptor); + methodDescriptors.add(updateBigQueryExportMethodDescriptor); + methodDescriptors.add(provisionBigQueryExportMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getBigQueryExportCallable() { + return getBigQueryExportCallable; + } + + @Override + public UnaryCallable updateBigQueryExportCallable() { + return updateBigQueryExportCallable; + } + + @Override + public UnaryCallable + provisionBigQueryExportCallable() { + return provisionBigQueryExportCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardChartServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardChartServiceCallableFactory.java new file mode 100644 index 000000000000..bebea9235039 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardChartServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DashboardChartService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDashboardChartServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardChartServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardChartServiceStub.java new file mode 100644 index 000000000000..547bd012f18e --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardChartServiceStub.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest; +import com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse; +import com.google.cloud.chronicle.v1.DashboardChart; +import com.google.cloud.chronicle.v1.GetDashboardChartRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DashboardChartService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDashboardChartServiceStub extends DashboardChartServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getDashboardChartMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.DashboardChartService/GetDashboardChart") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/dashboardCharts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DashboardChart.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchGetDashboardChartsRequest, BatchGetDashboardChartsResponse> + batchGetDashboardChartsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.DashboardChartService/BatchGetDashboardCharts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/dashboardCharts:batchGet", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "names", request.getNamesList()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchGetDashboardChartsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getDashboardChartCallable; + private final UnaryCallable + batchGetDashboardChartsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDashboardChartServiceStub create( + DashboardChartServiceStubSettings settings) throws IOException { + return new HttpJsonDashboardChartServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDashboardChartServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDashboardChartServiceStub( + DashboardChartServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDashboardChartServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDashboardChartServiceStub( + DashboardChartServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonDashboardChartServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDashboardChartServiceStub( + DashboardChartServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDashboardChartServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDashboardChartServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDashboardChartServiceStub( + DashboardChartServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getDashboardChartTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDashboardChartMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + batchGetDashboardChartsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchGetDashboardChartsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.getDashboardChartCallable = + callableFactory.createUnaryCallable( + getDashboardChartTransportSettings, + settings.getDashboardChartSettings(), + clientContext); + this.batchGetDashboardChartsCallable = + callableFactory.createUnaryCallable( + batchGetDashboardChartsTransportSettings, + settings.batchGetDashboardChartsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getDashboardChartMethodDescriptor); + methodDescriptors.add(batchGetDashboardChartsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getDashboardChartCallable() { + return getDashboardChartCallable; + } + + @Override + public UnaryCallable + batchGetDashboardChartsCallable() { + return batchGetDashboardChartsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardQueryServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardQueryServiceCallableFactory.java new file mode 100644 index 000000000000..1ab7f9032105 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardQueryServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DashboardQueryService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDashboardQueryServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardQueryServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardQueryServiceStub.java new file mode 100644 index 000000000000..d23ba6783d08 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDashboardQueryServiceStub.java @@ -0,0 +1,274 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.DashboardQuery; +import com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest; +import com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse; +import com.google.cloud.chronicle.v1.GetDashboardQueryRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DashboardQueryService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDashboardQueryServiceStub extends DashboardQueryServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getDashboardQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.DashboardQueryService/GetDashboardQuery") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/dashboardQueries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DashboardQuery.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ExecuteDashboardQueryRequest, ExecuteDashboardQueryResponse> + executeDashboardQueryMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.DashboardQueryService/ExecuteDashboardQuery") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/dashboardQueries:execute", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExecuteDashboardQueryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getDashboardQueryCallable; + private final UnaryCallable + executeDashboardQueryCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDashboardQueryServiceStub create( + DashboardQueryServiceStubSettings settings) throws IOException { + return new HttpJsonDashboardQueryServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDashboardQueryServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDashboardQueryServiceStub( + DashboardQueryServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDashboardQueryServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDashboardQueryServiceStub( + DashboardQueryServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonDashboardQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDashboardQueryServiceStub( + DashboardQueryServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDashboardQueryServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDashboardQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDashboardQueryServiceStub( + DashboardQueryServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getDashboardQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDashboardQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + executeDashboardQueryTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(executeDashboardQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.getDashboardQueryCallable = + callableFactory.createUnaryCallable( + getDashboardQueryTransportSettings, + settings.getDashboardQuerySettings(), + clientContext); + this.executeDashboardQueryCallable = + callableFactory.createUnaryCallable( + executeDashboardQueryTransportSettings, + settings.executeDashboardQuerySettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getDashboardQueryMethodDescriptor); + methodDescriptors.add(executeDashboardQueryMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getDashboardQueryCallable() { + return getDashboardQueryCallable; + } + + @Override + public UnaryCallable + executeDashboardQueryCallable() { + return executeDashboardQueryCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFeaturedContentNativeDashboardServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFeaturedContentNativeDashboardServiceCallableFactory.java new file mode 100644 index 000000000000..81506574c472 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFeaturedContentNativeDashboardServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the FeaturedContentNativeDashboardService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonFeaturedContentNativeDashboardServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFeaturedContentNativeDashboardServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFeaturedContentNativeDashboardServiceStub.java new file mode 100644 index 000000000000..2ebf4eb58b72 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonFeaturedContentNativeDashboardServiceStub.java @@ -0,0 +1,403 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard; +import com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest; +import com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest; +import com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse; +import com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the FeaturedContentNativeDashboardService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonFeaturedContentNativeDashboardServiceStub + extends FeaturedContentNativeDashboardServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FeaturedContentNativeDashboard.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/ListFeaturedContentNativeDashboards") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*/contentHub}/featuredContentNativeDashboards", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ListFeaturedContentNativeDashboardsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/InstallFeaturedContentNativeDashboard") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}:install", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + InstallFeaturedContentNativeDashboardResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + GetFeaturedContentNativeDashboardRequest, FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboardCallable; + private final UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsCallable; + private final UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsPagedCallable; + private final UnaryCallable< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonFeaturedContentNativeDashboardServiceStub create( + FeaturedContentNativeDashboardServiceStubSettings settings) throws IOException { + return new HttpJsonFeaturedContentNativeDashboardServiceStub( + settings, ClientContext.create(settings)); + } + + public static final HttpJsonFeaturedContentNativeDashboardServiceStub create( + ClientContext clientContext) throws IOException { + return new HttpJsonFeaturedContentNativeDashboardServiceStub( + FeaturedContentNativeDashboardServiceStubSettings.newHttpJsonBuilder().build(), + clientContext); + } + + public static final HttpJsonFeaturedContentNativeDashboardServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonFeaturedContentNativeDashboardServiceStub( + FeaturedContentNativeDashboardServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonFeaturedContentNativeDashboardServiceStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected HttpJsonFeaturedContentNativeDashboardServiceStub( + FeaturedContentNativeDashboardServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this( + settings, + clientContext, + new HttpJsonFeaturedContentNativeDashboardServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonFeaturedContentNativeDashboardServiceStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected HttpJsonFeaturedContentNativeDashboardServiceStub( + FeaturedContentNativeDashboardServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getFeaturedContentNativeDashboardTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(getFeaturedContentNativeDashboardMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listFeaturedContentNativeDashboardsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(installFeaturedContentNativeDashboardMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.getFeaturedContentNativeDashboardCallable = + callableFactory.createUnaryCallable( + getFeaturedContentNativeDashboardTransportSettings, + settings.getFeaturedContentNativeDashboardSettings(), + clientContext); + this.listFeaturedContentNativeDashboardsCallable = + callableFactory.createUnaryCallable( + listFeaturedContentNativeDashboardsTransportSettings, + settings.listFeaturedContentNativeDashboardsSettings(), + clientContext); + this.listFeaturedContentNativeDashboardsPagedCallable = + callableFactory.createPagedCallable( + listFeaturedContentNativeDashboardsTransportSettings, + settings.listFeaturedContentNativeDashboardsSettings(), + clientContext); + this.installFeaturedContentNativeDashboardCallable = + callableFactory.createUnaryCallable( + installFeaturedContentNativeDashboardTransportSettings, + settings.installFeaturedContentNativeDashboardSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getFeaturedContentNativeDashboardMethodDescriptor); + methodDescriptors.add(listFeaturedContentNativeDashboardsMethodDescriptor); + methodDescriptors.add(installFeaturedContentNativeDashboardMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + getFeaturedContentNativeDashboardCallable() { + return getFeaturedContentNativeDashboardCallable; + } + + @Override + public UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboardsCallable() { + return listFeaturedContentNativeDashboardsCallable; + } + + @Override + public UnaryCallable< + ListFeaturedContentNativeDashboardsRequest, + ListFeaturedContentNativeDashboardsPagedResponse> + listFeaturedContentNativeDashboardsPagedCallable() { + return listFeaturedContentNativeDashboardsPagedCallable; + } + + @Override + public UnaryCallable< + InstallFeaturedContentNativeDashboardRequest, + InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboardCallable() { + return installFeaturedContentNativeDashboardCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonNativeDashboardServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonNativeDashboardServiceCallableFactory.java new file mode 100644 index 000000000000..26d1b20d2d26 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonNativeDashboardServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the NativeDashboardService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonNativeDashboardServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonNativeDashboardServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonNativeDashboardServiceStub.java new file mode 100644 index 000000000000..e001a98d09be --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonNativeDashboardServiceStub.java @@ -0,0 +1,940 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.NativeDashboardServiceClient.ListNativeDashboardsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.AddChartRequest; +import com.google.cloud.chronicle.v1.AddChartResponse; +import com.google.cloud.chronicle.v1.CreateNativeDashboardRequest; +import com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest; +import com.google.cloud.chronicle.v1.DuplicateChartRequest; +import com.google.cloud.chronicle.v1.DuplicateChartResponse; +import com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest; +import com.google.cloud.chronicle.v1.EditChartRequest; +import com.google.cloud.chronicle.v1.EditChartResponse; +import com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.GetNativeDashboardRequest; +import com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.ListNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ListNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.NativeDashboard; +import com.google.cloud.chronicle.v1.RemoveChartRequest; +import com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the NativeDashboardService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonNativeDashboardServiceStub extends NativeDashboardServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createNativeDashboardMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/CreateNativeDashboard") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("nativeDashboard", request.getNativeDashboard(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NativeDashboard.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getNativeDashboardMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/GetNativeDashboard") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NativeDashboard.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListNativeDashboardsRequest, ListNativeDashboardsResponse> + listNativeDashboardsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/ListNativeDashboards") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNativeDashboardsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateNativeDashboardMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/UpdateNativeDashboard") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{nativeDashboard.name=projects/*/locations/*/instances/*/nativeDashboards/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "nativeDashboard.name", + request.getNativeDashboard().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("nativeDashboard", request.getNativeDashboard(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NativeDashboard.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + duplicateNativeDashboardMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/DuplicateNativeDashboard") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NativeDashboard.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteNativeDashboardMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/DeleteNativeDashboard") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + addChartMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.NativeDashboardService/AddChart") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:addChart", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AddChartResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + removeChartMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.NativeDashboardService/RemoveChart") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:removeChart", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NativeDashboard.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + editChartMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.NativeDashboardService/EditChart") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:editChart", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EditChartResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + duplicateChartMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.NativeDashboardService/DuplicateChart") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicateChart", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DuplicateChartResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ExportNativeDashboardsRequest, ExportNativeDashboardsResponse> + exportNativeDashboardsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/ExportNativeDashboards") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:export", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExportNativeDashboardsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ImportNativeDashboardsRequest, ImportNativeDashboardsResponse> + importNativeDashboardsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.NativeDashboardService/ImportNativeDashboards") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ImportNativeDashboardsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createNativeDashboardCallable; + private final UnaryCallable + getNativeDashboardCallable; + private final UnaryCallable + listNativeDashboardsCallable; + private final UnaryCallable + listNativeDashboardsPagedCallable; + private final UnaryCallable + updateNativeDashboardCallable; + private final UnaryCallable + duplicateNativeDashboardCallable; + private final UnaryCallable deleteNativeDashboardCallable; + private final UnaryCallable addChartCallable; + private final UnaryCallable removeChartCallable; + private final UnaryCallable editChartCallable; + private final UnaryCallable duplicateChartCallable; + private final UnaryCallable + exportNativeDashboardsCallable; + private final UnaryCallable + importNativeDashboardsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonNativeDashboardServiceStub create( + NativeDashboardServiceStubSettings settings) throws IOException { + return new HttpJsonNativeDashboardServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonNativeDashboardServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonNativeDashboardServiceStub( + NativeDashboardServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonNativeDashboardServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonNativeDashboardServiceStub( + NativeDashboardServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonNativeDashboardServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonNativeDashboardServiceStub( + NativeDashboardServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonNativeDashboardServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonNativeDashboardServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonNativeDashboardServiceStub( + NativeDashboardServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + createNativeDashboardTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createNativeDashboardMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getNativeDashboardTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNativeDashboardMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listNativeDashboardsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listNativeDashboardsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateNativeDashboardTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateNativeDashboardMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "native_dashboard.name", + String.valueOf(request.getNativeDashboard().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + duplicateNativeDashboardTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(duplicateNativeDashboardMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + deleteNativeDashboardTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteNativeDashboardMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings addChartTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(addChartMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings removeChartTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(removeChartMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings editChartTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(editChartMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + duplicateChartTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(duplicateChartMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + exportNativeDashboardsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(exportNativeDashboardsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + importNativeDashboardsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(importNativeDashboardsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.createNativeDashboardCallable = + callableFactory.createUnaryCallable( + createNativeDashboardTransportSettings, + settings.createNativeDashboardSettings(), + clientContext); + this.getNativeDashboardCallable = + callableFactory.createUnaryCallable( + getNativeDashboardTransportSettings, + settings.getNativeDashboardSettings(), + clientContext); + this.listNativeDashboardsCallable = + callableFactory.createUnaryCallable( + listNativeDashboardsTransportSettings, + settings.listNativeDashboardsSettings(), + clientContext); + this.listNativeDashboardsPagedCallable = + callableFactory.createPagedCallable( + listNativeDashboardsTransportSettings, + settings.listNativeDashboardsSettings(), + clientContext); + this.updateNativeDashboardCallable = + callableFactory.createUnaryCallable( + updateNativeDashboardTransportSettings, + settings.updateNativeDashboardSettings(), + clientContext); + this.duplicateNativeDashboardCallable = + callableFactory.createUnaryCallable( + duplicateNativeDashboardTransportSettings, + settings.duplicateNativeDashboardSettings(), + clientContext); + this.deleteNativeDashboardCallable = + callableFactory.createUnaryCallable( + deleteNativeDashboardTransportSettings, + settings.deleteNativeDashboardSettings(), + clientContext); + this.addChartCallable = + callableFactory.createUnaryCallable( + addChartTransportSettings, settings.addChartSettings(), clientContext); + this.removeChartCallable = + callableFactory.createUnaryCallable( + removeChartTransportSettings, settings.removeChartSettings(), clientContext); + this.editChartCallable = + callableFactory.createUnaryCallable( + editChartTransportSettings, settings.editChartSettings(), clientContext); + this.duplicateChartCallable = + callableFactory.createUnaryCallable( + duplicateChartTransportSettings, settings.duplicateChartSettings(), clientContext); + this.exportNativeDashboardsCallable = + callableFactory.createUnaryCallable( + exportNativeDashboardsTransportSettings, + settings.exportNativeDashboardsSettings(), + clientContext); + this.importNativeDashboardsCallable = + callableFactory.createUnaryCallable( + importNativeDashboardsTransportSettings, + settings.importNativeDashboardsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createNativeDashboardMethodDescriptor); + methodDescriptors.add(getNativeDashboardMethodDescriptor); + methodDescriptors.add(listNativeDashboardsMethodDescriptor); + methodDescriptors.add(updateNativeDashboardMethodDescriptor); + methodDescriptors.add(duplicateNativeDashboardMethodDescriptor); + methodDescriptors.add(deleteNativeDashboardMethodDescriptor); + methodDescriptors.add(addChartMethodDescriptor); + methodDescriptors.add(removeChartMethodDescriptor); + methodDescriptors.add(editChartMethodDescriptor); + methodDescriptors.add(duplicateChartMethodDescriptor); + methodDescriptors.add(exportNativeDashboardsMethodDescriptor); + methodDescriptors.add(importNativeDashboardsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + createNativeDashboardCallable() { + return createNativeDashboardCallable; + } + + @Override + public UnaryCallable getNativeDashboardCallable() { + return getNativeDashboardCallable; + } + + @Override + public UnaryCallable + listNativeDashboardsCallable() { + return listNativeDashboardsCallable; + } + + @Override + public UnaryCallable + listNativeDashboardsPagedCallable() { + return listNativeDashboardsPagedCallable; + } + + @Override + public UnaryCallable + updateNativeDashboardCallable() { + return updateNativeDashboardCallable; + } + + @Override + public UnaryCallable + duplicateNativeDashboardCallable() { + return duplicateNativeDashboardCallable; + } + + @Override + public UnaryCallable deleteNativeDashboardCallable() { + return deleteNativeDashboardCallable; + } + + @Override + public UnaryCallable addChartCallable() { + return addChartCallable; + } + + @Override + public UnaryCallable removeChartCallable() { + return removeChartCallable; + } + + @Override + public UnaryCallable editChartCallable() { + return editChartCallable; + } + + @Override + public UnaryCallable duplicateChartCallable() { + return duplicateChartCallable; + } + + @Override + public UnaryCallable + exportNativeDashboardsCallable() { + return exportNativeDashboardsCallable; + } + + @Override + public UnaryCallable + importNativeDashboardsCallable() { + return importNativeDashboardsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStub.java new file mode 100644 index 000000000000..97ba6fa5dbdf --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStub.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.NativeDashboardServiceClient.ListNativeDashboardsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.AddChartRequest; +import com.google.cloud.chronicle.v1.AddChartResponse; +import com.google.cloud.chronicle.v1.CreateNativeDashboardRequest; +import com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest; +import com.google.cloud.chronicle.v1.DuplicateChartRequest; +import com.google.cloud.chronicle.v1.DuplicateChartResponse; +import com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest; +import com.google.cloud.chronicle.v1.EditChartRequest; +import com.google.cloud.chronicle.v1.EditChartResponse; +import com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.GetNativeDashboardRequest; +import com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.ListNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ListNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.NativeDashboard; +import com.google.cloud.chronicle.v1.RemoveChartRequest; +import com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the NativeDashboardService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class NativeDashboardServiceStub implements BackgroundResource { + + public UnaryCallable + createNativeDashboardCallable() { + throw new UnsupportedOperationException("Not implemented: createNativeDashboardCallable()"); + } + + public UnaryCallable getNativeDashboardCallable() { + throw new UnsupportedOperationException("Not implemented: getNativeDashboardCallable()"); + } + + public UnaryCallable + listNativeDashboardsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listNativeDashboardsPagedCallable()"); + } + + public UnaryCallable + listNativeDashboardsCallable() { + throw new UnsupportedOperationException("Not implemented: listNativeDashboardsCallable()"); + } + + public UnaryCallable + updateNativeDashboardCallable() { + throw new UnsupportedOperationException("Not implemented: updateNativeDashboardCallable()"); + } + + public UnaryCallable + duplicateNativeDashboardCallable() { + throw new UnsupportedOperationException("Not implemented: duplicateNativeDashboardCallable()"); + } + + public UnaryCallable deleteNativeDashboardCallable() { + throw new UnsupportedOperationException("Not implemented: deleteNativeDashboardCallable()"); + } + + public UnaryCallable addChartCallable() { + throw new UnsupportedOperationException("Not implemented: addChartCallable()"); + } + + public UnaryCallable removeChartCallable() { + throw new UnsupportedOperationException("Not implemented: removeChartCallable()"); + } + + public UnaryCallable editChartCallable() { + throw new UnsupportedOperationException("Not implemented: editChartCallable()"); + } + + public UnaryCallable duplicateChartCallable() { + throw new UnsupportedOperationException("Not implemented: duplicateChartCallable()"); + } + + public UnaryCallable + exportNativeDashboardsCallable() { + throw new UnsupportedOperationException("Not implemented: exportNativeDashboardsCallable()"); + } + + public UnaryCallable + importNativeDashboardsCallable() { + throw new UnsupportedOperationException("Not implemented: importNativeDashboardsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStubSettings.java new file mode 100644 index 000000000000..95dcd247712d --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStubSettings.java @@ -0,0 +1,754 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.NativeDashboardServiceClient.ListNativeDashboardsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.AddChartRequest; +import com.google.cloud.chronicle.v1.AddChartResponse; +import com.google.cloud.chronicle.v1.CreateNativeDashboardRequest; +import com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest; +import com.google.cloud.chronicle.v1.DuplicateChartRequest; +import com.google.cloud.chronicle.v1.DuplicateChartResponse; +import com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest; +import com.google.cloud.chronicle.v1.EditChartRequest; +import com.google.cloud.chronicle.v1.EditChartResponse; +import com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.GetNativeDashboardRequest; +import com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.ListNativeDashboardsRequest; +import com.google.cloud.chronicle.v1.ListNativeDashboardsResponse; +import com.google.cloud.chronicle.v1.NativeDashboard; +import com.google.cloud.chronicle.v1.RemoveChartRequest; +import com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link NativeDashboardServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createNativeDashboard: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * NativeDashboardServiceStubSettings.Builder nativeDashboardServiceSettingsBuilder =
+ *     NativeDashboardServiceStubSettings.newBuilder();
+ * nativeDashboardServiceSettingsBuilder
+ *     .createNativeDashboardSettings()
+ *     .setRetrySettings(
+ *         nativeDashboardServiceSettingsBuilder
+ *             .createNativeDashboardSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * NativeDashboardServiceStubSettings nativeDashboardServiceSettings =
+ *     nativeDashboardServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class NativeDashboardServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + createNativeDashboardSettings; + private final UnaryCallSettings + getNativeDashboardSettings; + private final PagedCallSettings< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + ListNativeDashboardsPagedResponse> + listNativeDashboardsSettings; + private final UnaryCallSettings + updateNativeDashboardSettings; + private final UnaryCallSettings + duplicateNativeDashboardSettings; + private final UnaryCallSettings + deleteNativeDashboardSettings; + private final UnaryCallSettings addChartSettings; + private final UnaryCallSettings removeChartSettings; + private final UnaryCallSettings editChartSettings; + private final UnaryCallSettings + duplicateChartSettings; + private final UnaryCallSettings + exportNativeDashboardsSettings; + private final UnaryCallSettings + importNativeDashboardsSettings; + + private static final PagedListDescriptor< + ListNativeDashboardsRequest, ListNativeDashboardsResponse, NativeDashboard> + LIST_NATIVE_DASHBOARDS_PAGE_STR_DESC = + new PagedListDescriptor< + ListNativeDashboardsRequest, ListNativeDashboardsResponse, NativeDashboard>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListNativeDashboardsRequest injectToken( + ListNativeDashboardsRequest payload, String token) { + return ListNativeDashboardsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListNativeDashboardsRequest injectPageSize( + ListNativeDashboardsRequest payload, int pageSize) { + return ListNativeDashboardsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListNativeDashboardsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListNativeDashboardsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListNativeDashboardsResponse payload) { + return payload.getNativeDashboardsList(); + } + }; + + private static final PagedListResponseFactory< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + ListNativeDashboardsPagedResponse> + LIST_NATIVE_DASHBOARDS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + ListNativeDashboardsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNativeDashboardsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListNativeDashboardsRequest, ListNativeDashboardsResponse, NativeDashboard> + pageContext = + PageContext.create( + callable, LIST_NATIVE_DASHBOARDS_PAGE_STR_DESC, request, context); + return ListNativeDashboardsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createNativeDashboard. */ + public UnaryCallSettings + createNativeDashboardSettings() { + return createNativeDashboardSettings; + } + + /** Returns the object with the settings used for calls to getNativeDashboard. */ + public UnaryCallSettings + getNativeDashboardSettings() { + return getNativeDashboardSettings; + } + + /** Returns the object with the settings used for calls to listNativeDashboards. */ + public PagedCallSettings< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + ListNativeDashboardsPagedResponse> + listNativeDashboardsSettings() { + return listNativeDashboardsSettings; + } + + /** Returns the object with the settings used for calls to updateNativeDashboard. */ + public UnaryCallSettings + updateNativeDashboardSettings() { + return updateNativeDashboardSettings; + } + + /** Returns the object with the settings used for calls to duplicateNativeDashboard. */ + public UnaryCallSettings + duplicateNativeDashboardSettings() { + return duplicateNativeDashboardSettings; + } + + /** Returns the object with the settings used for calls to deleteNativeDashboard. */ + public UnaryCallSettings deleteNativeDashboardSettings() { + return deleteNativeDashboardSettings; + } + + /** Returns the object with the settings used for calls to addChart. */ + public UnaryCallSettings addChartSettings() { + return addChartSettings; + } + + /** Returns the object with the settings used for calls to removeChart. */ + public UnaryCallSettings removeChartSettings() { + return removeChartSettings; + } + + /** Returns the object with the settings used for calls to editChart. */ + public UnaryCallSettings editChartSettings() { + return editChartSettings; + } + + /** Returns the object with the settings used for calls to duplicateChart. */ + public UnaryCallSettings duplicateChartSettings() { + return duplicateChartSettings; + } + + /** Returns the object with the settings used for calls to exportNativeDashboards. */ + public UnaryCallSettings + exportNativeDashboardsSettings() { + return exportNativeDashboardsSettings; + } + + /** Returns the object with the settings used for calls to importNativeDashboards. */ + public UnaryCallSettings + importNativeDashboardsSettings() { + return importNativeDashboardsSettings; + } + + public NativeDashboardServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcNativeDashboardServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonNativeDashboardServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "chronicle"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "chronicle.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "chronicle.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(NativeDashboardServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(NativeDashboardServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return NativeDashboardServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected NativeDashboardServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createNativeDashboardSettings = settingsBuilder.createNativeDashboardSettings().build(); + getNativeDashboardSettings = settingsBuilder.getNativeDashboardSettings().build(); + listNativeDashboardsSettings = settingsBuilder.listNativeDashboardsSettings().build(); + updateNativeDashboardSettings = settingsBuilder.updateNativeDashboardSettings().build(); + duplicateNativeDashboardSettings = settingsBuilder.duplicateNativeDashboardSettings().build(); + deleteNativeDashboardSettings = settingsBuilder.deleteNativeDashboardSettings().build(); + addChartSettings = settingsBuilder.addChartSettings().build(); + removeChartSettings = settingsBuilder.removeChartSettings().build(); + editChartSettings = settingsBuilder.editChartSettings().build(); + duplicateChartSettings = settingsBuilder.duplicateChartSettings().build(); + exportNativeDashboardsSettings = settingsBuilder.exportNativeDashboardsSettings().build(); + importNativeDashboardsSettings = settingsBuilder.importNativeDashboardsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-chronicle") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for NativeDashboardServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createNativeDashboardSettings; + private final UnaryCallSettings.Builder + getNativeDashboardSettings; + private final PagedCallSettings.Builder< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + ListNativeDashboardsPagedResponse> + listNativeDashboardsSettings; + private final UnaryCallSettings.Builder + updateNativeDashboardSettings; + private final UnaryCallSettings.Builder + duplicateNativeDashboardSettings; + private final UnaryCallSettings.Builder + deleteNativeDashboardSettings; + private final UnaryCallSettings.Builder addChartSettings; + private final UnaryCallSettings.Builder + removeChartSettings; + private final UnaryCallSettings.Builder editChartSettings; + private final UnaryCallSettings.Builder + duplicateChartSettings; + private final UnaryCallSettings.Builder< + ExportNativeDashboardsRequest, ExportNativeDashboardsResponse> + exportNativeDashboardsSettings; + private final UnaryCallSettings.Builder< + ImportNativeDashboardsRequest, ImportNativeDashboardsResponse> + importNativeDashboardsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_5_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createNativeDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getNativeDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listNativeDashboardsSettings = + PagedCallSettings.newBuilder(LIST_NATIVE_DASHBOARDS_PAGE_STR_FACT); + updateNativeDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + duplicateNativeDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteNativeDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addChartSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeChartSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + editChartSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + duplicateChartSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportNativeDashboardsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importNativeDashboardsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createNativeDashboardSettings, + getNativeDashboardSettings, + listNativeDashboardsSettings, + updateNativeDashboardSettings, + duplicateNativeDashboardSettings, + deleteNativeDashboardSettings, + addChartSettings, + removeChartSettings, + editChartSettings, + duplicateChartSettings, + exportNativeDashboardsSettings, + importNativeDashboardsSettings); + initDefaults(this); + } + + protected Builder(NativeDashboardServiceStubSettings settings) { + super(settings); + + createNativeDashboardSettings = settings.createNativeDashboardSettings.toBuilder(); + getNativeDashboardSettings = settings.getNativeDashboardSettings.toBuilder(); + listNativeDashboardsSettings = settings.listNativeDashboardsSettings.toBuilder(); + updateNativeDashboardSettings = settings.updateNativeDashboardSettings.toBuilder(); + duplicateNativeDashboardSettings = settings.duplicateNativeDashboardSettings.toBuilder(); + deleteNativeDashboardSettings = settings.deleteNativeDashboardSettings.toBuilder(); + addChartSettings = settings.addChartSettings.toBuilder(); + removeChartSettings = settings.removeChartSettings.toBuilder(); + editChartSettings = settings.editChartSettings.toBuilder(); + duplicateChartSettings = settings.duplicateChartSettings.toBuilder(); + exportNativeDashboardsSettings = settings.exportNativeDashboardsSettings.toBuilder(); + importNativeDashboardsSettings = settings.importNativeDashboardsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createNativeDashboardSettings, + getNativeDashboardSettings, + listNativeDashboardsSettings, + updateNativeDashboardSettings, + duplicateNativeDashboardSettings, + deleteNativeDashboardSettings, + addChartSettings, + removeChartSettings, + editChartSettings, + duplicateChartSettings, + exportNativeDashboardsSettings, + importNativeDashboardsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createNativeDashboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .getNativeDashboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listNativeDashboardsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateNativeDashboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .duplicateNativeDashboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .deleteNativeDashboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .addChartSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .removeChartSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .editChartSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .duplicateChartSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .exportNativeDashboardsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .importNativeDashboardsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createNativeDashboard. */ + public UnaryCallSettings.Builder + createNativeDashboardSettings() { + return createNativeDashboardSettings; + } + + /** Returns the builder for the settings used for calls to getNativeDashboard. */ + public UnaryCallSettings.Builder + getNativeDashboardSettings() { + return getNativeDashboardSettings; + } + + /** Returns the builder for the settings used for calls to listNativeDashboards. */ + public PagedCallSettings.Builder< + ListNativeDashboardsRequest, + ListNativeDashboardsResponse, + ListNativeDashboardsPagedResponse> + listNativeDashboardsSettings() { + return listNativeDashboardsSettings; + } + + /** Returns the builder for the settings used for calls to updateNativeDashboard. */ + public UnaryCallSettings.Builder + updateNativeDashboardSettings() { + return updateNativeDashboardSettings; + } + + /** Returns the builder for the settings used for calls to duplicateNativeDashboard. */ + public UnaryCallSettings.Builder + duplicateNativeDashboardSettings() { + return duplicateNativeDashboardSettings; + } + + /** Returns the builder for the settings used for calls to deleteNativeDashboard. */ + public UnaryCallSettings.Builder + deleteNativeDashboardSettings() { + return deleteNativeDashboardSettings; + } + + /** Returns the builder for the settings used for calls to addChart. */ + public UnaryCallSettings.Builder addChartSettings() { + return addChartSettings; + } + + /** Returns the builder for the settings used for calls to removeChart. */ + public UnaryCallSettings.Builder removeChartSettings() { + return removeChartSettings; + } + + /** Returns the builder for the settings used for calls to editChart. */ + public UnaryCallSettings.Builder editChartSettings() { + return editChartSettings; + } + + /** Returns the builder for the settings used for calls to duplicateChart. */ + public UnaryCallSettings.Builder + duplicateChartSettings() { + return duplicateChartSettings; + } + + /** Returns the builder for the settings used for calls to exportNativeDashboards. */ + public UnaryCallSettings.Builder + exportNativeDashboardsSettings() { + return exportNativeDashboardsSettings; + } + + /** Returns the builder for the settings used for calls to importNativeDashboards. */ + public UnaryCallSettings.Builder + importNativeDashboardsSettings() { + return importNativeDashboardsSettings; + } + + @Override + public NativeDashboardServiceStubSettings build() throws IOException { + return new NativeDashboardServiceStubSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java index 47d7bee0f9d0..3c766abbc5fc 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java @@ -360,7 +360,7 @@ public static class Builder "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -387,7 +387,7 @@ public static class Builder .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) .setTotalTimeoutDuration(Duration.ofMillis(60000L)) .build(); - definitions.put("no_retry_3_params", settings); + definitions.put("no_retry_5_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -465,13 +465,13 @@ private static Builder initDefaults(Builder builder) { builder .createReferenceListSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); builder .updateReferenceListSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); return builder; } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java index 101c1575798e..710be4b739c3 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java @@ -655,15 +655,15 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "retry_policy_2_codes", + "retry_policy_4_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "no_retry_4_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_6_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -679,7 +679,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Retrohunt.class)) diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/Version.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/Version.java index 60cb84c598eb..e75e82ffe33b 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/Version.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-chronicle:current} - static final String VERSION = "0.29.0"; + static final String VERSION = "0.30.0"; // {x-version-update-end} } diff --git a/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json b/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json index 291eb341ae20..05f4d474435d 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json +++ b/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json @@ -476,6 +476,186 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.AddChartRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AddChartRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AddChartResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AddChartResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AdvancedFilterConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AdvancedFilterConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AdvancedFilterConfig$ManualOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AdvancedFilterConfig$ManualOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AdvancedFilterConfig$QueryOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AdvancedFilterConfig$QueryOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AdvancedFilterConfig$ValueSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AdvancedFilterConfig$ValueSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.AxisType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BigQueryExport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BigQueryExport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BigQueryExportPackage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest", "queryAllDeclaredConstructors": true, @@ -620,6 +800,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.Button", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.Button$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.Button$Properties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.Button$Properties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ButtonStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ColumnMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ColumnMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.CompilationDiagnostic", "queryAllDeclaredConstructors": true, @@ -675,7 +918,1843 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateDataAccessLabelRequest$Builder", + "name": "com.google.cloud.chronicle.v1.CreateDataAccessLabelRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataAccessScopeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataAccessScopeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataTableRowRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataTableRowRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateNativeDashboardRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateNativeDashboardRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateReferenceListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateReferenceListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateRetrohuntRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateRetrohuntRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateWatchlistRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateWatchlistRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardAccess", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$ChartDatasource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$ChartDatasource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$DrillDownExternalLink", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$DrillDownExternalLink$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$DrillDownFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$DrillDownFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$DrillDownFilter$DrillDownDashboardFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$DrillDownFilter$DrillDownDashboardFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$DrillDownQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$CustomDrillDownSettings$DrillDownQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$DefaultDrillDownSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$DrillDownConfig$DrillDown$DefaultDrillDownSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Axis", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Axis$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$ColumnDef", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$ColumnDef$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$ColumnRenderTypeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$ColumnRenderTypeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$ColumnTooltipSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$ColumnTooltipSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$GoogleMapsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$GoogleMapsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$GoogleMapsConfig$DataSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$GoogleMapsConfig$DataSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$GoogleMapsConfig$MapPosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$GoogleMapsConfig$MapPosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$GoogleMapsConfig$PointSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$GoogleMapsConfig$PointSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Legend", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Legend$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$AreaStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$AreaStyle$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$ChartSliceColor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$ChartSliceColor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$DataLabel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$DataLabel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$Encode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$Encode$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$GaugeConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$GaugeConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$GaugeValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$GaugeValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$ItemColors", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$ItemColors$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$ItemStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$ItemStyle$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$MetricTrendConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$MetricTrendConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$UserSelectedValues", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Series$UserSelectedValues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$TableConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$TableConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Tooltip", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$Tooltip$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$VisualMap", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$VisualMap$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$VisualMap$VisualMapPiece", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardChart$Visualization$VisualMap$VisualMapPiece$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardDefinition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardDefinition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardDefinition$ChartConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardDefinition$ChartConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardDefinition$ChartConfig$ChartLayout", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardDefinition$ChartConfig$ChartLayout$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardQuery$Input", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardQuery$Input$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardQuery$Input$RelativeTime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardQuery$Input$RelativeTime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardUserData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DashboardUserData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataAccessLabel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataAccessLabel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataAccessLabelReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataAccessLabelReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataAccessScope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataAccessScope$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataSourceExportSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataSourceExportSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo$DataTableColumnType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableOperationErrors", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableOperationErrors$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableRow", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableRow$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableScopeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableScopeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableUpdateSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataTableRowRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataTableRowRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteWatchlistRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteWatchlistRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DuplicateChartRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DuplicateChartRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DuplicateChartResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DuplicateChartResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.EditChartRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.EditChartRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.EditChartResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.EditChartResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnType$List", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnType$List$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnValue$ValueMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse$ColumnValue$ValueMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FeaturedContentMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FeaturedContentMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FeaturedContentMetadata$ContentSourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FilterOperator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FilterOperatorAndValues", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.FilterOperatorAndValues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetBigQueryExportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetBigQueryExportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDashboardChartRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDashboardChartRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDashboardQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDashboardQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataAccessLabelRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataAccessLabelRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataAccessScopeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataAccessScopeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableRowRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableRowRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetNativeDashboardRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetNativeDashboardRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetReferenceListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetReferenceListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetRetrohuntRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetRetrohuntRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetRuleDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetRuleDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetRuleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateDataAccessScopeRequest", + "name": "com.google.cloud.chronicle.v1.GetRuleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateDataAccessScopeRequest$Builder", + "name": "com.google.cloud.chronicle.v1.GetWatchlistRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateDataTableRequest", + "name": "com.google.cloud.chronicle.v1.GetWatchlistRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateDataTableRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ImportExportStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateDataTableRowRequest", + "name": "com.google.cloud.chronicle.v1.ImportExportStatus$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateDataTableRowRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateReferenceListRequest", + "name": "com.google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateReferenceListRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateRetrohuntRequest", + "name": "com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateRetrohuntRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateRuleRequest", + "name": "com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateRuleRequest$Builder", + "name": "com.google.cloud.chronicle.v1.InAppLink", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateWatchlistRequest", + "name": "com.google.cloud.chronicle.v1.InAppLink$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.CreateWatchlistRequest$Builder", + "name": "com.google.cloud.chronicle.v1.IngestionLabel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataAccessLabel", + "name": "com.google.cloud.chronicle.v1.IngestionLabel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataAccessLabel$Builder", + "name": "com.google.cloud.chronicle.v1.InlineDestination", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataAccessLabelReference", + "name": "com.google.cloud.chronicle.v1.InlineDestination$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataAccessLabelReference$Builder", + "name": "com.google.cloud.chronicle.v1.InputsUsed", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataAccessScope", + "name": "com.google.cloud.chronicle.v1.InputsUsed$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataAccessScope$Builder", + "name": "com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTable", + "name": "com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTable$Builder", + "name": "com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo", + "name": "com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo$Builder", + "name": "com.google.cloud.chronicle.v1.Instance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo$DataTableColumnType", + "name": "com.google.cloud.chronicle.v1.Instance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableOperationErrors", + "name": "com.google.cloud.chronicle.v1.LanguageFeature", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableOperationErrors$Builder", + "name": "com.google.cloud.chronicle.v1.LatestExportJobState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableRow", + "name": "com.google.cloud.chronicle.v1.LegendAlign", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableRow$Builder", + "name": "com.google.cloud.chronicle.v1.LegendOrient", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableScopeInfo", + "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableScopeInfo$Builder", + "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DataTableUpdateSource", + "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest", + "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListDataAccessScopesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest", + "name": "com.google.cloud.chronicle.v1.ListDataAccessScopesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListDataAccessScopesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteDataTableRequest", + "name": "com.google.cloud.chronicle.v1.ListDataAccessScopesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteDataTableRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListDataTableRowsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteDataTableRowRequest", + "name": "com.google.cloud.chronicle.v1.ListDataTableRowsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteDataTableRowRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListDataTableRowsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteRuleRequest", + "name": "com.google.cloud.chronicle.v1.ListDataTableRowsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteRuleRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListDataTablesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteWatchlistRequest", + "name": "com.google.cloud.chronicle.v1.ListDataTablesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.DeleteWatchlistRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListDataTablesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataAccessLabelRequest", + "name": "com.google.cloud.chronicle.v1.ListDataTablesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataAccessLabelRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataAccessScopeRequest", + "name": "com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataAccessScopeRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest", + "name": "com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListNativeDashboardsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataTableRequest", + "name": "com.google.cloud.chronicle.v1.ListNativeDashboardsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +3222,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataTableRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListNativeDashboardsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +3231,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataTableRowRequest", + "name": "com.google.cloud.chronicle.v1.ListNativeDashboardsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +3240,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetDataTableRowRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListReferenceListsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +3249,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetInstanceRequest", + "name": "com.google.cloud.chronicle.v1.ListReferenceListsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +3258,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetInstanceRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListReferenceListsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +3267,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetReferenceListRequest", + "name": "com.google.cloud.chronicle.v1.ListReferenceListsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +3276,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetReferenceListRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListRetrohuntsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +3285,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetRetrohuntRequest", + "name": "com.google.cloud.chronicle.v1.ListRetrohuntsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +3294,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetRetrohuntRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListRetrohuntsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +3303,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetRuleDeploymentRequest", + "name": "com.google.cloud.chronicle.v1.ListRetrohuntsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +3312,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetRuleDeploymentRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListRuleDeploymentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +3321,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetRuleRequest", + "name": "com.google.cloud.chronicle.v1.ListRuleDeploymentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +3330,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetRuleRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListRuleDeploymentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +3339,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetWatchlistRequest", + "name": "com.google.cloud.chronicle.v1.ListRuleDeploymentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +3348,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.GetWatchlistRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +3357,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.IngestionLabel", + "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +3366,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.IngestionLabel$Builder", + "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +3375,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.InputsUsed", + "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +3384,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.InputsUsed$Builder", + "name": "com.google.cloud.chronicle.v1.ListRulesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +3393,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Instance", + "name": "com.google.cloud.chronicle.v1.ListRulesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +3402,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Instance$Builder", + "name": "com.google.cloud.chronicle.v1.ListRulesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +3411,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsRequest", + "name": "com.google.cloud.chronicle.v1.ListRulesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +3420,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ListWatchlistsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +3429,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsResponse", + "name": "com.google.cloud.chronicle.v1.ListWatchlistsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +3438,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataAccessLabelsResponse$Builder", + "name": "com.google.cloud.chronicle.v1.ListWatchlistsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +3447,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataAccessScopesRequest", + "name": "com.google.cloud.chronicle.v1.ListWatchlistsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +3456,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataAccessScopesRequest$Builder", + "name": "com.google.cloud.chronicle.v1.Markdown", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +3465,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataAccessScopesResponse", + "name": "com.google.cloud.chronicle.v1.Markdown$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +3474,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataAccessScopesResponse$Builder", + "name": "com.google.cloud.chronicle.v1.Markdown$MarkdownProperties", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +3483,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataTableRowsRequest", + "name": "com.google.cloud.chronicle.v1.Markdown$MarkdownProperties$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +3492,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataTableRowsRequest$Builder", + "name": "com.google.cloud.chronicle.v1.MetricDisplayTrend", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +3501,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataTableRowsResponse", + "name": "com.google.cloud.chronicle.v1.MetricFormat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +3510,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataTableRowsResponse$Builder", + "name": "com.google.cloud.chronicle.v1.MetricTrendType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +3519,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataTablesRequest", + "name": "com.google.cloud.chronicle.v1.NativeDashboard", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +3528,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataTablesRequest$Builder", + "name": "com.google.cloud.chronicle.v1.NativeDashboard$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +3537,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataTablesResponse", + "name": "com.google.cloud.chronicle.v1.NativeDashboardView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +3546,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListDataTablesResponse$Builder", + "name": "com.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +3555,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListReferenceListsRequest", + "name": "com.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +3564,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListReferenceListsRequest$Builder", + "name": "com.google.cloud.chronicle.v1.PlotMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +3573,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListReferenceListsResponse", + "name": "com.google.cloud.chronicle.v1.PointSizeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +3582,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListReferenceListsResponse$Builder", + "name": "com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +3591,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRetrohuntsRequest", + "name": "com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +3600,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRetrohuntsRequest$Builder", + "name": "com.google.cloud.chronicle.v1.QueryRuntimeError", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +3609,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRetrohuntsResponse", + "name": "com.google.cloud.chronicle.v1.QueryRuntimeError$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +3618,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRetrohuntsResponse$Builder", + "name": "com.google.cloud.chronicle.v1.QueryRuntimeError$ErrorSeverity", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +3627,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRuleDeploymentsRequest", + "name": "com.google.cloud.chronicle.v1.QueryRuntimeError$MetadataKey", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +3636,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRuleDeploymentsRequest$Builder", + "name": "com.google.cloud.chronicle.v1.QueryRuntimeError$QueryRuntimeErrorMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +3645,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRuleDeploymentsResponse", + "name": "com.google.cloud.chronicle.v1.QueryRuntimeError$QueryRuntimeErrorMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +3654,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRuleDeploymentsResponse$Builder", + "name": "com.google.cloud.chronicle.v1.QueryRuntimeError$WarningReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +3663,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsRequest", + "name": "com.google.cloud.chronicle.v1.ReferenceList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +3672,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ReferenceList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +3681,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsResponse", + "name": "com.google.cloud.chronicle.v1.ReferenceListEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +3690,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsResponse$Builder", + "name": "com.google.cloud.chronicle.v1.ReferenceListEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +3699,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRulesRequest", + "name": "com.google.cloud.chronicle.v1.ReferenceListScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +3708,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRulesRequest$Builder", + "name": "com.google.cloud.chronicle.v1.ReferenceListScope$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +3717,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRulesResponse", + "name": "com.google.cloud.chronicle.v1.ReferenceListSyntaxType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +3726,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListRulesResponse$Builder", + "name": "com.google.cloud.chronicle.v1.ReferenceListView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +3735,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListWatchlistsRequest", + "name": "com.google.cloud.chronicle.v1.RemoveChartRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +3744,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListWatchlistsRequest$Builder", + "name": "com.google.cloud.chronicle.v1.RemoveChartRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +3753,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListWatchlistsResponse", + "name": "com.google.cloud.chronicle.v1.RenderType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +3762,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ListWatchlistsResponse$Builder", + "name": "com.google.cloud.chronicle.v1.Retrohunt", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +3771,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ReferenceList", + "name": "com.google.cloud.chronicle.v1.Retrohunt$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +3780,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ReferenceList$Builder", + "name": "com.google.cloud.chronicle.v1.Retrohunt$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +3789,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ReferenceListEntry", + "name": "com.google.cloud.chronicle.v1.RetrohuntMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +3798,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ReferenceListEntry$Builder", + "name": "com.google.cloud.chronicle.v1.RetrohuntMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +3807,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ReferenceListScope", + "name": "com.google.cloud.chronicle.v1.Rule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +3816,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ReferenceListScope$Builder", + "name": "com.google.cloud.chronicle.v1.Rule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +3825,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ReferenceListSyntaxType", + "name": "com.google.cloud.chronicle.v1.Rule$CompilationState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +3834,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ReferenceListView", + "name": "com.google.cloud.chronicle.v1.RuleDeployment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +3843,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Retrohunt", + "name": "com.google.cloud.chronicle.v1.RuleDeployment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +3852,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Retrohunt$Builder", + "name": "com.google.cloud.chronicle.v1.RuleDeployment$ExecutionState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +3861,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Retrohunt$State", + "name": "com.google.cloud.chronicle.v1.RuleType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +3870,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.RetrohuntMetadata", + "name": "com.google.cloud.chronicle.v1.RuleView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +3879,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.RetrohuntMetadata$Builder", + "name": "com.google.cloud.chronicle.v1.RunFrequency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +3888,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Rule", + "name": "com.google.cloud.chronicle.v1.ScopeInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +3897,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Rule$Builder", + "name": "com.google.cloud.chronicle.v1.ScopeInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +3906,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Rule$CompilationState", + "name": "com.google.cloud.chronicle.v1.SeriesStackStrategy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +3915,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.RuleDeployment", + "name": "com.google.cloud.chronicle.v1.SeriesType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +3924,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.RuleDeployment$Builder", + "name": "com.google.cloud.chronicle.v1.Severity", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +3933,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.RuleDeployment$ExecutionState", + "name": "com.google.cloud.chronicle.v1.Severity$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +3942,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.RuleType", + "name": "com.google.cloud.chronicle.v1.TileType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +3951,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.RuleView", + "name": "com.google.cloud.chronicle.v1.TimeUnit", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +3960,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.RunFrequency", + "name": "com.google.cloud.chronicle.v1.TimestampMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +3969,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ScopeInfo", + "name": "com.google.cloud.chronicle.v1.TimestampMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +3978,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.ScopeInfo$Builder", + "name": "com.google.cloud.chronicle.v1.ToolTipTrigger", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +3987,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Severity", + "name": "com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +3996,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.chronicle.v1.Severity$Builder", + "name": "com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1997,6 +4076,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.UpdateReferenceListRequest", "queryAllDeclaredConstructors": true, @@ -2069,6 +4166,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.VisualMapType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.Watchlist", "queryAllDeclaredConstructors": true, @@ -3203,6 +5309,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.type.Date", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Date$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.type.Interval", "queryAllDeclaredConstructors": true, diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..057328e7c998 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClientHttpJsonTest.java @@ -0,0 +1,353 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.chronicle.v1.stub.HttpJsonBigQueryExportServiceStub; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BigQueryExportServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static BigQueryExportServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBigQueryExportServiceStub.getMethodDescriptors(), + BigQueryExportServiceSettings.getDefaultEndpoint()); + BigQueryExportServiceSettings settings = + BigQueryExportServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + BigQueryExportServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BigQueryExportServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BigQueryExportName name = BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + BigQueryExport actualResponse = client.getBigQueryExport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBigQueryExportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BigQueryExportName name = BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.getBigQueryExport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBigQueryExportTest2() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1911/locations/location-1911/instances/instance-1911/bigQueryExport"; + + BigQueryExport actualResponse = client.getBigQueryExport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBigQueryExportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1911/locations/location-1911/instances/instance-1911/bigQueryExport"; + client.getBigQueryExport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BigQueryExport bigQueryExport = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + BigQueryExport actualResponse = client.updateBigQueryExport(bigQueryExport, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBigQueryExportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BigQueryExport bigQueryExport = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBigQueryExport(bigQueryExport, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void provisionBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + BigQueryExport actualResponse = client.provisionBigQueryExport(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void provisionBigQueryExportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.provisionBigQueryExport(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void provisionBigQueryExportTest2() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + + BigQueryExport actualResponse = client.provisionBigQueryExport(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void provisionBigQueryExportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + client.provisionBigQueryExport(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClientTest.java new file mode 100644 index 000000000000..9bcb41583667 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClientTest.java @@ -0,0 +1,310 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BigQueryExportServiceClientTest { + private static MockBigQueryExportService mockBigQueryExportService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private BigQueryExportServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockBigQueryExportService = new MockBigQueryExportService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockBigQueryExportService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + BigQueryExportServiceSettings settings = + BigQueryExportServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BigQueryExportServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockBigQueryExportService.addResponse(expectedResponse); + + BigQueryExportName name = BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + BigQueryExport actualResponse = client.getBigQueryExport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigQueryExportService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBigQueryExportRequest actualRequest = ((GetBigQueryExportRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBigQueryExportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigQueryExportService.addException(exception); + + try { + BigQueryExportName name = BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.getBigQueryExport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBigQueryExportTest2() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockBigQueryExportService.addResponse(expectedResponse); + + String name = "name3373707"; + + BigQueryExport actualResponse = client.getBigQueryExport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigQueryExportService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBigQueryExportRequest actualRequest = ((GetBigQueryExportRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBigQueryExportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigQueryExportService.addException(exception); + + try { + String name = "name3373707"; + client.getBigQueryExport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockBigQueryExportService.addResponse(expectedResponse); + + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + BigQueryExport actualResponse = client.updateBigQueryExport(bigQueryExport, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigQueryExportService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBigQueryExportRequest actualRequest = + ((UpdateBigQueryExportRequest) actualRequests.get(0)); + + Assert.assertEquals(bigQueryExport, actualRequest.getBigQueryExport()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBigQueryExportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigQueryExportService.addException(exception); + + try { + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBigQueryExport(bigQueryExport, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void provisionBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockBigQueryExportService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + BigQueryExport actualResponse = client.provisionBigQueryExport(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigQueryExportService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ProvisionBigQueryExportRequest actualRequest = + ((ProvisionBigQueryExportRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void provisionBigQueryExportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigQueryExportService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.provisionBigQueryExport(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void provisionBigQueryExportTest2() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName(BigQueryExportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setProvisioned(true) + .setBigQueryExportPackage(BigQueryExportPackage.forNumber(0)) + .setEntityGraphSettings(DataSourceExportSettings.newBuilder().build()) + .setIocMatchesSettings(DataSourceExportSettings.newBuilder().build()) + .setRuleDetectionsSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsAggregatesSettings(DataSourceExportSettings.newBuilder().build()) + .setUdmEventsSettings(DataSourceExportSettings.newBuilder().build()) + .build(); + mockBigQueryExportService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + BigQueryExport actualResponse = client.provisionBigQueryExport(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigQueryExportService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ProvisionBigQueryExportRequest actualRequest = + ((ProvisionBigQueryExportRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void provisionBigQueryExportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigQueryExportService.addException(exception); + + try { + String parent = "parent-995424086"; + client.provisionBigQueryExport(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardChartServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardChartServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..3766c0254ea2 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardChartServiceClientHttpJsonTest.java @@ -0,0 +1,284 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.chronicle.v1.stub.HttpJsonDashboardChartServiceStub; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DashboardChartServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DashboardChartServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDashboardChartServiceStub.getMethodDescriptors(), + DashboardChartServiceSettings.getDefaultEndpoint()); + DashboardChartServiceSettings settings = + DashboardChartServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DashboardChartServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DashboardChartServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getDashboardChartTest() throws Exception { + DashboardChart expectedResponse = + DashboardChart.newBuilder() + .setName( + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setNativeDashboard( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setTileType(TileType.forNumber(0)) + .setChartDatasource(DashboardChart.ChartDatasource.newBuilder().build()) + .setVisualization(DashboardChart.Visualization.newBuilder().build()) + .setEtag("etag3123477") + .setDrillDownConfig(DashboardChart.DrillDownConfig.newBuilder().build()) + .addAllTokens(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DashboardChartName name = + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]"); + + DashboardChart actualResponse = client.getDashboardChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDashboardChartExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DashboardChartName name = + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]"); + client.getDashboardChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDashboardChartTest2() throws Exception { + DashboardChart expectedResponse = + DashboardChart.newBuilder() + .setName( + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setNativeDashboard( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setTileType(TileType.forNumber(0)) + .setChartDatasource(DashboardChart.ChartDatasource.newBuilder().build()) + .setVisualization(DashboardChart.Visualization.newBuilder().build()) + .setEtag("etag3123477") + .setDrillDownConfig(DashboardChart.DrillDownConfig.newBuilder().build()) + .addAllTokens(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7735/locations/location-7735/instances/instance-7735/dashboardCharts/dashboardChart-7735"; + + DashboardChart actualResponse = client.getDashboardChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDashboardChartExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7735/locations/location-7735/instances/instance-7735/dashboardCharts/dashboardChart-7735"; + client.getDashboardChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchGetDashboardChartsTest() throws Exception { + BatchGetDashboardChartsResponse expectedResponse = + BatchGetDashboardChartsResponse.newBuilder() + .addAllDashboardCharts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + List names = new ArrayList<>(); + + BatchGetDashboardChartsResponse actualResponse = client.batchGetDashboardCharts(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchGetDashboardChartsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + List names = new ArrayList<>(); + client.batchGetDashboardCharts(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchGetDashboardChartsTest2() throws Exception { + BatchGetDashboardChartsResponse expectedResponse = + BatchGetDashboardChartsResponse.newBuilder() + .addAllDashboardCharts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + List names = new ArrayList<>(); + + BatchGetDashboardChartsResponse actualResponse = client.batchGetDashboardCharts(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchGetDashboardChartsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + List names = new ArrayList<>(); + client.batchGetDashboardCharts(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardChartServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardChartServiceClientTest.java new file mode 100644 index 000000000000..e54dc77a8dec --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardChartServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DashboardChartServiceClientTest { + private static MockDashboardChartService mockDashboardChartService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DashboardChartServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDashboardChartService = new MockDashboardChartService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDashboardChartService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DashboardChartServiceSettings settings = + DashboardChartServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DashboardChartServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getDashboardChartTest() throws Exception { + DashboardChart expectedResponse = + DashboardChart.newBuilder() + .setName( + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setNativeDashboard( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setTileType(TileType.forNumber(0)) + .setChartDatasource(DashboardChart.ChartDatasource.newBuilder().build()) + .setVisualization(DashboardChart.Visualization.newBuilder().build()) + .setEtag("etag3123477") + .setDrillDownConfig(DashboardChart.DrillDownConfig.newBuilder().build()) + .addAllTokens(new ArrayList()) + .build(); + mockDashboardChartService.addResponse(expectedResponse); + + DashboardChartName name = + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]"); + + DashboardChart actualResponse = client.getDashboardChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardChartService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDashboardChartRequest actualRequest = ((GetDashboardChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDashboardChartExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardChartService.addException(exception); + + try { + DashboardChartName name = + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]"); + client.getDashboardChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDashboardChartTest2() throws Exception { + DashboardChart expectedResponse = + DashboardChart.newBuilder() + .setName( + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setNativeDashboard( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setTileType(TileType.forNumber(0)) + .setChartDatasource(DashboardChart.ChartDatasource.newBuilder().build()) + .setVisualization(DashboardChart.Visualization.newBuilder().build()) + .setEtag("etag3123477") + .setDrillDownConfig(DashboardChart.DrillDownConfig.newBuilder().build()) + .addAllTokens(new ArrayList()) + .build(); + mockDashboardChartService.addResponse(expectedResponse); + + String name = "name3373707"; + + DashboardChart actualResponse = client.getDashboardChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardChartService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDashboardChartRequest actualRequest = ((GetDashboardChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDashboardChartExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardChartService.addException(exception); + + try { + String name = "name3373707"; + client.getDashboardChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchGetDashboardChartsTest() throws Exception { + BatchGetDashboardChartsResponse expectedResponse = + BatchGetDashboardChartsResponse.newBuilder() + .addAllDashboardCharts(new ArrayList()) + .build(); + mockDashboardChartService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + List names = new ArrayList<>(); + + BatchGetDashboardChartsResponse actualResponse = client.batchGetDashboardCharts(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardChartService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchGetDashboardChartsRequest actualRequest = + ((BatchGetDashboardChartsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(names, actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchGetDashboardChartsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardChartService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + List names = new ArrayList<>(); + client.batchGetDashboardCharts(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchGetDashboardChartsTest2() throws Exception { + BatchGetDashboardChartsResponse expectedResponse = + BatchGetDashboardChartsResponse.newBuilder() + .addAllDashboardCharts(new ArrayList()) + .build(); + mockDashboardChartService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + List names = new ArrayList<>(); + + BatchGetDashboardChartsResponse actualResponse = client.batchGetDashboardCharts(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardChartService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchGetDashboardChartsRequest actualRequest = + ((BatchGetDashboardChartsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(names, actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchGetDashboardChartsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardChartService.addException(exception); + + try { + String parent = "parent-995424086"; + List names = new ArrayList<>(); + client.batchGetDashboardCharts(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..8b7751847ff8 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClientHttpJsonTest.java @@ -0,0 +1,286 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.chronicle.v1.stub.HttpJsonDashboardQueryServiceStub; +import com.google.protobuf.Timestamp; +import com.google.type.Interval; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DashboardQueryServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DashboardQueryServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDashboardQueryServiceStub.getMethodDescriptors(), + DashboardQueryServiceSettings.getDefaultEndpoint()); + DashboardQueryServiceSettings settings = + DashboardQueryServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DashboardQueryServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DashboardQueryServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getDashboardQueryTest() throws Exception { + DashboardQuery expectedResponse = + DashboardQuery.newBuilder() + .setName( + DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]") + .toString()) + .setQuery("query107944136") + .setInput(DashboardQuery.Input.newBuilder().build()) + .setDashboardChart( + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]") + .toString()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + DashboardQueryName name = + DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]"); + + DashboardQuery actualResponse = client.getDashboardQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDashboardQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DashboardQueryName name = + DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]"); + client.getDashboardQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDashboardQueryTest2() throws Exception { + DashboardQuery expectedResponse = + DashboardQuery.newBuilder() + .setName( + DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]") + .toString()) + .setQuery("query107944136") + .setInput(DashboardQuery.Input.newBuilder().build()) + .setDashboardChart( + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]") + .toString()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3032/locations/location-3032/instances/instance-3032/dashboardQueries/dashboardQuerie-3032"; + + DashboardQuery actualResponse = client.getDashboardQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDashboardQueryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3032/locations/location-3032/instances/instance-3032/dashboardQueries/dashboardQuerie-3032"; + client.getDashboardQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeDashboardQueryTest() throws Exception { + ExecuteDashboardQueryResponse expectedResponse = + ExecuteDashboardQueryResponse.newBuilder() + .addAllResults(new ArrayList()) + .addAllDataSources(new ArrayList()) + .setLastBackendCacheRefreshedTime(Timestamp.newBuilder().build()) + .setTimeWindow(Interval.newBuilder().build()) + .addAllQueryRuntimeErrors(new ArrayList()) + .addAllLanguageFeatures(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DashboardQuery query = DashboardQuery.newBuilder().build(); + + ExecuteDashboardQueryResponse actualResponse = client.executeDashboardQuery(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void executeDashboardQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DashboardQuery query = DashboardQuery.newBuilder().build(); + client.executeDashboardQuery(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeDashboardQueryTest2() throws Exception { + ExecuteDashboardQueryResponse expectedResponse = + ExecuteDashboardQueryResponse.newBuilder() + .addAllResults(new ArrayList()) + .addAllDataSources(new ArrayList()) + .setLastBackendCacheRefreshedTime(Timestamp.newBuilder().build()) + .setTimeWindow(Interval.newBuilder().build()) + .addAllQueryRuntimeErrors(new ArrayList()) + .addAllLanguageFeatures(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + DashboardQuery query = DashboardQuery.newBuilder().build(); + + ExecuteDashboardQueryResponse actualResponse = client.executeDashboardQuery(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void executeDashboardQueryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + DashboardQuery query = DashboardQuery.newBuilder().build(); + client.executeDashboardQuery(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClientTest.java new file mode 100644 index 000000000000..2b3b831a4aac --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClientTest.java @@ -0,0 +1,269 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import com.google.type.Interval; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DashboardQueryServiceClientTest { + private static MockDashboardQueryService mockDashboardQueryService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DashboardQueryServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDashboardQueryService = new MockDashboardQueryService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDashboardQueryService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DashboardQueryServiceSettings settings = + DashboardQueryServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DashboardQueryServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getDashboardQueryTest() throws Exception { + DashboardQuery expectedResponse = + DashboardQuery.newBuilder() + .setName( + DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]") + .toString()) + .setQuery("query107944136") + .setInput(DashboardQuery.Input.newBuilder().build()) + .setDashboardChart( + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]") + .toString()) + .setEtag("etag3123477") + .build(); + mockDashboardQueryService.addResponse(expectedResponse); + + DashboardQueryName name = + DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]"); + + DashboardQuery actualResponse = client.getDashboardQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDashboardQueryRequest actualRequest = ((GetDashboardQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDashboardQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardQueryService.addException(exception); + + try { + DashboardQueryName name = + DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]"); + client.getDashboardQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDashboardQueryTest2() throws Exception { + DashboardQuery expectedResponse = + DashboardQuery.newBuilder() + .setName( + DashboardQueryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[QUERY]") + .toString()) + .setQuery("query107944136") + .setInput(DashboardQuery.Input.newBuilder().build()) + .setDashboardChart( + DashboardChartName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[CHART]") + .toString()) + .setEtag("etag3123477") + .build(); + mockDashboardQueryService.addResponse(expectedResponse); + + String name = "name3373707"; + + DashboardQuery actualResponse = client.getDashboardQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDashboardQueryRequest actualRequest = ((GetDashboardQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDashboardQueryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardQueryService.addException(exception); + + try { + String name = "name3373707"; + client.getDashboardQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeDashboardQueryTest() throws Exception { + ExecuteDashboardQueryResponse expectedResponse = + ExecuteDashboardQueryResponse.newBuilder() + .addAllResults(new ArrayList()) + .addAllDataSources(new ArrayList()) + .setLastBackendCacheRefreshedTime(Timestamp.newBuilder().build()) + .setTimeWindow(Interval.newBuilder().build()) + .addAllQueryRuntimeErrors(new ArrayList()) + .addAllLanguageFeatures(new ArrayList()) + .build(); + mockDashboardQueryService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DashboardQuery query = DashboardQuery.newBuilder().build(); + + ExecuteDashboardQueryResponse actualResponse = client.executeDashboardQuery(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExecuteDashboardQueryRequest actualRequest = + ((ExecuteDashboardQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void executeDashboardQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardQueryService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DashboardQuery query = DashboardQuery.newBuilder().build(); + client.executeDashboardQuery(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeDashboardQueryTest2() throws Exception { + ExecuteDashboardQueryResponse expectedResponse = + ExecuteDashboardQueryResponse.newBuilder() + .addAllResults(new ArrayList()) + .addAllDataSources(new ArrayList()) + .setLastBackendCacheRefreshedTime(Timestamp.newBuilder().build()) + .setTimeWindow(Interval.newBuilder().build()) + .addAllQueryRuntimeErrors(new ArrayList()) + .addAllLanguageFeatures(new ArrayList()) + .build(); + mockDashboardQueryService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + DashboardQuery query = DashboardQuery.newBuilder().build(); + + ExecuteDashboardQueryResponse actualResponse = client.executeDashboardQuery(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExecuteDashboardQueryRequest actualRequest = + ((ExecuteDashboardQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void executeDashboardQueryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardQueryService.addException(exception); + + try { + String parent = "parent-995424086"; + DashboardQuery query = DashboardQuery.newBuilder().build(); + client.executeDashboardQuery(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..d41c94ad3f80 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClientHttpJsonTest.java @@ -0,0 +1,397 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.chronicle.v1.stub.HttpJsonFeaturedContentNativeDashboardServiceStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class FeaturedContentNativeDashboardServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static FeaturedContentNativeDashboardServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonFeaturedContentNativeDashboardServiceStub.getMethodDescriptors(), + FeaturedContentNativeDashboardServiceSettings.getDefaultEndpoint()); + FeaturedContentNativeDashboardServiceSettings settings = + FeaturedContentNativeDashboardServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + FeaturedContentNativeDashboardServiceSettings + .defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FeaturedContentNativeDashboardServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getFeaturedContentNativeDashboardTest() throws Exception { + FeaturedContentNativeDashboard expectedResponse = + FeaturedContentNativeDashboard.newBuilder() + .setName( + FeaturedContentNativeDashboardName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[FEATURED_CONTENT_NATIVE_DASHBOARD]") + .toString()) + .setContentMetadata(FeaturedContentMetadata.newBuilder().build()) + .setDashboardContent(NativeDashboardWithChartsAndQueries.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + FeaturedContentNativeDashboardName name = + FeaturedContentNativeDashboardName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"); + + FeaturedContentNativeDashboard actualResponse = client.getFeaturedContentNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFeaturedContentNativeDashboardExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FeaturedContentNativeDashboardName name = + FeaturedContentNativeDashboardName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"); + client.getFeaturedContentNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFeaturedContentNativeDashboardTest2() throws Exception { + FeaturedContentNativeDashboard expectedResponse = + FeaturedContentNativeDashboard.newBuilder() + .setName( + FeaturedContentNativeDashboardName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[FEATURED_CONTENT_NATIVE_DASHBOARD]") + .toString()) + .setContentMetadata(FeaturedContentMetadata.newBuilder().build()) + .setDashboardContent(NativeDashboardWithChartsAndQueries.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5212/locations/location-5212/instances/instance-5212/contentHub/featuredContentNativeDashboards/featuredContentNativeDashboard-5212"; + + FeaturedContentNativeDashboard actualResponse = client.getFeaturedContentNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFeaturedContentNativeDashboardExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5212/locations/location-5212/instances/instance-5212/contentHub/featuredContentNativeDashboards/featuredContentNativeDashboard-5212"; + client.getFeaturedContentNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturedContentNativeDashboardsTest() throws Exception { + FeaturedContentNativeDashboard responsesElement = + FeaturedContentNativeDashboard.newBuilder().build(); + ListFeaturedContentNativeDashboardsResponse expectedResponse = + ListFeaturedContentNativeDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllFeaturedContentNativeDashboards(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ContentHubName parent = ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListFeaturedContentNativeDashboardsPagedResponse pagedListResponse = + client.listFeaturedContentNativeDashboards(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFeaturedContentNativeDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFeaturedContentNativeDashboardsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ContentHubName parent = ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listFeaturedContentNativeDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturedContentNativeDashboardsTest2() throws Exception { + FeaturedContentNativeDashboard responsesElement = + FeaturedContentNativeDashboard.newBuilder().build(); + ListFeaturedContentNativeDashboardsResponse expectedResponse = + ListFeaturedContentNativeDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllFeaturedContentNativeDashboards(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-152/locations/location-152/instances/instance-152/contentHub"; + + ListFeaturedContentNativeDashboardsPagedResponse pagedListResponse = + client.listFeaturedContentNativeDashboards(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFeaturedContentNativeDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFeaturedContentNativeDashboardsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-152/locations/location-152/instances/instance-152/contentHub"; + client.listFeaturedContentNativeDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void installFeaturedContentNativeDashboardTest() throws Exception { + InstallFeaturedContentNativeDashboardResponse expectedResponse = + InstallFeaturedContentNativeDashboardResponse.newBuilder() + .setNativeDashboard( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + FeaturedContentNativeDashboardName name = + FeaturedContentNativeDashboardName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"); + + InstallFeaturedContentNativeDashboardResponse actualResponse = + client.installFeaturedContentNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void installFeaturedContentNativeDashboardExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FeaturedContentNativeDashboardName name = + FeaturedContentNativeDashboardName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"); + client.installFeaturedContentNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void installFeaturedContentNativeDashboardTest2() throws Exception { + InstallFeaturedContentNativeDashboardResponse expectedResponse = + InstallFeaturedContentNativeDashboardResponse.newBuilder() + .setNativeDashboard( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5212/locations/location-5212/instances/instance-5212/contentHub/featuredContentNativeDashboards/featuredContentNativeDashboard-5212"; + + InstallFeaturedContentNativeDashboardResponse actualResponse = + client.installFeaturedContentNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void installFeaturedContentNativeDashboardExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5212/locations/location-5212/instances/instance-5212/contentHub/featuredContentNativeDashboards/featuredContentNativeDashboard-5212"; + client.installFeaturedContentNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClientTest.java new file mode 100644 index 000000000000..bb3a8ac58491 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClientTest.java @@ -0,0 +1,366 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class FeaturedContentNativeDashboardServiceClientTest { + private static MockFeaturedContentNativeDashboardService + mockFeaturedContentNativeDashboardService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private FeaturedContentNativeDashboardServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockFeaturedContentNativeDashboardService = new MockFeaturedContentNativeDashboardService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockFeaturedContentNativeDashboardService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + FeaturedContentNativeDashboardServiceSettings settings = + FeaturedContentNativeDashboardServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FeaturedContentNativeDashboardServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getFeaturedContentNativeDashboardTest() throws Exception { + FeaturedContentNativeDashboard expectedResponse = + FeaturedContentNativeDashboard.newBuilder() + .setName( + FeaturedContentNativeDashboardName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[FEATURED_CONTENT_NATIVE_DASHBOARD]") + .toString()) + .setContentMetadata(FeaturedContentMetadata.newBuilder().build()) + .setDashboardContent(NativeDashboardWithChartsAndQueries.newBuilder().build()) + .build(); + mockFeaturedContentNativeDashboardService.addResponse(expectedResponse); + + FeaturedContentNativeDashboardName name = + FeaturedContentNativeDashboardName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"); + + FeaturedContentNativeDashboard actualResponse = client.getFeaturedContentNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturedContentNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFeaturedContentNativeDashboardRequest actualRequest = + ((GetFeaturedContentNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFeaturedContentNativeDashboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturedContentNativeDashboardService.addException(exception); + + try { + FeaturedContentNativeDashboardName name = + FeaturedContentNativeDashboardName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"); + client.getFeaturedContentNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFeaturedContentNativeDashboardTest2() throws Exception { + FeaturedContentNativeDashboard expectedResponse = + FeaturedContentNativeDashboard.newBuilder() + .setName( + FeaturedContentNativeDashboardName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[FEATURED_CONTENT_NATIVE_DASHBOARD]") + .toString()) + .setContentMetadata(FeaturedContentMetadata.newBuilder().build()) + .setDashboardContent(NativeDashboardWithChartsAndQueries.newBuilder().build()) + .build(); + mockFeaturedContentNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + FeaturedContentNativeDashboard actualResponse = client.getFeaturedContentNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturedContentNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFeaturedContentNativeDashboardRequest actualRequest = + ((GetFeaturedContentNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFeaturedContentNativeDashboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturedContentNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + client.getFeaturedContentNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturedContentNativeDashboardsTest() throws Exception { + FeaturedContentNativeDashboard responsesElement = + FeaturedContentNativeDashboard.newBuilder().build(); + ListFeaturedContentNativeDashboardsResponse expectedResponse = + ListFeaturedContentNativeDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllFeaturedContentNativeDashboards(Arrays.asList(responsesElement)) + .build(); + mockFeaturedContentNativeDashboardService.addResponse(expectedResponse); + + ContentHubName parent = ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListFeaturedContentNativeDashboardsPagedResponse pagedListResponse = + client.listFeaturedContentNativeDashboards(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFeaturedContentNativeDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockFeaturedContentNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFeaturedContentNativeDashboardsRequest actualRequest = + ((ListFeaturedContentNativeDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFeaturedContentNativeDashboardsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturedContentNativeDashboardService.addException(exception); + + try { + ContentHubName parent = ContentHubName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listFeaturedContentNativeDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturedContentNativeDashboardsTest2() throws Exception { + FeaturedContentNativeDashboard responsesElement = + FeaturedContentNativeDashboard.newBuilder().build(); + ListFeaturedContentNativeDashboardsResponse expectedResponse = + ListFeaturedContentNativeDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllFeaturedContentNativeDashboards(Arrays.asList(responsesElement)) + .build(); + mockFeaturedContentNativeDashboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFeaturedContentNativeDashboardsPagedResponse pagedListResponse = + client.listFeaturedContentNativeDashboards(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFeaturedContentNativeDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockFeaturedContentNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFeaturedContentNativeDashboardsRequest actualRequest = + ((ListFeaturedContentNativeDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFeaturedContentNativeDashboardsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturedContentNativeDashboardService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFeaturedContentNativeDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void installFeaturedContentNativeDashboardTest() throws Exception { + InstallFeaturedContentNativeDashboardResponse expectedResponse = + InstallFeaturedContentNativeDashboardResponse.newBuilder() + .setNativeDashboard( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .build(); + mockFeaturedContentNativeDashboardService.addResponse(expectedResponse); + + FeaturedContentNativeDashboardName name = + FeaturedContentNativeDashboardName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"); + + InstallFeaturedContentNativeDashboardResponse actualResponse = + client.installFeaturedContentNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturedContentNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InstallFeaturedContentNativeDashboardRequest actualRequest = + ((InstallFeaturedContentNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void installFeaturedContentNativeDashboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturedContentNativeDashboardService.addException(exception); + + try { + FeaturedContentNativeDashboardName name = + FeaturedContentNativeDashboardName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"); + client.installFeaturedContentNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void installFeaturedContentNativeDashboardTest2() throws Exception { + InstallFeaturedContentNativeDashboardResponse expectedResponse = + InstallFeaturedContentNativeDashboardResponse.newBuilder() + .setNativeDashboard( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .build(); + mockFeaturedContentNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + InstallFeaturedContentNativeDashboardResponse actualResponse = + client.installFeaturedContentNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturedContentNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InstallFeaturedContentNativeDashboardRequest actualRequest = + ((InstallFeaturedContentNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void installFeaturedContentNativeDashboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturedContentNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + client.installFeaturedContentNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockBigQueryExportService.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockBigQueryExportService.java new file mode 100644 index 000000000000..f0333d1e0c3f --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockBigQueryExportService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockBigQueryExportService implements MockGrpcService { + private final MockBigQueryExportServiceImpl serviceImpl; + + public MockBigQueryExportService() { + serviceImpl = new MockBigQueryExportServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockBigQueryExportServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockBigQueryExportServiceImpl.java new file mode 100644 index 000000000000..0985b9dee192 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockBigQueryExportServiceImpl.java @@ -0,0 +1,125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.chronicle.v1.BigQueryExportServiceGrpc.BigQueryExportServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockBigQueryExportServiceImpl extends BigQueryExportServiceImplBase { + private List requests; + private Queue responses; + + public MockBigQueryExportServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getBigQueryExport( + GetBigQueryExportRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BigQueryExport) { + requests.add(request); + responseObserver.onNext(((BigQueryExport) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetBigQueryExport, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BigQueryExport.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBigQueryExport( + UpdateBigQueryExportRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BigQueryExport) { + requests.add(request); + responseObserver.onNext(((BigQueryExport) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBigQueryExport, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + BigQueryExport.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void provisionBigQueryExport( + ProvisionBigQueryExportRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BigQueryExport) { + requests.add(request); + responseObserver.onNext(((BigQueryExport) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ProvisionBigQueryExport, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + BigQueryExport.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardChartService.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardChartService.java new file mode 100644 index 000000000000..5920922fa32d --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardChartService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDashboardChartService implements MockGrpcService { + private final MockDashboardChartServiceImpl serviceImpl; + + public MockDashboardChartService() { + serviceImpl = new MockDashboardChartServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardChartServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardChartServiceImpl.java new file mode 100644 index 000000000000..467d506c0ae2 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardChartServiceImpl.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.chronicle.v1.DashboardChartServiceGrpc.DashboardChartServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDashboardChartServiceImpl extends DashboardChartServiceImplBase { + private List requests; + private Queue responses; + + public MockDashboardChartServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getDashboardChart( + GetDashboardChartRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DashboardChart) { + requests.add(request); + responseObserver.onNext(((DashboardChart) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDashboardChart, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DashboardChart.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchGetDashboardCharts( + BatchGetDashboardChartsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchGetDashboardChartsResponse) { + requests.add(request); + responseObserver.onNext(((BatchGetDashboardChartsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchGetDashboardCharts, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + BatchGetDashboardChartsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardQueryService.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardQueryService.java new file mode 100644 index 000000000000..06d2f1ad9c96 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardQueryService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDashboardQueryService implements MockGrpcService { + private final MockDashboardQueryServiceImpl serviceImpl; + + public MockDashboardQueryService() { + serviceImpl = new MockDashboardQueryServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardQueryServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardQueryServiceImpl.java new file mode 100644 index 000000000000..8024652acb6b --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDashboardQueryServiceImpl.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.chronicle.v1.DashboardQueryServiceGrpc.DashboardQueryServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDashboardQueryServiceImpl extends DashboardQueryServiceImplBase { + private List requests; + private Queue responses; + + public MockDashboardQueryServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getDashboardQuery( + GetDashboardQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DashboardQuery) { + requests.add(request); + responseObserver.onNext(((DashboardQuery) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDashboardQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DashboardQuery.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void executeDashboardQuery( + ExecuteDashboardQueryRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExecuteDashboardQueryResponse) { + requests.add(request); + responseObserver.onNext(((ExecuteDashboardQueryResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExecuteDashboardQuery, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ExecuteDashboardQueryResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFeaturedContentNativeDashboardService.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFeaturedContentNativeDashboardService.java new file mode 100644 index 000000000000..a2a9ef8a90a6 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFeaturedContentNativeDashboardService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFeaturedContentNativeDashboardService implements MockGrpcService { + private final MockFeaturedContentNativeDashboardServiceImpl serviceImpl; + + public MockFeaturedContentNativeDashboardService() { + serviceImpl = new MockFeaturedContentNativeDashboardServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFeaturedContentNativeDashboardServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFeaturedContentNativeDashboardServiceImpl.java new file mode 100644 index 000000000000..080b30d0e78f --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockFeaturedContentNativeDashboardServiceImpl.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceGrpc.FeaturedContentNativeDashboardServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFeaturedContentNativeDashboardServiceImpl + extends FeaturedContentNativeDashboardServiceImplBase { + private List requests; + private Queue responses; + + public MockFeaturedContentNativeDashboardServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getFeaturedContentNativeDashboard( + GetFeaturedContentNativeDashboardRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FeaturedContentNativeDashboard) { + requests.add(request); + responseObserver.onNext(((FeaturedContentNativeDashboard) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetFeaturedContentNativeDashboard," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FeaturedContentNativeDashboard.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFeaturedContentNativeDashboards( + ListFeaturedContentNativeDashboardsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFeaturedContentNativeDashboardsResponse) { + requests.add(request); + responseObserver.onNext(((ListFeaturedContentNativeDashboardsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListFeaturedContentNativeDashboards," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFeaturedContentNativeDashboardsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void installFeaturedContentNativeDashboard( + InstallFeaturedContentNativeDashboardRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof InstallFeaturedContentNativeDashboardResponse) { + requests.add(request); + responseObserver.onNext(((InstallFeaturedContentNativeDashboardResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method InstallFeaturedContentNativeDashboard," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + InstallFeaturedContentNativeDashboardResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockNativeDashboardService.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockNativeDashboardService.java new file mode 100644 index 000000000000..f2f8f91c030b --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockNativeDashboardService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockNativeDashboardService implements MockGrpcService { + private final MockNativeDashboardServiceImpl serviceImpl; + + public MockNativeDashboardService() { + serviceImpl = new MockNativeDashboardServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockNativeDashboardServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockNativeDashboardServiceImpl.java new file mode 100644 index 000000000000..28ddb141f2d5 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockNativeDashboardServiceImpl.java @@ -0,0 +1,322 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.chronicle.v1.NativeDashboardServiceGrpc.NativeDashboardServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockNativeDashboardServiceImpl extends NativeDashboardServiceImplBase { + private List requests; + private Queue responses; + + public MockNativeDashboardServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createNativeDashboard( + CreateNativeDashboardRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NativeDashboard) { + requests.add(request); + responseObserver.onNext(((NativeDashboard) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateNativeDashboard, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + NativeDashboard.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getNativeDashboard( + GetNativeDashboardRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NativeDashboard) { + requests.add(request); + responseObserver.onNext(((NativeDashboard) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetNativeDashboard, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + NativeDashboard.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listNativeDashboards( + ListNativeDashboardsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListNativeDashboardsResponse) { + requests.add(request); + responseObserver.onNext(((ListNativeDashboardsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListNativeDashboards, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListNativeDashboardsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateNativeDashboard( + UpdateNativeDashboardRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NativeDashboard) { + requests.add(request); + responseObserver.onNext(((NativeDashboard) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateNativeDashboard, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + NativeDashboard.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void duplicateNativeDashboard( + DuplicateNativeDashboardRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NativeDashboard) { + requests.add(request); + responseObserver.onNext(((NativeDashboard) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DuplicateNativeDashboard, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + NativeDashboard.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteNativeDashboard( + DeleteNativeDashboardRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteNativeDashboard, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addChart(AddChartRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AddChartResponse) { + requests.add(request); + responseObserver.onNext(((AddChartResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AddChart, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AddChartResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void removeChart( + RemoveChartRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NativeDashboard) { + requests.add(request); + responseObserver.onNext(((NativeDashboard) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RemoveChart, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + NativeDashboard.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void editChart( + EditChartRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof EditChartResponse) { + requests.add(request); + responseObserver.onNext(((EditChartResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method EditChart, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + EditChartResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void duplicateChart( + DuplicateChartRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DuplicateChartResponse) { + requests.add(request); + responseObserver.onNext(((DuplicateChartResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DuplicateChart, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DuplicateChartResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void exportNativeDashboards( + ExportNativeDashboardsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExportNativeDashboardsResponse) { + requests.add(request); + responseObserver.onNext(((ExportNativeDashboardsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExportNativeDashboards, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ExportNativeDashboardsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importNativeDashboards( + ImportNativeDashboardsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ImportNativeDashboardsResponse) { + requests.add(request); + responseObserver.onNext(((ImportNativeDashboardsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ImportNativeDashboards, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ImportNativeDashboardsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..8040aed0e8a2 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClientHttpJsonTest.java @@ -0,0 +1,1320 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.NativeDashboardServiceClient.ListNativeDashboardsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.chronicle.v1.stub.HttpJsonNativeDashboardServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class NativeDashboardServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static NativeDashboardServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonNativeDashboardServiceStub.getMethodDescriptors(), + NativeDashboardServiceSettings.getDefaultEndpoint()); + NativeDashboardServiceSettings settings = + NativeDashboardServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + NativeDashboardServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = NativeDashboardServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createNativeDashboardTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + + NativeDashboard actualResponse = client.createNativeDashboard(parent, nativeDashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNativeDashboardExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + client.createNativeDashboard(parent, nativeDashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNativeDashboardTest2() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + + NativeDashboard actualResponse = client.createNativeDashboard(parent, nativeDashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNativeDashboardExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + client.createNativeDashboard(parent, nativeDashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNativeDashboardTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + + NativeDashboard actualResponse = client.getNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNativeDashboardExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + client.getNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNativeDashboardTest2() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + + NativeDashboard actualResponse = client.getNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNativeDashboardExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + client.getNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNativeDashboardsTest() throws Exception { + NativeDashboard responsesElement = NativeDashboard.newBuilder().build(); + ListNativeDashboardsResponse expectedResponse = + ListNativeDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllNativeDashboards(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListNativeDashboardsPagedResponse pagedListResponse = client.listNativeDashboards(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNativeDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listNativeDashboardsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listNativeDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNativeDashboardsTest2() throws Exception { + NativeDashboard responsesElement = NativeDashboard.newBuilder().build(); + ListNativeDashboardsResponse expectedResponse = + ListNativeDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllNativeDashboards(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + + ListNativeDashboardsPagedResponse pagedListResponse = client.listNativeDashboards(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNativeDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listNativeDashboardsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + client.listNativeDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNativeDashboardTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + NativeDashboard nativeDashboard = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NativeDashboard actualResponse = client.updateNativeDashboard(nativeDashboard, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateNativeDashboardExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NativeDashboard nativeDashboard = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNativeDashboard(nativeDashboard, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void duplicateNativeDashboardTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + + NativeDashboard actualResponse = client.duplicateNativeDashboard(name, nativeDashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void duplicateNativeDashboardExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + client.duplicateNativeDashboard(name, nativeDashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void duplicateNativeDashboardTest2() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + + NativeDashboard actualResponse = client.duplicateNativeDashboard(name, nativeDashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void duplicateNativeDashboardExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + client.duplicateNativeDashboard(name, nativeDashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNativeDashboardTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + + client.deleteNativeDashboard(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNativeDashboardExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + client.deleteNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNativeDashboardTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + + client.deleteNativeDashboard(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNativeDashboardExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + client.deleteNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addChartTest() throws Exception { + AddChartResponse expectedResponse = + AddChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + + AddChartResponse actualResponse = client.addChart(name, dashboardQuery, dashboardChart); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void addChartExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + client.addChart(name, dashboardQuery, dashboardChart); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addChartTest2() throws Exception { + AddChartResponse expectedResponse = + AddChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + + AddChartResponse actualResponse = client.addChart(name, dashboardQuery, dashboardChart); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void addChartExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + client.addChart(name, dashboardQuery, dashboardChart); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeChartTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + + NativeDashboard actualResponse = client.removeChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void removeChartExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + client.removeChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeChartTest2() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + + NativeDashboard actualResponse = client.removeChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void removeChartExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + client.removeChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void editChartTest() throws Exception { + EditChartResponse expectedResponse = + EditChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + FieldMask editMask = FieldMask.newBuilder().build(); + + EditChartResponse actualResponse = + client.editChart(name, dashboardQuery, dashboardChart, editMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void editChartExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + FieldMask editMask = FieldMask.newBuilder().build(); + client.editChart(name, dashboardQuery, dashboardChart, editMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void editChartTest2() throws Exception { + EditChartResponse expectedResponse = + EditChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + FieldMask editMask = FieldMask.newBuilder().build(); + + EditChartResponse actualResponse = + client.editChart(name, dashboardQuery, dashboardChart, editMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void editChartExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + FieldMask editMask = FieldMask.newBuilder().build(); + client.editChart(name, dashboardQuery, dashboardChart, editMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void duplicateChartTest() throws Exception { + DuplicateChartResponse expectedResponse = + DuplicateChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + + DuplicateChartResponse actualResponse = client.duplicateChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void duplicateChartExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + client.duplicateChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void duplicateChartTest2() throws Exception { + DuplicateChartResponse expectedResponse = + DuplicateChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + + DuplicateChartResponse actualResponse = client.duplicateChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void duplicateChartExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4644/locations/location-4644/instances/instance-4644/nativeDashboards/nativeDashboard-4644"; + client.duplicateChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportNativeDashboardsTest() throws Exception { + ExportNativeDashboardsResponse expectedResponse = + ExportNativeDashboardsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + List names = new ArrayList<>(); + + ExportNativeDashboardsResponse actualResponse = client.exportNativeDashboards(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportNativeDashboardsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + List names = new ArrayList<>(); + client.exportNativeDashboards(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportNativeDashboardsTest2() throws Exception { + ExportNativeDashboardsResponse expectedResponse = + ExportNativeDashboardsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + List names = new ArrayList<>(); + + ExportNativeDashboardsResponse actualResponse = client.exportNativeDashboards(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportNativeDashboardsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + List names = new ArrayList<>(); + client.exportNativeDashboards(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importNativeDashboardsTest() throws Exception { + ImportNativeDashboardsResponse expectedResponse = + ImportNativeDashboardsResponse.newBuilder() + .addAllResults(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + ImportNativeDashboardsInlineSource source = + ImportNativeDashboardsInlineSource.newBuilder().build(); + + ImportNativeDashboardsResponse actualResponse = client.importNativeDashboards(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importNativeDashboardsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + ImportNativeDashboardsInlineSource source = + ImportNativeDashboardsInlineSource.newBuilder().build(); + client.importNativeDashboards(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importNativeDashboardsTest2() throws Exception { + ImportNativeDashboardsResponse expectedResponse = + ImportNativeDashboardsResponse.newBuilder() + .addAllResults(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + ImportNativeDashboardsInlineSource source = + ImportNativeDashboardsInlineSource.newBuilder().build(); + + ImportNativeDashboardsResponse actualResponse = client.importNativeDashboards(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importNativeDashboardsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + ImportNativeDashboardsInlineSource source = + ImportNativeDashboardsInlineSource.newBuilder().build(); + client.importNativeDashboards(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClientTest.java new file mode 100644 index 000000000000..82273e6f5fda --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClientTest.java @@ -0,0 +1,1172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.NativeDashboardServiceClient.ListNativeDashboardsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class NativeDashboardServiceClientTest { + private static MockNativeDashboardService mockNativeDashboardService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private NativeDashboardServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockNativeDashboardService = new MockNativeDashboardService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockNativeDashboardService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + NativeDashboardServiceSettings settings = + NativeDashboardServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = NativeDashboardServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createNativeDashboardTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + + NativeDashboard actualResponse = client.createNativeDashboard(parent, nativeDashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNativeDashboardRequest actualRequest = + ((CreateNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(nativeDashboard, actualRequest.getNativeDashboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNativeDashboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + client.createNativeDashboard(parent, nativeDashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNativeDashboardTest2() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + + NativeDashboard actualResponse = client.createNativeDashboard(parent, nativeDashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNativeDashboardRequest actualRequest = + ((CreateNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(nativeDashboard, actualRequest.getNativeDashboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNativeDashboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String parent = "parent-995424086"; + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + client.createNativeDashboard(parent, nativeDashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNativeDashboardTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + + NativeDashboard actualResponse = client.getNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNativeDashboardRequest actualRequest = ((GetNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNativeDashboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + client.getNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNativeDashboardTest2() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + NativeDashboard actualResponse = client.getNativeDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNativeDashboardRequest actualRequest = ((GetNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNativeDashboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + client.getNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNativeDashboardsTest() throws Exception { + NativeDashboard responsesElement = NativeDashboard.newBuilder().build(); + ListNativeDashboardsResponse expectedResponse = + ListNativeDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllNativeDashboards(Arrays.asList(responsesElement)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListNativeDashboardsPagedResponse pagedListResponse = client.listNativeDashboards(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNativeDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNativeDashboardsRequest actualRequest = + ((ListNativeDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNativeDashboardsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listNativeDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNativeDashboardsTest2() throws Exception { + NativeDashboard responsesElement = NativeDashboard.newBuilder().build(); + ListNativeDashboardsResponse expectedResponse = + ListNativeDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllNativeDashboards(Arrays.asList(responsesElement)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListNativeDashboardsPagedResponse pagedListResponse = client.listNativeDashboards(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNativeDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNativeDashboardsRequest actualRequest = + ((ListNativeDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNativeDashboardsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listNativeDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNativeDashboardTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NativeDashboard actualResponse = client.updateNativeDashboard(nativeDashboard, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateNativeDashboardRequest actualRequest = + ((UpdateNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(nativeDashboard, actualRequest.getNativeDashboard()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateNativeDashboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNativeDashboard(nativeDashboard, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void duplicateNativeDashboardTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + + NativeDashboard actualResponse = client.duplicateNativeDashboard(name, nativeDashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DuplicateNativeDashboardRequest actualRequest = + ((DuplicateNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(nativeDashboard, actualRequest.getNativeDashboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void duplicateNativeDashboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + client.duplicateNativeDashboard(name, nativeDashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void duplicateNativeDashboardTest2() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + + NativeDashboard actualResponse = client.duplicateNativeDashboard(name, nativeDashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DuplicateNativeDashboardRequest actualRequest = + ((DuplicateNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(nativeDashboard, actualRequest.getNativeDashboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void duplicateNativeDashboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + NativeDashboard nativeDashboard = NativeDashboard.newBuilder().build(); + client.duplicateNativeDashboard(name, nativeDashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNativeDashboardTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockNativeDashboardService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + + client.deleteNativeDashboard(name); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteNativeDashboardRequest actualRequest = + ((DeleteNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteNativeDashboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + client.deleteNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNativeDashboardTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteNativeDashboard(name); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteNativeDashboardRequest actualRequest = + ((DeleteNativeDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteNativeDashboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + client.deleteNativeDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addChartTest() throws Exception { + AddChartResponse expectedResponse = + AddChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + + AddChartResponse actualResponse = client.addChart(name, dashboardQuery, dashboardChart); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddChartRequest actualRequest = ((AddChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(dashboardQuery, actualRequest.getDashboardQuery()); + Assert.assertEquals(dashboardChart, actualRequest.getDashboardChart()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addChartExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + client.addChart(name, dashboardQuery, dashboardChart); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addChartTest2() throws Exception { + AddChartResponse expectedResponse = + AddChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + + AddChartResponse actualResponse = client.addChart(name, dashboardQuery, dashboardChart); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddChartRequest actualRequest = ((AddChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(dashboardQuery, actualRequest.getDashboardQuery()); + Assert.assertEquals(dashboardChart, actualRequest.getDashboardChart()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addChartExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + client.addChart(name, dashboardQuery, dashboardChart); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeChartTest() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + + NativeDashboard actualResponse = client.removeChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveChartRequest actualRequest = ((RemoveChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeChartExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + client.removeChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeChartTest2() throws Exception { + NativeDashboard expectedResponse = + NativeDashboard.newBuilder() + .setName( + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefinition(DashboardDefinition.newBuilder().build()) + .setType(DashboardType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreateUserId("createUserId1591742050") + .setUpdateUserId("updateUserId-884287377") + .setDashboardUserData(DashboardUserData.newBuilder().build()) + .setEtag("etag3123477") + .setAccess(DashboardAccess.forNumber(0)) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + NativeDashboard actualResponse = client.removeChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveChartRequest actualRequest = ((RemoveChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeChartExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + client.removeChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void editChartTest() throws Exception { + EditChartResponse expectedResponse = + EditChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + FieldMask editMask = FieldMask.newBuilder().build(); + + EditChartResponse actualResponse = + client.editChart(name, dashboardQuery, dashboardChart, editMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EditChartRequest actualRequest = ((EditChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(dashboardQuery, actualRequest.getDashboardQuery()); + Assert.assertEquals(dashboardChart, actualRequest.getDashboardChart()); + Assert.assertEquals(editMask, actualRequest.getEditMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void editChartExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + FieldMask editMask = FieldMask.newBuilder().build(); + client.editChart(name, dashboardQuery, dashboardChart, editMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void editChartTest2() throws Exception { + EditChartResponse expectedResponse = + EditChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + FieldMask editMask = FieldMask.newBuilder().build(); + + EditChartResponse actualResponse = + client.editChart(name, dashboardQuery, dashboardChart, editMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EditChartRequest actualRequest = ((EditChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(dashboardQuery, actualRequest.getDashboardQuery()); + Assert.assertEquals(dashboardChart, actualRequest.getDashboardChart()); + Assert.assertEquals(editMask, actualRequest.getEditMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void editChartExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + DashboardQuery dashboardQuery = DashboardQuery.newBuilder().build(); + DashboardChart dashboardChart = DashboardChart.newBuilder().build(); + FieldMask editMask = FieldMask.newBuilder().build(); + client.editChart(name, dashboardQuery, dashboardChart, editMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void duplicateChartTest() throws Exception { + DuplicateChartResponse expectedResponse = + DuplicateChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + + DuplicateChartResponse actualResponse = client.duplicateChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DuplicateChartRequest actualRequest = ((DuplicateChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void duplicateChartExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + NativeDashboardName name = + NativeDashboardName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DASHBOARD]"); + client.duplicateChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void duplicateChartTest2() throws Exception { + DuplicateChartResponse expectedResponse = + DuplicateChartResponse.newBuilder() + .setNativeDashboard(NativeDashboard.newBuilder().build()) + .setDashboardChart(DashboardChart.newBuilder().build()) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + DuplicateChartResponse actualResponse = client.duplicateChart(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DuplicateChartRequest actualRequest = ((DuplicateChartRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void duplicateChartExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String name = "name3373707"; + client.duplicateChart(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportNativeDashboardsTest() throws Exception { + ExportNativeDashboardsResponse expectedResponse = + ExportNativeDashboardsResponse.newBuilder().build(); + mockNativeDashboardService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + List names = new ArrayList<>(); + + ExportNativeDashboardsResponse actualResponse = client.exportNativeDashboards(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportNativeDashboardsRequest actualRequest = + ((ExportNativeDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(names, actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportNativeDashboardsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + List names = new ArrayList<>(); + client.exportNativeDashboards(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportNativeDashboardsTest2() throws Exception { + ExportNativeDashboardsResponse expectedResponse = + ExportNativeDashboardsResponse.newBuilder().build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + List names = new ArrayList<>(); + + ExportNativeDashboardsResponse actualResponse = client.exportNativeDashboards(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportNativeDashboardsRequest actualRequest = + ((ExportNativeDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(names, actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportNativeDashboardsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String parent = "parent-995424086"; + List names = new ArrayList<>(); + client.exportNativeDashboards(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importNativeDashboardsTest() throws Exception { + ImportNativeDashboardsResponse expectedResponse = + ImportNativeDashboardsResponse.newBuilder() + .addAllResults(new ArrayList()) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + ImportNativeDashboardsInlineSource source = + ImportNativeDashboardsInlineSource.newBuilder().build(); + + ImportNativeDashboardsResponse actualResponse = client.importNativeDashboards(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportNativeDashboardsRequest actualRequest = + ((ImportNativeDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(source, actualRequest.getSource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importNativeDashboardsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + ImportNativeDashboardsInlineSource source = + ImportNativeDashboardsInlineSource.newBuilder().build(); + client.importNativeDashboards(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importNativeDashboardsTest2() throws Exception { + ImportNativeDashboardsResponse expectedResponse = + ImportNativeDashboardsResponse.newBuilder() + .addAllResults(new ArrayList()) + .build(); + mockNativeDashboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ImportNativeDashboardsInlineSource source = + ImportNativeDashboardsInlineSource.newBuilder().build(); + + ImportNativeDashboardsResponse actualResponse = client.importNativeDashboards(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNativeDashboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportNativeDashboardsRequest actualRequest = + ((ImportNativeDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(source, actualRequest.getSource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importNativeDashboardsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNativeDashboardService.addException(exception); + + try { + String parent = "parent-995424086"; + ImportNativeDashboardsInlineSource source = + ImportNativeDashboardsInlineSource.newBuilder().build(); + client.importNativeDashboards(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml b/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml index 5b290a4430e0..739ad2e05f7b 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.29.0 + 0.30.0 grpc-google-cloud-chronicle-v1 GRPC library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.29.0 + 0.30.0 diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceGrpc.java new file mode 100644 index 000000000000..dfdb7f06d033 --- /dev/null +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceGrpc.java @@ -0,0 +1,718 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.chronicle.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing BigQuery export configurations for Chronicle instances.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class BigQueryExportServiceGrpc { + + private BigQueryExportServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.chronicle.v1.BigQueryExportService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getGetBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBigQueryExport", + requestType = com.google.cloud.chronicle.v1.GetBigQueryExportRequest.class, + responseType = com.google.cloud.chronicle.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getGetBigQueryExportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getGetBigQueryExportMethod; + if ((getGetBigQueryExportMethod = BigQueryExportServiceGrpc.getGetBigQueryExportMethod) + == null) { + synchronized (BigQueryExportServiceGrpc.class) { + if ((getGetBigQueryExportMethod = BigQueryExportServiceGrpc.getGetBigQueryExportMethod) + == null) { + BigQueryExportServiceGrpc.getGetBigQueryExportMethod = + getGetBigQueryExportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetBigQueryExportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BigQueryExport.getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryExportServiceMethodDescriptorSupplier("GetBigQueryExport")) + .build(); + } + } + } + return getGetBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getUpdateBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBigQueryExport", + requestType = com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest.class, + responseType = com.google.cloud.chronicle.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getUpdateBigQueryExportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getUpdateBigQueryExportMethod; + if ((getUpdateBigQueryExportMethod = BigQueryExportServiceGrpc.getUpdateBigQueryExportMethod) + == null) { + synchronized (BigQueryExportServiceGrpc.class) { + if ((getUpdateBigQueryExportMethod = + BigQueryExportServiceGrpc.getUpdateBigQueryExportMethod) + == null) { + BigQueryExportServiceGrpc.getUpdateBigQueryExportMethod = + getUpdateBigQueryExportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BigQueryExport.getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryExportServiceMethodDescriptorSupplier("UpdateBigQueryExport")) + .build(); + } + } + } + return getUpdateBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getProvisionBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ProvisionBigQueryExport", + requestType = com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest.class, + responseType = com.google.cloud.chronicle.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getProvisionBigQueryExportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport> + getProvisionBigQueryExportMethod; + if ((getProvisionBigQueryExportMethod = + BigQueryExportServiceGrpc.getProvisionBigQueryExportMethod) + == null) { + synchronized (BigQueryExportServiceGrpc.class) { + if ((getProvisionBigQueryExportMethod = + BigQueryExportServiceGrpc.getProvisionBigQueryExportMethod) + == null) { + BigQueryExportServiceGrpc.getProvisionBigQueryExportMethod = + getProvisionBigQueryExportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ProvisionBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BigQueryExport.getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryExportServiceMethodDescriptorSupplier( + "ProvisionBigQueryExport")) + .build(); + } + } + } + return getProvisionBigQueryExportMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BigQueryExportServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryExportServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryExportServiceStub(channel, callOptions); + } + }; + return BigQueryExportServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static BigQueryExportServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryExportServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryExportServiceBlockingV2Stub(channel, callOptions); + } + }; + return BigQueryExportServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BigQueryExportServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryExportServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryExportServiceBlockingStub(channel, callOptions); + } + }; + return BigQueryExportServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BigQueryExportServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryExportServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryExportServiceFutureStub(channel, callOptions); + } + }; + return BigQueryExportServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing BigQuery export configurations for Chronicle instances.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Get the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + default void getBigQueryExport( + com.google.cloud.chronicle.v1.GetBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBigQueryExportMethod(), responseObserver); + } + + /** + * + * + *
+     * Update the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + default void updateBigQueryExport( + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBigQueryExportMethod(), responseObserver); + } + + /** + * + * + *
+     * Provision the BigQuery export for a Chronicle instance. This will create
+     * {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets
+     * and set default export settings for each data source.
+     * 
+ */ + default void provisionBigQueryExport( + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getProvisionBigQueryExportMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service BigQueryExportService. + * + *
+   * Service for managing BigQuery export configurations for Chronicle instances.
+   * 
+ */ + public abstract static class BigQueryExportServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return BigQueryExportServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service BigQueryExportService. + * + *
+   * Service for managing BigQuery export configurations for Chronicle instances.
+   * 
+ */ + public static final class BigQueryExportServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private BigQueryExportServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryExportServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryExportServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Get the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + public void getBigQueryExport( + com.google.cloud.chronicle.v1.GetBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + public void updateBigQueryExport( + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Provision the BigQuery export for a Chronicle instance. This will create
+     * {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets
+     * and set default export settings for each data source.
+     * 
+ */ + public void provisionBigQueryExport( + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProvisionBigQueryExportMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service BigQueryExportService. + * + *
+   * Service for managing BigQuery export configurations for Chronicle instances.
+   * 
+ */ + public static final class BigQueryExportServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private BigQueryExportServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryExportServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryExportServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Get the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BigQueryExport getBigQueryExport( + com.google.cloud.chronicle.v1.GetBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBigQueryExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BigQueryExport updateBigQueryExport( + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateBigQueryExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Provision the BigQuery export for a Chronicle instance. This will create
+     * {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets
+     * and set default export settings for each data source.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BigQueryExport provisionBigQueryExport( + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getProvisionBigQueryExportMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service BigQueryExportService. + * + *
+   * Service for managing BigQuery export configurations for Chronicle instances.
+   * 
+ */ + public static final class BigQueryExportServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BigQueryExportServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryExportServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryExportServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Get the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BigQueryExport getBigQueryExport( + com.google.cloud.chronicle.v1.GetBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBigQueryExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BigQueryExport updateBigQueryExport( + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBigQueryExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Provision the BigQuery export for a Chronicle instance. This will create
+     * {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets
+     * and set default export settings for each data source.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BigQueryExport provisionBigQueryExport( + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProvisionBigQueryExportMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * BigQueryExportService. + * + *
+   * Service for managing BigQuery export configurations for Chronicle instances.
+   * 
+ */ + public static final class BigQueryExportServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BigQueryExportServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryExportServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryExportServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Get the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.BigQueryExport> + getBigQueryExport(com.google.cloud.chronicle.v1.GetBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update the BigQuery export configuration for a Chronicle instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.BigQueryExport> + updateBigQueryExport(com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Provision the BigQuery export for a Chronicle instance. This will create
+     * {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets
+     * and set default export settings for each data source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.BigQueryExport> + provisionBigQueryExport( + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProvisionBigQueryExportMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_BIG_QUERY_EXPORT = 0; + private static final int METHODID_UPDATE_BIG_QUERY_EXPORT = 1; + private static final int METHODID_PROVISION_BIG_QUERY_EXPORT = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_BIG_QUERY_EXPORT: + serviceImpl.getBigQueryExport( + (com.google.cloud.chronicle.v1.GetBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_BIG_QUERY_EXPORT: + serviceImpl.updateBigQueryExport( + (com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_PROVISION_BIG_QUERY_EXPORT: + serviceImpl.provisionBigQueryExport( + (com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport>( + service, METHODID_GET_BIG_QUERY_EXPORT))) + .addMethod( + getUpdateBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.UpdateBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport>( + service, METHODID_UPDATE_BIG_QUERY_EXPORT))) + .addMethod( + getProvisionBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ProvisionBigQueryExportRequest, + com.google.cloud.chronicle.v1.BigQueryExport>( + service, METHODID_PROVISION_BIG_QUERY_EXPORT))) + .build(); + } + + private abstract static class BigQueryExportServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BigQueryExportServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.chronicle.v1.BigQueryExportProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BigQueryExportService"); + } + } + + private static final class BigQueryExportServiceFileDescriptorSupplier + extends BigQueryExportServiceBaseDescriptorSupplier { + BigQueryExportServiceFileDescriptorSupplier() {} + } + + private static final class BigQueryExportServiceMethodDescriptorSupplier + extends BigQueryExportServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + BigQueryExportServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BigQueryExportServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BigQueryExportServiceFileDescriptorSupplier()) + .addMethod(getGetBigQueryExportMethod()) + .addMethod(getUpdateBigQueryExportMethod()) + .addMethod(getProvisionBigQueryExportMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceGrpc.java new file mode 100644 index 000000000000..a8f49ba217b0 --- /dev/null +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceGrpc.java @@ -0,0 +1,572 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.chronicle.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service providing functionality for managing dashboards' charts.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class DashboardChartServiceGrpc { + + private DashboardChartServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.chronicle.v1.DashboardChartService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDashboardChartRequest, + com.google.cloud.chronicle.v1.DashboardChart> + getGetDashboardChartMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDashboardChart", + requestType = com.google.cloud.chronicle.v1.GetDashboardChartRequest.class, + responseType = com.google.cloud.chronicle.v1.DashboardChart.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDashboardChartRequest, + com.google.cloud.chronicle.v1.DashboardChart> + getGetDashboardChartMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDashboardChartRequest, + com.google.cloud.chronicle.v1.DashboardChart> + getGetDashboardChartMethod; + if ((getGetDashboardChartMethod = DashboardChartServiceGrpc.getGetDashboardChartMethod) + == null) { + synchronized (DashboardChartServiceGrpc.class) { + if ((getGetDashboardChartMethod = DashboardChartServiceGrpc.getGetDashboardChartMethod) + == null) { + DashboardChartServiceGrpc.getGetDashboardChartMethod = + getGetDashboardChartMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDashboardChart")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetDashboardChartRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance())) + .setSchemaDescriptor( + new DashboardChartServiceMethodDescriptorSupplier("GetDashboardChart")) + .build(); + } + } + } + return getGetDashboardChartMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest, + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse> + getBatchGetDashboardChartsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchGetDashboardCharts", + requestType = com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest.class, + responseType = com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest, + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse> + getBatchGetDashboardChartsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest, + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse> + getBatchGetDashboardChartsMethod; + if ((getBatchGetDashboardChartsMethod = + DashboardChartServiceGrpc.getBatchGetDashboardChartsMethod) + == null) { + synchronized (DashboardChartServiceGrpc.class) { + if ((getBatchGetDashboardChartsMethod = + DashboardChartServiceGrpc.getBatchGetDashboardChartsMethod) + == null) { + DashboardChartServiceGrpc.getBatchGetDashboardChartsMethod = + getBatchGetDashboardChartsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchGetDashboardCharts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DashboardChartServiceMethodDescriptorSupplier( + "BatchGetDashboardCharts")) + .build(); + } + } + } + return getBatchGetDashboardChartsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DashboardChartServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DashboardChartServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardChartServiceStub(channel, callOptions); + } + }; + return DashboardChartServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DashboardChartServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DashboardChartServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardChartServiceBlockingV2Stub(channel, callOptions); + } + }; + return DashboardChartServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DashboardChartServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DashboardChartServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardChartServiceBlockingStub(channel, callOptions); + } + }; + return DashboardChartServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DashboardChartServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DashboardChartServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardChartServiceFutureStub(channel, callOptions); + } + }; + return DashboardChartServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service providing functionality for managing dashboards' charts.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Get a dashboard chart.
+     * 
+ */ + default void getDashboardChart( + com.google.cloud.chronicle.v1.GetDashboardChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDashboardChartMethod(), responseObserver); + } + + /** + * + * + *
+     * Get dashboard charts in batches.
+     * 
+ */ + default void batchGetDashboardCharts( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchGetDashboardChartsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DashboardChartService. + * + *
+   * A service providing functionality for managing dashboards' charts.
+   * 
+ */ + public abstract static class DashboardChartServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DashboardChartServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DashboardChartService. + * + *
+   * A service providing functionality for managing dashboards' charts.
+   * 
+ */ + public static final class DashboardChartServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DashboardChartServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DashboardChartServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardChartServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a dashboard chart.
+     * 
+ */ + public void getDashboardChart( + com.google.cloud.chronicle.v1.GetDashboardChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDashboardChartMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get dashboard charts in batches.
+     * 
+ */ + public void batchGetDashboardCharts( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchGetDashboardChartsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DashboardChartService. + * + *
+   * A service providing functionality for managing dashboards' charts.
+   * 
+ */ + public static final class DashboardChartServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DashboardChartServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DashboardChartServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardChartServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Get a dashboard chart.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DashboardChart getDashboardChart( + com.google.cloud.chronicle.v1.GetDashboardChartRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDashboardChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get dashboard charts in batches.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse batchGetDashboardCharts( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getBatchGetDashboardChartsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service DashboardChartService. + * + *
+   * A service providing functionality for managing dashboards' charts.
+   * 
+ */ + public static final class DashboardChartServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DashboardChartServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DashboardChartServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardChartServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a dashboard chart.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DashboardChart getDashboardChart( + com.google.cloud.chronicle.v1.GetDashboardChartRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDashboardChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get dashboard charts in batches.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse batchGetDashboardCharts( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchGetDashboardChartsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * DashboardChartService. + * + *
+   * A service providing functionality for managing dashboards' charts.
+   * 
+ */ + public static final class DashboardChartServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DashboardChartServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DashboardChartServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardChartServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a dashboard chart.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DashboardChart> + getDashboardChart(com.google.cloud.chronicle.v1.GetDashboardChartRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDashboardChartMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get dashboard charts in batches.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse> + batchGetDashboardCharts( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetDashboardChartsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_DASHBOARD_CHART = 0; + private static final int METHODID_BATCH_GET_DASHBOARD_CHARTS = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_DASHBOARD_CHART: + serviceImpl.getDashboardChart( + (com.google.cloud.chronicle.v1.GetDashboardChartRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BATCH_GET_DASHBOARD_CHARTS: + serviceImpl.batchGetDashboardCharts( + (com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetDashboardChartMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetDashboardChartRequest, + com.google.cloud.chronicle.v1.DashboardChart>( + service, METHODID_GET_DASHBOARD_CHART))) + .addMethod( + getBatchGetDashboardChartsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest, + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse>( + service, METHODID_BATCH_GET_DASHBOARD_CHARTS))) + .build(); + } + + private abstract static class DashboardChartServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DashboardChartServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DashboardChartService"); + } + } + + private static final class DashboardChartServiceFileDescriptorSupplier + extends DashboardChartServiceBaseDescriptorSupplier { + DashboardChartServiceFileDescriptorSupplier() {} + } + + private static final class DashboardChartServiceMethodDescriptorSupplier + extends DashboardChartServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DashboardChartServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DashboardChartServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DashboardChartServiceFileDescriptorSupplier()) + .addMethod(getGetDashboardChartMethod()) + .addMethod(getBatchGetDashboardChartsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceGrpc.java new file mode 100644 index 000000000000..b91d1da095fc --- /dev/null +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceGrpc.java @@ -0,0 +1,570 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.chronicle.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service providing functionality for managing dashboards' queries.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class DashboardQueryServiceGrpc { + + private DashboardQueryServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.chronicle.v1.DashboardQueryService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDashboardQueryRequest, + com.google.cloud.chronicle.v1.DashboardQuery> + getGetDashboardQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDashboardQuery", + requestType = com.google.cloud.chronicle.v1.GetDashboardQueryRequest.class, + responseType = com.google.cloud.chronicle.v1.DashboardQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDashboardQueryRequest, + com.google.cloud.chronicle.v1.DashboardQuery> + getGetDashboardQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDashboardQueryRequest, + com.google.cloud.chronicle.v1.DashboardQuery> + getGetDashboardQueryMethod; + if ((getGetDashboardQueryMethod = DashboardQueryServiceGrpc.getGetDashboardQueryMethod) + == null) { + synchronized (DashboardQueryServiceGrpc.class) { + if ((getGetDashboardQueryMethod = DashboardQueryServiceGrpc.getGetDashboardQueryMethod) + == null) { + DashboardQueryServiceGrpc.getGetDashboardQueryMethod = + getGetDashboardQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDashboardQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetDashboardQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DashboardQuery.getDefaultInstance())) + .setSchemaDescriptor( + new DashboardQueryServiceMethodDescriptorSupplier("GetDashboardQuery")) + .build(); + } + } + } + return getGetDashboardQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest, + com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse> + getExecuteDashboardQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExecuteDashboardQuery", + requestType = com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest.class, + responseType = com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest, + com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse> + getExecuteDashboardQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest, + com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse> + getExecuteDashboardQueryMethod; + if ((getExecuteDashboardQueryMethod = DashboardQueryServiceGrpc.getExecuteDashboardQueryMethod) + == null) { + synchronized (DashboardQueryServiceGrpc.class) { + if ((getExecuteDashboardQueryMethod = + DashboardQueryServiceGrpc.getExecuteDashboardQueryMethod) + == null) { + DashboardQueryServiceGrpc.getExecuteDashboardQueryMethod = + getExecuteDashboardQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ExecuteDashboardQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DashboardQueryServiceMethodDescriptorSupplier( + "ExecuteDashboardQuery")) + .build(); + } + } + } + return getExecuteDashboardQueryMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DashboardQueryServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DashboardQueryServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardQueryServiceStub(channel, callOptions); + } + }; + return DashboardQueryServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DashboardQueryServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DashboardQueryServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardQueryServiceBlockingV2Stub(channel, callOptions); + } + }; + return DashboardQueryServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DashboardQueryServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DashboardQueryServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardQueryServiceBlockingStub(channel, callOptions); + } + }; + return DashboardQueryServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DashboardQueryServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DashboardQueryServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardQueryServiceFutureStub(channel, callOptions); + } + }; + return DashboardQueryServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service providing functionality for managing dashboards' queries.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Get a dashboard query.
+     * 
+ */ + default void getDashboardQuery( + com.google.cloud.chronicle.v1.GetDashboardQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDashboardQueryMethod(), responseObserver); + } + + /** + * + * + *
+     * Execute a query and return the data.
+     * 
+ */ + default void executeDashboardQuery( + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExecuteDashboardQueryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DashboardQueryService. + * + *
+   * A service providing functionality for managing dashboards' queries.
+   * 
+ */ + public abstract static class DashboardQueryServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DashboardQueryServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DashboardQueryService. + * + *
+   * A service providing functionality for managing dashboards' queries.
+   * 
+ */ + public static final class DashboardQueryServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DashboardQueryServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DashboardQueryServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardQueryServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a dashboard query.
+     * 
+ */ + public void getDashboardQuery( + com.google.cloud.chronicle.v1.GetDashboardQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDashboardQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Execute a query and return the data.
+     * 
+ */ + public void executeDashboardQuery( + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExecuteDashboardQueryMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DashboardQueryService. + * + *
+   * A service providing functionality for managing dashboards' queries.
+   * 
+ */ + public static final class DashboardQueryServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DashboardQueryServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DashboardQueryServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardQueryServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Get a dashboard query.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DashboardQuery getDashboardQuery( + com.google.cloud.chronicle.v1.GetDashboardQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDashboardQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Execute a query and return the data.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse executeDashboardQuery( + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExecuteDashboardQueryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service DashboardQueryService. + * + *
+   * A service providing functionality for managing dashboards' queries.
+   * 
+ */ + public static final class DashboardQueryServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DashboardQueryServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DashboardQueryServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardQueryServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a dashboard query.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DashboardQuery getDashboardQuery( + com.google.cloud.chronicle.v1.GetDashboardQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDashboardQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Execute a query and return the data.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse executeDashboardQuery( + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExecuteDashboardQueryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * DashboardQueryService. + * + *
+   * A service providing functionality for managing dashboards' queries.
+   * 
+ */ + public static final class DashboardQueryServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DashboardQueryServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DashboardQueryServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DashboardQueryServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a dashboard query.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DashboardQuery> + getDashboardQuery(com.google.cloud.chronicle.v1.GetDashboardQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDashboardQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Execute a query and return the data.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse> + executeDashboardQuery(com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExecuteDashboardQueryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_DASHBOARD_QUERY = 0; + private static final int METHODID_EXECUTE_DASHBOARD_QUERY = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_DASHBOARD_QUERY: + serviceImpl.getDashboardQuery( + (com.google.cloud.chronicle.v1.GetDashboardQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_EXECUTE_DASHBOARD_QUERY: + serviceImpl.executeDashboardQuery( + (com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetDashboardQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetDashboardQueryRequest, + com.google.cloud.chronicle.v1.DashboardQuery>( + service, METHODID_GET_DASHBOARD_QUERY))) + .addMethod( + getExecuteDashboardQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest, + com.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse>( + service, METHODID_EXECUTE_DASHBOARD_QUERY))) + .build(); + } + + private abstract static class DashboardQueryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DashboardQueryServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DashboardQueryService"); + } + } + + private static final class DashboardQueryServiceFileDescriptorSupplier + extends DashboardQueryServiceBaseDescriptorSupplier { + DashboardQueryServiceFileDescriptorSupplier() {} + } + + private static final class DashboardQueryServiceMethodDescriptorSupplier + extends DashboardQueryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DashboardQueryServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DashboardQueryServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DashboardQueryServiceFileDescriptorSupplier()) + .addMethod(getGetDashboardQueryMethod()) + .addMethod(getExecuteDashboardQueryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceGrpc.java new file mode 100644 index 000000000000..bef0605c09e1 --- /dev/null +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceGrpc.java @@ -0,0 +1,776 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.chronicle.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * This service provides functionality for managing
+ * FeaturedContentNativeDashboard.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class FeaturedContentNativeDashboardServiceGrpc { + + private FeaturedContentNativeDashboardServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest, + com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard> + getGetFeaturedContentNativeDashboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeaturedContentNativeDashboard", + requestType = com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest.class, + responseType = com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest, + com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard> + getGetFeaturedContentNativeDashboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest, + com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard> + getGetFeaturedContentNativeDashboardMethod; + if ((getGetFeaturedContentNativeDashboardMethod = + FeaturedContentNativeDashboardServiceGrpc.getGetFeaturedContentNativeDashboardMethod) + == null) { + synchronized (FeaturedContentNativeDashboardServiceGrpc.class) { + if ((getGetFeaturedContentNativeDashboardMethod = + FeaturedContentNativeDashboardServiceGrpc + .getGetFeaturedContentNativeDashboardMethod) + == null) { + FeaturedContentNativeDashboardServiceGrpc.getGetFeaturedContentNativeDashboardMethod = + getGetFeaturedContentNativeDashboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetFeaturedContentNativeDashboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturedContentNativeDashboardServiceMethodDescriptorSupplier( + "GetFeaturedContentNativeDashboard")) + .build(); + } + } + } + return getGetFeaturedContentNativeDashboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse> + getListFeaturedContentNativeDashboardsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeaturedContentNativeDashboards", + requestType = com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest.class, + responseType = + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse> + getListFeaturedContentNativeDashboardsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse> + getListFeaturedContentNativeDashboardsMethod; + if ((getListFeaturedContentNativeDashboardsMethod = + FeaturedContentNativeDashboardServiceGrpc.getListFeaturedContentNativeDashboardsMethod) + == null) { + synchronized (FeaturedContentNativeDashboardServiceGrpc.class) { + if ((getListFeaturedContentNativeDashboardsMethod = + FeaturedContentNativeDashboardServiceGrpc + .getListFeaturedContentNativeDashboardsMethod) + == null) { + FeaturedContentNativeDashboardServiceGrpc.getListFeaturedContentNativeDashboardsMethod = + getListFeaturedContentNativeDashboardsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListFeaturedContentNativeDashboards")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .ListFeaturedContentNativeDashboardsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .ListFeaturedContentNativeDashboardsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturedContentNativeDashboardServiceMethodDescriptorSupplier( + "ListFeaturedContentNativeDashboards")) + .build(); + } + } + } + return getListFeaturedContentNativeDashboardsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest, + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse> + getInstallFeaturedContentNativeDashboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InstallFeaturedContentNativeDashboard", + requestType = + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest.class, + responseType = + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest, + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse> + getInstallFeaturedContentNativeDashboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest, + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse> + getInstallFeaturedContentNativeDashboardMethod; + if ((getInstallFeaturedContentNativeDashboardMethod = + FeaturedContentNativeDashboardServiceGrpc + .getInstallFeaturedContentNativeDashboardMethod) + == null) { + synchronized (FeaturedContentNativeDashboardServiceGrpc.class) { + if ((getInstallFeaturedContentNativeDashboardMethod = + FeaturedContentNativeDashboardServiceGrpc + .getInstallFeaturedContentNativeDashboardMethod) + == null) { + FeaturedContentNativeDashboardServiceGrpc.getInstallFeaturedContentNativeDashboardMethod = + getInstallFeaturedContentNativeDashboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "InstallFeaturedContentNativeDashboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .InstallFeaturedContentNativeDashboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1 + .InstallFeaturedContentNativeDashboardResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturedContentNativeDashboardServiceMethodDescriptorSupplier( + "InstallFeaturedContentNativeDashboard")) + .build(); + } + } + } + return getInstallFeaturedContentNativeDashboardMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FeaturedContentNativeDashboardServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FeaturedContentNativeDashboardServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturedContentNativeDashboardServiceStub(channel, callOptions); + } + }; + return FeaturedContentNativeDashboardServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static FeaturedContentNativeDashboardServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory + factory = + new io.grpc.stub.AbstractStub.StubFactory< + FeaturedContentNativeDashboardServiceBlockingV2Stub>() { + @java.lang.Override + public FeaturedContentNativeDashboardServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturedContentNativeDashboardServiceBlockingV2Stub( + channel, callOptions); + } + }; + return FeaturedContentNativeDashboardServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FeaturedContentNativeDashboardServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory + factory = + new io.grpc.stub.AbstractStub.StubFactory< + FeaturedContentNativeDashboardServiceBlockingStub>() { + @java.lang.Override + public FeaturedContentNativeDashboardServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturedContentNativeDashboardServiceBlockingStub(channel, callOptions); + } + }; + return FeaturedContentNativeDashboardServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FeaturedContentNativeDashboardServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory< + FeaturedContentNativeDashboardServiceFutureStub>() { + @java.lang.Override + public FeaturedContentNativeDashboardServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturedContentNativeDashboardServiceFutureStub(channel, callOptions); + } + }; + return FeaturedContentNativeDashboardServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * This service provides functionality for managing
+   * FeaturedContentNativeDashboard.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Get a native dashboard featured content.
+     * 
+ */ + default void getFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFeaturedContentNativeDashboardMethod(), responseObserver); + } + + /** + * + * + *
+     * List all native dashboards featured content.
+     * 
+ */ + default void listFeaturedContentNativeDashboards( + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFeaturedContentNativeDashboardsMethod(), responseObserver); + } + + /** + * + * + *
+     * Install a native dashboard featured content.
+     * 
+ */ + default void installFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInstallFeaturedContentNativeDashboardMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service FeaturedContentNativeDashboardService. + * + *
+   * This service provides functionality for managing
+   * FeaturedContentNativeDashboard.
+   * 
+ */ + public abstract static class FeaturedContentNativeDashboardServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return FeaturedContentNativeDashboardServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service + * FeaturedContentNativeDashboardService. + * + *
+   * This service provides functionality for managing
+   * FeaturedContentNativeDashboard.
+   * 
+ */ + public static final class FeaturedContentNativeDashboardServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private FeaturedContentNativeDashboardServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturedContentNativeDashboardServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturedContentNativeDashboardServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a native dashboard featured content.
+     * 
+ */ + public void getFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeaturedContentNativeDashboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all native dashboards featured content.
+     * 
+ */ + public void listFeaturedContentNativeDashboards( + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturedContentNativeDashboardsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Install a native dashboard featured content.
+     * 
+ */ + public void installFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getInstallFeaturedContentNativeDashboardMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service + * FeaturedContentNativeDashboardService. + * + *
+   * This service provides functionality for managing
+   * FeaturedContentNativeDashboard.
+   * 
+ */ + public static final class FeaturedContentNativeDashboardServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub< + FeaturedContentNativeDashboardServiceBlockingV2Stub> { + private FeaturedContentNativeDashboardServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturedContentNativeDashboardServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturedContentNativeDashboardServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Get a native dashboard featured content.
+     * 
+ */ + public com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard + getFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFeaturedContentNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all native dashboards featured content.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse + listFeaturedContentNativeDashboards( + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFeaturedContentNativeDashboardsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Install a native dashboard featured content.
+     * 
+ */ + public com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse + installFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getInstallFeaturedContentNativeDashboardMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * FeaturedContentNativeDashboardService. + * + *
+   * This service provides functionality for managing
+   * FeaturedContentNativeDashboard.
+   * 
+ */ + public static final class FeaturedContentNativeDashboardServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private FeaturedContentNativeDashboardServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturedContentNativeDashboardServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturedContentNativeDashboardServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a native dashboard featured content.
+     * 
+ */ + public com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard + getFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeaturedContentNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all native dashboards featured content.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse + listFeaturedContentNativeDashboards( + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturedContentNativeDashboardsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Install a native dashboard featured content.
+     * 
+ */ + public com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse + installFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getInstallFeaturedContentNativeDashboardMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * FeaturedContentNativeDashboardService. + * + *
+   * This service provides functionality for managing
+   * FeaturedContentNativeDashboard.
+   * 
+ */ + public static final class FeaturedContentNativeDashboardServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private FeaturedContentNativeDashboardServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturedContentNativeDashboardServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturedContentNativeDashboardServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Get a native dashboard featured content.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard> + getFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeaturedContentNativeDashboardMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * List all native dashboards featured content.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse> + listFeaturedContentNativeDashboards( + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturedContentNativeDashboardsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Install a native dashboard featured content.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse> + installFeaturedContentNativeDashboard( + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getInstallFeaturedContentNativeDashboardMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_GET_FEATURED_CONTENT_NATIVE_DASHBOARD = 0; + private static final int METHODID_LIST_FEATURED_CONTENT_NATIVE_DASHBOARDS = 1; + private static final int METHODID_INSTALL_FEATURED_CONTENT_NATIVE_DASHBOARD = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_FEATURED_CONTENT_NATIVE_DASHBOARD: + serviceImpl.getFeaturedContentNativeDashboard( + (com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard>) + responseObserver); + break; + case METHODID_LIST_FEATURED_CONTENT_NATIVE_DASHBOARDS: + serviceImpl.listFeaturedContentNativeDashboards( + (com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse>) + responseObserver); + break; + case METHODID_INSTALL_FEATURED_CONTENT_NATIVE_DASHBOARD: + serviceImpl.installFeaturedContentNativeDashboard( + (com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetFeaturedContentNativeDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest, + com.google.cloud.chronicle.v1.FeaturedContentNativeDashboard>( + service, METHODID_GET_FEATURED_CONTENT_NATIVE_DASHBOARD))) + .addMethod( + getListFeaturedContentNativeDashboardsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse>( + service, METHODID_LIST_FEATURED_CONTENT_NATIVE_DASHBOARDS))) + .addMethod( + getInstallFeaturedContentNativeDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest, + com.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse>( + service, METHODID_INSTALL_FEATURED_CONTENT_NATIVE_DASHBOARD))) + .build(); + } + + private abstract static class FeaturedContentNativeDashboardServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FeaturedContentNativeDashboardServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.chronicle.v1.FeaturedContentNativeDashboardProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FeaturedContentNativeDashboardService"); + } + } + + private static final class FeaturedContentNativeDashboardServiceFileDescriptorSupplier + extends FeaturedContentNativeDashboardServiceBaseDescriptorSupplier { + FeaturedContentNativeDashboardServiceFileDescriptorSupplier() {} + } + + private static final class FeaturedContentNativeDashboardServiceMethodDescriptorSupplier + extends FeaturedContentNativeDashboardServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + FeaturedContentNativeDashboardServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FeaturedContentNativeDashboardServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new FeaturedContentNativeDashboardServiceFileDescriptorSupplier()) + .addMethod(getGetFeaturedContentNativeDashboardMethod()) + .addMethod(getListFeaturedContentNativeDashboardsMethod()) + .addMethod(getInstallFeaturedContentNativeDashboardMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceGrpc.java new file mode 100644 index 000000000000..0d063ef2a314 --- /dev/null +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceGrpc.java @@ -0,0 +1,1930 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.chronicle.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service providing functionality for managing native dashboards.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class NativeDashboardServiceGrpc { + + private NativeDashboardServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.chronicle.v1.NativeDashboardService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getCreateNativeDashboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNativeDashboard", + requestType = com.google.cloud.chronicle.v1.CreateNativeDashboardRequest.class, + responseType = com.google.cloud.chronicle.v1.NativeDashboard.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getCreateNativeDashboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getCreateNativeDashboardMethod; + if ((getCreateNativeDashboardMethod = NativeDashboardServiceGrpc.getCreateNativeDashboardMethod) + == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getCreateNativeDashboardMethod = + NativeDashboardServiceGrpc.getCreateNativeDashboardMethod) + == null) { + NativeDashboardServiceGrpc.getCreateNativeDashboardMethod = + getCreateNativeDashboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateNativeDashboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier( + "CreateNativeDashboard")) + .build(); + } + } + } + return getCreateNativeDashboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getGetNativeDashboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNativeDashboard", + requestType = com.google.cloud.chronicle.v1.GetNativeDashboardRequest.class, + responseType = com.google.cloud.chronicle.v1.NativeDashboard.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getGetNativeDashboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getGetNativeDashboardMethod; + if ((getGetNativeDashboardMethod = NativeDashboardServiceGrpc.getGetNativeDashboardMethod) + == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getGetNativeDashboardMethod = NativeDashboardServiceGrpc.getGetNativeDashboardMethod) + == null) { + NativeDashboardServiceGrpc.getGetNativeDashboardMethod = + getGetNativeDashboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNativeDashboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetNativeDashboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier("GetNativeDashboard")) + .build(); + } + } + } + return getGetNativeDashboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ListNativeDashboardsResponse> + getListNativeDashboardsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNativeDashboards", + requestType = com.google.cloud.chronicle.v1.ListNativeDashboardsRequest.class, + responseType = com.google.cloud.chronicle.v1.ListNativeDashboardsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ListNativeDashboardsResponse> + getListNativeDashboardsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ListNativeDashboardsResponse> + getListNativeDashboardsMethod; + if ((getListNativeDashboardsMethod = NativeDashboardServiceGrpc.getListNativeDashboardsMethod) + == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getListNativeDashboardsMethod = + NativeDashboardServiceGrpc.getListNativeDashboardsMethod) + == null) { + NativeDashboardServiceGrpc.getListNativeDashboardsMethod = + getListNativeDashboardsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListNativeDashboards")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListNativeDashboardsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier( + "ListNativeDashboards")) + .build(); + } + } + } + return getListNativeDashboardsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getUpdateNativeDashboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNativeDashboard", + requestType = com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest.class, + responseType = com.google.cloud.chronicle.v1.NativeDashboard.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getUpdateNativeDashboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getUpdateNativeDashboardMethod; + if ((getUpdateNativeDashboardMethod = NativeDashboardServiceGrpc.getUpdateNativeDashboardMethod) + == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getUpdateNativeDashboardMethod = + NativeDashboardServiceGrpc.getUpdateNativeDashboardMethod) + == null) { + NativeDashboardServiceGrpc.getUpdateNativeDashboardMethod = + getUpdateNativeDashboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateNativeDashboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier( + "UpdateNativeDashboard")) + .build(); + } + } + } + return getUpdateNativeDashboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getDuplicateNativeDashboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DuplicateNativeDashboard", + requestType = com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest.class, + responseType = com.google.cloud.chronicle.v1.NativeDashboard.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getDuplicateNativeDashboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getDuplicateNativeDashboardMethod; + if ((getDuplicateNativeDashboardMethod = + NativeDashboardServiceGrpc.getDuplicateNativeDashboardMethod) + == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getDuplicateNativeDashboardMethod = + NativeDashboardServiceGrpc.getDuplicateNativeDashboardMethod) + == null) { + NativeDashboardServiceGrpc.getDuplicateNativeDashboardMethod = + getDuplicateNativeDashboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DuplicateNativeDashboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier( + "DuplicateNativeDashboard")) + .build(); + } + } + } + return getDuplicateNativeDashboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest, com.google.protobuf.Empty> + getDeleteNativeDashboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNativeDashboard", + requestType = com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest, com.google.protobuf.Empty> + getDeleteNativeDashboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest, com.google.protobuf.Empty> + getDeleteNativeDashboardMethod; + if ((getDeleteNativeDashboardMethod = NativeDashboardServiceGrpc.getDeleteNativeDashboardMethod) + == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getDeleteNativeDashboardMethod = + NativeDashboardServiceGrpc.getDeleteNativeDashboardMethod) + == null) { + NativeDashboardServiceGrpc.getDeleteNativeDashboardMethod = + getDeleteNativeDashboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteNativeDashboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier( + "DeleteNativeDashboard")) + .build(); + } + } + } + return getDeleteNativeDashboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.AddChartRequest, + com.google.cloud.chronicle.v1.AddChartResponse> + getAddChartMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddChart", + requestType = com.google.cloud.chronicle.v1.AddChartRequest.class, + responseType = com.google.cloud.chronicle.v1.AddChartResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.AddChartRequest, + com.google.cloud.chronicle.v1.AddChartResponse> + getAddChartMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.AddChartRequest, + com.google.cloud.chronicle.v1.AddChartResponse> + getAddChartMethod; + if ((getAddChartMethod = NativeDashboardServiceGrpc.getAddChartMethod) == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getAddChartMethod = NativeDashboardServiceGrpc.getAddChartMethod) == null) { + NativeDashboardServiceGrpc.getAddChartMethod = + getAddChartMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddChart")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.AddChartRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.AddChartResponse.getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier("AddChart")) + .build(); + } + } + } + return getAddChartMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.RemoveChartRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getRemoveChartMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveChart", + requestType = com.google.cloud.chronicle.v1.RemoveChartRequest.class, + responseType = com.google.cloud.chronicle.v1.NativeDashboard.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.RemoveChartRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getRemoveChartMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.RemoveChartRequest, + com.google.cloud.chronicle.v1.NativeDashboard> + getRemoveChartMethod; + if ((getRemoveChartMethod = NativeDashboardServiceGrpc.getRemoveChartMethod) == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getRemoveChartMethod = NativeDashboardServiceGrpc.getRemoveChartMethod) == null) { + NativeDashboardServiceGrpc.getRemoveChartMethod = + getRemoveChartMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveChart")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.RemoveChartRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier("RemoveChart")) + .build(); + } + } + } + return getRemoveChartMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.EditChartRequest, + com.google.cloud.chronicle.v1.EditChartResponse> + getEditChartMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EditChart", + requestType = com.google.cloud.chronicle.v1.EditChartRequest.class, + responseType = com.google.cloud.chronicle.v1.EditChartResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.EditChartRequest, + com.google.cloud.chronicle.v1.EditChartResponse> + getEditChartMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.EditChartRequest, + com.google.cloud.chronicle.v1.EditChartResponse> + getEditChartMethod; + if ((getEditChartMethod = NativeDashboardServiceGrpc.getEditChartMethod) == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getEditChartMethod = NativeDashboardServiceGrpc.getEditChartMethod) == null) { + NativeDashboardServiceGrpc.getEditChartMethod = + getEditChartMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EditChart")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.EditChartRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.EditChartResponse.getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier("EditChart")) + .build(); + } + } + } + return getEditChartMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DuplicateChartRequest, + com.google.cloud.chronicle.v1.DuplicateChartResponse> + getDuplicateChartMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DuplicateChart", + requestType = com.google.cloud.chronicle.v1.DuplicateChartRequest.class, + responseType = com.google.cloud.chronicle.v1.DuplicateChartResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DuplicateChartRequest, + com.google.cloud.chronicle.v1.DuplicateChartResponse> + getDuplicateChartMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DuplicateChartRequest, + com.google.cloud.chronicle.v1.DuplicateChartResponse> + getDuplicateChartMethod; + if ((getDuplicateChartMethod = NativeDashboardServiceGrpc.getDuplicateChartMethod) == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getDuplicateChartMethod = NativeDashboardServiceGrpc.getDuplicateChartMethod) + == null) { + NativeDashboardServiceGrpc.getDuplicateChartMethod = + getDuplicateChartMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DuplicateChart")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DuplicateChartRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DuplicateChartResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier("DuplicateChart")) + .build(); + } + } + } + return getDuplicateChartMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse> + getExportNativeDashboardsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportNativeDashboards", + requestType = com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest.class, + responseType = com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse> + getExportNativeDashboardsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse> + getExportNativeDashboardsMethod; + if ((getExportNativeDashboardsMethod = + NativeDashboardServiceGrpc.getExportNativeDashboardsMethod) + == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getExportNativeDashboardsMethod = + NativeDashboardServiceGrpc.getExportNativeDashboardsMethod) + == null) { + NativeDashboardServiceGrpc.getExportNativeDashboardsMethod = + getExportNativeDashboardsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ExportNativeDashboards")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier( + "ExportNativeDashboards")) + .build(); + } + } + } + return getExportNativeDashboardsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse> + getImportNativeDashboardsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportNativeDashboards", + requestType = com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest.class, + responseType = com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse> + getImportNativeDashboardsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse> + getImportNativeDashboardsMethod; + if ((getImportNativeDashboardsMethod = + NativeDashboardServiceGrpc.getImportNativeDashboardsMethod) + == null) { + synchronized (NativeDashboardServiceGrpc.class) { + if ((getImportNativeDashboardsMethod = + NativeDashboardServiceGrpc.getImportNativeDashboardsMethod) + == null) { + NativeDashboardServiceGrpc.getImportNativeDashboardsMethod = + getImportNativeDashboardsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportNativeDashboards")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NativeDashboardServiceMethodDescriptorSupplier( + "ImportNativeDashboards")) + .build(); + } + } + } + return getImportNativeDashboardsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static NativeDashboardServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NativeDashboardServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NativeDashboardServiceStub(channel, callOptions); + } + }; + return NativeDashboardServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static NativeDashboardServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NativeDashboardServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NativeDashboardServiceBlockingV2Stub(channel, callOptions); + } + }; + return NativeDashboardServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static NativeDashboardServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NativeDashboardServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NativeDashboardServiceBlockingStub(channel, callOptions); + } + }; + return NativeDashboardServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static NativeDashboardServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NativeDashboardServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NativeDashboardServiceFutureStub(channel, callOptions); + } + }; + return NativeDashboardServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service providing functionality for managing native dashboards.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Create a dashboard.
+     * 
+ */ + default void createNativeDashboard( + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNativeDashboardMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a dashboard.
+     * 
+ */ + default void getNativeDashboard( + com.google.cloud.chronicle.v1.GetNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNativeDashboardMethod(), responseObserver); + } + + /** + * + * + *
+     * List all dashboards.
+     * 
+ */ + default void listNativeDashboards( + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNativeDashboardsMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a dashboard.
+     * 
+ */ + default void updateNativeDashboard( + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNativeDashboardMethod(), responseObserver); + } + + /** + * + * + *
+     * Duplicate a dashboard.
+     * 
+ */ + default void duplicateNativeDashboard( + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDuplicateNativeDashboardMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a dashboard.
+     * 
+ */ + default void deleteNativeDashboard( + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNativeDashboardMethod(), responseObserver); + } + + /** + * + * + *
+     * Add chart in a dashboard.
+     * 
+ */ + default void addChart( + com.google.cloud.chronicle.v1.AddChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddChartMethod(), responseObserver); + } + + /** + * + * + *
+     * Remove chart from a dashboard.
+     * 
+ */ + default void removeChart( + com.google.cloud.chronicle.v1.RemoveChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveChartMethod(), responseObserver); + } + + /** + * + * + *
+     * Edit chart in a dashboard.
+     * 
+ */ + default void editChart( + com.google.cloud.chronicle.v1.EditChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEditChartMethod(), responseObserver); + } + + /** + * + * + *
+     * Duplicate chart in a dashboard.
+     * 
+ */ + default void duplicateChart( + com.google.cloud.chronicle.v1.DuplicateChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDuplicateChartMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports the dashboards.
+     * 
+ */ + default void exportNativeDashboards( + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportNativeDashboardsMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports the dashboards.
+     * 
+ */ + default void importNativeDashboards( + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportNativeDashboardsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service NativeDashboardService. + * + *
+   * A service providing functionality for managing native dashboards.
+   * 
+ */ + public abstract static class NativeDashboardServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return NativeDashboardServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service NativeDashboardService. + * + *
+   * A service providing functionality for managing native dashboards.
+   * 
+ */ + public static final class NativeDashboardServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private NativeDashboardServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NativeDashboardServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NativeDashboardServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a dashboard.
+     * 
+ */ + public void createNativeDashboard( + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNativeDashboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a dashboard.
+     * 
+ */ + public void getNativeDashboard( + com.google.cloud.chronicle.v1.GetNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNativeDashboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all dashboards.
+     * 
+ */ + public void listNativeDashboards( + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNativeDashboardsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a dashboard.
+     * 
+ */ + public void updateNativeDashboard( + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNativeDashboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Duplicate a dashboard.
+     * 
+ */ + public void duplicateNativeDashboard( + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDuplicateNativeDashboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a dashboard.
+     * 
+ */ + public void deleteNativeDashboard( + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNativeDashboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Add chart in a dashboard.
+     * 
+ */ + public void addChart( + com.google.cloud.chronicle.v1.AddChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddChartMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Remove chart from a dashboard.
+     * 
+ */ + public void removeChart( + com.google.cloud.chronicle.v1.RemoveChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveChartMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Edit chart in a dashboard.
+     * 
+ */ + public void editChart( + com.google.cloud.chronicle.v1.EditChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEditChartMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Duplicate chart in a dashboard.
+     * 
+ */ + public void duplicateChart( + com.google.cloud.chronicle.v1.DuplicateChartRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDuplicateChartMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Exports the dashboards.
+     * 
+ */ + public void exportNativeDashboards( + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportNativeDashboardsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports the dashboards.
+     * 
+ */ + public void importNativeDashboards( + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportNativeDashboardsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service NativeDashboardService. + * + *
+   * A service providing functionality for managing native dashboards.
+   * 
+ */ + public static final class NativeDashboardServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private NativeDashboardServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NativeDashboardServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NativeDashboardServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Create a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard createNativeDashboard( + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard getNativeDashboard( + com.google.cloud.chronicle.v1.GetNativeDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all dashboards.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ListNativeDashboardsResponse listNativeDashboards( + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListNativeDashboardsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard updateNativeDashboard( + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Duplicate a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard duplicateNativeDashboard( + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDuplicateNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a dashboard.
+     * 
+ */ + public com.google.protobuf.Empty deleteNativeDashboard( + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Add chart in a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.AddChartResponse addChart( + com.google.cloud.chronicle.v1.AddChartRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAddChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Remove chart from a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard removeChart( + com.google.cloud.chronicle.v1.RemoveChartRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRemoveChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Edit chart in a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.EditChartResponse editChart( + com.google.cloud.chronicle.v1.EditChartRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getEditChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Duplicate chart in a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DuplicateChartResponse duplicateChart( + com.google.cloud.chronicle.v1.DuplicateChartRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDuplicateChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports the dashboards.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse exportNativeDashboards( + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportNativeDashboardsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports the dashboards.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse importNativeDashboards( + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getImportNativeDashboardsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service NativeDashboardService. + * + *
+   * A service providing functionality for managing native dashboards.
+   * 
+ */ + public static final class NativeDashboardServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private NativeDashboardServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NativeDashboardServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NativeDashboardServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard createNativeDashboard( + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard getNativeDashboard( + com.google.cloud.chronicle.v1.GetNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all dashboards.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ListNativeDashboardsResponse listNativeDashboards( + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNativeDashboardsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard updateNativeDashboard( + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Duplicate a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard duplicateNativeDashboard( + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDuplicateNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a dashboard.
+     * 
+ */ + public com.google.protobuf.Empty deleteNativeDashboard( + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNativeDashboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Add chart in a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.AddChartResponse addChart( + com.google.cloud.chronicle.v1.AddChartRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Remove chart from a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.NativeDashboard removeChart( + com.google.cloud.chronicle.v1.RemoveChartRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Edit chart in a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.EditChartResponse editChart( + com.google.cloud.chronicle.v1.EditChartRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEditChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Duplicate chart in a dashboard.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DuplicateChartResponse duplicateChart( + com.google.cloud.chronicle.v1.DuplicateChartRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDuplicateChartMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports the dashboards.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse exportNativeDashboards( + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportNativeDashboardsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports the dashboards.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse importNativeDashboards( + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportNativeDashboardsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * NativeDashboardService. + * + *
+   * A service providing functionality for managing native dashboards.
+   * 
+ */ + public static final class NativeDashboardServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private NativeDashboardServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NativeDashboardServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NativeDashboardServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.NativeDashboard> + createNativeDashboard(com.google.cloud.chronicle.v1.CreateNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNativeDashboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.NativeDashboard> + getNativeDashboard(com.google.cloud.chronicle.v1.GetNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNativeDashboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all dashboards.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ListNativeDashboardsResponse> + listNativeDashboards(com.google.cloud.chronicle.v1.ListNativeDashboardsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNativeDashboardsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.NativeDashboard> + updateNativeDashboard(com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNativeDashboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Duplicate a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.NativeDashboard> + duplicateNativeDashboard( + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDuplicateNativeDashboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteNativeDashboard(com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNativeDashboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Add chart in a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.AddChartResponse> + addChart(com.google.cloud.chronicle.v1.AddChartRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddChartMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Remove chart from a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.NativeDashboard> + removeChart(com.google.cloud.chronicle.v1.RemoveChartRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveChartMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Edit chart in a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.EditChartResponse> + editChart(com.google.cloud.chronicle.v1.EditChartRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEditChartMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Duplicate chart in a dashboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DuplicateChartResponse> + duplicateChart(com.google.cloud.chronicle.v1.DuplicateChartRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDuplicateChartMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports the dashboards.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse> + exportNativeDashboards( + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportNativeDashboardsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports the dashboards.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse> + importNativeDashboards( + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportNativeDashboardsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_NATIVE_DASHBOARD = 0; + private static final int METHODID_GET_NATIVE_DASHBOARD = 1; + private static final int METHODID_LIST_NATIVE_DASHBOARDS = 2; + private static final int METHODID_UPDATE_NATIVE_DASHBOARD = 3; + private static final int METHODID_DUPLICATE_NATIVE_DASHBOARD = 4; + private static final int METHODID_DELETE_NATIVE_DASHBOARD = 5; + private static final int METHODID_ADD_CHART = 6; + private static final int METHODID_REMOVE_CHART = 7; + private static final int METHODID_EDIT_CHART = 8; + private static final int METHODID_DUPLICATE_CHART = 9; + private static final int METHODID_EXPORT_NATIVE_DASHBOARDS = 10; + private static final int METHODID_IMPORT_NATIVE_DASHBOARDS = 11; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_NATIVE_DASHBOARD: + serviceImpl.createNativeDashboard( + (com.google.cloud.chronicle.v1.CreateNativeDashboardRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NATIVE_DASHBOARD: + serviceImpl.getNativeDashboard( + (com.google.cloud.chronicle.v1.GetNativeDashboardRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NATIVE_DASHBOARDS: + serviceImpl.listNativeDashboards( + (com.google.cloud.chronicle.v1.ListNativeDashboardsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListNativeDashboardsResponse>) + responseObserver); + break; + case METHODID_UPDATE_NATIVE_DASHBOARD: + serviceImpl.updateNativeDashboard( + (com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DUPLICATE_NATIVE_DASHBOARD: + serviceImpl.duplicateNativeDashboard( + (com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_NATIVE_DASHBOARD: + serviceImpl.deleteNativeDashboard( + (com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ADD_CHART: + serviceImpl.addChart( + (com.google.cloud.chronicle.v1.AddChartRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REMOVE_CHART: + serviceImpl.removeChart( + (com.google.cloud.chronicle.v1.RemoveChartRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_EDIT_CHART: + serviceImpl.editChart( + (com.google.cloud.chronicle.v1.EditChartRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DUPLICATE_CHART: + serviceImpl.duplicateChart( + (com.google.cloud.chronicle.v1.DuplicateChartRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_EXPORT_NATIVE_DASHBOARDS: + serviceImpl.exportNativeDashboards( + (com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse>) + responseObserver); + break; + case METHODID_IMPORT_NATIVE_DASHBOARDS: + serviceImpl.importNativeDashboards( + (com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateNativeDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.CreateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard>( + service, METHODID_CREATE_NATIVE_DASHBOARD))) + .addMethod( + getGetNativeDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard>( + service, METHODID_GET_NATIVE_DASHBOARD))) + .addMethod( + getListNativeDashboardsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ListNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ListNativeDashboardsResponse>( + service, METHODID_LIST_NATIVE_DASHBOARDS))) + .addMethod( + getUpdateNativeDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.UpdateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard>( + service, METHODID_UPDATE_NATIVE_DASHBOARD))) + .addMethod( + getDuplicateNativeDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest, + com.google.cloud.chronicle.v1.NativeDashboard>( + service, METHODID_DUPLICATE_NATIVE_DASHBOARD))) + .addMethod( + getDeleteNativeDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.DeleteNativeDashboardRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_NATIVE_DASHBOARD))) + .addMethod( + getAddChartMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.AddChartRequest, + com.google.cloud.chronicle.v1.AddChartResponse>(service, METHODID_ADD_CHART))) + .addMethod( + getRemoveChartMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.RemoveChartRequest, + com.google.cloud.chronicle.v1.NativeDashboard>(service, METHODID_REMOVE_CHART))) + .addMethod( + getEditChartMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.EditChartRequest, + com.google.cloud.chronicle.v1.EditChartResponse>(service, METHODID_EDIT_CHART))) + .addMethod( + getDuplicateChartMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.DuplicateChartRequest, + com.google.cloud.chronicle.v1.DuplicateChartResponse>( + service, METHODID_DUPLICATE_CHART))) + .addMethod( + getExportNativeDashboardsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ExportNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ExportNativeDashboardsResponse>( + service, METHODID_EXPORT_NATIVE_DASHBOARDS))) + .addMethod( + getImportNativeDashboardsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ImportNativeDashboardsRequest, + com.google.cloud.chronicle.v1.ImportNativeDashboardsResponse>( + service, METHODID_IMPORT_NATIVE_DASHBOARDS))) + .build(); + } + + private abstract static class NativeDashboardServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + NativeDashboardServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.chronicle.v1.NativeDashboardProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("NativeDashboardService"); + } + } + + private static final class NativeDashboardServiceFileDescriptorSupplier + extends NativeDashboardServiceBaseDescriptorSupplier { + NativeDashboardServiceFileDescriptorSupplier() {} + } + + private static final class NativeDashboardServiceMethodDescriptorSupplier + extends NativeDashboardServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + NativeDashboardServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (NativeDashboardServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NativeDashboardServiceFileDescriptorSupplier()) + .addMethod(getCreateNativeDashboardMethod()) + .addMethod(getGetNativeDashboardMethod()) + .addMethod(getListNativeDashboardsMethod()) + .addMethod(getUpdateNativeDashboardMethod()) + .addMethod(getDuplicateNativeDashboardMethod()) + .addMethod(getDeleteNativeDashboardMethod()) + .addMethod(getAddChartMethod()) + .addMethod(getRemoveChartMethod()) + .addMethod(getEditChartMethod()) + .addMethod(getDuplicateChartMethod()) + .addMethod(getExportNativeDashboardsMethod()) + .addMethod(getImportNativeDashboardsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-chronicle/pom.xml b/java-chronicle/pom.xml index b457afe725e8..cec4426a4c6d 100644 --- a/java-chronicle/pom.xml +++ b/java-chronicle/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chronicle-parent pom - 0.29.0 + 0.30.0 Google Chronicle API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.85.0 + 1.86.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chronicle - 0.29.0 + 0.30.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.29.0 + 0.30.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.29.0 + 0.30.0
diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml b/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml index c4e6399d5073..e8e07283978d 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml +++ b/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.29.0 + 0.30.0 proto-google-cloud-chronicle-v1 Proto library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.29.0 + 0.30.0 diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartRequest.java new file mode 100644 index 000000000000..e0f94fc884d3 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartRequest.java @@ -0,0 +1,1571 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/native_dashboard.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request message to add chart in a dashboard.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AddChartRequest} + */ +@com.google.protobuf.Generated +public final class AddChartRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.AddChartRequest) + AddChartRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AddChartRequest"); + } + + // Use AddChartRequest.newBuilder() to construct. + private AddChartRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AddChartRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AddChartRequest.class, + com.google.cloud.chronicle.v1.AddChartRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The dashboard name to add chart in.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The dashboard name to add chart in.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DASHBOARD_QUERY_FIELD_NUMBER = 2; + private com.google.cloud.chronicle.v1.DashboardQuery dashboardQuery_; + + /** + * + * + *
+   * Optional. Query used to create the chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardQuery field is set. + */ + @java.lang.Override + public boolean hasDashboardQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Query used to create the chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardQuery. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardQuery getDashboardQuery() { + return dashboardQuery_ == null + ? com.google.cloud.chronicle.v1.DashboardQuery.getDefaultInstance() + : dashboardQuery_; + } + + /** + * + * + *
+   * Optional. Query used to create the chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardQueryOrBuilder getDashboardQueryOrBuilder() { + return dashboardQuery_ == null + ? com.google.cloud.chronicle.v1.DashboardQuery.getDefaultInstance() + : dashboardQuery_; + } + + public static final int DASHBOARD_CHART_FIELD_NUMBER = 3; + private com.google.cloud.chronicle.v1.DashboardChart dashboardChart_; + + /** + * + * + *
+   * Required. Chart to be added to the dashboard.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dashboardChart field is set. + */ + @java.lang.Override + public boolean hasDashboardChart() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. Chart to be added to the dashboard.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dashboardChart. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardChart getDashboardChart() { + return dashboardChart_ == null + ? com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance() + : dashboardChart_; + } + + /** + * + * + *
+   * Required. Chart to be added to the dashboard.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartOrBuilder() { + return dashboardChart_ == null + ? com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance() + : dashboardChart_; + } + + public static final int CHART_LAYOUT_FIELD_NUMBER = 4; + private com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chartLayout_; + + /** + * + * + *
+   * Required. ChartLayout for newly added chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the chartLayout field is set. + */ + @java.lang.Override + public boolean hasChartLayout() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Required. ChartLayout for newly added chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The chartLayout. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + getChartLayout() { + return chartLayout_ == null + ? com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + .getDefaultInstance() + : chartLayout_; + } + + /** + * + * + *
+   * Required. ChartLayout for newly added chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutOrBuilder + getChartLayoutOrBuilder() { + return chartLayout_ == null + ? com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + .getDefaultInstance() + : chartLayout_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDashboardQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getDashboardChart()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getChartLayout()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDashboardQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDashboardChart()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getChartLayout()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.AddChartRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.AddChartRequest other = + (com.google.cloud.chronicle.v1.AddChartRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDashboardQuery() != other.hasDashboardQuery()) return false; + if (hasDashboardQuery()) { + if (!getDashboardQuery().equals(other.getDashboardQuery())) return false; + } + if (hasDashboardChart() != other.hasDashboardChart()) return false; + if (hasDashboardChart()) { + if (!getDashboardChart().equals(other.getDashboardChart())) return false; + } + if (hasChartLayout() != other.hasChartLayout()) return false; + if (hasChartLayout()) { + if (!getChartLayout().equals(other.getChartLayout())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDashboardQuery()) { + hash = (37 * hash) + DASHBOARD_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getDashboardQuery().hashCode(); + } + if (hasDashboardChart()) { + hash = (37 * hash) + DASHBOARD_CHART_FIELD_NUMBER; + hash = (53 * hash) + getDashboardChart().hashCode(); + } + if (hasChartLayout()) { + hash = (37 * hash) + CHART_LAYOUT_FIELD_NUMBER; + hash = (53 * hash) + getChartLayout().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.AddChartRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message to add chart in a dashboard.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AddChartRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.AddChartRequest) + com.google.cloud.chronicle.v1.AddChartRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AddChartRequest.class, + com.google.cloud.chronicle.v1.AddChartRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.AddChartRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDashboardQueryFieldBuilder(); + internalGetDashboardChartFieldBuilder(); + internalGetChartLayoutFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + dashboardQuery_ = null; + if (dashboardQueryBuilder_ != null) { + dashboardQueryBuilder_.dispose(); + dashboardQueryBuilder_ = null; + } + dashboardChart_ = null; + if (dashboardChartBuilder_ != null) { + dashboardChartBuilder_.dispose(); + dashboardChartBuilder_ = null; + } + chartLayout_ = null; + if (chartLayoutBuilder_ != null) { + chartLayoutBuilder_.dispose(); + chartLayoutBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AddChartRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.AddChartRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AddChartRequest build() { + com.google.cloud.chronicle.v1.AddChartRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AddChartRequest buildPartial() { + com.google.cloud.chronicle.v1.AddChartRequest result = + new com.google.cloud.chronicle.v1.AddChartRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.AddChartRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dashboardQuery_ = + dashboardQueryBuilder_ == null ? dashboardQuery_ : dashboardQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dashboardChart_ = + dashboardChartBuilder_ == null ? dashboardChart_ : dashboardChartBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.chartLayout_ = + chartLayoutBuilder_ == null ? chartLayout_ : chartLayoutBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.AddChartRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.AddChartRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.AddChartRequest other) { + if (other == com.google.cloud.chronicle.v1.AddChartRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDashboardQuery()) { + mergeDashboardQuery(other.getDashboardQuery()); + } + if (other.hasDashboardChart()) { + mergeDashboardChart(other.getDashboardChart()); + } + if (other.hasChartLayout()) { + mergeChartLayout(other.getChartLayout()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDashboardQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDashboardChartFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetChartLayoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The dashboard name to add chart in.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The dashboard name to add chart in.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The dashboard name to add chart in.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The dashboard name to add chart in.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The dashboard name to add chart in.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.chronicle.v1.DashboardQuery dashboardQuery_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardQuery, + com.google.cloud.chronicle.v1.DashboardQuery.Builder, + com.google.cloud.chronicle.v1.DashboardQueryOrBuilder> + dashboardQueryBuilder_; + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardQuery field is set. + */ + public boolean hasDashboardQuery() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardQuery. + */ + public com.google.cloud.chronicle.v1.DashboardQuery getDashboardQuery() { + if (dashboardQueryBuilder_ == null) { + return dashboardQuery_ == null + ? com.google.cloud.chronicle.v1.DashboardQuery.getDefaultInstance() + : dashboardQuery_; + } else { + return dashboardQueryBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDashboardQuery(com.google.cloud.chronicle.v1.DashboardQuery value) { + if (dashboardQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dashboardQuery_ = value; + } else { + dashboardQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDashboardQuery( + com.google.cloud.chronicle.v1.DashboardQuery.Builder builderForValue) { + if (dashboardQueryBuilder_ == null) { + dashboardQuery_ = builderForValue.build(); + } else { + dashboardQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDashboardQuery(com.google.cloud.chronicle.v1.DashboardQuery value) { + if (dashboardQueryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dashboardQuery_ != null + && dashboardQuery_ + != com.google.cloud.chronicle.v1.DashboardQuery.getDefaultInstance()) { + getDashboardQueryBuilder().mergeFrom(value); + } else { + dashboardQuery_ = value; + } + } else { + dashboardQueryBuilder_.mergeFrom(value); + } + if (dashboardQuery_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDashboardQuery() { + bitField0_ = (bitField0_ & ~0x00000002); + dashboardQuery_ = null; + if (dashboardQueryBuilder_ != null) { + dashboardQueryBuilder_.dispose(); + dashboardQueryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DashboardQuery.Builder getDashboardQueryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDashboardQueryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DashboardQueryOrBuilder getDashboardQueryOrBuilder() { + if (dashboardQueryBuilder_ != null) { + return dashboardQueryBuilder_.getMessageOrBuilder(); + } else { + return dashboardQuery_ == null + ? com.google.cloud.chronicle.v1.DashboardQuery.getDefaultInstance() + : dashboardQuery_; + } + } + + /** + * + * + *
+     * Optional. Query used to create the chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardQuery, + com.google.cloud.chronicle.v1.DashboardQuery.Builder, + com.google.cloud.chronicle.v1.DashboardQueryOrBuilder> + internalGetDashboardQueryFieldBuilder() { + if (dashboardQueryBuilder_ == null) { + dashboardQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardQuery, + com.google.cloud.chronicle.v1.DashboardQuery.Builder, + com.google.cloud.chronicle.v1.DashboardQueryOrBuilder>( + getDashboardQuery(), getParentForChildren(), isClean()); + dashboardQuery_ = null; + } + return dashboardQueryBuilder_; + } + + private com.google.cloud.chronicle.v1.DashboardChart dashboardChart_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder> + dashboardChartBuilder_; + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dashboardChart field is set. + */ + public boolean hasDashboardChart() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dashboardChart. + */ + public com.google.cloud.chronicle.v1.DashboardChart getDashboardChart() { + if (dashboardChartBuilder_ == null) { + return dashboardChart_ == null + ? com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance() + : dashboardChart_; + } else { + return dashboardChartBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDashboardChart(com.google.cloud.chronicle.v1.DashboardChart value) { + if (dashboardChartBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dashboardChart_ = value; + } else { + dashboardChartBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDashboardChart( + com.google.cloud.chronicle.v1.DashboardChart.Builder builderForValue) { + if (dashboardChartBuilder_ == null) { + dashboardChart_ = builderForValue.build(); + } else { + dashboardChartBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDashboardChart(com.google.cloud.chronicle.v1.DashboardChart value) { + if (dashboardChartBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && dashboardChart_ != null + && dashboardChart_ + != com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance()) { + getDashboardChartBuilder().mergeFrom(value); + } else { + dashboardChart_ = value; + } + } else { + dashboardChartBuilder_.mergeFrom(value); + } + if (dashboardChart_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDashboardChart() { + bitField0_ = (bitField0_ & ~0x00000004); + dashboardChart_ = null; + if (dashboardChartBuilder_ != null) { + dashboardChartBuilder_.dispose(); + dashboardChartBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DashboardChart.Builder getDashboardChartBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDashboardChartFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartOrBuilder() { + if (dashboardChartBuilder_ != null) { + return dashboardChartBuilder_.getMessageOrBuilder(); + } else { + return dashboardChart_ == null + ? com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance() + : dashboardChart_; + } + } + + /** + * + * + *
+     * Required. Chart to be added to the dashboard.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder> + internalGetDashboardChartFieldBuilder() { + if (dashboardChartBuilder_ == null) { + dashboardChartBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder>( + getDashboardChart(), getParentForChildren(), isClean()); + dashboardChart_ = null; + } + return dashboardChartBuilder_; + } + + private com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chartLayout_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout, + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout.Builder, + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutOrBuilder> + chartLayoutBuilder_; + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the chartLayout field is set. + */ + public boolean hasChartLayout() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The chartLayout. + */ + public com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + getChartLayout() { + if (chartLayoutBuilder_ == null) { + return chartLayout_ == null + ? com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + .getDefaultInstance() + : chartLayout_; + } else { + return chartLayoutBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChartLayout( + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout value) { + if (chartLayoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chartLayout_ = value; + } else { + chartLayoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChartLayout( + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout.Builder + builderForValue) { + if (chartLayoutBuilder_ == null) { + chartLayout_ = builderForValue.build(); + } else { + chartLayoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeChartLayout( + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout value) { + if (chartLayoutBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && chartLayout_ != null + && chartLayout_ + != com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + .getDefaultInstance()) { + getChartLayoutBuilder().mergeFrom(value); + } else { + chartLayout_ = value; + } + } else { + chartLayoutBuilder_.mergeFrom(value); + } + if (chartLayout_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChartLayout() { + bitField0_ = (bitField0_ & ~0x00000008); + chartLayout_ = null; + if (chartLayoutBuilder_ != null) { + chartLayoutBuilder_.dispose(); + chartLayoutBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout.Builder + getChartLayoutBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetChartLayoutFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutOrBuilder + getChartLayoutOrBuilder() { + if (chartLayoutBuilder_ != null) { + return chartLayoutBuilder_.getMessageOrBuilder(); + } else { + return chartLayout_ == null + ? com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + .getDefaultInstance() + : chartLayout_; + } + } + + /** + * + * + *
+     * Required. ChartLayout for newly added chart.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout, + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout.Builder, + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutOrBuilder> + internalGetChartLayoutFieldBuilder() { + if (chartLayoutBuilder_ == null) { + chartLayoutBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout, + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout.Builder, + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutOrBuilder>( + getChartLayout(), getParentForChildren(), isClean()); + chartLayout_ = null; + } + return chartLayoutBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.AddChartRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.AddChartRequest) + private static final com.google.cloud.chronicle.v1.AddChartRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.AddChartRequest(); + } + + public static com.google.cloud.chronicle.v1.AddChartRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddChartRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AddChartRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartRequestOrBuilder.java new file mode 100644 index 000000000000..05bc1e4eb76f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartRequestOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/native_dashboard.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface AddChartRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.AddChartRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The dashboard name to add chart in.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The dashboard name to add chart in.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Query used to create the chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardQuery field is set. + */ + boolean hasDashboardQuery(); + + /** + * + * + *
+   * Optional. Query used to create the chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardQuery. + */ + com.google.cloud.chronicle.v1.DashboardQuery getDashboardQuery(); + + /** + * + * + *
+   * Optional. Query used to create the chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.DashboardQueryOrBuilder getDashboardQueryOrBuilder(); + + /** + * + * + *
+   * Required. Chart to be added to the dashboard.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dashboardChart field is set. + */ + boolean hasDashboardChart(); + + /** + * + * + *
+   * Required. Chart to be added to the dashboard.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dashboardChart. + */ + com.google.cloud.chronicle.v1.DashboardChart getDashboardChart(); + + /** + * + * + *
+   * Required. Chart to be added to the dashboard.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartOrBuilder(); + + /** + * + * + *
+   * Required. ChartLayout for newly added chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the chartLayout field is set. + */ + boolean hasChartLayout(); + + /** + * + * + *
+   * Required. ChartLayout for newly added chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The chartLayout. + */ + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout getChartLayout(); + + /** + * + * + *
+   * Required. ChartLayout for newly added chart.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutOrBuilder + getChartLayoutOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartResponse.java new file mode 100644 index 000000000000..53ba38114a71 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartResponse.java @@ -0,0 +1,984 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/native_dashboard.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Response message for adding chart in a dashboard.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AddChartResponse} + */ +@com.google.protobuf.Generated +public final class AddChartResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.AddChartResponse) + AddChartResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AddChartResponse"); + } + + // Use AddChartResponse.newBuilder() to construct. + private AddChartResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AddChartResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AddChartResponse.class, + com.google.cloud.chronicle.v1.AddChartResponse.Builder.class); + } + + private int bitField0_; + public static final int NATIVE_DASHBOARD_FIELD_NUMBER = 1; + private com.google.cloud.chronicle.v1.NativeDashboard nativeDashboard_; + + /** + * + * + *
+   * Dashboard with chart added in definition.
+   * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * + * @return Whether the nativeDashboard field is set. + */ + @java.lang.Override + public boolean hasNativeDashboard() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Dashboard with chart added in definition.
+   * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * + * @return The nativeDashboard. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.NativeDashboard getNativeDashboard() { + return nativeDashboard_ == null + ? com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance() + : nativeDashboard_; + } + + /** + * + * + *
+   * Dashboard with chart added in definition.
+   * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.NativeDashboardOrBuilder getNativeDashboardOrBuilder() { + return nativeDashboard_ == null + ? com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance() + : nativeDashboard_; + } + + public static final int DASHBOARD_CHART_FIELD_NUMBER = 2; + private com.google.cloud.chronicle.v1.DashboardChart dashboardChart_; + + /** + * + * + *
+   * Created chart resource.
+   * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * + * @return Whether the dashboardChart field is set. + */ + @java.lang.Override + public boolean hasDashboardChart() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Created chart resource.
+   * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * + * @return The dashboardChart. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardChart getDashboardChart() { + return dashboardChart_ == null + ? com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance() + : dashboardChart_; + } + + /** + * + * + *
+   * Created chart resource.
+   * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartOrBuilder() { + return dashboardChart_ == null + ? com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance() + : dashboardChart_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNativeDashboard()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDashboardChart()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNativeDashboard()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDashboardChart()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.AddChartResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.AddChartResponse other = + (com.google.cloud.chronicle.v1.AddChartResponse) obj; + + if (hasNativeDashboard() != other.hasNativeDashboard()) return false; + if (hasNativeDashboard()) { + if (!getNativeDashboard().equals(other.getNativeDashboard())) return false; + } + if (hasDashboardChart() != other.hasDashboardChart()) return false; + if (hasDashboardChart()) { + if (!getDashboardChart().equals(other.getDashboardChart())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNativeDashboard()) { + hash = (37 * hash) + NATIVE_DASHBOARD_FIELD_NUMBER; + hash = (53 * hash) + getNativeDashboard().hashCode(); + } + if (hasDashboardChart()) { + hash = (37 * hash) + DASHBOARD_CHART_FIELD_NUMBER; + hash = (53 * hash) + getDashboardChart().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.AddChartResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for adding chart in a dashboard.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AddChartResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.AddChartResponse) + com.google.cloud.chronicle.v1.AddChartResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AddChartResponse.class, + com.google.cloud.chronicle.v1.AddChartResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.AddChartResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetNativeDashboardFieldBuilder(); + internalGetDashboardChartFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nativeDashboard_ = null; + if (nativeDashboardBuilder_ != null) { + nativeDashboardBuilder_.dispose(); + nativeDashboardBuilder_ = null; + } + dashboardChart_ = null; + if (dashboardChartBuilder_ != null) { + dashboardChartBuilder_.dispose(); + dashboardChartBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.NativeDashboardProto + .internal_static_google_cloud_chronicle_v1_AddChartResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AddChartResponse getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.AddChartResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AddChartResponse build() { + com.google.cloud.chronicle.v1.AddChartResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AddChartResponse buildPartial() { + com.google.cloud.chronicle.v1.AddChartResponse result = + new com.google.cloud.chronicle.v1.AddChartResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.AddChartResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nativeDashboard_ = + nativeDashboardBuilder_ == null ? nativeDashboard_ : nativeDashboardBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dashboardChart_ = + dashboardChartBuilder_ == null ? dashboardChart_ : dashboardChartBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.AddChartResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.AddChartResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.AddChartResponse other) { + if (other == com.google.cloud.chronicle.v1.AddChartResponse.getDefaultInstance()) return this; + if (other.hasNativeDashboard()) { + mergeNativeDashboard(other.getNativeDashboard()); + } + if (other.hasDashboardChart()) { + mergeDashboardChart(other.getDashboardChart()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetNativeDashboardFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDashboardChartFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.chronicle.v1.NativeDashboard nativeDashboard_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.NativeDashboard, + com.google.cloud.chronicle.v1.NativeDashboard.Builder, + com.google.cloud.chronicle.v1.NativeDashboardOrBuilder> + nativeDashboardBuilder_; + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * + * @return Whether the nativeDashboard field is set. + */ + public boolean hasNativeDashboard() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * + * @return The nativeDashboard. + */ + public com.google.cloud.chronicle.v1.NativeDashboard getNativeDashboard() { + if (nativeDashboardBuilder_ == null) { + return nativeDashboard_ == null + ? com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance() + : nativeDashboard_; + } else { + return nativeDashboardBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + public Builder setNativeDashboard(com.google.cloud.chronicle.v1.NativeDashboard value) { + if (nativeDashboardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nativeDashboard_ = value; + } else { + nativeDashboardBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + public Builder setNativeDashboard( + com.google.cloud.chronicle.v1.NativeDashboard.Builder builderForValue) { + if (nativeDashboardBuilder_ == null) { + nativeDashboard_ = builderForValue.build(); + } else { + nativeDashboardBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + public Builder mergeNativeDashboard(com.google.cloud.chronicle.v1.NativeDashboard value) { + if (nativeDashboardBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && nativeDashboard_ != null + && nativeDashboard_ + != com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance()) { + getNativeDashboardBuilder().mergeFrom(value); + } else { + nativeDashboard_ = value; + } + } else { + nativeDashboardBuilder_.mergeFrom(value); + } + if (nativeDashboard_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + public Builder clearNativeDashboard() { + bitField0_ = (bitField0_ & ~0x00000001); + nativeDashboard_ = null; + if (nativeDashboardBuilder_ != null) { + nativeDashboardBuilder_.dispose(); + nativeDashboardBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + public com.google.cloud.chronicle.v1.NativeDashboard.Builder getNativeDashboardBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetNativeDashboardFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + public com.google.cloud.chronicle.v1.NativeDashboardOrBuilder getNativeDashboardOrBuilder() { + if (nativeDashboardBuilder_ != null) { + return nativeDashboardBuilder_.getMessageOrBuilder(); + } else { + return nativeDashboard_ == null + ? com.google.cloud.chronicle.v1.NativeDashboard.getDefaultInstance() + : nativeDashboard_; + } + } + + /** + * + * + *
+     * Dashboard with chart added in definition.
+     * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.NativeDashboard, + com.google.cloud.chronicle.v1.NativeDashboard.Builder, + com.google.cloud.chronicle.v1.NativeDashboardOrBuilder> + internalGetNativeDashboardFieldBuilder() { + if (nativeDashboardBuilder_ == null) { + nativeDashboardBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.NativeDashboard, + com.google.cloud.chronicle.v1.NativeDashboard.Builder, + com.google.cloud.chronicle.v1.NativeDashboardOrBuilder>( + getNativeDashboard(), getParentForChildren(), isClean()); + nativeDashboard_ = null; + } + return nativeDashboardBuilder_; + } + + private com.google.cloud.chronicle.v1.DashboardChart dashboardChart_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder> + dashboardChartBuilder_; + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * + * @return Whether the dashboardChart field is set. + */ + public boolean hasDashboardChart() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * + * @return The dashboardChart. + */ + public com.google.cloud.chronicle.v1.DashboardChart getDashboardChart() { + if (dashboardChartBuilder_ == null) { + return dashboardChart_ == null + ? com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance() + : dashboardChart_; + } else { + return dashboardChartBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + public Builder setDashboardChart(com.google.cloud.chronicle.v1.DashboardChart value) { + if (dashboardChartBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dashboardChart_ = value; + } else { + dashboardChartBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + public Builder setDashboardChart( + com.google.cloud.chronicle.v1.DashboardChart.Builder builderForValue) { + if (dashboardChartBuilder_ == null) { + dashboardChart_ = builderForValue.build(); + } else { + dashboardChartBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + public Builder mergeDashboardChart(com.google.cloud.chronicle.v1.DashboardChart value) { + if (dashboardChartBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dashboardChart_ != null + && dashboardChart_ + != com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance()) { + getDashboardChartBuilder().mergeFrom(value); + } else { + dashboardChart_ = value; + } + } else { + dashboardChartBuilder_.mergeFrom(value); + } + if (dashboardChart_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + public Builder clearDashboardChart() { + bitField0_ = (bitField0_ & ~0x00000002); + dashboardChart_ = null; + if (dashboardChartBuilder_ != null) { + dashboardChartBuilder_.dispose(); + dashboardChartBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + public com.google.cloud.chronicle.v1.DashboardChart.Builder getDashboardChartBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDashboardChartFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + public com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartOrBuilder() { + if (dashboardChartBuilder_ != null) { + return dashboardChartBuilder_.getMessageOrBuilder(); + } else { + return dashboardChart_ == null + ? com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance() + : dashboardChart_; + } + } + + /** + * + * + *
+     * Created chart resource.
+     * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder> + internalGetDashboardChartFieldBuilder() { + if (dashboardChartBuilder_ == null) { + dashboardChartBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder>( + getDashboardChart(), getParentForChildren(), isClean()); + dashboardChart_ = null; + } + return dashboardChartBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.AddChartResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.AddChartResponse) + private static final com.google.cloud.chronicle.v1.AddChartResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.AddChartResponse(); + } + + public static com.google.cloud.chronicle.v1.AddChartResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddChartResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AddChartResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartResponseOrBuilder.java new file mode 100644 index 000000000000..901f92b3e40f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AddChartResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/native_dashboard.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface AddChartResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.AddChartResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Dashboard with chart added in definition.
+   * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * + * @return Whether the nativeDashboard field is set. + */ + boolean hasNativeDashboard(); + + /** + * + * + *
+   * Dashboard with chart added in definition.
+   * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * + * @return The nativeDashboard. + */ + com.google.cloud.chronicle.v1.NativeDashboard getNativeDashboard(); + + /** + * + * + *
+   * Dashboard with chart added in definition.
+   * 
+ * + * .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + com.google.cloud.chronicle.v1.NativeDashboardOrBuilder getNativeDashboardOrBuilder(); + + /** + * + * + *
+   * Created chart resource.
+   * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * + * @return Whether the dashboardChart field is set. + */ + boolean hasDashboardChart(); + + /** + * + * + *
+   * Created chart resource.
+   * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * + * @return The dashboardChart. + */ + com.google.cloud.chronicle.v1.DashboardChart getDashboardChart(); + + /** + * + * + *
+   * Created chart resource.
+   * 
+ * + * .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AdvancedFilterConfig.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AdvancedFilterConfig.java new file mode 100644 index 000000000000..f86a6e1cf740 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AdvancedFilterConfig.java @@ -0,0 +1,5369 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/dashboard_query.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Advanced filter configuration for the filter widget.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AdvancedFilterConfig} + */ +@com.google.protobuf.Generated +public final class AdvancedFilterConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.AdvancedFilterConfig) + AdvancedFilterConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdvancedFilterConfig"); + } + + // Use AdvancedFilterConfig.newBuilder() to construct. + private AdvancedFilterConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdvancedFilterConfig() { + token_ = ""; + prefix_ = ""; + suffix_ = ""; + separator_ = ""; + defaultValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.class, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.Builder.class); + } + + public interface ValueSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Manual options provided by the user.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualOptions field is set. + */ + boolean hasManualOptions(); + + /** + * + * + *
+     * Optional. Manual options provided by the user.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualOptions. + */ + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions getManualOptions(); + + /** + * + * + *
+     * Optional. Manual options provided by the user.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsOrBuilder + getManualOptionsOrBuilder(); + + /** + * + * + *
+     * Optional. Query options to fetch the values from the query engine.
+     * This is used for the filter's population query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryOptions field is set. + */ + boolean hasQueryOptions(); + + /** + * + * + *
+     * Optional. Query options to fetch the values from the query engine.
+     * This is used for the filter's population query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryOptions. + */ + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions getQueryOptions(); + + /** + * + * + *
+     * Optional. Query options to fetch the values from the query engine.
+     * This is used for the filter's population query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsOrBuilder + getQueryOptionsOrBuilder(); + + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.SourceCase getSourceCase(); + } + + /** + * + * + *
+   * Source of the values for the filter.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource} + */ + public static final class ValueSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource) + ValueSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ValueSource"); + } + + // Use ValueSource.newBuilder() to construct. + private ValueSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ValueSource() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ValueSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ValueSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.class, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MANUAL_OPTIONS(1), + QUERY_OPTIONS(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return MANUAL_OPTIONS; + case 2: + return QUERY_OPTIONS; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int MANUAL_OPTIONS_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Optional. Manual options provided by the user.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualOptions field is set. + */ + @java.lang.Override + public boolean hasManualOptions() { + return sourceCase_ == 1; + } + + /** + * + * + *
+     * Optional. Manual options provided by the user.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualOptions. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions getManualOptions() { + if (sourceCase_ == 1) { + return (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) source_; + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Manual options provided by the user.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsOrBuilder + getManualOptionsOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) source_; + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.getDefaultInstance(); + } + + public static final int QUERY_OPTIONS_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Optional. Query options to fetch the values from the query engine.
+     * This is used for the filter's population query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryOptions field is set. + */ + @java.lang.Override + public boolean hasQueryOptions() { + return sourceCase_ == 2; + } + + /** + * + * + *
+     * Optional. Query options to fetch the values from the query engine.
+     * This is used for the filter's population query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryOptions. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions getQueryOptions() { + if (sourceCase_ == 2) { + return (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) source_; + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Query options to fetch the values from the query engine.
+     * This is used for the filter's population query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsOrBuilder + getQueryOptionsOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) source_; + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) source_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) source_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource other = + (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getManualOptions().equals(other.getManualOptions())) return false; + break; + case 2: + if (!getQueryOptions().equals(other.getQueryOptions())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + MANUAL_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getManualOptions().hashCode(); + break; + case 2: + hash = (37 * hash) + QUERY_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getQueryOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Source of the values for the filter.
+     * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource) + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ValueSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ValueSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.class, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (manualOptionsBuilder_ != null) { + manualOptionsBuilder_.clear(); + } + if (queryOptionsBuilder_ != null) { + queryOptionsBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ValueSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource build() { + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource buildPartial() { + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource result = + new com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && manualOptionsBuilder_ != null) { + result.source_ = manualOptionsBuilder_.build(); + } + if (sourceCase_ == 2 && queryOptionsBuilder_ != null) { + result.source_ = queryOptionsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource) { + return mergeFrom((com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource other) { + if (other + == com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.getDefaultInstance()) + return this; + switch (other.getSourceCase()) { + case MANUAL_OPTIONS: + { + mergeManualOptions(other.getManualOptions()); + break; + } + case QUERY_OPTIONS: + { + mergeQueryOptions(other.getQueryOptions()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetManualOptionsFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetQueryOptionsFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsOrBuilder> + manualOptionsBuilder_; + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualOptions field is set. + */ + @java.lang.Override + public boolean hasManualOptions() { + return sourceCase_ == 1; + } + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualOptions. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions getManualOptions() { + if (manualOptionsBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) source_; + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + .getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return manualOptionsBuilder_.getMessage(); + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setManualOptions( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions value) { + if (manualOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + manualOptionsBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setManualOptions( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.Builder + builderForValue) { + if (manualOptionsBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + manualOptionsBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeManualOptions( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions value) { + if (manualOptionsBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + .getDefaultInstance()) { + source_ = + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.newBuilder( + (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + manualOptionsBuilder_.mergeFrom(value); + } else { + manualOptionsBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearManualOptions() { + if (manualOptionsBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + manualOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.Builder + getManualOptionsBuilder() { + return internalGetManualOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsOrBuilder + getManualOptionsOrBuilder() { + if ((sourceCase_ == 1) && (manualOptionsBuilder_ != null)) { + return manualOptionsBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) source_; + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Manual options provided by the user.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsOrBuilder> + internalGetManualOptionsFieldBuilder() { + if (manualOptionsBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + .getDefaultInstance(); + } + manualOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsOrBuilder>( + (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return manualOptionsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsOrBuilder> + queryOptionsBuilder_; + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryOptions field is set. + */ + @java.lang.Override + public boolean hasQueryOptions() { + return sourceCase_ == 2; + } + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryOptions. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions getQueryOptions() { + if (queryOptionsBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) source_; + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + .getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return queryOptionsBuilder_.getMessage(); + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setQueryOptions( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions value) { + if (queryOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + queryOptionsBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setQueryOptions( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.Builder builderForValue) { + if (queryOptionsBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + queryOptionsBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeQueryOptions( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions value) { + if (queryOptionsBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + .getDefaultInstance()) { + source_ = + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.newBuilder( + (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + queryOptionsBuilder_.mergeFrom(value); + } else { + queryOptionsBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearQueryOptions() { + if (queryOptionsBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + queryOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.Builder + getQueryOptionsBuilder() { + return internalGetQueryOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsOrBuilder + getQueryOptionsOrBuilder() { + if ((sourceCase_ == 2) && (queryOptionsBuilder_ != null)) { + return queryOptionsBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) source_; + } + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Query options to fetch the values from the query engine.
+       * This is used for the filter's population query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsOrBuilder> + internalGetQueryOptionsFieldBuilder() { + if (queryOptionsBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + .getDefaultInstance(); + } + queryOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsOrBuilder>( + (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return queryOptionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource) + private static final com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource(); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ManualOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The options provided by the user.
+     * The max number of options is limited to 10000.
+     * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the options. + */ + java.util.List getOptionsList(); + + /** + * + * + *
+     * Optional. The options provided by the user.
+     * The max number of options is limited to 10000.
+     * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of options. + */ + int getOptionsCount(); + + /** + * + * + *
+     * Optional. The options provided by the user.
+     * The max number of options is limited to 10000.
+     * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + java.lang.String getOptions(int index); + + /** + * + * + *
+     * Optional. The options provided by the user.
+     * The max number of options is limited to 10000.
+     * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + com.google.protobuf.ByteString getOptionsBytes(int index); + } + + /** + * + * + *
+   * Manual options provided by the user.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions} + */ + public static final class ManualOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) + ManualOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ManualOptions"); + } + + // Use ManualOptions.newBuilder() to construct. + private ManualOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ManualOptions() { + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ManualOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ManualOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.class, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.Builder.class); + } + + public static final int OPTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList options_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The options provided by the user.
+     * The max number of options is limited to 10000.
+     * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the options. + */ + public com.google.protobuf.ProtocolStringList getOptionsList() { + return options_; + } + + /** + * + * + *
+     * Optional. The options provided by the user.
+     * The max number of options is limited to 10000.
+     * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of options. + */ + public int getOptionsCount() { + return options_.size(); + } + + /** + * + * + *
+     * Optional. The options provided by the user.
+     * The max number of options is limited to 10000.
+     * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + public java.lang.String getOptions(int index) { + return options_.get(index); + } + + /** + * + * + *
+     * Optional. The options provided by the user.
+     * The max number of options is limited to 10000.
+     * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + public com.google.protobuf.ByteString getOptionsBytes(int index) { + return options_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < options_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, options_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < options_.size(); i++) { + dataSize += computeStringSizeNoTag(options_.getRaw(i)); + } + size += dataSize; + size += 1 * getOptionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions other = + (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) obj; + + if (!getOptionsList().equals(other.getOptionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOptionsCount() > 0) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Manual options provided by the user.
+     * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ManualOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ManualOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.class, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.Builder.class); + } + + // Construct using + // com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_ManualOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions build() { + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions buildPartial() { + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions result = + new com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + options_.makeImmutable(); + result.options_ = options_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) { + return mergeFrom( + (com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions other) { + if (other + == com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + .getDefaultInstance()) return this; + if (!other.options_.isEmpty()) { + if (options_.isEmpty()) { + options_ = other.options_; + bitField0_ |= 0x00000001; + } else { + ensureOptionsIsMutable(); + options_.addAll(other.options_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOptionsIsMutable(); + options_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList options_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOptionsIsMutable() { + if (!options_.isModifiable()) { + options_ = new com.google.protobuf.LazyStringArrayList(options_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the options. + */ + public com.google.protobuf.ProtocolStringList getOptionsList() { + options_.makeImmutable(); + return options_; + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of options. + */ + public int getOptionsCount() { + return options_.size(); + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + public java.lang.String getOptions(int index) { + return options_.get(index); + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + public com.google.protobuf.ByteString getOptionsBytes(int index) { + return options_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The options to set. + * @return This builder for chaining. + */ + public Builder setOptions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The options to add. + * @return This builder for chaining. + */ + public Builder addOptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The options to add. + * @return This builder for chaining. + */ + public Builder addAllOptions(java.lang.Iterable values) { + ensureOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, options_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOptions() { + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The options provided by the user.
+       * The max number of options is limited to 10000.
+       * 
+ * + * repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the options to add. + * @return This builder for chaining. + */ + public Builder addOptionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOptionsIsMutable(); + options_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions) + private static final com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions(); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManualOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface QueryOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The query to execute to fetch the values.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
+     * Required. The query to execute to fetch the values.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+     * Required. The column name to use for the values.
+     * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + java.lang.String getColumn(); + + /** + * + * + *
+     * Required. The column name to use for the values.
+     * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
+     * Optional. Enable global time filter
+     * 
+ * + * bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The globalTimeFilterEnabled. + */ + boolean getGlobalTimeFilterEnabled(); + + /** + * + * + *
+     * Optional. Time range input specifically for the filter's population
+     * query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the input field is set. + */ + boolean hasInput(); + + /** + * + * + *
+     * Optional. Time range input specifically for the filter's population
+     * query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The input. + */ + com.google.cloud.chronicle.v1.DashboardQuery.Input getInput(); + + /** + * + * + *
+     * Optional. Time range input specifically for the filter's population
+     * query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.DashboardQuery.InputOrBuilder getInputOrBuilder(); + } + + /** + * + * + *
+   * Query options to fetch the values from the query engine.
+   * This is used for the filter's population query.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions} + */ + public static final class QueryOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) + QueryOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryOptions"); + } + + // Use QueryOptions.newBuilder() to construct. + private QueryOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryOptions() { + query_ = ""; + column_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_QueryOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_QueryOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.class, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
+     * Required. The query to execute to fetch the values.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The query to execute to fetch the values.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object column_ = ""; + + /** + * + * + *
+     * Required. The column name to use for the values.
+     * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The column name to use for the values.
+     * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GLOBAL_TIME_FILTER_ENABLED_FIELD_NUMBER = 3; + private boolean globalTimeFilterEnabled_ = false; + + /** + * + * + *
+     * Optional. Enable global time filter
+     * 
+ * + * bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The globalTimeFilterEnabled. + */ + @java.lang.Override + public boolean getGlobalTimeFilterEnabled() { + return globalTimeFilterEnabled_; + } + + public static final int INPUT_FIELD_NUMBER = 4; + private com.google.cloud.chronicle.v1.DashboardQuery.Input input_; + + /** + * + * + *
+     * Optional. Time range input specifically for the filter's population
+     * query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the input field is set. + */ + @java.lang.Override + public boolean hasInput() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Time range input specifically for the filter's population
+     * query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The input. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardQuery.Input getInput() { + return input_ == null + ? com.google.cloud.chronicle.v1.DashboardQuery.Input.getDefaultInstance() + : input_; + } + + /** + * + * + *
+     * Optional. Time range input specifically for the filter's population
+     * query.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardQuery.InputOrBuilder getInputOrBuilder() { + return input_ == null + ? com.google.cloud.chronicle.v1.DashboardQuery.Input.getDefaultInstance() + : input_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, query_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, column_); + } + if (globalTimeFilterEnabled_ != false) { + output.writeBool(3, globalTimeFilterEnabled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getInput()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, query_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, column_); + } + if (globalTimeFilterEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, globalTimeFilterEnabled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInput()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions other = + (com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) obj; + + if (!getQuery().equals(other.getQuery())) return false; + if (!getColumn().equals(other.getColumn())) return false; + if (getGlobalTimeFilterEnabled() != other.getGlobalTimeFilterEnabled()) return false; + if (hasInput() != other.hasInput()) return false; + if (hasInput()) { + if (!getInput().equals(other.getInput())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + GLOBAL_TIME_FILTER_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGlobalTimeFilterEnabled()); + if (hasInput()) { + hash = (37 * hash) + INPUT_FIELD_NUMBER; + hash = (53 * hash) + getInput().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Query options to fetch the values from the query engine.
+     * This is used for the filter's population query.
+     * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_QueryOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_QueryOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.class, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.Builder.class); + } + + // Construct using + // com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInputFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + column_ = ""; + globalTimeFilterEnabled_ = false; + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); + inputBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_QueryOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions build() { + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions buildPartial() { + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions result = + new com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.column_ = column_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.globalTimeFilterEnabled_ = globalTimeFilterEnabled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) { + return mergeFrom((com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions other) { + if (other + == com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions.getDefaultInstance()) + return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getGlobalTimeFilterEnabled() != false) { + setGlobalTimeFilterEnabled(other.getGlobalTimeFilterEnabled()); + } + if (other.hasInput()) { + mergeInput(other.getInput()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + globalTimeFilterEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(internalGetInputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + + /** + * + * + *
+       * Required. The query to execute to fetch the values.
+       * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The query to execute to fetch the values.
+       * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The query to execute to fetch the values.
+       * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The query to execute to fetch the values.
+       * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The query to execute to fetch the values.
+       * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object column_ = ""; + + /** + * + * + *
+       * Required. The column name to use for the values.
+       * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The column name to use for the values.
+       * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The column name to use for the values.
+       * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + column_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The column name to use for the values.
+       * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + column_ = getDefaultInstance().getColumn(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The column name to use for the values.
+       * 
+ * + * string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + column_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean globalTimeFilterEnabled_; + + /** + * + * + *
+       * Optional. Enable global time filter
+       * 
+ * + * bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The globalTimeFilterEnabled. + */ + @java.lang.Override + public boolean getGlobalTimeFilterEnabled() { + return globalTimeFilterEnabled_; + } + + /** + * + * + *
+       * Optional. Enable global time filter
+       * 
+ * + * bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The globalTimeFilterEnabled to set. + * @return This builder for chaining. + */ + public Builder setGlobalTimeFilterEnabled(boolean value) { + + globalTimeFilterEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Enable global time filter
+       * 
+ * + * bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGlobalTimeFilterEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + globalTimeFilterEnabled_ = false; + onChanged(); + return this; + } + + private com.google.cloud.chronicle.v1.DashboardQuery.Input input_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardQuery.Input, + com.google.cloud.chronicle.v1.DashboardQuery.Input.Builder, + com.google.cloud.chronicle.v1.DashboardQuery.InputOrBuilder> + inputBuilder_; + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the input field is set. + */ + public boolean hasInput() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The input. + */ + public com.google.cloud.chronicle.v1.DashboardQuery.Input getInput() { + if (inputBuilder_ == null) { + return input_ == null + ? com.google.cloud.chronicle.v1.DashboardQuery.Input.getDefaultInstance() + : input_; + } else { + return inputBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInput(com.google.cloud.chronicle.v1.DashboardQuery.Input value) { + if (inputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + input_ = value; + } else { + inputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInput( + com.google.cloud.chronicle.v1.DashboardQuery.Input.Builder builderForValue) { + if (inputBuilder_ == null) { + input_ = builderForValue.build(); + } else { + inputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInput(com.google.cloud.chronicle.v1.DashboardQuery.Input value) { + if (inputBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && input_ != null + && input_ + != com.google.cloud.chronicle.v1.DashboardQuery.Input.getDefaultInstance()) { + getInputBuilder().mergeFrom(value); + } else { + input_ = value; + } + } else { + inputBuilder_.mergeFrom(value); + } + if (input_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInput() { + bitField0_ = (bitField0_ & ~0x00000008); + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); + inputBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DashboardQuery.Input.Builder getInputBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetInputFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DashboardQuery.InputOrBuilder getInputOrBuilder() { + if (inputBuilder_ != null) { + return inputBuilder_.getMessageOrBuilder(); + } else { + return input_ == null + ? com.google.cloud.chronicle.v1.DashboardQuery.Input.getDefaultInstance() + : input_; + } + } + + /** + * + * + *
+       * Optional. Time range input specifically for the filter's population
+       * query.
+       * 
+ * + * + * .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardQuery.Input, + com.google.cloud.chronicle.v1.DashboardQuery.Input.Builder, + com.google.cloud.chronicle.v1.DashboardQuery.InputOrBuilder> + internalGetInputFieldBuilder() { + if (inputBuilder_ == null) { + inputBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DashboardQuery.Input, + com.google.cloud.chronicle.v1.DashboardQuery.Input.Builder, + com.google.cloud.chronicle.v1.DashboardQuery.InputOrBuilder>( + getInput(), getParentForChildren(), isClean()); + input_ = null; + } + return inputBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions) + private static final com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions(); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + + /** + * + * + *
+   * Required. The token name to look for in the query (e.g., "hostname").
+   * The system will automatically wrap this in '$' (e.g., "$hostname$").
+   * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The token name to look for in the query (e.g., "hostname").
+   * The system will automatically wrap this in '$' (e.g., "$hostname$").
+   * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREFIX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object prefix_ = ""; + + /** + * + * + *
+   * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+   * "\"").
+   * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prefix. + */ + @java.lang.Override + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prefix_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+   * "\"").
+   * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUFFIX_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object suffix_ = ""; + + /** + * + * + *
+   * Optional. String to append to the final replaced value (e.g., "/", ")$",
+   * "\"").
+   * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The suffix. + */ + @java.lang.Override + public java.lang.String getSuffix() { + java.lang.Object ref = suffix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suffix_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. String to append to the final replaced value (e.g., "/", ")$",
+   * "\"").
+   * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for suffix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuffixBytes() { + java.lang.Object ref = suffix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEPARATOR_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object separator_ = ""; + + /** + * + * + *
+   * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+   * = ").
+   * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The separator. + */ + @java.lang.Override + public java.lang.String getSeparator() { + java.lang.Object ref = separator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + separator_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+   * = ").
+   * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for separator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeparatorBytes() { + java.lang.Object ref = separator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + separator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MULTIPLE_ALLOWED_FIELD_NUMBER = 5; + private boolean multipleAllowed_ = false; + + /** + * + * + *
+   * Optional. Whether to allow selection of multiple values.
+   * 
+ * + * bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multipleAllowed. + */ + @java.lang.Override + public boolean getMultipleAllowed() { + return multipleAllowed_; + } + + public static final int DEFAULT_VALUES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList defaultValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Default values to use if no value is selected/provided.
+   * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the defaultValues. + */ + public com.google.protobuf.ProtocolStringList getDefaultValuesList() { + return defaultValues_; + } + + /** + * + * + *
+   * Optional. Default values to use if no value is selected/provided.
+   * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of defaultValues. + */ + public int getDefaultValuesCount() { + return defaultValues_.size(); + } + + /** + * + * + *
+   * Optional. Default values to use if no value is selected/provided.
+   * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The defaultValues at the given index. + */ + public java.lang.String getDefaultValues(int index) { + return defaultValues_.get(index); + } + + /** + * + * + *
+   * Optional. Default values to use if no value is selected/provided.
+   * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the defaultValues at the given index. + */ + public com.google.protobuf.ByteString getDefaultValuesBytes(int index) { + return defaultValues_.getByteString(index); + } + + public static final int SKIP_DEFAULT_AFFIXES_FIELD_NUMBER = 7; + private boolean skipDefaultAffixes_ = false; + + /** + * + * + *
+   * Optional. Whether to skip the configured prefix and suffix when using
+   * default values. If true, default values are inserted raw (joined by the
+   * separator).
+   * 
+ * + * bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipDefaultAffixes. + */ + @java.lang.Override + public boolean getSkipDefaultAffixes() { + return skipDefaultAffixes_; + } + + public static final int VALUE_SOURCE_FIELD_NUMBER = 8; + private com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource valueSource_; + + /** + * + * + *
+   * Required. Source of the values for the filter.
+   * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the valueSource field is set. + */ + @java.lang.Override + public boolean hasValueSource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Source of the values for the filter.
+   * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueSource. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource getValueSource() { + return valueSource_ == null + ? com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.getDefaultInstance() + : valueSource_; + } + + /** + * + * + *
+   * Required. Source of the values for the filter.
+   * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceOrBuilder + getValueSourceOrBuilder() { + return valueSource_ == null + ? com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.getDefaultInstance() + : valueSource_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, token_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prefix_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, prefix_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suffix_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, suffix_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(separator_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, separator_); + } + if (multipleAllowed_ != false) { + output.writeBool(5, multipleAllowed_); + } + for (int i = 0; i < defaultValues_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, defaultValues_.getRaw(i)); + } + if (skipDefaultAffixes_ != false) { + output.writeBool(7, skipDefaultAffixes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getValueSource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, token_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prefix_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, prefix_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suffix_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, suffix_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(separator_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, separator_); + } + if (multipleAllowed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, multipleAllowed_); + } + { + int dataSize = 0; + for (int i = 0; i < defaultValues_.size(); i++) { + dataSize += computeStringSizeNoTag(defaultValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getDefaultValuesList().size(); + } + if (skipDefaultAffixes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, skipDefaultAffixes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getValueSource()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.AdvancedFilterConfig)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.AdvancedFilterConfig other = + (com.google.cloud.chronicle.v1.AdvancedFilterConfig) obj; + + if (!getToken().equals(other.getToken())) return false; + if (!getPrefix().equals(other.getPrefix())) return false; + if (!getSuffix().equals(other.getSuffix())) return false; + if (!getSeparator().equals(other.getSeparator())) return false; + if (getMultipleAllowed() != other.getMultipleAllowed()) return false; + if (!getDefaultValuesList().equals(other.getDefaultValuesList())) return false; + if (getSkipDefaultAffixes() != other.getSkipDefaultAffixes()) return false; + if (hasValueSource() != other.hasValueSource()) return false; + if (hasValueSource()) { + if (!getValueSource().equals(other.getValueSource())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getPrefix().hashCode(); + hash = (37 * hash) + SUFFIX_FIELD_NUMBER; + hash = (53 * hash) + getSuffix().hashCode(); + hash = (37 * hash) + SEPARATOR_FIELD_NUMBER; + hash = (53 * hash) + getSeparator().hashCode(); + hash = (37 * hash) + MULTIPLE_ALLOWED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultipleAllowed()); + if (getDefaultValuesCount() > 0) { + hash = (37 * hash) + DEFAULT_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValuesList().hashCode(); + } + hash = (37 * hash) + SKIP_DEFAULT_AFFIXES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipDefaultAffixes()); + if (hasValueSource()) { + hash = (37 * hash) + VALUE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getValueSource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.AdvancedFilterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Advanced filter configuration for the filter widget.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.AdvancedFilterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.AdvancedFilterConfig) + com.google.cloud.chronicle.v1.AdvancedFilterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.class, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.AdvancedFilterConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetValueSourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = ""; + prefix_ = ""; + suffix_ = ""; + separator_ = ""; + multipleAllowed_ = false; + defaultValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + skipDefaultAffixes_ = false; + valueSource_ = null; + if (valueSourceBuilder_ != null) { + valueSourceBuilder_.dispose(); + valueSourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DashboardQueryProto + .internal_static_google_cloud_chronicle_v1_AdvancedFilterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.AdvancedFilterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig build() { + com.google.cloud.chronicle.v1.AdvancedFilterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig buildPartial() { + com.google.cloud.chronicle.v1.AdvancedFilterConfig result = + new com.google.cloud.chronicle.v1.AdvancedFilterConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.AdvancedFilterConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = token_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.prefix_ = prefix_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.suffix_ = suffix_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.separator_ = separator_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.multipleAllowed_ = multipleAllowed_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + defaultValues_.makeImmutable(); + result.defaultValues_ = defaultValues_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.skipDefaultAffixes_ = skipDefaultAffixes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.valueSource_ = + valueSourceBuilder_ == null ? valueSource_ : valueSourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.AdvancedFilterConfig) { + return mergeFrom((com.google.cloud.chronicle.v1.AdvancedFilterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.AdvancedFilterConfig other) { + if (other == com.google.cloud.chronicle.v1.AdvancedFilterConfig.getDefaultInstance()) + return this; + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPrefix().isEmpty()) { + prefix_ = other.prefix_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSuffix().isEmpty()) { + suffix_ = other.suffix_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getSeparator().isEmpty()) { + separator_ = other.separator_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getMultipleAllowed() != false) { + setMultipleAllowed(other.getMultipleAllowed()); + } + if (!other.defaultValues_.isEmpty()) { + if (defaultValues_.isEmpty()) { + defaultValues_ = other.defaultValues_; + bitField0_ |= 0x00000020; + } else { + ensureDefaultValuesIsMutable(); + defaultValues_.addAll(other.defaultValues_); + } + onChanged(); + } + if (other.getSkipDefaultAffixes() != false) { + setSkipDefaultAffixes(other.getSkipDefaultAffixes()); + } + if (other.hasValueSource()) { + mergeValueSource(other.getValueSource()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + suffix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + separator_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + multipleAllowed_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDefaultValuesIsMutable(); + defaultValues_.add(s); + break; + } // case 50 + case 56: + { + skipDefaultAffixes_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + input.readMessage( + internalGetValueSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object token_ = ""; + + /** + * + * + *
+     * Required. The token name to look for in the query (e.g., "hostname").
+     * The system will automatically wrap this in '$' (e.g., "$hostname$").
+     * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The token name to look for in the query (e.g., "hostname").
+     * The system will automatically wrap this in '$' (e.g., "$hostname$").
+     * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for token. + */ + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The token name to look for in the query (e.g., "hostname").
+     * The system will automatically wrap this in '$' (e.g., "$hostname$").
+     * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The token name to look for in the query (e.g., "hostname").
+     * The system will automatically wrap this in '$' (e.g., "$hostname$").
+     * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The token name to look for in the query (e.g., "hostname").
+     * The system will automatically wrap this in '$' (e.g., "$hostname$").
+     * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object prefix_ = ""; + + /** + * + * + *
+     * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+     * "\"").
+     * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prefix. + */ + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+     * "\"").
+     * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prefix. + */ + public com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+     * "\"").
+     * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+     * "\"").
+     * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrefix() { + prefix_ = getDefaultInstance().getPrefix(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+     * "\"").
+     * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object suffix_ = ""; + + /** + * + * + *
+     * Optional. String to append to the final replaced value (e.g., "/", ")$",
+     * "\"").
+     * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The suffix. + */ + public java.lang.String getSuffix() { + java.lang.Object ref = suffix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suffix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. String to append to the final replaced value (e.g., "/", ")$",
+     * "\"").
+     * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for suffix. + */ + public com.google.protobuf.ByteString getSuffixBytes() { + java.lang.Object ref = suffix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. String to append to the final replaced value (e.g., "/", ")$",
+     * "\"").
+     * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The suffix to set. + * @return This builder for chaining. + */ + public Builder setSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suffix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. String to append to the final replaced value (e.g., "/", ")$",
+     * "\"").
+     * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSuffix() { + suffix_ = getDefaultInstance().getSuffix(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. String to append to the final replaced value (e.g., "/", ")$",
+     * "\"").
+     * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for suffix to set. + * @return This builder for chaining. + */ + public Builder setSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suffix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object separator_ = ""; + + /** + * + * + *
+     * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+     * = ").
+     * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The separator. + */ + public java.lang.String getSeparator() { + java.lang.Object ref = separator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + separator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+     * = ").
+     * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for separator. + */ + public com.google.protobuf.ByteString getSeparatorBytes() { + java.lang.Object ref = separator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + separator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+     * = ").
+     * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The separator to set. + * @return This builder for chaining. + */ + public Builder setSeparator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + separator_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+     * = ").
+     * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSeparator() { + separator_ = getDefaultInstance().getSeparator(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+     * = ").
+     * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for separator to set. + * @return This builder for chaining. + */ + public Builder setSeparatorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + separator_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean multipleAllowed_; + + /** + * + * + *
+     * Optional. Whether to allow selection of multiple values.
+     * 
+ * + * bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multipleAllowed. + */ + @java.lang.Override + public boolean getMultipleAllowed() { + return multipleAllowed_; + } + + /** + * + * + *
+     * Optional. Whether to allow selection of multiple values.
+     * 
+ * + * bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The multipleAllowed to set. + * @return This builder for chaining. + */ + public Builder setMultipleAllowed(boolean value) { + + multipleAllowed_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to allow selection of multiple values.
+     * 
+ * + * bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMultipleAllowed() { + bitField0_ = (bitField0_ & ~0x00000010); + multipleAllowed_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList defaultValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDefaultValuesIsMutable() { + if (!defaultValues_.isModifiable()) { + defaultValues_ = new com.google.protobuf.LazyStringArrayList(defaultValues_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the defaultValues. + */ + public com.google.protobuf.ProtocolStringList getDefaultValuesList() { + defaultValues_.makeImmutable(); + return defaultValues_; + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of defaultValues. + */ + public int getDefaultValuesCount() { + return defaultValues_.size(); + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The defaultValues at the given index. + */ + public java.lang.String getDefaultValues(int index) { + return defaultValues_.get(index); + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the defaultValues at the given index. + */ + public com.google.protobuf.ByteString getDefaultValuesBytes(int index) { + return defaultValues_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The defaultValues to set. + * @return This builder for chaining. + */ + public Builder setDefaultValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDefaultValuesIsMutable(); + defaultValues_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultValues to add. + * @return This builder for chaining. + */ + public Builder addDefaultValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDefaultValuesIsMutable(); + defaultValues_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The defaultValues to add. + * @return This builder for chaining. + */ + public Builder addAllDefaultValues(java.lang.Iterable values) { + ensureDefaultValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, defaultValues_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValues() { + defaultValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Default values to use if no value is selected/provided.
+     * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the defaultValues to add. + * @return This builder for chaining. + */ + public Builder addDefaultValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDefaultValuesIsMutable(); + defaultValues_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean skipDefaultAffixes_; + + /** + * + * + *
+     * Optional. Whether to skip the configured prefix and suffix when using
+     * default values. If true, default values are inserted raw (joined by the
+     * separator).
+     * 
+ * + * bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipDefaultAffixes. + */ + @java.lang.Override + public boolean getSkipDefaultAffixes() { + return skipDefaultAffixes_; + } + + /** + * + * + *
+     * Optional. Whether to skip the configured prefix and suffix when using
+     * default values. If true, default values are inserted raw (joined by the
+     * separator).
+     * 
+ * + * bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skipDefaultAffixes to set. + * @return This builder for chaining. + */ + public Builder setSkipDefaultAffixes(boolean value) { + + skipDefaultAffixes_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to skip the configured prefix and suffix when using
+     * default values. If true, default values are inserted raw (joined by the
+     * separator).
+     * 
+ * + * bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkipDefaultAffixes() { + bitField0_ = (bitField0_ & ~0x00000040); + skipDefaultAffixes_ = false; + onChanged(); + return this; + } + + private com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource valueSource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceOrBuilder> + valueSourceBuilder_; + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the valueSource field is set. + */ + public boolean hasValueSource() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueSource. + */ + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource getValueSource() { + if (valueSourceBuilder_ == null) { + return valueSource_ == null + ? com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.getDefaultInstance() + : valueSource_; + } else { + return valueSourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValueSource( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value) { + if (valueSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valueSource_ = value; + } else { + valueSourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValueSource( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.Builder builderForValue) { + if (valueSourceBuilder_ == null) { + valueSource_ = builderForValue.build(); + } else { + valueSourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeValueSource( + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value) { + if (valueSourceBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && valueSource_ != null + && valueSource_ + != com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource + .getDefaultInstance()) { + getValueSourceBuilder().mergeFrom(value); + } else { + valueSource_ = value; + } + } else { + valueSourceBuilder_.mergeFrom(value); + } + if (valueSource_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearValueSource() { + bitField0_ = (bitField0_ & ~0x00000080); + valueSource_ = null; + if (valueSourceBuilder_ != null) { + valueSourceBuilder_.dispose(); + valueSourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.Builder + getValueSourceBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetValueSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceOrBuilder + getValueSourceOrBuilder() { + if (valueSourceBuilder_ != null) { + return valueSourceBuilder_.getMessageOrBuilder(); + } else { + return valueSource_ == null + ? com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.getDefaultInstance() + : valueSource_; + } + } + + /** + * + * + *
+     * Required. Source of the values for the filter.
+     * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceOrBuilder> + internalGetValueSourceFieldBuilder() { + if (valueSourceBuilder_ == null) { + valueSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource.Builder, + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceOrBuilder>( + getValueSource(), getParentForChildren(), isClean()); + valueSource_ = null; + } + return valueSourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.AdvancedFilterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.AdvancedFilterConfig) + private static final com.google.cloud.chronicle.v1.AdvancedFilterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.AdvancedFilterConfig(); + } + + public static com.google.cloud.chronicle.v1.AdvancedFilterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedFilterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.AdvancedFilterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AdvancedFilterConfigOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AdvancedFilterConfigOrBuilder.java new file mode 100644 index 000000000000..346ccafd459a --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AdvancedFilterConfigOrBuilder.java @@ -0,0 +1,265 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/dashboard_query.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface AdvancedFilterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.AdvancedFilterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The token name to look for in the query (e.g., "hostname").
+   * The system will automatically wrap this in '$' (e.g., "$hostname$").
+   * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The token. + */ + java.lang.String getToken(); + + /** + * + * + *
+   * Required. The token name to look for in the query (e.g., "hostname").
+   * The system will automatically wrap this in '$' (e.g., "$hostname$").
+   * 
+ * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for token. + */ + com.google.protobuf.ByteString getTokenBytes(); + + /** + * + * + *
+   * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+   * "\"").
+   * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prefix. + */ + java.lang.String getPrefix(); + + /** + * + * + *
+   * Optional. String to prepend to the final replaced value (e.g., "/", "^(",
+   * "\"").
+   * 
+ * + * string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prefix. + */ + com.google.protobuf.ByteString getPrefixBytes(); + + /** + * + * + *
+   * Optional. String to append to the final replaced value (e.g., "/", ")$",
+   * "\"").
+   * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The suffix. + */ + java.lang.String getSuffix(); + + /** + * + * + *
+   * Optional. String to append to the final replaced value (e.g., "/", ")$",
+   * "\"").
+   * 
+ * + * string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for suffix. + */ + com.google.protobuf.ByteString getSuffixBytes(); + + /** + * + * + *
+   * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+   * = ").
+   * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The separator. + */ + java.lang.String getSeparator(); + + /** + * + * + *
+   * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field
+   * = ").
+   * 
+ * + * string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for separator. + */ + com.google.protobuf.ByteString getSeparatorBytes(); + + /** + * + * + *
+   * Optional. Whether to allow selection of multiple values.
+   * 
+ * + * bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multipleAllowed. + */ + boolean getMultipleAllowed(); + + /** + * + * + *
+   * Optional. Default values to use if no value is selected/provided.
+   * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the defaultValues. + */ + java.util.List getDefaultValuesList(); + + /** + * + * + *
+   * Optional. Default values to use if no value is selected/provided.
+   * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of defaultValues. + */ + int getDefaultValuesCount(); + + /** + * + * + *
+   * Optional. Default values to use if no value is selected/provided.
+   * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The defaultValues at the given index. + */ + java.lang.String getDefaultValues(int index); + + /** + * + * + *
+   * Optional. Default values to use if no value is selected/provided.
+   * 
+ * + * repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the defaultValues at the given index. + */ + com.google.protobuf.ByteString getDefaultValuesBytes(int index); + + /** + * + * + *
+   * Optional. Whether to skip the configured prefix and suffix when using
+   * default values. If true, default values are inserted raw (joined by the
+   * separator).
+   * 
+ * + * bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipDefaultAffixes. + */ + boolean getSkipDefaultAffixes(); + + /** + * + * + *
+   * Required. Source of the values for the filter.
+   * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the valueSource field is set. + */ + boolean hasValueSource(); + + /** + * + * + *
+   * Required. Source of the values for the filter.
+   * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueSource. + */ + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource getValueSource(); + + /** + * + * + *
+   * Required. Source of the values for the filter.
+   * 
+ * + * + * .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceOrBuilder getValueSourceOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AxisType.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AxisType.java new file mode 100644 index 000000000000..d267ebbbf541 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/AxisType.java @@ -0,0 +1,149 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/dashboard_chart.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** Protobuf enum {@code google.cloud.chronicle.v1.AxisType} */ +@com.google.protobuf.Generated +public enum AxisType implements com.google.protobuf.ProtocolMessageEnum { + /** AXIS_TYPE_UNSPECIFIED = 0; */ + AXIS_TYPE_UNSPECIFIED(0), + /** VALUE = 1; */ + VALUE(1), + /** CATEGORY = 2; */ + CATEGORY(2), + /** TIME = 3; */ + TIME(3), + /** LOG = 4; */ + LOG(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AxisType"); + } + + /** AXIS_TYPE_UNSPECIFIED = 0; */ + public static final int AXIS_TYPE_UNSPECIFIED_VALUE = 0; + + /** VALUE = 1; */ + public static final int VALUE_VALUE = 1; + + /** CATEGORY = 2; */ + public static final int CATEGORY_VALUE = 2; + + /** TIME = 3; */ + public static final int TIME_VALUE = 3; + + /** LOG = 4; */ + public static final int LOG_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AxisType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AxisType forNumber(int value) { + switch (value) { + case 0: + return AXIS_TYPE_UNSPECIFIED; + case 1: + return VALUE; + case 2: + return CATEGORY; + case 3: + return TIME; + case 4: + return LOG; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AxisType findValueByNumber(int number) { + return AxisType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto.getDescriptor().getEnumTypes().get(2); + } + + private static final AxisType[] VALUES = values(); + + public static AxisType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AxisType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.chronicle.v1.AxisType) +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsRequest.java new file mode 100644 index 000000000000..5b6e7fc415a4 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsRequest.java @@ -0,0 +1,959 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/dashboard_chart.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request message to get dashboard charts in batch.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BatchGetDashboardChartsRequest} + */ +@com.google.protobuf.Generated +public final class BatchGetDashboardChartsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) + BatchGetDashboardChartsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchGetDashboardChartsRequest"); + } + + // Use BatchGetDashboardChartsRequest.newBuilder() to construct. + private BatchGetDashboardChartsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BatchGetDashboardChartsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest.class, + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource shared by all dashboard charts being
+   * retrieved. Format:
+   * projects/{project}/locations/{location}/instances/{instance} If this is
+   * set, the parent of all of the dashboard charts specified in `names` must
+   * match this field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource shared by all dashboard charts being
+   * retrieved. Format:
+   * projects/{project}/locations/{location}/instances/{instance} If this is
+   * set, the parent of all of the dashboard charts specified in `names` must
+   * match this field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The names of the dashboard charts to get.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
+   * Required. The names of the dashboard charts to get.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+   * Required. The names of the dashboard charts to get.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+   * Required. The names of the dashboard charts to get.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, names_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest other = + (com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message to get dashboard charts in batch.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BatchGetDashboardChartsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest.class, + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest build() { + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest buildPartial() { + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest result = + new com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest other) { + if (other + == com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource shared by all dashboard charts being
+     * retrieved. Format:
+     * projects/{project}/locations/{location}/instances/{instance} If this is
+     * set, the parent of all of the dashboard charts specified in `names` must
+     * match this field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource shared by all dashboard charts being
+     * retrieved. Format:
+     * projects/{project}/locations/{location}/instances/{instance} If this is
+     * set, the parent of all of the dashboard charts specified in `names` must
+     * match this field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource shared by all dashboard charts being
+     * retrieved. Format:
+     * projects/{project}/locations/{location}/instances/{instance} If this is
+     * set, the parent of all of the dashboard charts specified in `names` must
+     * match this field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource shared by all dashboard charts being
+     * retrieved. Format:
+     * projects/{project}/locations/{location}/instances/{instance} If this is
+     * set, the parent of all of the dashboard charts specified in `names` must
+     * match this field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource shared by all dashboard charts being
+     * retrieved. Format:
+     * projects/{project}/locations/{location}/instances/{instance} If this is
+     * set, the parent of all of the dashboard charts specified in `names` must
+     * match this field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The names of the dashboard charts to get.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) + private static final com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest(); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetDashboardChartsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsRequestOrBuilder.java new file mode 100644 index 000000000000..f8a8299f43dd --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/dashboard_chart.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BatchGetDashboardChartsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BatchGetDashboardChartsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource shared by all dashboard charts being
+   * retrieved. Format:
+   * projects/{project}/locations/{location}/instances/{instance} If this is
+   * set, the parent of all of the dashboard charts specified in `names` must
+   * match this field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource shared by all dashboard charts being
+   * retrieved. Format:
+   * projects/{project}/locations/{location}/instances/{instance} If this is
+   * set, the parent of all of the dashboard charts specified in `names` must
+   * match this field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The names of the dashboard charts to get.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
+   * Required. The names of the dashboard charts to get.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
+   * Required. The names of the dashboard charts to get.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
+   * Required. The names of the dashboard charts to get.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsResponse.java new file mode 100644 index 000000000000..3f1db4342575 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsResponse.java @@ -0,0 +1,938 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/dashboard_chart.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Response message for getting dashboard charts in batch.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BatchGetDashboardChartsResponse} + */ +@com.google.protobuf.Generated +public final class BatchGetDashboardChartsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BatchGetDashboardChartsResponse) + BatchGetDashboardChartsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchGetDashboardChartsResponse"); + } + + // Use BatchGetDashboardChartsResponse.newBuilder() to construct. + private BatchGetDashboardChartsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BatchGetDashboardChartsResponse() { + dashboardCharts_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse.class, + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse.Builder.class); + } + + public static final int DASHBOARD_CHARTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dashboardCharts_; + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + @java.lang.Override + public java.util.List getDashboardChartsList() { + return dashboardCharts_; + } + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + @java.lang.Override + public java.util.List + getDashboardChartsOrBuilderList() { + return dashboardCharts_; + } + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + @java.lang.Override + public int getDashboardChartsCount() { + return dashboardCharts_.size(); + } + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardChart getDashboardCharts(int index) { + return dashboardCharts_.get(index); + } + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartsOrBuilder( + int index) { + return dashboardCharts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dashboardCharts_.size(); i++) { + output.writeMessage(1, dashboardCharts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dashboardCharts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dashboardCharts_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse other = + (com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse) obj; + + if (!getDashboardChartsList().equals(other.getDashboardChartsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDashboardChartsCount() > 0) { + hash = (37 * hash) + DASHBOARD_CHARTS_FIELD_NUMBER; + hash = (53 * hash) + getDashboardChartsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for getting dashboard charts in batch.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BatchGetDashboardChartsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BatchGetDashboardChartsResponse) + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse.class, + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dashboardChartsBuilder_ == null) { + dashboardCharts_ = java.util.Collections.emptyList(); + } else { + dashboardCharts_ = null; + dashboardChartsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_BatchGetDashboardChartsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse build() { + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse buildPartial() { + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse result = + new com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse result) { + if (dashboardChartsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dashboardCharts_ = java.util.Collections.unmodifiableList(dashboardCharts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dashboardCharts_ = dashboardCharts_; + } else { + result.dashboardCharts_ = dashboardChartsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse other) { + if (other + == com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse.getDefaultInstance()) + return this; + if (dashboardChartsBuilder_ == null) { + if (!other.dashboardCharts_.isEmpty()) { + if (dashboardCharts_.isEmpty()) { + dashboardCharts_ = other.dashboardCharts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDashboardChartsIsMutable(); + dashboardCharts_.addAll(other.dashboardCharts_); + } + onChanged(); + } + } else { + if (!other.dashboardCharts_.isEmpty()) { + if (dashboardChartsBuilder_.isEmpty()) { + dashboardChartsBuilder_.dispose(); + dashboardChartsBuilder_ = null; + dashboardCharts_ = other.dashboardCharts_; + bitField0_ = (bitField0_ & ~0x00000001); + dashboardChartsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDashboardChartsFieldBuilder() + : null; + } else { + dashboardChartsBuilder_.addAllMessages(other.dashboardCharts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.chronicle.v1.DashboardChart m = + input.readMessage( + com.google.cloud.chronicle.v1.DashboardChart.parser(), extensionRegistry); + if (dashboardChartsBuilder_ == null) { + ensureDashboardChartsIsMutable(); + dashboardCharts_.add(m); + } else { + dashboardChartsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dashboardCharts_ = + java.util.Collections.emptyList(); + + private void ensureDashboardChartsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dashboardCharts_ = + new java.util.ArrayList(dashboardCharts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder> + dashboardChartsBuilder_; + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public java.util.List getDashboardChartsList() { + if (dashboardChartsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dashboardCharts_); + } else { + return dashboardChartsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public int getDashboardChartsCount() { + if (dashboardChartsBuilder_ == null) { + return dashboardCharts_.size(); + } else { + return dashboardChartsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public com.google.cloud.chronicle.v1.DashboardChart getDashboardCharts(int index) { + if (dashboardChartsBuilder_ == null) { + return dashboardCharts_.get(index); + } else { + return dashboardChartsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder setDashboardCharts( + int index, com.google.cloud.chronicle.v1.DashboardChart value) { + if (dashboardChartsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDashboardChartsIsMutable(); + dashboardCharts_.set(index, value); + onChanged(); + } else { + dashboardChartsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder setDashboardCharts( + int index, com.google.cloud.chronicle.v1.DashboardChart.Builder builderForValue) { + if (dashboardChartsBuilder_ == null) { + ensureDashboardChartsIsMutable(); + dashboardCharts_.set(index, builderForValue.build()); + onChanged(); + } else { + dashboardChartsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder addDashboardCharts(com.google.cloud.chronicle.v1.DashboardChart value) { + if (dashboardChartsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDashboardChartsIsMutable(); + dashboardCharts_.add(value); + onChanged(); + } else { + dashboardChartsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder addDashboardCharts( + int index, com.google.cloud.chronicle.v1.DashboardChart value) { + if (dashboardChartsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDashboardChartsIsMutable(); + dashboardCharts_.add(index, value); + onChanged(); + } else { + dashboardChartsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder addDashboardCharts( + com.google.cloud.chronicle.v1.DashboardChart.Builder builderForValue) { + if (dashboardChartsBuilder_ == null) { + ensureDashboardChartsIsMutable(); + dashboardCharts_.add(builderForValue.build()); + onChanged(); + } else { + dashboardChartsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder addDashboardCharts( + int index, com.google.cloud.chronicle.v1.DashboardChart.Builder builderForValue) { + if (dashboardChartsBuilder_ == null) { + ensureDashboardChartsIsMutable(); + dashboardCharts_.add(index, builderForValue.build()); + onChanged(); + } else { + dashboardChartsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder addAllDashboardCharts( + java.lang.Iterable values) { + if (dashboardChartsBuilder_ == null) { + ensureDashboardChartsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dashboardCharts_); + onChanged(); + } else { + dashboardChartsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder clearDashboardCharts() { + if (dashboardChartsBuilder_ == null) { + dashboardCharts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dashboardChartsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public Builder removeDashboardCharts(int index) { + if (dashboardChartsBuilder_ == null) { + ensureDashboardChartsIsMutable(); + dashboardCharts_.remove(index); + onChanged(); + } else { + dashboardChartsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public com.google.cloud.chronicle.v1.DashboardChart.Builder getDashboardChartsBuilder( + int index) { + return internalGetDashboardChartsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartsOrBuilder( + int index) { + if (dashboardChartsBuilder_ == null) { + return dashboardCharts_.get(index); + } else { + return dashboardChartsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public java.util.List + getDashboardChartsOrBuilderList() { + if (dashboardChartsBuilder_ != null) { + return dashboardChartsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dashboardCharts_); + } + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public com.google.cloud.chronicle.v1.DashboardChart.Builder addDashboardChartsBuilder() { + return internalGetDashboardChartsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance()); + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public com.google.cloud.chronicle.v1.DashboardChart.Builder addDashboardChartsBuilder( + int index) { + return internalGetDashboardChartsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.DashboardChart.getDefaultInstance()); + } + + /** + * + * + *
+     * The dashboardCharts from the specified chronicle instance.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + public java.util.List + getDashboardChartsBuilderList() { + return internalGetDashboardChartsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder> + internalGetDashboardChartsFieldBuilder() { + if (dashboardChartsBuilder_ == null) { + dashboardChartsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DashboardChart, + com.google.cloud.chronicle.v1.DashboardChart.Builder, + com.google.cloud.chronicle.v1.DashboardChartOrBuilder>( + dashboardCharts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dashboardCharts_ = null; + } + return dashboardChartsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BatchGetDashboardChartsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BatchGetDashboardChartsResponse) + private static final com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse(); + } + + public static com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetDashboardChartsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsResponseOrBuilder.java new file mode 100644 index 000000000000..7b9c56dbf81e --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BatchGetDashboardChartsResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/dashboard_chart.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BatchGetDashboardChartsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BatchGetDashboardChartsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + java.util.List getDashboardChartsList(); + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + com.google.cloud.chronicle.v1.DashboardChart getDashboardCharts(int index); + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + int getDashboardChartsCount(); + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + java.util.List + getDashboardChartsOrBuilderList(); + + /** + * + * + *
+   * The dashboardCharts from the specified chronicle instance.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + com.google.cloud.chronicle.v1.DashboardChartOrBuilder getDashboardChartsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExport.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExport.java new file mode 100644 index 000000000000..a1694c946353 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExport.java @@ -0,0 +1,2484 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/big_query_export.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * This resource represents the BigQuery export configuration for a Chronicle
+ * instance which includes Google Cloud Platform resources like Cloud Storage
+ * buckets, BigQuery datasets etc and the export settings for each data source.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BigQueryExport} + */ +@com.google.protobuf.Generated +public final class BigQueryExport extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BigQueryExport) + BigQueryExportOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BigQueryExport"); + } + + // Use BigQueryExport.newBuilder() to construct. + private BigQueryExport(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BigQueryExport() { + name_ = ""; + bigQueryExportPackage_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.BigQueryExportProto + .internal_static_google_cloud_chronicle_v1_BigQueryExport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.BigQueryExportProto + .internal_static_google_cloud_chronicle_v1_BigQueryExport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BigQueryExport.class, + com.google.cloud.chronicle.v1.BigQueryExport.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name of the BigQueryExport.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. The resource name of the BigQueryExport.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVISIONED_FIELD_NUMBER = 2; + private boolean provisioned_ = false; + + /** + * + * + *
+   * Output only. Whether the BigQueryExport has been provisioned for the
+   * Chronicle instance.
+   * 
+ * + * bool provisioned = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provisioned. + */ + @java.lang.Override + public boolean getProvisioned() { + return provisioned_; + } + + public static final int BIG_QUERY_EXPORT_PACKAGE_FIELD_NUMBER = 3; + private int bigQueryExportPackage_ = 0; + + /** + * + * + *
+   * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+   * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for bigQueryExportPackage. + */ + @java.lang.Override + public int getBigQueryExportPackageValue() { + return bigQueryExportPackage_; + } + + /** + * + * + *
+   * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+   * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bigQueryExportPackage. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.BigQueryExportPackage getBigQueryExportPackage() { + com.google.cloud.chronicle.v1.BigQueryExportPackage result = + com.google.cloud.chronicle.v1.BigQueryExportPackage.forNumber(bigQueryExportPackage_); + return result == null + ? com.google.cloud.chronicle.v1.BigQueryExportPackage.UNRECOGNIZED + : result; + } + + public static final int ENTITY_GRAPH_SETTINGS_FIELD_NUMBER = 4; + private com.google.cloud.chronicle.v1.DataSourceExportSettings entityGraphSettings_; + + /** + * + * + *
+   * Optional. The export settings for the Entity Graph data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the entityGraphSettings field is set. + */ + @java.lang.Override + public boolean hasEntityGraphSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The export settings for the Entity Graph data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The entityGraphSettings. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettings getEntityGraphSettings() { + return entityGraphSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : entityGraphSettings_; + } + + /** + * + * + *
+   * Optional. The export settings for the Entity Graph data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getEntityGraphSettingsOrBuilder() { + return entityGraphSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : entityGraphSettings_; + } + + public static final int IOC_MATCHES_SETTINGS_FIELD_NUMBER = 5; + private com.google.cloud.chronicle.v1.DataSourceExportSettings iocMatchesSettings_; + + /** + * + * + *
+   * Optional. The export settings for the IOC Matches data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iocMatchesSettings field is set. + */ + @java.lang.Override + public boolean hasIocMatchesSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The export settings for the IOC Matches data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iocMatchesSettings. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettings getIocMatchesSettings() { + return iocMatchesSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : iocMatchesSettings_; + } + + /** + * + * + *
+   * Optional. The export settings for the IOC Matches data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getIocMatchesSettingsOrBuilder() { + return iocMatchesSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : iocMatchesSettings_; + } + + public static final int RULE_DETECTIONS_SETTINGS_FIELD_NUMBER = 6; + private com.google.cloud.chronicle.v1.DataSourceExportSettings ruleDetectionsSettings_; + + /** + * + * + *
+   * Optional. The export settings for the Rule Detections data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ruleDetectionsSettings field is set. + */ + @java.lang.Override + public boolean hasRuleDetectionsSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The export settings for the Rule Detections data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ruleDetectionsSettings. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettings getRuleDetectionsSettings() { + return ruleDetectionsSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : ruleDetectionsSettings_; + } + + /** + * + * + *
+   * Optional. The export settings for the Rule Detections data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getRuleDetectionsSettingsOrBuilder() { + return ruleDetectionsSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : ruleDetectionsSettings_; + } + + public static final int UDM_EVENTS_AGGREGATES_SETTINGS_FIELD_NUMBER = 7; + private com.google.cloud.chronicle.v1.DataSourceExportSettings udmEventsAggregatesSettings_; + + /** + * + * + *
+   * Optional. The export settings for the UDM Events Aggregates data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the udmEventsAggregatesSettings field is set. + */ + @java.lang.Override + public boolean hasUdmEventsAggregatesSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. The export settings for the UDM Events Aggregates data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The udmEventsAggregatesSettings. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettings getUdmEventsAggregatesSettings() { + return udmEventsAggregatesSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : udmEventsAggregatesSettings_; + } + + /** + * + * + *
+   * Optional. The export settings for the UDM Events Aggregates data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getUdmEventsAggregatesSettingsOrBuilder() { + return udmEventsAggregatesSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : udmEventsAggregatesSettings_; + } + + public static final int UDM_EVENTS_SETTINGS_FIELD_NUMBER = 8; + private com.google.cloud.chronicle.v1.DataSourceExportSettings udmEventsSettings_; + + /** + * + * + *
+   * Optional. The export settings for the UDM Events data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the udmEventsSettings field is set. + */ + @java.lang.Override + public boolean hasUdmEventsSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. The export settings for the UDM Events data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The udmEventsSettings. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettings getUdmEventsSettings() { + return udmEventsSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : udmEventsSettings_; + } + + /** + * + * + *
+   * Optional. The export settings for the UDM Events data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getUdmEventsSettingsOrBuilder() { + return udmEventsSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : udmEventsSettings_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (provisioned_ != false) { + output.writeBool(2, provisioned_); + } + if (bigQueryExportPackage_ + != com.google.cloud.chronicle.v1.BigQueryExportPackage.BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, bigQueryExportPackage_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getEntityGraphSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getIocMatchesSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getRuleDetectionsSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getUdmEventsAggregatesSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getUdmEventsSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (provisioned_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, provisioned_); + } + if (bigQueryExportPackage_ + != com.google.cloud.chronicle.v1.BigQueryExportPackage.BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, bigQueryExportPackage_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEntityGraphSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIocMatchesSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRuleDetectionsSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getUdmEventsAggregatesSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUdmEventsSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.BigQueryExport)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BigQueryExport other = + (com.google.cloud.chronicle.v1.BigQueryExport) obj; + + if (!getName().equals(other.getName())) return false; + if (getProvisioned() != other.getProvisioned()) return false; + if (bigQueryExportPackage_ != other.bigQueryExportPackage_) return false; + if (hasEntityGraphSettings() != other.hasEntityGraphSettings()) return false; + if (hasEntityGraphSettings()) { + if (!getEntityGraphSettings().equals(other.getEntityGraphSettings())) return false; + } + if (hasIocMatchesSettings() != other.hasIocMatchesSettings()) return false; + if (hasIocMatchesSettings()) { + if (!getIocMatchesSettings().equals(other.getIocMatchesSettings())) return false; + } + if (hasRuleDetectionsSettings() != other.hasRuleDetectionsSettings()) return false; + if (hasRuleDetectionsSettings()) { + if (!getRuleDetectionsSettings().equals(other.getRuleDetectionsSettings())) return false; + } + if (hasUdmEventsAggregatesSettings() != other.hasUdmEventsAggregatesSettings()) return false; + if (hasUdmEventsAggregatesSettings()) { + if (!getUdmEventsAggregatesSettings().equals(other.getUdmEventsAggregatesSettings())) + return false; + } + if (hasUdmEventsSettings() != other.hasUdmEventsSettings()) return false; + if (hasUdmEventsSettings()) { + if (!getUdmEventsSettings().equals(other.getUdmEventsSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PROVISIONED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProvisioned()); + hash = (37 * hash) + BIG_QUERY_EXPORT_PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + bigQueryExportPackage_; + if (hasEntityGraphSettings()) { + hash = (37 * hash) + ENTITY_GRAPH_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEntityGraphSettings().hashCode(); + } + if (hasIocMatchesSettings()) { + hash = (37 * hash) + IOC_MATCHES_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getIocMatchesSettings().hashCode(); + } + if (hasRuleDetectionsSettings()) { + hash = (37 * hash) + RULE_DETECTIONS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getRuleDetectionsSettings().hashCode(); + } + if (hasUdmEventsAggregatesSettings()) { + hash = (37 * hash) + UDM_EVENTS_AGGREGATES_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUdmEventsAggregatesSettings().hashCode(); + } + if (hasUdmEventsSettings()) { + hash = (37 * hash) + UDM_EVENTS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUdmEventsSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.BigQueryExport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * This resource represents the BigQuery export configuration for a Chronicle
+   * instance which includes Google Cloud Platform resources like Cloud Storage
+   * buckets, BigQuery datasets etc and the export settings for each data source.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BigQueryExport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BigQueryExport) + com.google.cloud.chronicle.v1.BigQueryExportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.BigQueryExportProto + .internal_static_google_cloud_chronicle_v1_BigQueryExport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.BigQueryExportProto + .internal_static_google_cloud_chronicle_v1_BigQueryExport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BigQueryExport.class, + com.google.cloud.chronicle.v1.BigQueryExport.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BigQueryExport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEntityGraphSettingsFieldBuilder(); + internalGetIocMatchesSettingsFieldBuilder(); + internalGetRuleDetectionsSettingsFieldBuilder(); + internalGetUdmEventsAggregatesSettingsFieldBuilder(); + internalGetUdmEventsSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + provisioned_ = false; + bigQueryExportPackage_ = 0; + entityGraphSettings_ = null; + if (entityGraphSettingsBuilder_ != null) { + entityGraphSettingsBuilder_.dispose(); + entityGraphSettingsBuilder_ = null; + } + iocMatchesSettings_ = null; + if (iocMatchesSettingsBuilder_ != null) { + iocMatchesSettingsBuilder_.dispose(); + iocMatchesSettingsBuilder_ = null; + } + ruleDetectionsSettings_ = null; + if (ruleDetectionsSettingsBuilder_ != null) { + ruleDetectionsSettingsBuilder_.dispose(); + ruleDetectionsSettingsBuilder_ = null; + } + udmEventsAggregatesSettings_ = null; + if (udmEventsAggregatesSettingsBuilder_ != null) { + udmEventsAggregatesSettingsBuilder_.dispose(); + udmEventsAggregatesSettingsBuilder_ = null; + } + udmEventsSettings_ = null; + if (udmEventsSettingsBuilder_ != null) { + udmEventsSettingsBuilder_.dispose(); + udmEventsSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.BigQueryExportProto + .internal_static_google_cloud_chronicle_v1_BigQueryExport_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BigQueryExport getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BigQueryExport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BigQueryExport build() { + com.google.cloud.chronicle.v1.BigQueryExport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BigQueryExport buildPartial() { + com.google.cloud.chronicle.v1.BigQueryExport result = + new com.google.cloud.chronicle.v1.BigQueryExport(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.BigQueryExport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.provisioned_ = provisioned_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bigQueryExportPackage_ = bigQueryExportPackage_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entityGraphSettings_ = + entityGraphSettingsBuilder_ == null + ? entityGraphSettings_ + : entityGraphSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.iocMatchesSettings_ = + iocMatchesSettingsBuilder_ == null + ? iocMatchesSettings_ + : iocMatchesSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ruleDetectionsSettings_ = + ruleDetectionsSettingsBuilder_ == null + ? ruleDetectionsSettings_ + : ruleDetectionsSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.udmEventsAggregatesSettings_ = + udmEventsAggregatesSettingsBuilder_ == null + ? udmEventsAggregatesSettings_ + : udmEventsAggregatesSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.udmEventsSettings_ = + udmEventsSettingsBuilder_ == null + ? udmEventsSettings_ + : udmEventsSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BigQueryExport) { + return mergeFrom((com.google.cloud.chronicle.v1.BigQueryExport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BigQueryExport other) { + if (other == com.google.cloud.chronicle.v1.BigQueryExport.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getProvisioned() != false) { + setProvisioned(other.getProvisioned()); + } + if (other.bigQueryExportPackage_ != 0) { + setBigQueryExportPackageValue(other.getBigQueryExportPackageValue()); + } + if (other.hasEntityGraphSettings()) { + mergeEntityGraphSettings(other.getEntityGraphSettings()); + } + if (other.hasIocMatchesSettings()) { + mergeIocMatchesSettings(other.getIocMatchesSettings()); + } + if (other.hasRuleDetectionsSettings()) { + mergeRuleDetectionsSettings(other.getRuleDetectionsSettings()); + } + if (other.hasUdmEventsAggregatesSettings()) { + mergeUdmEventsAggregatesSettings(other.getUdmEventsAggregatesSettings()); + } + if (other.hasUdmEventsSettings()) { + mergeUdmEventsSettings(other.getUdmEventsSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + provisioned_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + bigQueryExportPackage_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetEntityGraphSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetIocMatchesSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetRuleDetectionsSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUdmEventsAggregatesSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUdmEventsSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the BigQueryExport.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. The resource name of the BigQueryExport.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. The resource name of the BigQueryExport.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name of the BigQueryExport.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name of the BigQueryExport.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean provisioned_; + + /** + * + * + *
+     * Output only. Whether the BigQueryExport has been provisioned for the
+     * Chronicle instance.
+     * 
+ * + * bool provisioned = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provisioned. + */ + @java.lang.Override + public boolean getProvisioned() { + return provisioned_; + } + + /** + * + * + *
+     * Output only. Whether the BigQueryExport has been provisioned for the
+     * Chronicle instance.
+     * 
+ * + * bool provisioned = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The provisioned to set. + * @return This builder for chaining. + */ + public Builder setProvisioned(boolean value) { + + provisioned_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the BigQueryExport has been provisioned for the
+     * Chronicle instance.
+     * 
+ * + * bool provisioned = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProvisioned() { + bitField0_ = (bitField0_ & ~0x00000002); + provisioned_ = false; + onChanged(); + return this; + } + + private int bigQueryExportPackage_ = 0; + + /** + * + * + *
+     * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+     * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for bigQueryExportPackage. + */ + @java.lang.Override + public int getBigQueryExportPackageValue() { + return bigQueryExportPackage_; + } + + /** + * + * + *
+     * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+     * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for bigQueryExportPackage to set. + * @return This builder for chaining. + */ + public Builder setBigQueryExportPackageValue(int value) { + bigQueryExportPackage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+     * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bigQueryExportPackage. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.BigQueryExportPackage getBigQueryExportPackage() { + com.google.cloud.chronicle.v1.BigQueryExportPackage result = + com.google.cloud.chronicle.v1.BigQueryExportPackage.forNumber(bigQueryExportPackage_); + return result == null + ? com.google.cloud.chronicle.v1.BigQueryExportPackage.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+     * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bigQueryExportPackage to set. + * @return This builder for chaining. + */ + public Builder setBigQueryExportPackage( + com.google.cloud.chronicle.v1.BigQueryExportPackage value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + bigQueryExportPackage_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+     * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBigQueryExportPackage() { + bitField0_ = (bitField0_ & ~0x00000004); + bigQueryExportPackage_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.chronicle.v1.DataSourceExportSettings entityGraphSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + entityGraphSettingsBuilder_; + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the entityGraphSettings field is set. + */ + public boolean hasEntityGraphSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The entityGraphSettings. + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings getEntityGraphSettings() { + if (entityGraphSettingsBuilder_ == null) { + return entityGraphSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : entityGraphSettings_; + } else { + return entityGraphSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEntityGraphSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (entityGraphSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityGraphSettings_ = value; + } else { + entityGraphSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEntityGraphSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder builderForValue) { + if (entityGraphSettingsBuilder_ == null) { + entityGraphSettings_ = builderForValue.build(); + } else { + entityGraphSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEntityGraphSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (entityGraphSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && entityGraphSettings_ != null + && entityGraphSettings_ + != com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance()) { + getEntityGraphSettingsBuilder().mergeFrom(value); + } else { + entityGraphSettings_ = value; + } + } else { + entityGraphSettingsBuilder_.mergeFrom(value); + } + if (entityGraphSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEntityGraphSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + entityGraphSettings_ = null; + if (entityGraphSettingsBuilder_ != null) { + entityGraphSettingsBuilder_.dispose(); + entityGraphSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder + getEntityGraphSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetEntityGraphSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getEntityGraphSettingsOrBuilder() { + if (entityGraphSettingsBuilder_ != null) { + return entityGraphSettingsBuilder_.getMessageOrBuilder(); + } else { + return entityGraphSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : entityGraphSettings_; + } + } + + /** + * + * + *
+     * Optional. The export settings for the Entity Graph data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + internalGetEntityGraphSettingsFieldBuilder() { + if (entityGraphSettingsBuilder_ == null) { + entityGraphSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder>( + getEntityGraphSettings(), getParentForChildren(), isClean()); + entityGraphSettings_ = null; + } + return entityGraphSettingsBuilder_; + } + + private com.google.cloud.chronicle.v1.DataSourceExportSettings iocMatchesSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + iocMatchesSettingsBuilder_; + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iocMatchesSettings field is set. + */ + public boolean hasIocMatchesSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iocMatchesSettings. + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings getIocMatchesSettings() { + if (iocMatchesSettingsBuilder_ == null) { + return iocMatchesSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : iocMatchesSettings_; + } else { + return iocMatchesSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIocMatchesSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (iocMatchesSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + iocMatchesSettings_ = value; + } else { + iocMatchesSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIocMatchesSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder builderForValue) { + if (iocMatchesSettingsBuilder_ == null) { + iocMatchesSettings_ = builderForValue.build(); + } else { + iocMatchesSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIocMatchesSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (iocMatchesSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && iocMatchesSettings_ != null + && iocMatchesSettings_ + != com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance()) { + getIocMatchesSettingsBuilder().mergeFrom(value); + } else { + iocMatchesSettings_ = value; + } + } else { + iocMatchesSettingsBuilder_.mergeFrom(value); + } + if (iocMatchesSettings_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIocMatchesSettings() { + bitField0_ = (bitField0_ & ~0x00000010); + iocMatchesSettings_ = null; + if (iocMatchesSettingsBuilder_ != null) { + iocMatchesSettingsBuilder_.dispose(); + iocMatchesSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder + getIocMatchesSettingsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetIocMatchesSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getIocMatchesSettingsOrBuilder() { + if (iocMatchesSettingsBuilder_ != null) { + return iocMatchesSettingsBuilder_.getMessageOrBuilder(); + } else { + return iocMatchesSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : iocMatchesSettings_; + } + } + + /** + * + * + *
+     * Optional. The export settings for the IOC Matches data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + internalGetIocMatchesSettingsFieldBuilder() { + if (iocMatchesSettingsBuilder_ == null) { + iocMatchesSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder>( + getIocMatchesSettings(), getParentForChildren(), isClean()); + iocMatchesSettings_ = null; + } + return iocMatchesSettingsBuilder_; + } + + private com.google.cloud.chronicle.v1.DataSourceExportSettings ruleDetectionsSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + ruleDetectionsSettingsBuilder_; + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ruleDetectionsSettings field is set. + */ + public boolean hasRuleDetectionsSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ruleDetectionsSettings. + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings getRuleDetectionsSettings() { + if (ruleDetectionsSettingsBuilder_ == null) { + return ruleDetectionsSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : ruleDetectionsSettings_; + } else { + return ruleDetectionsSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRuleDetectionsSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (ruleDetectionsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleDetectionsSettings_ = value; + } else { + ruleDetectionsSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRuleDetectionsSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder builderForValue) { + if (ruleDetectionsSettingsBuilder_ == null) { + ruleDetectionsSettings_ = builderForValue.build(); + } else { + ruleDetectionsSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRuleDetectionsSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (ruleDetectionsSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && ruleDetectionsSettings_ != null + && ruleDetectionsSettings_ + != com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance()) { + getRuleDetectionsSettingsBuilder().mergeFrom(value); + } else { + ruleDetectionsSettings_ = value; + } + } else { + ruleDetectionsSettingsBuilder_.mergeFrom(value); + } + if (ruleDetectionsSettings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRuleDetectionsSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + ruleDetectionsSettings_ = null; + if (ruleDetectionsSettingsBuilder_ != null) { + ruleDetectionsSettingsBuilder_.dispose(); + ruleDetectionsSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder + getRuleDetectionsSettingsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetRuleDetectionsSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getRuleDetectionsSettingsOrBuilder() { + if (ruleDetectionsSettingsBuilder_ != null) { + return ruleDetectionsSettingsBuilder_.getMessageOrBuilder(); + } else { + return ruleDetectionsSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : ruleDetectionsSettings_; + } + } + + /** + * + * + *
+     * Optional. The export settings for the Rule Detections data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + internalGetRuleDetectionsSettingsFieldBuilder() { + if (ruleDetectionsSettingsBuilder_ == null) { + ruleDetectionsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder>( + getRuleDetectionsSettings(), getParentForChildren(), isClean()); + ruleDetectionsSettings_ = null; + } + return ruleDetectionsSettingsBuilder_; + } + + private com.google.cloud.chronicle.v1.DataSourceExportSettings udmEventsAggregatesSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + udmEventsAggregatesSettingsBuilder_; + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the udmEventsAggregatesSettings field is set. + */ + public boolean hasUdmEventsAggregatesSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The udmEventsAggregatesSettings. + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings getUdmEventsAggregatesSettings() { + if (udmEventsAggregatesSettingsBuilder_ == null) { + return udmEventsAggregatesSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : udmEventsAggregatesSettings_; + } else { + return udmEventsAggregatesSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUdmEventsAggregatesSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (udmEventsAggregatesSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + udmEventsAggregatesSettings_ = value; + } else { + udmEventsAggregatesSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUdmEventsAggregatesSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder builderForValue) { + if (udmEventsAggregatesSettingsBuilder_ == null) { + udmEventsAggregatesSettings_ = builderForValue.build(); + } else { + udmEventsAggregatesSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUdmEventsAggregatesSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (udmEventsAggregatesSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && udmEventsAggregatesSettings_ != null + && udmEventsAggregatesSettings_ + != com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance()) { + getUdmEventsAggregatesSettingsBuilder().mergeFrom(value); + } else { + udmEventsAggregatesSettings_ = value; + } + } else { + udmEventsAggregatesSettingsBuilder_.mergeFrom(value); + } + if (udmEventsAggregatesSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUdmEventsAggregatesSettings() { + bitField0_ = (bitField0_ & ~0x00000040); + udmEventsAggregatesSettings_ = null; + if (udmEventsAggregatesSettingsBuilder_ != null) { + udmEventsAggregatesSettingsBuilder_.dispose(); + udmEventsAggregatesSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder + getUdmEventsAggregatesSettingsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUdmEventsAggregatesSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getUdmEventsAggregatesSettingsOrBuilder() { + if (udmEventsAggregatesSettingsBuilder_ != null) { + return udmEventsAggregatesSettingsBuilder_.getMessageOrBuilder(); + } else { + return udmEventsAggregatesSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : udmEventsAggregatesSettings_; + } + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events Aggregates data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + internalGetUdmEventsAggregatesSettingsFieldBuilder() { + if (udmEventsAggregatesSettingsBuilder_ == null) { + udmEventsAggregatesSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder>( + getUdmEventsAggregatesSettings(), getParentForChildren(), isClean()); + udmEventsAggregatesSettings_ = null; + } + return udmEventsAggregatesSettingsBuilder_; + } + + private com.google.cloud.chronicle.v1.DataSourceExportSettings udmEventsSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + udmEventsSettingsBuilder_; + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the udmEventsSettings field is set. + */ + public boolean hasUdmEventsSettings() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The udmEventsSettings. + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings getUdmEventsSettings() { + if (udmEventsSettingsBuilder_ == null) { + return udmEventsSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : udmEventsSettings_; + } else { + return udmEventsSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUdmEventsSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (udmEventsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + udmEventsSettings_ = value; + } else { + udmEventsSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUdmEventsSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder builderForValue) { + if (udmEventsSettingsBuilder_ == null) { + udmEventsSettings_ = builderForValue.build(); + } else { + udmEventsSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUdmEventsSettings( + com.google.cloud.chronicle.v1.DataSourceExportSettings value) { + if (udmEventsSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && udmEventsSettings_ != null + && udmEventsSettings_ + != com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance()) { + getUdmEventsSettingsBuilder().mergeFrom(value); + } else { + udmEventsSettings_ = value; + } + } else { + udmEventsSettingsBuilder_.mergeFrom(value); + } + if (udmEventsSettings_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUdmEventsSettings() { + bitField0_ = (bitField0_ & ~0x00000080); + udmEventsSettings_ = null; + if (udmEventsSettingsBuilder_ != null) { + udmEventsSettingsBuilder_.dispose(); + udmEventsSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder + getUdmEventsSettingsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUdmEventsSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getUdmEventsSettingsOrBuilder() { + if (udmEventsSettingsBuilder_ != null) { + return udmEventsSettingsBuilder_.getMessageOrBuilder(); + } else { + return udmEventsSettings_ == null + ? com.google.cloud.chronicle.v1.DataSourceExportSettings.getDefaultInstance() + : udmEventsSettings_; + } + } + + /** + * + * + *
+     * Optional. The export settings for the UDM Events data source.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder> + internalGetUdmEventsSettingsFieldBuilder() { + if (udmEventsSettingsBuilder_ == null) { + udmEventsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataSourceExportSettings, + com.google.cloud.chronicle.v1.DataSourceExportSettings.Builder, + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder>( + getUdmEventsSettings(), getParentForChildren(), isClean()); + udmEventsSettings_ = null; + } + return udmEventsSettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BigQueryExport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BigQueryExport) + private static final com.google.cloud.chronicle.v1.BigQueryExport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BigQueryExport(); + } + + public static com.google.cloud.chronicle.v1.BigQueryExport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryExport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BigQueryExport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportName.java new file mode 100644 index 000000000000..598e109b0e23 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class BigQueryExportName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}/bigQueryExport"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + + @Deprecated + protected BigQueryExportName() { + project = null; + location = null; + instance = null; + } + + private BigQueryExportName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BigQueryExportName of(String project, String location, String instance) { + return newBuilder().setProject(project).setLocation(location).setInstance(instance).build(); + } + + public static String format(String project, String location, String instance) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .build() + .toString(); + } + + public static BigQueryExportName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE.validatedMatch( + formattedString, "BigQueryExportName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("instance")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (BigQueryExportName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (instance != null) { + fieldMapBuilder.put("instance", instance); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE.instantiate( + "project", project, "location", location, "instance", instance); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BigQueryExportName that = ((BigQueryExportName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(instance); + return h; + } + + /** Builder for projects/{project}/locations/{location}/instances/{instance}/bigQueryExport. */ + public static class Builder { + private String project; + private String location; + private String instance; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + private Builder(BigQueryExportName bigQueryExportName) { + this.project = bigQueryExportName.project; + this.location = bigQueryExportName.location; + this.instance = bigQueryExportName.instance; + } + + public BigQueryExportName build() { + return new BigQueryExportName(this); + } + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportOrBuilder.java new file mode 100644 index 000000000000..a825ee7ded49 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportOrBuilder.java @@ -0,0 +1,319 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/big_query_export.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BigQueryExportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BigQueryExport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the BigQueryExport.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the BigQueryExport.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Whether the BigQueryExport has been provisioned for the
+   * Chronicle instance.
+   * 
+ * + * bool provisioned = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provisioned. + */ + boolean getProvisioned(); + + /** + * + * + *
+   * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+   * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for bigQueryExportPackage. + */ + int getBigQueryExportPackageValue(); + + /** + * + * + *
+   * Output only. The BigQueryExportPackage entitled for the Chronicle instance.
+   * 
+ * + * + * .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bigQueryExportPackage. + */ + com.google.cloud.chronicle.v1.BigQueryExportPackage getBigQueryExportPackage(); + + /** + * + * + *
+   * Optional. The export settings for the Entity Graph data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the entityGraphSettings field is set. + */ + boolean hasEntityGraphSettings(); + + /** + * + * + *
+   * Optional. The export settings for the Entity Graph data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The entityGraphSettings. + */ + com.google.cloud.chronicle.v1.DataSourceExportSettings getEntityGraphSettings(); + + /** + * + * + *
+   * Optional. The export settings for the Entity Graph data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder getEntityGraphSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. The export settings for the IOC Matches data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iocMatchesSettings field is set. + */ + boolean hasIocMatchesSettings(); + + /** + * + * + *
+   * Optional. The export settings for the IOC Matches data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iocMatchesSettings. + */ + com.google.cloud.chronicle.v1.DataSourceExportSettings getIocMatchesSettings(); + + /** + * + * + *
+   * Optional. The export settings for the IOC Matches data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder getIocMatchesSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. The export settings for the Rule Detections data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ruleDetectionsSettings field is set. + */ + boolean hasRuleDetectionsSettings(); + + /** + * + * + *
+   * Optional. The export settings for the Rule Detections data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ruleDetectionsSettings. + */ + com.google.cloud.chronicle.v1.DataSourceExportSettings getRuleDetectionsSettings(); + + /** + * + * + *
+   * Optional. The export settings for the Rule Detections data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getRuleDetectionsSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. The export settings for the UDM Events Aggregates data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the udmEventsAggregatesSettings field is set. + */ + boolean hasUdmEventsAggregatesSettings(); + + /** + * + * + *
+   * Optional. The export settings for the UDM Events Aggregates data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The udmEventsAggregatesSettings. + */ + com.google.cloud.chronicle.v1.DataSourceExportSettings getUdmEventsAggregatesSettings(); + + /** + * + * + *
+   * Optional. The export settings for the UDM Events Aggregates data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder + getUdmEventsAggregatesSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. The export settings for the UDM Events data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the udmEventsSettings field is set. + */ + boolean hasUdmEventsSettings(); + + /** + * + * + *
+   * Optional. The export settings for the UDM Events data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The udmEventsSettings. + */ + com.google.cloud.chronicle.v1.DataSourceExportSettings getUdmEventsSettings(); + + /** + * + * + *
+   * Optional. The export settings for the UDM Events data source.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.DataSourceExportSettingsOrBuilder getUdmEventsSettingsOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportPackage.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportPackage.java new file mode 100644 index 000000000000..198585ff529a --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportPackage.java @@ -0,0 +1,194 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/big_query_export.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * The BigQueryExportPackage entitled for the Chronicle instance.
+ * 
+ * + * Protobuf enum {@code google.cloud.chronicle.v1.BigQueryExportPackage} + */ +@com.google.protobuf.Generated +public enum BigQueryExportPackage implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The BigQueryExportPackage is unspecified.
+   * 
+ * + * BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED = 0; + */ + BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED(0), + /** + * + * + *
+   * The BigQueryExportPackage is Bring Your Own BigQuery.
+   * 
+ * + * BIG_QUERY_EXPORT_PACKAGE_BYOBQ = 1; + */ + BIG_QUERY_EXPORT_PACKAGE_BYOBQ(1), + /** + * + * + *
+   * The BigQueryExportPackage is Advanced BigQuery.
+   * 
+ * + * BIG_QUERY_EXPORT_PACKAGE_ADVANCED = 2; + */ + BIG_QUERY_EXPORT_PACKAGE_ADVANCED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BigQueryExportPackage"); + } + + /** + * + * + *
+   * The BigQueryExportPackage is unspecified.
+   * 
+ * + * BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED = 0; + */ + public static final int BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The BigQueryExportPackage is Bring Your Own BigQuery.
+   * 
+ * + * BIG_QUERY_EXPORT_PACKAGE_BYOBQ = 1; + */ + public static final int BIG_QUERY_EXPORT_PACKAGE_BYOBQ_VALUE = 1; + + /** + * + * + *
+   * The BigQueryExportPackage is Advanced BigQuery.
+   * 
+ * + * BIG_QUERY_EXPORT_PACKAGE_ADVANCED = 2; + */ + public static final int BIG_QUERY_EXPORT_PACKAGE_ADVANCED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BigQueryExportPackage valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BigQueryExportPackage forNumber(int value) { + switch (value) { + case 0: + return BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED; + case 1: + return BIG_QUERY_EXPORT_PACKAGE_BYOBQ; + case 2: + return BIG_QUERY_EXPORT_PACKAGE_ADVANCED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BigQueryExportPackage findValueByNumber(int number) { + return BigQueryExportPackage.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.chronicle.v1.BigQueryExportProto.getDescriptor().getEnumTypes().get(0); + } + + private static final BigQueryExportPackage[] VALUES = values(); + + public static BigQueryExportPackage valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BigQueryExportPackage(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.chronicle.v1.BigQueryExportPackage) +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportProto.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportProto.java new file mode 100644 index 000000000000..63aa40682d8f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportProto.java @@ -0,0 +1,225 @@ +/* + * Copyright 2026 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/big_query_export.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public final class BigQueryExportProto extends com.google.protobuf.GeneratedFile { + private BigQueryExportProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BigQueryExportProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BigQueryExport_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BigQueryExport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DataSourceExportSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DataSourceExportSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_GetBigQueryExportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_GetBigQueryExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_UpdateBigQueryExportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_UpdateBigQueryExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ProvisionBigQueryExportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ProvisionBigQueryExportRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "0google/cloud/chronicle/v1/big_query_ex" + + "port.proto\022\031google.cloud.chronicle.v1\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\371\005\n" + + "\016BigQueryExport\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + + "\013provisioned\030\002 \001(\010B\003\340A\003\022W\n" + + "\030big_query_export_package\030\003 \001(\01620." + + "google.cloud.chronicle.v1.BigQueryExportPackageB\003\340A\003\022W\n" + + "\025entity_graph_settings\030\004 " + + "\001(\01323.google.cloud.chronicle.v1.DataSourceExportSettingsB\003\340A\001\022V\n" + + "\024ioc_matches_settings\030\005" + + " \001(\01323.google.cloud.chronicle.v1.DataSourceExportSettingsB\003\340A\001\022Z\n" + + "\030rule_detections_settings\030\006 \001(\01323.google.cloud.c" + + "hronicle.v1.DataSourceExportSettingsB\003\340A\001\022`\n" + + "\036udm_events_aggregates_settings\030\007 \001(" + + "\01323.google.cloud.chronicle.v1.DataSourceExportSettingsB\003\340A\001\022U\n" + + "\023udm_events_settings\030\010" + + " \001(\01323.google.cloud.chronicle.v1.DataSourceExportSettingsB\003\340A\001:\232\001\352A\226\001\n" + + "\'chronicle.googleapis.com/BigQueryExport\022Kproj" + + "ects/{project}/locations/{location}/inst" + + "ances/{instance}/bigQueryExport*\016bigQueryExport2\016bigQueryExport\"\374\001\n" + + "\030DataSourceExportSettings\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\002\022\033\n" + + "\016retention_days\030\002 \001(\005B\003\340A\002\022U\n" + + "\027latest_export_job_state\030\003" + + " \001(\0162/.google.cloud.chronicle.v1.LatestExportJobStateB\003\340A\003\022<\n" + + "\023data_freshness_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + + "\013data_volume\030\005 \001(\003B\003\340A\003\"Y\n" + + "\030GetBigQueryExportRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'chronicle.googleapis.com/BigQueryExport\"\235\001\n" + + "\033UpdateBigQueryExportRequest\022H\n" + + "\020big_query_export\030\001" + + " \001(\0132).google.cloud.chronicle.v1.BigQueryExportB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"a\n" + + "\036ProvisionBigQueryExportRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'chronicle.googleapis.com/BigQueryExport*\214\001\n" + + "\025BigQueryExportPackage\022(\n" + + "$BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED\020\000\022\"\n" + + "\036BIG_QUERY_EXPORT_PACKAGE_BYOBQ\020\001\022%\n" + + "!BIG_QUERY_EXPORT_PACKAGE_ADVANCED\020\002*\210\001\n" + + "\024LatestExportJobState\022\'\n" + + "#LATEST_EXPORT_JOB_STATE_UNSPECIFIED\020\000\022#\n" + + "\037LATEST_EXPORT_JOB_STATE_SUCCESS\020\001\022\"\n" + + "\036LATEST_EXPORT_JOB_STATE_FAILED\020\0022\354\006\n" + + "\025BigQueryExportService\022\300\001\n" + + "\021GetBigQueryExport\0223.google.cloud.chronicle.v1.GetBigQueryEx" + + "portRequest\032).google.cloud.chronicle.v1." + + "BigQueryExport\"K\332A\004name\202\323\344\223\002>\022 + * Button config for a chart. + * + * + * Protobuf type {@code google.cloud.chronicle.v1.Button} + */ +@com.google.protobuf.Generated +public final class Button extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.Button) + ButtonOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Button"); + } + + // Use Button.newBuilder() to construct. + private Button(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Button() { + label_ = ""; + hyperlink_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.Button.class, + com.google.cloud.chronicle.v1.Button.Builder.class); + } + + public interface PropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.Button.Properties) + com.google.protobuf.MessageOrBuilder { + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The color. + */ + java.lang.String getColor(); + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for color. + */ + com.google.protobuf.ByteString getColorBytes(); + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for buttonStyle. + */ + int getButtonStyleValue(); + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buttonStyle. + */ + com.google.cloud.chronicle.v1.ButtonStyle getButtonStyle(); + } + + /** Protobuf type {@code google.cloud.chronicle.v1.Button.Properties} */ + public static final class Properties extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.Button.Properties) + PropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Properties"); + } + + // Use Properties.newBuilder() to construct. + private Properties(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Properties() { + color_ = ""; + buttonStyle_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_Properties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_Properties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.Button.Properties.class, + com.google.cloud.chronicle.v1.Button.Properties.Builder.class); + } + + public static final int COLOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object color_ = ""; + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The color. + */ + @java.lang.Override + public java.lang.String getColor() { + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } + } + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for color. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColorBytes() { + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUTTON_STYLE_FIELD_NUMBER = 2; + private int buttonStyle_ = 0; + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for buttonStyle. + */ + @java.lang.Override + public int getButtonStyleValue() { + return buttonStyle_; + } + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buttonStyle. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.ButtonStyle getButtonStyle() { + com.google.cloud.chronicle.v1.ButtonStyle result = + com.google.cloud.chronicle.v1.ButtonStyle.forNumber(buttonStyle_); + return result == null ? com.google.cloud.chronicle.v1.ButtonStyle.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(color_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, color_); + } + if (buttonStyle_ + != com.google.cloud.chronicle.v1.ButtonStyle.BUTTON_STYLE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, buttonStyle_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(color_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, color_); + } + if (buttonStyle_ + != com.google.cloud.chronicle.v1.ButtonStyle.BUTTON_STYLE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, buttonStyle_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.Button.Properties)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.Button.Properties other = + (com.google.cloud.chronicle.v1.Button.Properties) obj; + + if (!getColor().equals(other.getColor())) return false; + if (buttonStyle_ != other.buttonStyle_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLOR_FIELD_NUMBER; + hash = (53 * hash) + getColor().hashCode(); + hash = (37 * hash) + BUTTON_STYLE_FIELD_NUMBER; + hash = (53 * hash) + buttonStyle_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.Button.Properties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.Button.Properties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** Protobuf type {@code google.cloud.chronicle.v1.Button.Properties} */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.Button.Properties) + com.google.cloud.chronicle.v1.Button.PropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_Properties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_Properties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.Button.Properties.class, + com.google.cloud.chronicle.v1.Button.Properties.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.Button.Properties.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + color_ = ""; + buttonStyle_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_Properties_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.Button.Properties getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.Button.Properties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.Button.Properties build() { + com.google.cloud.chronicle.v1.Button.Properties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.Button.Properties buildPartial() { + com.google.cloud.chronicle.v1.Button.Properties result = + new com.google.cloud.chronicle.v1.Button.Properties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.Button.Properties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.color_ = color_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.buttonStyle_ = buttonStyle_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.Button.Properties) { + return mergeFrom((com.google.cloud.chronicle.v1.Button.Properties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.Button.Properties other) { + if (other == com.google.cloud.chronicle.v1.Button.Properties.getDefaultInstance()) + return this; + if (!other.getColor().isEmpty()) { + color_ = other.color_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.buttonStyle_ != 0) { + setButtonStyleValue(other.getButtonStyleValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + color_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + buttonStyle_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object color_ = ""; + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The color. + */ + public java.lang.String getColor() { + java.lang.Object ref = color_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for color. + */ + public com.google.protobuf.ByteString getColorBytes() { + java.lang.Object ref = color_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The color to set. + * @return This builder for chaining. + */ + public Builder setColor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + color_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearColor() { + color_ = getDefaultInstance().getColor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for color to set. + * @return This builder for chaining. + */ + public Builder setColorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + color_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int buttonStyle_ = 0; + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for buttonStyle. + */ + @java.lang.Override + public int getButtonStyleValue() { + return buttonStyle_; + } + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for buttonStyle to set. + * @return This builder for chaining. + */ + public Builder setButtonStyleValue(int value) { + buttonStyle_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buttonStyle. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.ButtonStyle getButtonStyle() { + com.google.cloud.chronicle.v1.ButtonStyle result = + com.google.cloud.chronicle.v1.ButtonStyle.forNumber(buttonStyle_); + return result == null ? com.google.cloud.chronicle.v1.ButtonStyle.UNRECOGNIZED : result; + } + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The buttonStyle to set. + * @return This builder for chaining. + */ + public Builder setButtonStyle(com.google.cloud.chronicle.v1.ButtonStyle value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + buttonStyle_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearButtonStyle() { + bitField0_ = (bitField0_ & ~0x00000002); + buttonStyle_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.Button.Properties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.Button.Properties) + private static final com.google.cloud.chronicle.v1.Button.Properties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.Button.Properties(); + } + + public static com.google.cloud.chronicle.v1.Button.Properties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Properties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.Button.Properties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int LABEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HYPERLINK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object hyperlink_ = ""; + + /** + * string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hyperlink. + */ + @java.lang.Override + public java.lang.String getHyperlink() { + java.lang.Object ref = hyperlink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hyperlink_ = s; + return s; + } + } + + /** + * string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hyperlink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHyperlinkBytes() { + java.lang.Object ref = hyperlink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hyperlink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_TAB_FIELD_NUMBER = 4; + private boolean newTab_ = false; + + /** + * + * + *
+   * Optional. Whether to open the link in a new tab.
+   * 
+ * + * bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The newTab. + */ + @java.lang.Override + public boolean getNewTab() { + return newTab_; + } + + public static final int PROPERTIES_FIELD_NUMBER = 5; + private com.google.cloud.chronicle.v1.Button.Properties properties_; + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.Button.Properties getProperties() { + return properties_ == null + ? com.google.cloud.chronicle.v1.Button.Properties.getDefaultInstance() + : properties_; + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.Button.PropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.chronicle.v1.Button.Properties.getDefaultInstance() + : properties_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, label_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hyperlink_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, hyperlink_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (newTab_ != false) { + output.writeBool(4, newTab_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getProperties()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, label_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hyperlink_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, hyperlink_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (newTab_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, newTab_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProperties()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.Button)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.Button other = (com.google.cloud.chronicle.v1.Button) obj; + + if (!getLabel().equals(other.getLabel())) return false; + if (!getHyperlink().equals(other.getHyperlink())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getNewTab() != other.getNewTab()) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + HYPERLINK_FIELD_NUMBER; + hash = (53 * hash) + getHyperlink().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + NEW_TAB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNewTab()); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.Button parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.Button parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.Button parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.Button prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Button config for a chart.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.Button} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.Button) + com.google.cloud.chronicle.v1.ButtonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.Button.class, + com.google.cloud.chronicle.v1.Button.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.Button.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + label_ = ""; + hyperlink_ = ""; + description_ = ""; + newTab_ = false; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DashboardChartProto + .internal_static_google_cloud_chronicle_v1_Button_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.Button getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.Button.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.Button build() { + com.google.cloud.chronicle.v1.Button result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.Button buildPartial() { + com.google.cloud.chronicle.v1.Button result = new com.google.cloud.chronicle.v1.Button(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.Button result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.label_ = label_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hyperlink_ = hyperlink_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.newTab_ = newTab_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.Button) { + return mergeFrom((com.google.cloud.chronicle.v1.Button) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.Button other) { + if (other == com.google.cloud.chronicle.v1.Button.getDefaultInstance()) return this; + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getHyperlink().isEmpty()) { + hyperlink_ = other.hyperlink_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getNewTab() != false) { + setNewTab(other.getNewTab()); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hyperlink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + newTab_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object label_ = ""; + + /** + * string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object hyperlink_ = ""; + + /** + * string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hyperlink. + */ + public java.lang.String getHyperlink() { + java.lang.Object ref = hyperlink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hyperlink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hyperlink. + */ + public com.google.protobuf.ByteString getHyperlinkBytes() { + java.lang.Object ref = hyperlink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hyperlink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hyperlink to set. + * @return This builder for chaining. + */ + public Builder setHyperlink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hyperlink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHyperlink() { + hyperlink_ = getDefaultInstance().getHyperlink(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hyperlink to set. + * @return This builder for chaining. + */ + public Builder setHyperlinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hyperlink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean newTab_; + + /** + * + * + *
+     * Optional. Whether to open the link in a new tab.
+     * 
+ * + * bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The newTab. + */ + @java.lang.Override + public boolean getNewTab() { + return newTab_; + } + + /** + * + * + *
+     * Optional. Whether to open the link in a new tab.
+     * 
+ * + * bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The newTab to set. + * @return This builder for chaining. + */ + public Builder setNewTab(boolean value) { + + newTab_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to open the link in a new tab.
+     * 
+ * + * bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNewTab() { + bitField0_ = (bitField0_ & ~0x00000008); + newTab_ = false; + onChanged(); + return this; + } + + private com.google.cloud.chronicle.v1.Button.Properties properties_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.Button.Properties, + com.google.cloud.chronicle.v1.Button.Properties.Builder, + com.google.cloud.chronicle.v1.Button.PropertiesOrBuilder> + propertiesBuilder_; + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.chronicle.v1.Button.Properties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.chronicle.v1.Button.Properties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties(com.google.cloud.chronicle.v1.Button.Properties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.chronicle.v1.Button.Properties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties(com.google.cloud.chronicle.v1.Button.Properties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && properties_ != null + && properties_ + != com.google.cloud.chronicle.v1.Button.Properties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000010); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.Button.Properties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.Button.PropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.chronicle.v1.Button.Properties.getDefaultInstance() + : properties_; + } + } + + /** + * + * .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.Button.Properties, + com.google.cloud.chronicle.v1.Button.Properties.Builder, + com.google.cloud.chronicle.v1.Button.PropertiesOrBuilder> + internalGetPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.Button.Properties, + com.google.cloud.chronicle.v1.Button.Properties.Builder, + com.google.cloud.chronicle.v1.Button.PropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.Button) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.Button) + private static final com.google.cloud.chronicle.v1.Button DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.Button(); + } + + public static com.google.cloud.chronicle.v1.Button getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser